futo-org / futo-keyboard-layouts

Layouts for FUTO Keyboard
Apache License 2.0
1 stars 0 forks source link

Add Japanese Language Support (12-Key and QWERTY Input) #57

Open jonathan-s opened 3 months ago

jonathan-s commented 3 months ago

Adding my vote for japanese language which I'm currently missing.

nonetrix commented 3 months ago

As of now the only open source keyboard that supports Japanese is some weird Google Mozc app that looks really dated and isn't ideal, this would make me be able to switch from gboard without internet access completely. Mozc is a framework for Japanese at least that happens to have a Android app that hasn't been touched in years likely, it is implemented by fcitx5 on Linux and IBus and likely could be used by Futo as well

As a alternative you have Anthy but I don't think it's as updated I wouldn't see reason not to go with just Mozc other than it's made by Google I guess, but even then it's open source and doesn't seem to track anything

vdmkenny commented 3 months ago

The 12key input would be greatly appreciated. There is no modern privacy oriented keyboard that supports it.

Claude-Kenni commented 3 months ago

Yeah, Japanese flick keyboard

jedinjapan commented 2 months ago

In addition to 12-Key, please include QWERTY layout and Swipe matching for this language as well. This was a feature of the Swype keyboard almost 6-7 years ago I have not seen replicated elsewhere.

If you are used to typing kana on 12-Key, that is pretty much the standard in Japan. But for many second language learners, and for some Japanese typists, they never master this. But the QWERTY input method can allow matching against the autocomplete dictionary for romaji input, akin to what is done in Windows with the Microsoft IME or ATOK.

In theory, this would be easier to do using the existing QWERTY layout and the swipe implementations already implemented. This could additionally serve as a "stop-gap" while the 12-key layout is developed.

FrostWillow commented 2 months ago

Chiming in this request for the Japanese 12 key flick keyboard please. It's something I use daily and is the only thing keeping me from using Futo Keyboard exclusively. Even if we only get the QWERTY version at first that's a fine first step and would make waiting for a 12 key flick keyboard easier, just something that allows me to write in Japanese without switching to a different keyboard entirely would be great.

Thanks for all your hard work on this keyboard so far.

TheQwervy commented 2 months ago

Adding my vote for Japanese support, flick or qwerty

nonetrix commented 2 months ago

Why not both? There is also this which some use on tablets

image
FrostWillow commented 2 months ago

Why not both? There is also this which some use on tablets image

Oh please no, That would be a terrible option. Even Japanese people don't like using that keyboard. They mostly only use either the standard QWERTY, which is usually used for desktops, or the flick keyboard. And, honestly, that one's even worse than some jana keyboards that I've seen. It placed the kana randomly, instead of in rows by series. That keyboard would be a nightmare to use.

I'm sure there are people out there who use that and like it, but that's like the Japanese equivalent of the Dvorak keyboard. Niche and only really liked by the few people who got really into using it.

mvevitsis commented 2 months ago

Why not both? There is also this which some use on tablets

image

No one uses that. And pretty much no one uses romaji input on their phone either. Flick or die.

nonetrix commented 2 months ago

It was just a suggestion, why not have all 3. I don't see the problem, it is common enough to be included in iOS pretty sure

mvevitsis commented 2 months ago

It was just a suggestion, why not have all 3. I don't see the problem, it is common enough to be included in iOS pretty sure

More is better, sure. But I would prefer effort be spent on the most used option first, especially since they can copy/paste most of the code from mozc.

The others are technically less complicated to do, but there is also less open source code to use as a reference.

For romaji input -> fcitx5 has this For kana (not 12 key) input -> florisboard sort of has it implemented

jedinjapan commented 2 months ago

