diff --git a/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java b/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java index a806da0c..31e4ff93 100644 --- a/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java +++ b/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java @@ -54,19 +54,26 @@ public class BasePartRenderer extends ImGuiRendererMain { ImGui.combo("Type", selectedBasePart, items); int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; - ImGui.beginTable("base-part", 16, flags); + ImGui.beginTable("base-part", 23, flags); ImGui.tableSetupColumn("BȍőnNaam"); ImGui.tableSetupColumn("TelNul"); ImGui.tableSetupColumn("TelEen"); ImGui.tableSetupColumn("Tone"); - ImGui.tableSetupColumn("16LBasic"); - ImGui.tableSetupColumn("16Greek"); - ImGui.tableSetupColumn("16Korean"); - ImGui.tableSetupColumn("36LBasic"); - ImGui.tableSetupColumn("36Greek"); - ImGui.tableSetupColumn("36Hebrew"); - ImGui.tableSetupColumn("ChinaK"); - ImGui.tableSetupColumn("ChinaV"); + ImGui.tableSetupColumn("10Tone"); + ImGui.tableSetupColumn("10Kor"); + ImGui.tableSetupColumn("10DTMF"); + ImGui.tableSetupColumn("10Ben"); + ImGui.tableSetupColumn("16Tone"); + ImGui.tableSetupColumn("16Kor"); + ImGui.tableSetupColumn("16LatB"); + ImGui.tableSetupColumn("16Gre"); + ImGui.tableSetupColumn("36Tone"); + ImGui.tableSetupColumn("36Kor"); + ImGui.tableSetupColumn("36LatB"); + ImGui.tableSetupColumn("36Gre"); + ImGui.tableSetupColumn("36Heb"); + ImGui.tableSetupColumn("prcK"); + ImGui.tableSetupColumn("prcV"); ImGui.tableSetupColumn("Alt1"); ImGui.tableSetupColumn("Alt2"); ImGui.tableSetupColumn("Alt3"); @@ -84,11 +91,25 @@ public class BasePartRenderer extends ImGuiRendererMain { ImGui.tableNextColumn(); ImGui.text(part.BȍőnIdentifierTone()); ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber10(BaseGlyphSet.TONE_LETTER)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber10(BaseGlyphSet.KOREAN)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber10(BaseGlyphSet.LATIN_DTMF)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber10(BaseGlyphSet.BENGALI)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber16(BaseGlyphSet.TONE_LETTER)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber16(BaseGlyphSet.KOREAN)); + ImGui.tableNextColumn(); ImGui.text(part.BȍőnGlyphSetNumber16(BaseGlyphSet.LATIN_BASIC)); ImGui.tableNextColumn(); ImGui.text(part.BȍőnGlyphSetNumber16(BaseGlyphSet.GREEK)); ImGui.tableNextColumn(); - ImGui.text(part.BȍőnGlyphSetNumber16(BaseGlyphSet.KOREAN)); + ImGui.text(part.BȍőnGlyphSetNumber36(BaseGlyphSet.TONE_LETTER)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnGlyphSetNumber36(BaseGlyphSet.KOREAN)); ImGui.tableNextColumn(); ImGui.text(part.BȍőnGlyphSetNumber36(BaseGlyphSet.LATIN_BASIC)); ImGui.tableNextColumn(); diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSet.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSet.java index 3460c610..053535ad 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSet.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSet.java @@ -9,30 +9,40 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; @BãßBȍőnClassInfoʸᴰ(name = "BaseGlyphSet", purpose = "The encoded base scripts.") public enum BaseGlyphSet implements BãßBȍőnGlyphSetʸᴰ { + // TODO: ImGui add font for SINHALA + // TODO: ImGui add font for TONE_LETTER missing plane 1,2,3 + // TODO: ImGui add font for BURMESE + // TODO: ImGui add font for ARABIC + BURMESE(new BaseGlyphSetNumber10("\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049")), BENGALI(new BaseGlyphSetNumber10("০","১","২","৩","৪","৫","৬","৭","৮","৯")), SINHALA(new BaseGlyphSetNumber10("෦","෧","෨","෩","෪","෫","෬","෭","෮","෯")), + TONE_LETTER(new BaseGlyphSetNumber10("˥","˦","˧","˨","˩","꜒","꜓","꜔","꜕","꜖"), + new BaseGlyphSetNumber16("˧˥˩","˧˩˥","˧˥˦","˧˩˨","˧˦˦","˧˨˨","˧˥˥","˧˩˩","˥˩˧","˩˥˧","˥˦˧","˩˨˧","˦˦˧","˨˨˧","˥˥˧","˩˩˧"), + new BaseGlyphSetNumber36("꜊꜈","꜊꜉","꜊꜋","꜊꜌","꜊꜍","꜊꜎","꜊꜏","꜊꜐","꜊꜑","˧˥","˧˦","˧˨","˧˩","˧꜒","˧꜓","˧꜔","˧꜕","˧꜖","꜏˥","꜏˦","꜏˧","꜏˨","꜏˩","꜏꜍","꜏꜎","꜏꜐","꜏꜑")), + GREEK(new BaseGlyphSetNumber10("ō","α","β","γ","δ","ε","ϝ","ζ","η","θ"), new BaseGlyphSetNumber16("ō","α","β","γ","δ","ε","ϝ","ζ","η","θ","ι","κ","λ","μ","ν","ξ"), new BaseGlyphSetNumber36("α","β","γ","δ","ε","ϝ","ζ","η","θ","ι","κ","λ","μ","ν","ξ","ο","π","ϟ","ρ","σ","τ","υ","φ","χ","ψ","ω","ϡ")), + KOREAN(new BaseGlyphSetNumber10("영","일","이","삼","사","오","육","칠","팔","구"), + new BaseGlyphSetNumber16("ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ","ㅙ","ㅚ","ㅛ","ㅜ","ㅝ","ㅞ"), + new BaseGlyphSetNumber36("ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ","ㅆ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ","ㄵ","ㄶ","ㄺ","ㄻ","ㄼ","ㄽ","ㄾ","ㄿ","ㅀ")), + LATIN_BASIC(new BaseGlyphSetNumber10("0","1","2","3","4","5","6","7","8","9"), new BaseGlyphSetNumber16("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"), new BaseGlyphSetNumber36("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 BaseGlyphSetNumber10("zero","one","two","three","four","five","six","seven","eight","nine"), + + LATIN_DTMF(new BaseGlyphSetNumber10("zero","one","two","three","four","five","six","seven","eight","nine").withSeperator(" "), new BaseGlyphSetNumber16("1","2","3","A","4","5","6","B","7","8","9","C","*","0","#","D")), LATIN_SUPER(new BaseGlyphSetNumber10("⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹"), new BaseGlyphSetNumber16("⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","ᵃ","ᵇ","ᶜ","ᵈ","ᵉ","ᶠ")), LATIN_SUB(new BaseGlyphSetNumber10("₀","₁","₂","₃","₄","₅","₆","₇","₈","₉"), new BaseGlyphSetNumber16("₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","ₐ","₆","꜀","ₔ","ₑ","բ")), - KOREAN(new BaseGlyphSetNumber10("영","일","이","삼","사","오","육","칠","팔","구"), - new BaseGlyphSetNumber16("ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ","ㅙ","ㅚ","ㅛ","ㅜ","ㅝ","ㅞ")), - - HEBREW(new BaseGlyphSetNumber10("אֶפֶס","אֶחָד","שְׁתַּיִם","שְׁלֹשָׁה","אַרְבַּע‎","חֲמִשָּׁה‎","שֵׁשׁ‎","שִׁבְעָה","שְׁמוֹנֶה","תִּשְׁעָה‎"), + HEBREW(new BaseGlyphSetNumber10("אֶפֶס","אֶחָד","שְׁתַּיִם","שְׁלֹשָׁה","אַרְבַּע‎","חֲמִשָּׁה‎","שֵׁשׁ‎","שִׁבְעָה","שְׁמוֹנֶה","תִּשְׁעָה‎").withSeperator(" "), new BaseGlyphSetNumber36("א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס ","ע","פ","צ","ק","ר","ש","ת","ך","ם","ן","ף","ץ")), - ARABIC(new BaseGlyphSetNumber10("٠","١","٢","٣","٤","٥","٦","٧","٨","٩"), new BaseGlyphSetNumber36("ا","ب","ج","د","ه","و","ز","ح","ط","ي","ك","ل","م","ن","س","ع","ف","ص","ق","ر","ش","ت","ث","خ","ذ","ض","ظ")), ; diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber.java index e62f8d2a..b1b887a7 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber.java @@ -10,4 +10,6 @@ public interface BaseGlyphSetNumber { } String BȍőnCharFor(int number); + + String BȍőnCharSeperator(); } diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber10.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber10.java index e880a2e4..2474db16 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber10.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber10.java @@ -6,6 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; @BãßBȍőnGlyphSetNumberInfoʸᴰ(base = BaseGlyphSetNumberType.BASE_10) public final class BaseGlyphSetNumber10 implements BaseGlyphSetNumber { + private String charSeperator; private final String char0; private final String char1; private final String char2; @@ -20,6 +21,7 @@ public final class BaseGlyphSetNumber10 implements BaseGlyphSetNumber { public BaseGlyphSetNumber10(String char0, String char1, String char2, String char3, String char4, String char5, String char6, String char7, String char8, String char9) { super(); + this.charSeperator = ""; this.char0 = char0; this.char1 = char1; this.char2 = char2; @@ -32,6 +34,12 @@ public final class BaseGlyphSetNumber10 implements BaseGlyphSetNumber { this.char9 = char9; } + public BaseGlyphSetNumber10 withSeperator(String charSeperator) { + this.charSeperator = charSeperator; + return this; + } + + @Override public String BȍőnCharFor(int number) { switch (number) { case 0: @@ -59,6 +67,11 @@ public final class BaseGlyphSetNumber10 implements BaseGlyphSetNumber { } } + @Override + public String BȍőnCharSeperator() { + return charSeperator; + } + public String getChar0() { return char0; } diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber16.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber16.java index accd9c3a..5e76e1ff 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber16.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber16.java @@ -6,6 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; @BãßBȍőnGlyphSetNumberInfoʸᴰ(base = BaseGlyphSetNumberType.BASE_16) public final class BaseGlyphSetNumber16 implements BaseGlyphSetNumber { + private String charSeperator; private final String char0; private final String char1; private final String char2; @@ -26,7 +27,7 @@ public final class BaseGlyphSetNumber16 implements BaseGlyphSetNumber { public BaseGlyphSetNumber16(String char0, String char1, String char2, String char3, String char4, String char5, String char6, String char7, String char8, String char9, String charA, String charB, String charC, String charD, String charE, String charF) { - super(); + this.charSeperator = ""; this.char0 = char0; this.char1 = char1; this.char2 = char2; @@ -45,6 +46,12 @@ public final class BaseGlyphSetNumber16 implements BaseGlyphSetNumber { this.charF = charF; } + public BaseGlyphSetNumber16 withSeperator(String charSeperator) { + this.charSeperator = charSeperator; + return this; + } + + @Override public String BȍőnCharFor(int number) { switch (number) { case 0: @@ -84,6 +91,11 @@ public final class BaseGlyphSetNumber16 implements BaseGlyphSetNumber { } } + @Override + public String BȍőnCharSeperator() { + return charSeperator; + } + public String getChar0() { return char0; } diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber36.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber36.java index 99ab5932..9dc8bf72 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber36.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/glyph/BaseGlyphSetNumber36.java @@ -6,6 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; @BãßBȍőnGlyphSetNumberInfoʸᴰ(base = BaseGlyphSetNumberType.BASE_36) public final class BaseGlyphSetNumber36 implements BaseGlyphSetNumber { + private String charSeperator; private final String char1; private final String char2; private final String char3; @@ -39,7 +40,7 @@ public final class BaseGlyphSetNumber36 implements BaseGlyphSetNumber { String char50, String char60, String char70, String char80, String char90, String char100, String char200, String char300, String char400, String char500, String char600, String char700, String char800, String char900) { - super(); + this.charSeperator = ""; this.char1 = char1; this.char2 = char2; this.char3 = char3; @@ -69,6 +70,12 @@ public final class BaseGlyphSetNumber36 implements BaseGlyphSetNumber { this.char900 = char900; } + public BaseGlyphSetNumber36 withSeperator(String charSeperator) { + this.charSeperator = charSeperator; + return this; + } + + @Override public String BȍőnCharFor(int number) { switch (number) { case 1: @@ -130,6 +137,11 @@ public final class BaseGlyphSetNumber36 implements BaseGlyphSetNumber { } } + @Override + public String BȍőnCharSeperator() { + return charSeperator; + } + public String getChar1() { return char1; } diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java index 45a354ea..fa05968a 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java @@ -23,6 +23,37 @@ public interface BãßBȍőnPartʸᴰ> extends return GET_BBC().GET_STR(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE); } + default String BȍőnGlyphSetNumber10(BaseGlyphSet glyphSet) { + StringBuilder buf = new StringBuilder(); + T[] values = BãßInstances(); + if (values.length <= 10) { + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharFor(BȍőnRangTelNul())); + } else if (values.length <= 100) { + int count = BȍőnRangTelNul(); + int mod10 = count % 10; + int div10 = count / 10; + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharFor(div10)); + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharSeperator()); + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharFor(mod10)); + } else if (values.length <= 1000) { + int count = BȍőnRangTelNul(); + int mod10 = count % 10; + int div10 = count / 10; + int div100 = count / 100; + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharFor(div10)); + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharSeperator()); + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharFor(div100)); + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharSeperator()); + buf.append(glyphSet.BȍőnGlyphSetNumber10().BȍőnCharFor(mod10)); + } else { + throw new IllegalStateException("Can't handle more than 1000 values."); + } + if (BaseGlyphSet.HEBREW.equals(glyphSet)) { + return buf.reverse().toString(); // TODO: ImGui workaround + } + return buf.toString(); + } + default String BȍőnGlyphSetNumber16(BaseGlyphSet glyphSet) { StringBuilder buf = new StringBuilder(); T[] values = BãßInstances(); @@ -30,16 +61,19 @@ public interface BãßBȍőnPartʸᴰ> extends buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(BȍőnRangTelNul())); } else if (values.length <= 256) { buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(BȍőnRangTelNul() >> 4)); + buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharSeperator()); buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(BȍőnRangTelNul() & 0x0F)); } else if (values.length <= 0xFFF+1) { buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor((BȍőnRangTelNul() >> 8) & 0x0F)); + buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharSeperator()); buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor((BȍőnRangTelNul() >> 4) & 0x0F)); + buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharSeperator()); buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(BȍőnRangTelNul() & 0x0F)); } else { throw new IllegalStateException("Can't handle more than 0xFFF values."); } if (BaseGlyphSet.HEBREW.equals(glyphSet)) { - return buf.reverse().toString(); + return buf.reverse().toString(); // TODO: ImGui workaround } return buf.toString(); } @@ -54,20 +88,23 @@ public interface BãßBȍőnPartʸᴰ> extends int mod10 = count % 9 + 1; int div10 = count / 9 + 1; buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharFor(div10)); + buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharSeperator()); buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharFor(mod10)); } else if (values.length <= 999) { int count = BȍőnRangTelNul(); int mod10 = count % 9 + 1; int div10 = count / 90 + 1; int div100 = count / 900 + 1; - buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(div10)); - buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(div100)); - buf.append(glyphSet.BȍőnGlyphSetNumber16().BȍőnCharFor(mod10)); + buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharFor(div10)); + buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharSeperator()); + buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharFor(div100)); + buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharSeperator()); + buf.append(glyphSet.BȍőnGlyphSetNumber36().BȍőnCharFor(mod10)); } else { throw new IllegalStateException("Can't handle more than 1000 values."); } if (BaseGlyphSet.HEBREW.equals(glyphSet)) { - return buf.reverse().toString(); + return buf.reverse().toString(); // TODO: ImGui workaround } return buf.toString(); } diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java index 0ffdfe3e..cd964d35 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java @@ -7,18 +7,16 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T08PartOctal", purpose = "The distribution by 8.") -@BãßBȍőnPartAlt1Infoʸᴰ(name = "Absolute Tone Sequence", website = "https://en.wikipedia.org/wiki/Tone_letter") -@BãßBȍőnPartAlt2Infoʸᴰ(name = "Relative Tone Sequence", website = "https://en.wikipedia.org/wiki/Tone_letter") -public enum T08PartOctal implements BãßBȍőnPartAlt2ʸᴰ,BãßBȍőnPartShiftBitsʸᴰ { +public enum T08PartOctal implements BãßBȍőnPartʸᴰ,BãßBȍőnPartShiftBitsʸᴰ { - PART_1("˥","心","heart","˧˥˩","˥˩˧", 0), - PART_2("˩","頭","head", "˧˩˥","˩˥˧", 3), - PART_3("꜒","眼","eye", "˧˥˦","˥˦˧", 6), - PART_4("꜖","嘴","mouth","˧˩˨","˩˨˧", 9), - PART_5("꜈","臂","arm", "˧˦˦","˦˦˧", 12), - PART_6("꜌","手","hand", "˧˨˨","˨˨˧", 15), - PART_7("꜍","肢","leg", "˧˥˥","˥˥˧", 18), - PART_8("꜑","腳","feet", "˧˩˩","˩˩˧", 21), + PART_1("˥","心","heart",0), + PART_2("˩","頭","head", 3), + PART_3("꜒","眼","eye", 6), + PART_4("꜖","嘴","mouth",9), + PART_5("꜈","臂","arm", 12), + PART_6("꜌","手","hand", 15), + PART_7("꜍","肢","leg", 18), + PART_8("꜑","腳","feet", 21), ; public static int BIT_COUNT = 3; @@ -27,13 +25,11 @@ public enum T08PartOctal implements BãßBȍőnPartAlt2ʸᴰ,Bãß public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } public static int LENGTH() { return values().length; }; - private T08PartOctal(String idTone, String chinaKey, String chinaValue, String alt1Value, String alt2Value, int shiftBits) { + private T08PartOctal(String idTone, String chinaKey, String chinaValue, int shiftBits) { BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ID_TONE, idTone); BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.SHIFT_BITS, Integer.valueOf(shiftBits)); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_TONE); BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_CHINA); } diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java index 260eebe2..5ec63b29 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java @@ -41,7 +41,7 @@ public enum T20PartScore implements BãßBȍőnPartAlt4ʸᴰ { ; private static final Map OPENLC_MAP = Collections.unmodifiableMap( - Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.BȍőnAlt3Value(), v -> v))); + Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.BȍőnAlt4Value(), v -> v))); private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } public static int LENGTH() { return values().length; }; diff --git a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java index 21776323..4eb2c842 100644 --- a/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java +++ b/numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java @@ -9,69 +9,66 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnClassInfoʸᴰ(name = "T60Sexagesimal", purpose = "The distribution by 60.") public enum T60PartSexagesimal implements BãßBȍőnPartʸᴰ { - PART_1 ("˧˩˥","牛","cow"), - PART_2 ("˧˥˦","鸡","chicken"), - PART_3 ("˧˩˨","羊","sheep"), - PART_4 ("˧˦˦","狼","wolf"), - PART_5 ("˧˨˨","鼠","rat"), - PART_6 ("˧˥˥","貓","cat"), - PART_7 ("˧˩˩","兔","rabbit"), - PART_8 ("˥˩˧","猿","ape"), - PART_9 ("˩˥˧","蛇","snake"), - PART_10("˥˦˧","马","horse"), - PART_11("˩˨˧","象","elepant"), - PART_12("˦˦˧","豹","leopard"), - PART_13("˨˨˧","鴉","crow"), - PART_14("˥˥˧","豬","pig"), - PART_15("˩˩˧","狗","dog"), - - PART_16("꜔꜒꜖","魚","fish"), - PART_17("꜔꜒꜓","虾","shrimp"), - PART_18("꜔꜖꜕","鲸","whale"), - PART_19("꜔꜓꜓","熊","bear"), - PART_20("꜔꜕꜕","鹿","deer"), - PART_21("꜔꜒꜒","驴","donkey"), - PART_22("꜔꜖꜖","貘","tapir"), - PART_23("꜒꜖꜔","鸟","bird"), - PART_24("꜖꜒꜔","鹤","crane"), - PART_25("꜒꜓꜔","鹰","eagle"), - PART_26("꜖꜕꜔","隼","falcon"), - PART_27("꜓꜓꜔","鹅","goose"), - PART_28("꜕꜕꜔","蝾","salamander"), - PART_29("꜒꜒꜔","龟","turtle"), - PART_30("꜖꜖꜔","蜈","centipede"), - - PART_31("꜊꜌꜈","蝇","fly"), - PART_32("꜊꜈꜉","蝎","scorpion"), - PART_33("꜊꜌꜋","虫","worm"), - PART_34("꜊꜉꜉","虎","tiger"), - PART_35("꜊꜋꜋","駝","camel"), - PART_36("꜊꜈꜈","猴","monkey"), - PART_37("꜊꜌꜌","鯊","shark"), - PART_38("꜈꜌꜊","鴨","duck"), - PART_39("꜌꜈꜊","芥","mustard"), - PART_40("꜈꜉꜊","鹽","salt"), - PART_41("꜌꜋꜊","椒","pepper"), - PART_42("꜉꜉꜊","薑","ginger"), - PART_43("꜋꜋꜊","穀","corn"), - PART_44("꜈꜈꜊","豆","beans"), - PART_45("꜌꜌꜊","柚","pomelos"), - - PART_46("꜏꜍꜑","棗","jujube"), - PART_47("꜏꜍꜎","瓜","melon"), - PART_48("꜏꜑꜐","葡","grape"), - PART_49("꜏꜎꜎","梅","plum"), - PART_50("꜏꜐꜐","灰","lime"), - PART_51("꜏꜍꜍","梨","pear"), - PART_52("꜏꜑꜑","蕉","banana"), - PART_53("꜍꜑꜏","檸","lemon"), - PART_54("꜑꜍꜏","柿","persimmon"), - PART_55("꜍꜎꜏","橙","orange"), - PART_56("꜑꜐꜏","桃","peach"), - PART_57("꜎꜎꜏","杏","apricot"), - PART_58("꜐꜐꜏","莓","strawberry"), - PART_59("꜍꜍꜏","薯","patato"), - PART_60("꜑꜑꜏","蘋","apple"), + PART_1 ("˥˥","牛","cow"), + PART_2 ("˥˦","鸡","chicken"), + PART_3 ("˥˧","羊","sheep"), + PART_4 ("˥˨","狼","wolf"), + PART_5 ("˥˩","鼠","rat"), + PART_6 ("˥꜒","貓","cat"), + PART_7 ("˥꜓","兔","rabbit"), + PART_8 ("˥꜔","猿","ape"), + PART_9 ("˥꜕","蛇","snake"), + PART_10("˥꜖","马","horse"), + PART_11("˦˥","象","elepant"), + PART_12("˦˦","豹","leopard"), + PART_13("˦˧","鴉","crow"), + PART_14("˦˨","豬","pig"), + PART_15("˦˩","狗","dog"), + PART_16("˦꜒","魚","fish"), + PART_17("˦꜓","虾","shrimp"), + PART_18("˦꜔","鲸","whale"), + PART_19("˦꜕","熊","bear"), + PART_20("˦꜖","鹿","deer"), + PART_21("˧˥","驴","donkey"), + PART_22("˧˦","貘","tapir"), + PART_23("˧˧","鸟","bird"), + PART_24("˧˨","鹤","crane"), + PART_25("˧˩","鹰","eagle"), + PART_26("˧꜒","隼","falcon"), + PART_27("˧꜓","鹅","goose"), + PART_28("˧꜔","蝾","salamander"), + PART_29("˧꜕","龟","turtle"), + PART_30("˧꜖","蜈","centipede"), + PART_31("˨˥","蝇","fly"), + PART_32("˨˦","蝎","scorpion"), + PART_33("˨˧","虫","worm"), + PART_34("˨˨","虎","tiger"), + PART_35("˨˩","駝","camel"), + PART_36("˨꜒","猴","monkey"), + PART_37("˨꜓","鯊","shark"), + PART_38("˨꜔","鴨","duck"), + PART_39("˨꜕","芥","mustard"), + PART_40("˨꜖","鹽","salt"), + PART_41("˩˥","椒","pepper"), + PART_42("˩˦","薑","ginger"), + PART_43("˩˧","穀","corn"), + PART_44("˩˨","豆","beans"), + PART_45("˩˩","柚","pomelos"), + PART_46("˩꜒","棗","jujube"), + PART_47("˩꜓","瓜","melon"), + PART_48("˩꜔","葡","grape"), + PART_49("˩꜕","梅","plum"), + PART_50("˩꜖","灰","lime"), + PART_51("꜒˥","梨","pear"), + PART_52("꜒˦","蕉","banana"), + PART_53("꜒˧","檸","lemon"), + PART_54("꜒˨","柿","persimmon"), + PART_55("꜒˩","橙","orange"), + PART_56("꜒꜒","桃","peach"), + PART_57("꜒꜓","杏","apricot"), + PART_58("꜒꜔","莓","strawberry"), + PART_59("꜒꜕","薯","patato"), + PART_60("꜒꜖","蘋","apple"), ; private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); diff --git a/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T08PartOctalTest.java b/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T08PartOctalTest.java index 5c47713d..17d3bf43 100644 --- a/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T08PartOctalTest.java +++ b/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T08PartOctalTest.java @@ -15,12 +15,6 @@ public class T08PartOctalTest { Assertions.assertNotNull(value.BȍőnIdentifierTone()); Assertions.assertNotNull(value.BȍőnChinaKey()); Assertions.assertNotNull(value.BȍőnChinaValue()); - Assertions.assertNotNull(value.BȍőnAlt1Value()); - Assertions.assertNotNull(value.BãßAlt1Name()); - Assertions.assertNotNull(value.BãßAlt1Website()); - Assertions.assertNotNull(value.BȍőnAlt2Value()); - Assertions.assertNotNull(value.BãßAlt2Name()); - Assertions.assertNotNull(value.BãßAlt2Website()); } } diff --git a/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T60SexagesimalTest.java b/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T60SexagesimalTest.java index e32c6c7f..88014994 100644 --- a/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T60SexagesimalTest.java +++ b/numberxd/src/test/love/distributedrebirth/numberxd/base2t/T60SexagesimalTest.java @@ -20,10 +20,10 @@ public class T60SexagesimalTest { @Test public void testToneMap() { - Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.BãßValueOfTone("˧˩˥")); - Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.BãßValueOfTone("˧˥˦")); - Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.BãßValueOfTone("꜍꜍꜏")); - Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.BãßValueOfTone("꜑꜑꜏")); + Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.BãßValueOfTone("˥˥")); + Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.BãßValueOfTone("˥˦")); + Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.BãßValueOfTone("꜒꜕")); + Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.BãßValueOfTone("꜒꜖")); } @Test