From 528e6b490511d48eef7fa475f681c6db3bdbd17c Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Fri, 18 Feb 2022 01:00:57 +0100 Subject: [PATCH] Added unicode split mode enum --- .../numberxd/base2t/type/V018Tord.java | 4 +++ .../unicode4d/CodePointᶻᴰ.java | 36 +++++++++++++++++-- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/type/V018Tord.java b/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/type/V018Tord.java index 44b52328..50346400 100644 --- a/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/type/V018Tord.java +++ b/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/type/V018Tord.java @@ -48,6 +48,10 @@ public final class V018Tord implements BaseNumberTyte { return getValue(part.splitPartBinary()).getValue(part.splitPartTrit()); } + public void setTimblePart(T06PartSeximal part, T08PartOctal value) { + getValue(part.splitPartBinary()).setValue(part.splitPartTrit(), value); + } + @Override public int getBitCount() { return BIT_COUNT; diff --git a/lib-unicodezd/src/main/love/distributedrebirth/unicode4d/CodePointᶻᴰ.java b/lib-unicodezd/src/main/love/distributedrebirth/unicode4d/CodePointᶻᴰ.java index a13392ee..f21686f6 100644 --- a/lib-unicodezd/src/main/love/distributedrebirth/unicode4d/CodePointᶻᴰ.java +++ b/lib-unicodezd/src/main/love/distributedrebirth/unicode4d/CodePointᶻᴰ.java @@ -10,13 +10,45 @@ public class CodePointᶻᴰ { this.value = value; } + enum TegerSplitMode { + NOP, + UNICODE, // + direction + ADVANCE, + XY_SET, + + XY_MIN, + XY_MAX, + NUMBER, + MOD_COLOR, // color = 4b+2b + mod 2x2b darker + // MODIFIER; + // STRIKE_HIGH, + // STRIKE_MID, + // STRIKE_LOW, + // STRIKE_UNDER, + // ITALIC_LR, + // ITALIC_RL, + // SCRIPT_TOP, + // SCRIPT_SUB, + // INVISIBLE + + FREE_B4, // envelop + FREE_B3, + FREE_B2, + FREE_B1, + + FREE_A4, + FREE_A3, + FREE_A2, + FREE_A1, + } + /** * 72 bits (8x tyte) * * - * point: x+y of 4 digits + sign + boolean + * V036Teger is point: x+y of 4 digits + sign + boolean * x=2xtyte=tord=18bit - * y=tord-3=14b + sign + boolean + seq/end + mode + * y=tord-3=15b + mode * * V072Tong - 0 * cmd0 unicode="011000"