-
Notifications
You must be signed in to change notification settings - Fork 218
Conversation
Adding @takahirox as reviewer :) I think it would better to add the openwnn dependency in a separate repo: e.g. another submodule. We can create a public third party folder for this kind of dependencies. I wish it could be included using maven. |
I'm also thinking that openwnn should be put at another repo, and it asks me upgrade my CMake to |
@MortimerGoro Removed OpenWnn from the project and refactored it to a maven artifact at JCenter as it's the default gradle repository. |
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 tried to write nihao
(which is hello in Chinese, not sure what would produce in Japanese), but the app freezes when I type the a
@MortimerGoro it should be fixed now |
app/src/common/shared/org/mozilla/vrbrowser/ui/keyboards/JapaneseKeyboard.java
Outdated
Show resolved
Hide resolved
Restored column width to the original value
First of all, I guess the Then, Switching to the symbol keyboard, I don't think we need to use candidate and auto-complete mechanism to try to make a word here, just insert it to URL bar like what we did in Traditional Chinese keyboard. Third, when taking a look at the design document, I saw the orange highlight in the candidate list needs to move to the next item when users press the |
I think it isn't too bad. And in my IME on my iPod touch, it's translated to "開く" (open). It may be also good. BTW, I found two problems in textarea form which accepts multiple lines. First, "Enter" isn't translated. Maybe it should be translated to "改行" (new line). Second, even I press enter key, a new line isn't injected. |
@takahirox @daoshengmu I've updated the PR and added support for continuous clause conversion. |
5213a45
to
2d86ab7
Compare
I just had a quick check. Trying type Then, trying to type Besides, it seems like in the symbol keyboard and some special symbols |
And it will cause a crash in this branch when using Pinyin input, the possible STR:
I checked |
@daoshengmu Not sure if I understand the case you are explaining but I have made a fix for a related thing that avoided the clauses conversion to finish when a new word is typed.
I agree, we would need a smaller candidate view for iterating over the candidates and a bigger one to show all the available ones. That's how the Google keyboards do it. Sadly we don't currently have a spec for that and we are not doing it for any keyboard so for the moment I'd keep it as is. When the full candidate list is shown you can no longer press space/enter but you can just choose the candidate from the list using the pointer so I think it's not a blocker. I'd open an issue to implement this in all the keyboards as it's the standard behavior.
The behavior I've observed in the Google keyboard is that if you switch to another keyboard layout the current conversion ends and the default candidates for the clauses are displayed. On the other hand if you insert the number using the key pop up it's added to the composing text. We will probably need to implement both behaviors but I prefer to do that across all the keybards so the behavior is consistent. I'll open an issue for that too. Regarding the crash, it should be fixed after the latets commit. |
An another crash is still happening, https://crash-stats.mozilla.com/report/index/cc453a4c-374d-4ea1-8824-036060190620 STR:
I would like to suggest to remove the function of choosing candidates when clicking the space key I would expect we can merge this JPN keyboard as soon as we can. |
@daoshengmu I've made a fix for that crash. I've also sent an APK to @takahirox I wanna hear his thoughts about the current continuous conversion implementation to see if it's worth merging it in the current state, otherwise we can roll it back and add a task for adding it to this and other keyboards in the future. |
e1a0d4a
to
41918c7
Compare
@daoshengmu I've rolled back the continuous clause conversion until @takahirox is back. If everything looks ok feel free to merge. |
LGTM. Let's merge it. Great job! |
Looks good, let's merge it! |
Fixes #974 Added support for Japanese keyboard romanji to kana and kanji conversion through openwnn.