lotem / rime.py Goto Github PK
View Code? Open in Web Editor NEWRime Input Method Engine, an experimental version in Python
Home Page: http://code.google.com/p/zime/
License: GNU General Public License v3.0
Rime Input Method Engine, an experimental version in Python
Home Page: http://code.google.com/p/zime/
License: GNU General Public License v3.0
# README RIME: Rime Input Method Engine, riming with your keystrokes. Usage: - install ibus-rime: $ sudo make install - install schemas, take Pinyin as an example: $ make schema_pinyin - restart ibus after installation, and before installing new schemas: $ make restart_ibus - uninstall ibus-rime, but why :-( $ sudo make uninstall - clear zime database, YOU DON'T WANT TO DO THIS: $ make clear_db - save and restore user dictionary for a specific schema: $ cd data; python zimedb-admin.py --save Pinyin $ cd data; python zimedb-admin.py --restore Pinyin Features: - interchangeable schemas with a ubiquitous algorithm base - major functionalities from modern input method stereotypes - introduction of avant-guarde (sometimes PQliar) design - tweakability++ - open-source - cross-platform Sub-projects: - rime.py : experimental Python version of la rime library - rime.cc : C++ version of la rime library - ibus-rime : Linux/ibus client - weasel : Windows client - squirrel : planned Mac OS X client - plume.js : web-based input method - brise : rime schema repository - essay : vocabulary and language model Related projects: - combopy : an innovative chord-typing practice - zhung : an romanization scheme of Zhungyuan Mandarin phonology L'alphabet de la rime: | zed wy ex, double-u vee u, tee ess ar, cue pee o, en em el kay jay i aitch, gee ef e dee cee bee a. Epilogue: | Sorry for the temporary short of documentation. Feel free to explore. For lastest news, visit la rime project home page; we have moved to: http://code.google.com/p/rimeime/ Lastest experimental version of rime.py: http://github.com/lotem/rime/ Questions go to <[email protected]> Thanks.
各位前輩好
小弟對於輸入法開發有興趣,因此嘗試自己讀 rime.py 程式碼,逐一理解運作原理。
希望能夠將理解的原理記錄下來,讓未來也想了解輸入法開發細節的人有個參考。
目前將自己理解的筆記記錄在 https://github.com/deanboole/rime.py-trace 中。
上面的研究是依據 0c3be 版本所做。
因最後一個版本太複雜,因此我研究的方式是先回到較早版本 (0c3be),研究到一定程度後,再回到時間較後版本研究。
筆記寫的不是很好且還剛起步,還請各位前輩多多指教。
delete user phrases with Ctrl + 1~9.
not yet implemented.
currently table parser deletes the last (currently editing) keyword by character, and then delete any previous input by keywords;
try making backspace's behavior consistent for all the keywords, once a character, with any trailing delimiters automatically removed at every deletion.
this is a global setting.
a convenient fix can be adding a zimeconfig.py module.
unsupported setting pattern:
AutoPrompt = yes
Predict = no
works in the way similar to Sogou input
implement SplitRule in segmentation algorithm.
use patterns specified in the schema to indicate less preferable split positions in continual input.
low priority.
Why I can't switch zh/en by pressing Shift key? My Operating System is Ubuntu12.04, neither Shift or F4 works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.