# argument: <char>, <input coding system>
# return: char in ucs@mcs.
my($char,$in_cs)=@_;
- my($output_char);
- my $char_id=unpack("U",$char);
+ my($output_char,$char_id);
+ return $char if($char le "~");
+ $char_id=unpack("U",$char);
if($opt_latin and $texmacro[$char_id]){
return $char;
- }
- if(($output_char)=&get_chars_matching("=$in_cs",$char_id)){
+ }elsif(($output_char)=&get_chars_matching("=$in_cs",$char_id)){
return $output_char;
}else{
return $char;
my($char,$in_cs)=@_;
my($output_char);
- return $char if($in_cs eq 'ucs@mcs');
+ return $char if($in_cs eq 'ucs@mcs' or
+ $char le "~");
if(($output_char)=&get_chars_matching("=$in_cs",unpack("U",$char))){
return $output_char;