/python/engine/XingMa/README

http://scim-python.googlecode.com/ · #! · 48 lines · 39 code · 9 blank · 0 comment · 0 complexity · 92540c8e36a8fae05537bdd6bc5d1d79 MD5 · raw file

  1. ## Notice:
  2. this IME framework is under development, and further implementation will be
  3. merged in the further, although it is already very powerful now:)
  4. 1.Requirement:
  5. >=python-2.5 (we need the sqlite3 in it)
  6. If you build python by yourself
  7. please make sure you make the sqlite3 feather available.
  8. If you use gentoo, make sure you emerge python with sqlite USE
  9. >=scim-python-0.1.10 or svn version.
  10. In Gentoo, you only need to use gentoo-china overlay, which contain the
  11. scim-python-9999.ebuild.
  12. 2.Install:
  13. You can use XMCreateDB.py to build up a database:
  14. python XMCreateDB.py -n tables/zm.db -s zhengma.txt.bz2
  15. then, copy the XingMa directory to /usr/share/scim-python/engine/ which
  16. already contain the PinYin and EnglishWriter directories.
  17. copy the zhengma.png to /usr/share/scim/icons/
  18. logout your Xsession, stop gdm/kdm/xdm, clear your /tmp/ and then login your
  19. Xsession, it should be work now.
  20. 3.Usage
  21. 3.1 Basic input:
  22. <Space> : directly commit string to program;
  23. <Shift> : not in inputting, change input mode between XingMa and English;
  24. during inputting, commit string to preedit string, this is for user define phrase;
  25. <Arrow Left> and <Arrow Right> : move cursor in preedit string;
  26. <Backspace> : remove input chars or remove a char in preedit string;
  27. <Delete> : delete a char in preedit string;
  28. <Control> + <Arrow Left> : move to the start of a phrase in preedit string;
  29. <Control> + <Arrow Right> : move to the end of a phrase in preedit string;
  30. <Control> + <Backspace> : remove to the start of a phrase in preedit string;
  31. <Control> + <Delete> : delete to the end of a phrase in preedit string;
  32. <Arrow Down> : move cursor to the next phrase in lookup table;
  33. <Arrow Up> : move cursor to the before phrase in lookup table;
  34. <Return> : when not press <Shift> (do not commit to preedit string), commit input chars as English words into programe; else clean the preedit string;
  35. <Esc> : reset the IME;
  36. <Num 1> ~ <Num 9> : select phrase in lookup table and commit preedit string to program;
  37. <Control> + ( <Num 1> ~ <Num 9>): select phrase in lookup table and only commit it into preedit string, this is for user define phrases.
  38. 4 DIY:
  39. to add your diy IME, you need a source file of your IME, you can learn needed config variables from zhengma.txt.bz2