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

Giuseppe Castagna <[email protected]> Sat, 14 May 2005 19:23:40 +0200
Newsgroups gmane.comp.internationalization.input-methods
Message-ID <[email protected]>
Hello,

    I am not sure if this is the right place to ask for help. If it is not let 
me apologize.
    I am a researcher in theoretical computer science and when I exchange mails 
with collegues we use latex syntax to express mathematical symbols. So we end up 
with messages containing sentences such as
    \Gamma\vdash \lambda x.x : \tau\rightarrow\tau
so I thought to write an iiimf module that transformed the latex commands as the 
above into the corresponding Unicode symbols.
    I followed the instructions in 
http://anakin.ncst.ernet.in/~aparna/consolidated/x1962.html

1) I wrote a file latex.utf (attached below) in  /usr/lib/im/locale/UNIT/common/

2) compiled it with
    txt2bin latex.utf latex.data

3) copied latex.data into /usr/lib/im/locale/UNIT/LATEX/data

4) Added in /usr/lib/im/locale/UNIT/sysime.cfg the lines

[ tex ]
latex common/xctim.so LATEX


5) Restarted everything started gedit and selected with Crtl-Shift-space "tex" 
(yes it is there)

But nothing happens. Where was I wrong?

Thanks in advance

Giuseppe Castagna

P.S. I use im-sdk-12.1-10.FC3.src.rpm on Fedora Core 3

===========================

# LATEX codetable input table

[ Description ]
Locale Name: LATEX
Layout Name: latex
Encode:		UTF-8
UsedCodes: 
abcdefghijklmnopqrstuvwxyzADGIJKLNORTU1234567890!@#$%^&*()_-+=|\~`{[}]:;"'<,>.?/
MaxCodes:	5

[ Function_Key ]
PageUp:		[< ^P
PageDown:	]> ^N
BackSpace:	^H ^?

[ Options ]
KeyByKey_Mode:		ON
HelpInfo_Mode:		ON
AutoSelect_Mode:	ON
KeyPrompt_Mode:		ON
SelectKey_Mode:		Number



[ Phrase ]
\alpha	α
\sigma	σ
\delta	δ
\phi	φ
\gamma	γ
\eta	η
\xi	ξ
\kappa	κ
\lambda	λ
\Sigma	Σ
\Delta	Δ
\Phi	Φ
\Gamma	Γ