JPP: Refactored abacus api to english candy letters

This commit is contained in:
Willem Cazander 2025-09-24 14:54:58 +02:00
parent 29a413bb6d
commit 0d55269389
63 changed files with 251 additions and 589 deletions

View file

@ -92,8 +92,8 @@ public enum LinguaFactory {
if (containerInfo == null) {
throw new NullPointerException("Missing annotation LinguaNodeContainer注 on: "+container);
}
String idx1 = Integer.toString(containerInfo.nozero().stibitz1().rȧñkTelNul(), 16).toUpperCase();
String idx2 = Integer.toString(containerInfo.nozero().stibitz2().rȧñkTelNul(), 16).toUpperCase();
String idx1 = Integer.toString(containerInfo.nozero().stibitz1().zerdinal(), 16).toUpperCase();
String idx2 = Integer.toString(containerInfo.nozero().stibitz2().zerdinal(), 16).toUpperCase();
String nodeSlug = node.getName().substring(1); // remove prefix
nodeSlug = nodeSlug.replaceAll(CLAZZ_MIN_SIGN, "-");

View file

@ -53,17 +53,17 @@ public enum BaseGlyphSet implements BãßᛗᚢᛗᛗᛉVū́ǘrChaliceEnum𓄯<
// TODO: Move this into lingua
LATIN_BASIC(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(Integer.toString(x.rȧñkTelNul())))),
new BaseGlyphSetNumber(v -> T016ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkGunFire(T016ᖟGunHexUpperCase.class)))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(Integer.toString(x.zerdinal())))),
new BaseGlyphSetNumber(v -> T016ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkGunFire(T016ᖟGunHexUpperCase.class)))),
new BaseGlyphSetNumber("1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R")),
LATIN_DTMF(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkChinaWaarde()))).withSeperator(ᒢℭỗᶇṧⱦᶏꬼȶʂ.STRᣟᐧᣟSPACE),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkChinaWaarde()))).withSeperator(ᒢℭỗᶇṧⱦᶏꬼȶʂ.STRᣟᐧᣟSPACE),
new BaseGlyphSetNumber("1","2","3","A","4","5","6","B","7","8","9","C","*","0","#","D"),
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> {
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> {
if (T010ᖟ.PART_10 == x) {
v.addᵂʳ("ten");
} else {
v.addᵂʳ(T010ᖟ..teŀráàmWaardes().getᴿᵈ(x.rȧñkTelEen()).rȧñkChinaWaarde()); // 1 to 9
v.addᵂʳ(T010ᖟ..zerdinalMaterializeSpace(x.zerdinal() + 1).rȧñkChinaWaarde()); // 1 to 9
}
}), "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety",
"one hundred", "two hundred", "three hundred", "four hundred", "five hundred", "six hundred", "seven hundred", "eight hundred", "nine hundred")),
@ -85,23 +85,23 @@ public enum BaseGlyphSet implements BãßᛗᚢᛗᛗᛉVū́ǘrChaliceEnum𓄯<
null),
TONE_SCRIPT(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkRingToon()))),
new BaseGlyphSetNumber(v -> T016ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkRingToon()))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.abacusRȧñkRingToon()))),
new BaseGlyphSetNumber(v -> T016ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.abacusRȧñkRingToon()))),
new BaseGlyphSetNumber("꜊꜈","꜊꜉","꜊꜋","꜊꜌","꜊꜍","꜊꜎","꜊꜏","꜊꜐","꜊꜑","˧˥","˧˦","˧˨","˧˩","˧꜒","˧꜓","˧꜔","˧꜕","˧꜖","꜏˥","꜏˦","꜏˧","꜏˨","꜏˩","꜏꜍","꜏꜎","꜏꜐","꜏꜑")),
DIPAVALI_LRPATH_TOPHEX(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterLR.class)))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterLR.class)))),
new BaseGlyphSetNumber("˧˥˩","˧˩˥","˧˥˦","˧˩˨","˧˦˦","˧˨˨","˧˥˥","˧˩˩","˥˩˧","˩˥˧","˥˦˧","˩˨˧","˦˦˧","˨˨˧","˥˥˧","˩˩˧").withAltGlyphSet(BaseGlyphSet.LATIN_TOP),
null),
DIPAVALI_LRPATH_SUBHEX(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterLR.class)))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterLR.class)))),
new BaseGlyphSetNumber("˧˥˩","˧˩˥","˧˥˦","˧˩˨","˧˦˦","˧˨˨","˧˥˥","˧˩˩","˥˩˧","˩˥˧","˥˦˧","˩˨˧","˦˦˧","˨˨˧","˥˥˧","˩˩˧").withAltGlyphSet(BaseGlyphSet.LATIN_SUB),
null),
DIPAVALI_RLPATH_TOPHEX(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterRL.class)))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterRL.class)))),
new BaseGlyphSetNumber("꜔꜒꜖","꜔꜖꜒","꜔꜒꜓","꜔꜖꜕","꜔꜓꜓","꜔꜕꜕","꜔꜒꜒","꜔꜖꜖","꜒꜖꜔","꜖꜒꜔","꜒꜓꜔","꜖꜕꜔","꜓꜓꜔","꜕꜕꜔","꜒꜒꜔","꜖꜖꜔").withAltGlyphSet(BaseGlyphSet.LATIN_TOP),
null),
DIPAVALI_RLPATH_SUBHEX(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterRL.class)))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkGunFire(T010ᖟGunToneLetterRL.class)))),
new BaseGlyphSetNumber("꜔꜒꜖","꜔꜖꜒","꜔꜒꜓","꜔꜖꜕","꜔꜓꜓","꜔꜕꜕","꜔꜒꜒","꜔꜖꜖","꜒꜖꜔","꜖꜒꜔","꜒꜓꜔","꜖꜕꜔","꜓꜓꜔","꜕꜕꜔","꜒꜒꜔","꜖꜖꜔").withAltGlyphSet(BaseGlyphSet.LATIN_SUB),
null),
@ -156,7 +156,7 @@ public enum BaseGlyphSet implements BãßᛗᚢᛗᛗᛉVū́ǘrChaliceEnum𓄯<
null,
null),
CHINA_FORMAL(
new BaseGlyphSetNumber(v -> T010ᖟ..teŀráàmVoorElk(x -> v.addᵂʳ(x.rȧñkChinaSleutel()))),
new BaseGlyphSetNumber(v -> T010ᖟ..zerdinalSpaceRopeWalk(x -> v.addᵂʳ(x.rȧñkChinaSleutel()))),
null,
null),
CHINA_FORMAL_OLD(
@ -299,7 +299,7 @@ public enum BaseGlyphSet implements BãßᛗᚢᛗᛗᛉVū́ǘrChaliceEnum𓄯<
}
public String BȍőnPrintNumber16(BigInteger number) {
String amount16 = number.toString(T016ᖟ..teŀráàmGroote());
String amount16 = number.toString(T016ᖟ..zerdinalSpaceBoundary());
StringBuilder buf16 = new StringBuilder();
int c2 = 0;
for (char c:amount16.toCharArray()) {