[openi18n-im:01378] Re: Help with defining a new module

Giuseppe Castagna <[email protected]> Mon, 16 May 2005 10:34:39 +0200
Newsgroups gmane.comp.internationalization.input-methods
Message-ID <[email protected]>
Thank to all for your answers, and in particular to Hideki and Jens 
since their suggestions worked, and now I can write \lambda and 
yupppieee it prints λ (as the previous char shows as I did it in 
Thunderbird by iiimf)!

Now I can start to complete the table for most Latex symbols but before 
doing that I will abuse once more of your kindness and ask two more 
questions:

1) How can I specify codepoints instead of character in the [ phrase ] 
section? I was expecting that I had to write something like
\boxdot	0x22A1
\vdash	0x22A2
\dashv	0x22A3
with some escape character. I read on the SUN document by Sriram 
Swaminathan, Hideki Hiura, and Steve Swales (excellent reading BTW) that 
there are wildcard default characters * ? but all the combinations I 
could immagine (*0x22A1? ?0x22A1? *x22A1; *22A1? etc, etc) did not work. 
How should I do it?



2) How can obtain, if I can, subscripts and superscripts, that is when I 
write ^a then a appears in a superscript. I really have not a cue about it.

Thanks again

---Beppe---



Hideki Hiura wrote:
>>From: Giuseppe Castagna <[email protected]>
>>    I am not sure if this is the right place to ask for help.
> 
> 
> You've come to the right place!
> 
> 
>>so I thought to write an iiimf module that transformed the latex
>>commands as the above into the corresponding Unicode symbols.
> 
> 
> Excellent idea!!
> 
> 
>>4) Added in /usr/lib/im/locale/UNIT/sysime.cfg the lines
>>
>>[ tex ]
>>latex common/xctim.so LATEX
> 
>                ^^^^^
> It may be this. Instead of xctim.so, it should be ctim.so as follows;
> 
> latex common/ctim.so LATEX
> 
> xctim was originally developed as a specific variant of ctim just for 
> incorporating the Compose IM of Xlib, so ctim should be the right unit
> submodule for this kind of composition rules.
> 
> Also, as Jens already pointed out, 
> 
> 
>>MaxCodes:    5
> 
> $:
> 
>>\lambda    λ
> 
> 
> MaxCodes needs to be 7.
> 
> Hope it helps!
> Hideki