wikimedia/jquery.ime

underlining current character depending on the writing mode (for Tibetan)

Opened this issue · 0 comments

eroux commented

Sambhota input methods are among the most widely used ones by Tibetans. I integrated a first version, but to be complete, a new feature is necessary:

Tibetan script is an horizontal sequel of units (like ཀ་ཁ་ག་ང་, etc.) but these units can have multiple sub-units stacked vertically (ex of one unit with multiple vertical sub units : ཕྱྭ, complete example : བརྒྱད). In translitterated sanskrit, virtually any numbers of sub-units can be stacked (up to 10).

The Sambhota input method uses the "f" key to start stacking. Example : བརྒྱད is written with bfrgyfd: the first "f" inciates that the following characters should be stacked vertically instead of horizontally, and second "f" indicates to come back to horizontal mode.

The Sambhota plugins for MS Word indicate the user the mode (vertical or horizontal) he's in by highlighting the current unit if the user is in vertical mode. Would it be possible to have jquery behave like this too? The highlighting could be a different color, underlining, etc. And it could be triggered or shut down by a second argument returned by the patterns.

What do you think?