[English] Help Required : Input Method For a Non CJK, Non-Logographic Script (The Sinhalese Script) #1729
-
Hello dear Rimers, I've been eyeing RIME for a while as an avenue to implement my transliteration based input method for Sinhala on top of the Rime Engine but I've hit one major roadblock which is that I am not a speaker of Chinese languages, as such I've not been able to properly read the rime documentation in the wiki section. Even with the help of Google translate it was still hard to read and understand the documentation. Why Would I Use Rime For This ?You might have noticed that the input method repository I've linked already contains an implementation of it with the m17n library, something much better suited for a transliteration input method like this and so you might be wondering as to why I am bothering to implement this with Rime at all. The major reason is that RIME offers is that its stellar support for a wide ranging selection of platforms, if I am able to get this input method implemented with RIME, I'd be able to effortlessly bring my input method to many platforms. There, however, is another cross platform input method engine that is much more suited transliteration-based IMEs, that being Keyman and in fact I've already implemented this IME with the keyman engine, but Keyman's windows implementation still appears to have few compatibility hiccups with apps such as Discord, which makes it sub-optimal until those issues are resolved. So this leaves me with RIME as the best and only option besides individually implementing the IME for every platform. Things I Already Tried With RIME / The Issues I Ran IntoIn my search for reference implementations of IMEs with RIME, I ran into this Tamil input method, as the Tamil script (as with all the other Indic scripts) is structurally very similar to the Sinhalese script, this was a very promising start. I was able to put together a bare-bones input method using that as a starting point, but there were still many pain points that left me desiring for a more robust implementation, if possible. The main issue I faced with that was that clicking the
There are many things I'd ideally do differently than this specific implementation/reference point, such as
But those are niceties that I could live without, if it's not possible to achieve that with RIME I can't come up with a title for this sectionSo any help would be appreciated, whether that be links to English language documentation or reference implementations I could use or any bit of advice or help you could offer. If you want to directly contact me
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello. I have answers to some of your questions since people have tried to use Rime for other languages/scripts. Space keyThe option Use this code snippet. Do include Display the current output text as pre-editThe I found this in Weasel's changelog (translated):
I think you need Commit the text in the pre-edit programmaticallyUse the option This commits the current candidate when there is no ambiguity - either it's the unique candidate at the moment, or the first candidate when the next key press does not form a longer valid code. The key to make this option work is that you must also disable Make sure you have |
Beta Was this translation helpful? Give feedback.
-
About documenting in ChineseThe majority user of Rime speak and read Chinese, which has been the focus of the project. The library implement algorithms and data structures that are - while not strictly coupled with - optimized for the Chinese language/script. The situation is that Chinese users don't get adequate documentation since the code including configuration code are written in English. I owe you a sorry but all other languages combined only makes up a small percentage of Rime users and the need for documentation. As Chinese input method will still be the focus of the project, I'm leaning to write more code, configuration and documentation in Chinese in future development. |
Beta Was this translation helpful? Give feedback.
Hello.
I have answers to some of your questions since people have tried to use Rime for other languages/scripts.
Space key
The option
punctuator {use_space: true}
might be what you need.Use this code snippet.
https://github.com/biopolyhedron/rime-latin-international/blob/9166ff00571cf9fd2088f9613a9f91058c5b2a43/latin_international.schema.yaml#L59
Do include
half_shape: { ' ' : { commit: ' ' } }
but don't write&punct
and*punct
since you don't need thefull_shape
section anyway.Display the current output text as pre-edit
The
librime
library exposes both information to the IME front-end application, and it's up the app to decide what to present.For example the Windows client - Weasel ha…