-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vietnamese keyboard: TELEX convention with minor restrictions #9589
Conversation
0b67d8a
to
33cbe3c
Compare
Pinging @yukari186 (#8202). (@weijiuqiao : less lucky granchildren :) |
I don't know how to test it :( . Could you instruct me? I use koreader on kobo forma |
I suppose you can see the KOReader root folder? If so, download the following zip file and replace files according to the unzipped folder names. You should first backup your old files by renaming them something else. Then move the new files into your device. In case of crash, delete the new files and restore the old files' names. |
Thanks for your hard work! I tested it on the emulator and found an issue: typing |
-- Wrap all of the navigation and non-single-character-input keys with | ||
-- a callback to clear the tap window, but pass through to the | ||
-- original function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a dedicated method for the Delete key in #9586 (delNextChar
) ;).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know! Luckily we don't really care what's behind (next) when using zh_ime
so no need to hook it :) Also I copied the comment from another keyboard file and it's not exactly accurate here, so I made a little update.
33cbe3c
to
83944b8
Compare
Thanks for testing it @TranHHoang and finding the error! I did let that extra "w" slip through. Have fixed it and double checked the others, seems no problem now.
As to this, it'll be a bit of a hassle to implement. So how about we instead view it as a feature ;) |
83944b8
to
1c56cd0
Compare
Conflicts, as base with your change to utf8proc has already been bumped. |
Input Method Engine? (I don't particularly feel offended by that one, given the context, FWIW ;o). |
(There's no context given, that's my point :) Give some and I'm fine: |
It's because the first commit is not necessarily about the Chinese keyboard but more about a general capacity of the engine (auto separate when input key is unique). But I did change one method name resulting in the changes in |
1e0ec42
to
e460e4e
Compare
I'm all about making things clearer :)
Many things are clear to you, as you're fully into this code. You can title your commits as you work on them as quickly/short/dumb as you wish (see @NiLuJe PRs :) I don't mind your commits titles when you do a single topic PR, as we can tweak the single commit title when "squashing" them all, and I don't mind doing it (ie. all your |
04963f3
to
1912469
Compare
Done as suggested :) |
switch_char = "下一字", -- default | ||
separator = "分隔", -- default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these stay in a generic IME ?
Does the vietnamese keyboard show them ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Vietnamese keyboard doesn't show them or use their functionality. I can change them to some other strings but that would mean rebase and force push yet again! Can I open a PR after if this one is merged? (Will stick to single PRs from now on...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would mean rebase and force push yet again!
Nothing wrong with that, we all do that and many times per PR when we have multiple topic commits.
But as you wish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's the case, then let me force push again. I just thought the many not-so-meaningful push records might be too distracting.
That wasn't really a suggestion :) I was just making a point as to why you should prefix with "Chinese keyboard/IME". |
1912469
to
99693be
Compare
--------------------------------- | ||
-- Generic input method engine -- | ||
--------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(We don't usually have this kind of boxed comments.)
W = W -- has wildcard function | ||
} | ||
|
||
local wrappedAddChars = function(inputbox, char) | ||
ime:wrappedAddChars(inputbox, char) | ||
end | ||
|
||
local function wrappedSeparate(inputbox) | ||
ime:wrappedSeparate(inputbox) | ||
local function seperate(inputbox) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit for a followup: separate ;).
This PR adds a modified version of the Vietnamese TELEX IME.
Based on info found at:
Said restrictions:
dad
for entering 'đa', this one only allowsdda
.Why it's not so bad:
The current set-up follows what's recommended from the first linked reference above:
As I do not speak the language or have any Vietnamese friend yet, it would be great to get some help in testing it from native or proficient users.
This change is