fixed 1+X combinations typing random Katakana in when in Kanji mode
This commit is contained in:
parent
88ea103079
commit
38ca93ab9f
3 changed files with 4 additions and 4 deletions
|
|
@ -18,8 +18,8 @@ layout:
|
|||
- [w, x, y, z] # 9
|
||||
filterBySounds: yes
|
||||
sounds:
|
||||
- [Qh,0] # Hiragana prefix. For identifying and loading only the specific characters in Hiragana mode.
|
||||
- [Qk,1] # Katakana prefix. The prefixed ones will appear only in Katakana mode.
|
||||
- [Qh,01] # Hiragana prefix. For identifying and loading only the specific characters in Hiragana mode.
|
||||
- [Qk,0] # Katakana prefix. The prefixed ones will appear only in Katakana mode.
|
||||
# All others will appear in Predictive mode
|
||||
- [Ql,1] # ー
|
||||
- [A,2]
|
||||
|
|
|
|||
|
|
@ -10,14 +10,14 @@ import io.github.sspanak.tt9.languages.exceptions.InvalidLanguageCharactersExcep
|
|||
import io.github.sspanak.tt9.preferences.settings.SettingsStore;
|
||||
|
||||
public class KanaPredictions extends IdeogramPredictions {
|
||||
private final char SEQUENCE_PREFIX;
|
||||
private final String SEQUENCE_PREFIX;
|
||||
@NonNull private final String STEM_PREFIX;
|
||||
private final int STEM_PREFIX_LENGTH;
|
||||
|
||||
public KanaPredictions(SettingsStore settings, TextField textField, Sequences sequences, boolean isKatakana) {
|
||||
super(settings, textField, sequences);
|
||||
|
||||
SEQUENCE_PREFIX = isKatakana ? '1' : '0';
|
||||
SEQUENCE_PREFIX = isKatakana ? "0" : "01";
|
||||
STEM_PREFIX = isKatakana ? "Qk" : "Qh";
|
||||
STEM_PREFIX_LENGTH = STEM_PREFIX.length();
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue