1
0
Fork 0

fixed missing '1' in Bopomofo

This commit is contained in:
sspanak 2025-04-22 15:15:21 +03:00 committed by Dimo Karaivanov
parent 9998cd3c53
commit 8dd3574ee1
3 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ hasSpaceBetweenWords: no
hasUpperCase: no
layout:
- [ㄧ, ㄨ, ㄩ, SPECIAL] # 0
- [ㄅ, ㄆ, ㄇ, ㄈ, PUNCTUATION_ZH] # 1
- [ㄅ, ㄆ, ㄇ, ㄈ, PUNCTUATION_BP] # 1
- [ㄉ, ㄊ, ㄋ, ㄌ] # 2
- [ㄍ, ㄎ, ㄏ] # 3
- [ㄐ, ㄑ, ㄒ] # 4

View file

@ -52,7 +52,7 @@ public class ModeBopomofo extends ModePinyin {
// punctuation
KEY_CHARACTERS.add(
TextTools.removeLettersFromList(applyPunctuationOrder(Characters.PunctuationChinese, 1))
TextTools.removeLettersFromList(applyPunctuationOrder(Characters.PunctuationChineseBopomofo, 1))
);
}

View file

@ -87,6 +87,7 @@ public class NaturalLanguage extends TranscribedLanguage {
specialChars.put(SPECIAL_CHARS_PLACEHOLDER, Characters.getSpecial(this));
specialChars.put(PUNCTUATION_PLACEHOLDER, Characters.PunctuationEnglish);
specialChars.put(PUNCTUATION_PLACEHOLDER + "_AR", Characters.PunctuationArabic);
specialChars.put(PUNCTUATION_PLACEHOLDER + "_BP", Characters.PunctuationChineseBopomofo);
specialChars.put(PUNCTUATION_PLACEHOLDER + "_ZH", Characters.PunctuationChinese);
specialChars.put(PUNCTUATION_PLACEHOLDER + "_FA", Characters.PunctuationFarsi);
specialChars.put(PUNCTUATION_PLACEHOLDER + "_FR", Characters.PunctuationFrench);