[Aleph] Lamed and dollars

klists at saphor.de klists at saphor.de
Tue Nov 23 10:16:21 CET 2004


Hi!

On Mon, 20-11-22, 2004 at 11:50:12PM +0800, YJLee wrote:
> 1.  Add following lines to uni2lat.otp and compile with otp2ocp
> 
> ---------------------------------modify uni2lat.otp----------------------------
> expressions:
> 
> "$" => "\$" ;
> "_" => "\_"  ;
> "&" => "&"  ;   
> "#" => "\#"  ;      
> "\" => "\textbackslash" ;      
> "{" => "\{"  ;      
> "}" => "\}"  ;  
> "%" => "\%"  ;
> "~" => "\~{}" ;
> "^" => "\^{}" ;
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> %`f'`f'`i'`j' => @"022C; % for Dutch only
> `f'`f'`i' => @"0223;
>   ..........
> ------------------------------------------------------------------------
> 
> 2.  modify latex source to:
> 
> --------------------------------------------
> 
> \def\rmdefault{omlgc}
> \def\ttdefault{uctt}
> 
> 
> \ocp\TexUTF=inutf8
> \ocp\OCPunitolat=uni2lat
> 
> \InputTranslation currentfile \TexUTF
> \ocplist\inputtrans=%\addbeforeocplist 1000 \TexUTF
> \addbeforeocplist 1000 \OCPunitolat
> \nullocplist
> \pushocplist\inputtrans
> 
> 
> \documentclass[10pt, a4paper]{book}
> \usepackage[T1]{fontenc}
> 
> \usepackage[greek, ngerman]{babel}
> 
> \begin{document}
>  test 50\$ and 50\textdollar text
>  test 20\% \~{} \textbackslash \# 
> \end{document}
>  ---------------------------------------------
> 
> and it should work.
> 
>  


Thank you very much! The test file now compiles cleanly and shows the
desired behaviour. Now I'll be looking into the "real", much more
complex document to see it it works there, too.


> "$" => "\$" ;
> "_" => "\_"  ;
> "&" => "&"  ;   
> "#" => "\#"  ;      
> "\" => "\textbackslash" ;      
> "{" => "\{"  ;      
> "}" => "\}"  ;  
> "%" => "\%"  ;
> "~" => "\~{}" ;
> "^" => "\^{}" ;
> 

For curiousity: *Why* do these shifts work? It is \$ originally in the
source, yet you shift $ to \$. What happens to any $s that are used
for marking mathematical text?

Or, if those are too many questions: is there a good and reasonably
complete specification of this state language?

Best regards,

Marc


More information about the Aleph mailing list