[l2h] accent problems

Shigeharu TAKENO shige@iee.niit.ac.jp
Fri, 18 Jan 2002 19:35:00 +0900 (JST)


shige 01/18 2002
----------------

I report something with respect to accent. 


1) I think 

    &accent_safe_for_ij($type , 'accent$number' );

should be 

    &accent_safe_for_ij($type , "accent$number" );

in the definition of &do_cmd_accent().


2) the LaTeX command

  \accent23u 

works well (ring above u), but 

  \accent23{u} 

does not well (ring is left of u). So, I think

  &process_undefined_environment("tex2html_accent_inline"
  , ++$global{'max_id'}, "${bstyle}\\${type}\{$char\\/\}$estyle$afterkern");

should be 

  if ( $type =~ /^accent/ ) { 
    &process_undefined_environment("tex2html_accent_inline"
    , ++$global{'max_id'}, "${bstyle}\\${type}$char\\/$estyle$afterkern");
  } else {
    &process_undefined_environment("tex2html_accent_inline"
    , ++$global{'max_id'}, "${bstyle}\\${type}\{$char\\/\}$estyle$afterkern");
  }

in the definition of &mbox_accent().


3) I use Japanese language and I want to see Japanese character
on the WWW browser. But ANY accents character (such as "ö") 
can not displayed on Japanese browser (using iso-2022-jp encoding
font). 

So, to convert ANY accents to images or to delete accents when 
 $charset = 'iso-2022-jp', I changed 

  &do_require_extension('latin1');

to 

  &do_require_extension('latin1') unless $charset eq 'iso-2022-jp';

and changed

  if ($enc) {
    ...
  } else {
	# get its latin1 or unicode entity encoding, if available
	$enc = $iso_8859_1_character_map{"$char$kind"}
	    ||$iso_8859_1A_character_map{"$char$kind"}
	    ||$iso_10646_character_map{"$char$kind"};

to

  if ($enc) {
    ...
  } else {
	# get its latin1 or unicode entity encoding, if available
	$enc = $iso_8859_1_character_map{"$char$kind"}
	    ||$iso_8859_1A_character_map{"$char$kind"}
	    ||$iso_10646_character_map{"$char$kind"} 
        unless $CHARSET eq 'iso-2022-jp';

in the definition of &iso_map() of my latex2html.pin.

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 shige@iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+