[w3m-dev 04218] Re: <del>, <s>, <ins>, and so on

Hideyuki SHIRAI (白井秀行) <[email protected]> Tue, 24 Apr 2007 13:56:29 +0900 (JST)
Newsgroups gmane.comp.web.w3m.devel
Organization Resident at Meadowy farm.
Message-ID <[email protected]>

From: Hiroyuki Ito <[email protected]> 
Subject: [w3m-dev 04217] Re: <del>, <s>, <ins>, and so on
Message-ID: <[email protected]>
Date: Sun, 22 Apr 2007 22:26:43 +0900 (JST)

> > > (****1)
> > > a               insert start<ins><u>b</u></ins>
> > > a               <ins><u>b</u></ins>
> > > a               <ins><u>b</u></ins>insert end
> > > 
> > > 
> > 
> > 
> > 
> 
> 
> <del> 




> Index: file.c
......
>      case HTML_N_DEL:
> -	if (displayInsDel)
> -	    HTMLlineproc1("<U>:DEL]</U>", h_env);
> -	else
> -	    obuf->flag &= ~RB_DEL;
> -	return 1;
> +	if (obuf->in_strike == 0)
> +	    return 1;
> +	if (obuf->in_strike == 1 && close_effect0(obuf, HTML_S))
> +	    obuf->in_strike = 0;
> +	if (obuf->in_strike > 0) {
> +	    obuf->in_strike--;
> +	    if (obuf->in_strike == 0) {
> +		push_tag(obuf, "</s>", HTML_N_S);
> +	    }
> +	}
> +	if (obuf->in_strike == 0) {
> +	    if (displayInsDel) {
> +		HTMLlineproc1("<U>:DEL]</U>", h_env);
> +	    } else {
> +		obuf->flag &= ~(RB_DEL | RB_S);
> +	    }
> +	}
  +	return 1; <== 
>      case HTML_S:






% w3m -version
w3m version w3m/0.5.1+cvs-xxxx, options lang=ja,m17n,image,color,ansi-color,mouse,menu,cookie,ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,ipv6,alarm,mark,migemo, emacs-w3m

 emacs-w3m 

% w3m -halfdump -o emacs-w3m 



    case HTML_DEL:
	obuf->in_strike++;
	if (displayInsDel) {
	    if (obuf->in_strike == 1) {
		if (emacs-w3m) {
		    push_tag(obuf, "<s>", HTML_S);
		} else {
		    HTMLlineproc1("<U>[DEL:</U>", h_env);
		}
	    }
	} else {
	    obuf->flag |= RB_DEL;
	}
	return 1;
    case HTML_N_DEL:
	if (obuf->in_strike == 0)
	    return 1;
	if (obuf->in_strike == 1 && close_effect0(obuf, HTML_S))
	    obuf->in_strike = 0;
	if (obuf->in_strike > 0) {
	    obuf->in_strike--;
	    if (obuf->in_strike == 0) {
		push_tag(obuf, "</s>", HTML_N_S);
	    }
	}
	if (obuf->in_strike == 0) {
	    if (displayInsDel) {
		if (!(emacs-w3m)) {
		    HTMLlineproc1("<U>:DEL]</U>", h_env);
		}
	    } else {
		obuf->flag &= ~(RB_DEL | RB_S);
	    }
	}
	return 1;

    case HTML_INS:
	obuf->in_ins++;
	if (obuf->in_ins == 1) {
	    if (emacs-w3m) {
		push_tag(obuf, "<ins>", HTML_INS);
	    } else {
		HTMLlineproc1("<U>", h_env);
	    }
	}
	return 1;
    case HTML_N_INS:
	if (obuf->in_ins == 0)
	    return 1;
	if (obuf->in_ins == 1 && close_effect0(obuf, HTML_INS))
	    obuf->in_ins = 0;
	if (obuf->in_ins > 0) {
	    obuf->in_ins--;
	    if (obuf->in_ins == 0) {
		if (emacs-w3m) {
		    push_tag(obuf, "</ins>", HTML_N_INS);
		} else {
		    HTMLlineproc1("</U>", h_env);
		}
	    }
	}
 	return 1;




[DEL:, :DEL], [S:, :S] 
<ins>  <U> 



(1) emacs-w3m  [DEL:, :DEL], [S:, :S] 
    
    => 

(2) ins tag  <ins><U></U></ins> <ins> 
    <ins>  <u> emacs-w3m 
    



## -o emacs-w3m  ^^;;;

-- 
 (mailto:[email protected])

P.S.
libwc/map/ucs_wide.map
()