[openi18n-im:01372] Re: Help with defining a new module
Zhe Su <[email protected]> Sun, 15 May 2005 11:31:17 +0800
| Newsgroups | gmane.comp.internationalization.input-methods |
|---|---|
| Message-ID | <[email protected]> |
Hi, It's a very interesting input table. I would like to merge it into SCIM (Smart Common Input Method platform, see http://www.scim-im.org). So could you please provide a complete input table? If you would like to try out SCIM, you may download the binary packages from http://sf.net/projects/scim. The attached table file is for scim-tables input method module. You need install scim and scim-tables packages, in order to use it. Just copy it into /usr/share/scim/tables directory and restart scim, then you may use it by choosing Latex input method in Other submenu. Regards James Su On 5/15/05, Giuseppe Castagna <[email protected]> wrote: > 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 Γ > >
latex.txt
(text/plain, 2.9 KB)
### File header must not be modified ### This file must be encoded into UTF-8. ### This file comes from unicon module. ### generated by Joerg Haustein ([email protected]) SCIM_Generic_Table_Phrase_Library_TEXT VERSION_1_0 ### Begin Table definition. BEGIN_DEFINITION ### An unique id to distinguish this table among others. ### Use uuidgen to generate this kind of id. UUID = decc1d5a-f4ed-4616-982b-53f0d6855704 ### A unique number indicates the version of this file. ### For example the last modified date of this file. ### This number must be less than 2^32. SERIAL_NUMBER = 20050515 ### ICON = ### The default name of this table NAME = Latex ### Author of this table AUTHOR = James Su ### Supported locales of this table LANGUAGES = other ### Prompt string to be displayed in the status area. STATUS_PROMPT = Σ ### If true then the first candidate phrase ### will be selected automatically during inputing. AUTO_SELECT = TRUE ### If true then a multi wildcard will be appended ### at the end of inputing string automatically. AUTO_WILDCARD = TRUE ### If true then the result string will be committed to client automatically. ### This should be used with AUTO_SELECT = TRUE. AUTO_COMMIT = TRUE ### If true then the inputed string will be automatically splitted during inputing. AUTO_SPLIT = TRUE ### If true then the phrases' frequencies will be adjusted dynamically. DYNAMIC_ADJUST = FALSE ### If true then the preedit area will be filled up by the current candidate phrase automatically. AUTO_FILL = TRUE ### If true then the lookup table will always be shown if there is any candidate phrase. ### Otherwise the lookup table won't be shown unless the user requires it by moving the preedit caret left. ALWAYS_SHOW_LOOKUP = FALSE ### Enable full width punctuation property USE_FULL_WIDTH_PUNCT = FALSE ### Use full width punctuation by default DEF_FULL_WIDTH_PUNCT = FALSE ### Enable full width letter property USE_FULL_WIDTH_LETTER = FALSE ### Use full width letter by default DEF_FULL_WIDTH_LETTER = FALSE ### The maxmium length of a key. MAX_KEY_LENGTH = 7 ### Valid input chars. VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\ ### Single wildcard char, can have multiple chars. ###SINGLE_WILDCARD_CHAR = ### Multi wildcard char ### MULTI_WILDCARD_CHAR = ### The key strokes to split inputed string. ### SPLIT_KEYS = quoteright ### The key strokes to commit the convert result to client. ### COMMIT_KEYS = Shift+space ### The key strokes to forward the inputed string to client. ### FORWARD_KEYS = Return ### The key strokes to select candidiate phrases. SELECT_KEYS = 1,2,3,4,5,6,7,8,9,0 ### The key strokes to page up the lookup table. PAGE_UP_KEYS = Page_Up ### The key strokes to page down the lookup table. PAGE_DOWN_KEYS = Page_Down END_DEFINITION ### Begin Table data. BEGIN_TABLE \ \ \alpha α \sigma σ \delta δ \phi φ \gamma γ \eta η \xi ξ \kappa κ \lambda λ \Sigma Σ \Delta Δ \Phi Φ \Gamma Γ END_TABLE