The fact is there are 3 possible Japanese keyboard layouts, with fairly universal agreement on which are most popular. From most popular to least:

  1. 12-Key Input - This is a "numpad" style that use to be tap-based but now uses directional flick inputs. For English speakers and devs unfamiliar with it this is similar to T9 texting, but easier due to how Japanese uses vowel/consonant pairs in kana. Mozc repo features this. Extremely popular input method. Present in Google Japanese Input and Microsoft Swiftkey.

  2. QWERTY Keyboard - aka "romaji" input. This is used commonly on Japanese PCs, and translates 1:1 to virtual keyboards. Additionally some virtual keyboards offer swipe functionality for this, but it is exceedingly rare. Highly desireable if possible. Use would be lower however, used by many non-native speakers and perhaps those who never learned 12-key. It would however be an "easy to implement" option in theory if the roman text to kana conversion is easy to copy over and setup, and a good "holdover" option if this is the case. Mozc also features this. Low hanging fruit, somewhat niche, but useful still. Microsoft Swiftkey and Google Japanese Input both feature an implementation of this without Swipe functionality. Swype keyboard (discontinued) featured swiping.

  3. Kana Keyboard - As show in the image above, this is available on Japanese laptops, but even domestically in Japan this is almost never used, and is largely a holdover from the 1980s and 1990s Japanese tech industry. Extremely rare to see in a virtual keyboard, almost never used in a physical keyboard when present. If implemented, will be used by less than 1% of users without a doubt. Still a neat curiosity, and ironically probably one of the most straight forward to implement as it's just directly typing the kana symbols.

All 3 above options would need the same Kana input to Kanji conversion function, so they share difficulty on that. This code is in Mozc as well I believe.

The Mozc project will offer a strong starting point for options 1 and 2 potentially, though a transformer dictionary would need to be trained for Futo Keyboard. Mozc has a 12 key format built in that can be forked, and the existing Futo QWERTY can be used for option 2 if implemented. The Mozc license appears to be extremely permissive, but I leave that to devs to review.

Mozc (aka Google Japanese Input) Github: https://github.com/google/mozc

For further context: Google Japanese Input is really excellent, and used by companies and users within Japan fairly frequently in lieu of the sometime awful software keyboards the domestic cell phone companies implemented, and the stock android keyboards. Also has taken a huge chunk out of IME company ATOK's market share on desktop by virtue of being 99% as good, and free for corporations.

nonetrix commented 2 months ago

It was just a suggestion, why not have all 3. I don't see the problem, it is common enough to be included in iOS pretty sure

More is better, sure. But I would prefer effort be spent on the most used option first, especially since they can copy/paste most of the code from mozc.

The others are technically less complicated to do, but there is also less open source code to use as a reference.

For romaji input -> fcitx5 has this For kana (not 12 key) input -> florisboard sort of has it implemented

It isn't rocket science to add I don't see reason not to have it, like I could probably add it myself if QWERTY is added and I don't have much experience. I wouldn't use it as well but just pointing out it exists and some do

jedinjapan commented 2 months ago

I don't see reason not to have it

Long-term maintenance of the feature could cause unforeseen bugs and complications. It will be used by <1% of possible users, if that. This would be an academic curiosity. If the dev finds it fun to implement in downtime as a laugh then sure, but otherwise it's a development dead-end in many ways, and does not come with 0 cost to other features.

Edit: put another way, if the direct Kana keyboard layout is implemented as an option, my very next request would be the option to fully disable it, so I do not accidentally switch to it in rotation when moving between QWERTY/Romaji and 12-Key inputs.

TheQwervy commented 2 months ago

Edit: put another way, if the direct Kana keyboard layout is implemented as an option, my very next request would be the option to fully disable it, so I do not accidentally switch to it in rotation when moving between QWERTY/Romaji and 12-Key inputs.

The way that keyboards are added currently you wouldn't have to worry about that because you chose the layout and language per option.

jonathan-s commented 3 weeks ago

Why not both? There is also this which some use on tablets

No one uses that. And pretty much no one uses romaji input on their phone either. Flick or die.

I use the romaji option all the time, and so does my japanese partner.

ScoptOriginal commented 2 weeks ago

Yeah, I'm absolutely desperate for a Japanese 12-key layout, it's the one thing holding me back from switching to FUTO full time