Moved trit types

This commit is contained in:
Willem Cazander 2022-11-28 01:12:22 +01:00
parent c8d0f8bed8
commit 6642ce6fce
72 changed files with 328 additions and 2451 deletions

View file

@ -42,13 +42,13 @@ import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
import love.distributedrebirth.numberxd.unicode.UnicodePlane;
import love.distributedrebirth.unicode4d.atlas.FontAtlas;
import love.distributedrebirth.unicode4d.atlas.FontAtlasDriver;
import love.distributedrebirth.unicode4d.atlas.FontAtlasStore;
import love.distributedrebirth.unicode4d.atlas.FontAtlasStoreGlyph;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.T002ᖟ;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.ᔿᓫᒻᓫᓫ.V072Tong;
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
@ -197,7 +197,7 @@ public class TestConvFont {
} else if ("glyph".equals(qName)) {
if (CodePointCommandᶻᴰ.NOP != CodePointᶻᴰ.INSTANCE.getCommand(point.getValue(T002ᖟ.PART_1))) {
if (CodePointCommandᶻᴰ.NOP != CodePointᶻᴰ.INSTANCE.getCommand(point.partᗅᗷᗷᗅ(T002ᖟ.PART_1))) {
tongs.add(point);
}
glyphCounter++;
@ -242,8 +242,8 @@ public class TestConvFont {
} else if ("glyph".equals(qName)) {
tongs = new ArrayList<>();
point = new V072Tong();
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(T002ᖟ.PART_1), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(T002ᖟ.PART_2), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(T002ᖟ.PART_1), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(T002ᖟ.PART_2), CodePointCommandᶻᴰ.NOP);
String unicodeStr = atts.getValue("unicode");
if (unicodeStr.startsWith("0000, ")) {
@ -263,27 +263,27 @@ public class TestConvFont {
V072Tong v2 = new V072Tong();
if (unicodePlane2.isLeftToRight()) {
CodePointᶻᴰ.INSTANCE.setCommand(v0.getValue(T002ᖟ.PART_1), CodePointCommandᶻᴰ.START_LR);
CodePointᶻᴰ.INSTANCE.setCommand(v0.partᗅᗷᗷᗅ(T002ᖟ.PART_1), CodePointCommandᶻᴰ.START_LR);
} else {
CodePointᶻᴰ.INSTANCE.setCommand(v0.getValue(T002ᖟ.PART_1), CodePointCommandᶻᴰ.START_RL);
CodePointᶻᴰ.INSTANCE.setCommand(v0.partᗅᗷᗷᗅ(T002ᖟ.PART_1), CodePointCommandᶻᴰ.START_RL);
}
CodePointᶻᴰ.INSTANCE.setCommand(v0.getValue(T002ᖟ.PART_2), CodePointCommandᶻᴰ.UNICODE);
CodePointᶻᴰ.INSTANCE.setArgumentUnicode(v0.getValue(T002ᖟ.PART_2), unicode);
CodePointᶻᴰ.INSTANCE.setCommand(v0.partᗅᗷᗷᗅ(T002ᖟ.PART_2), CodePointCommandᶻᴰ.UNICODE);
CodePointᶻᴰ.INSTANCE.setArgumentUnicode(v0.partᗅᗷᗷᗅ(T002ᖟ.PART_2), unicode);
CodePointᶻᴰ.INSTANCE.setCommand(v1.getValue(T002ᖟ.PART_1), CodePointCommandᶻᴰ.XY_MAX);
CodePointᶻᴰ.INSTANCE.setArgument(v1.getValue(T002ᖟ.PART_1), T002ᖟ.PART_1, xMax);
CodePointᶻᴰ.INSTANCE.setArgument(v1.getValue(T002ᖟ.PART_1), T002ᖟ.PART_2, yMax);
CodePointᶻᴰ.INSTANCE.setCommand(v1.partᗅᗷᗷᗅ(T002ᖟ.PART_1), CodePointCommandᶻᴰ.XY_MAX);
CodePointᶻᴰ.INSTANCE.setArgument(v1.partᗅᗷᗷᗅ(T002ᖟ.PART_1), T002ᖟ.PART_1, xMax);
CodePointᶻᴰ.INSTANCE.setArgument(v1.partᗅᗷᗷᗅ(T002ᖟ.PART_1), T002ᖟ.PART_2, yMax);
CodePointᶻᴰ.INSTANCE.setCommand(v1.getValue(T002ᖟ.PART_2), CodePointCommandᶻᴰ.XY_MIN);
CodePointᶻᴰ.INSTANCE.setArgument(v1.getValue(T002ᖟ.PART_2), T002ᖟ.PART_1, xMin);
CodePointᶻᴰ.INSTANCE.setArgument(v1.getValue(T002ᖟ.PART_2), T002ᖟ.PART_2, yMin);
CodePointᶻᴰ.INSTANCE.setCommand(v1.partᗅᗷᗷᗅ(T002ᖟ.PART_2), CodePointCommandᶻᴰ.XY_MIN);
CodePointᶻᴰ.INSTANCE.setArgument(v1.partᗅᗷᗷᗅ(T002ᖟ.PART_2), T002ᖟ.PART_1, xMin);
CodePointᶻᴰ.INSTANCE.setArgument(v1.partᗅᗷᗷᗅ(T002ᖟ.PART_2), T002ᖟ.PART_2, yMin);
CodePointᶻᴰ.INSTANCE.setCommand(v2.getValue(T002ᖟ.PART_1), CodePointCommandᶻᴰ.ADVANCE);
CodePointᶻᴰ.INSTANCE.setArgument(v2.getValue(T002ᖟ.PART_1), T002ᖟ.PART_1, advanceWidth);
CodePointᶻᴰ.INSTANCE.setArgument(v2.getValue(T002ᖟ.PART_1), T002ᖟ.PART_2, leftSideBearing);
CodePointᶻᴰ.INSTANCE.setCommand(v2.partᗅᗷᗷᗅ(T002ᖟ.PART_1), CodePointCommandᶻᴰ.ADVANCE);
CodePointᶻᴰ.INSTANCE.setArgument(v2.partᗅᗷᗷᗅ(T002ᖟ.PART_1), T002ᖟ.PART_1, advanceWidth);
CodePointᶻᴰ.INSTANCE.setArgument(v2.partᗅᗷᗷᗅ(T002ᖟ.PART_1), T002ᖟ.PART_2, leftSideBearing);
CodePointᶻᴰ.INSTANCE.setCommand(v2.getValue(T002ᖟ.PART_2), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(v2.partᗅᗷᗷᗅ(T002ᖟ.PART_2), CodePointCommandᶻᴰ.NOP);
tongs.add(v0);
tongs.add(v1);
@ -298,29 +298,29 @@ public class TestConvFont {
int y = (int) Float.parseFloat(atts.getValue("y"));
T002ᖟ part = T002ᖟ.PART_1;
if (CodePointCommandᶻᴰ.NOP != CodePointᶻᴰ.INSTANCE.getCommand(point.getValue(T002ᖟ.PART_1))) {
if (CodePointCommandᶻᴰ.NOP != CodePointᶻᴰ.INSTANCE.getCommand(point.partᗅᗷᗷᗅ(T002ᖟ.PART_1))) {
part = T002ᖟ.PART_2;
}
if (onCurve) {
if (startPoint) {
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(part), CodePointCommandᶻᴰ.XY_ON_CURVE_START);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(part), CodePointCommandᶻᴰ.XY_ON_CURVE_START);
} else {
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(part), CodePointCommandᶻᴰ.XY_ON_CURVE);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(part), CodePointCommandᶻᴰ.XY_ON_CURVE);
}
} else {
if (startPoint) {
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(part), CodePointCommandᶻᴰ.XY_OFF_CURVE_START);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(part), CodePointCommandᶻᴰ.XY_OFF_CURVE_START);
} else {
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(part), CodePointCommandᶻᴰ.XY_OFF_CURVE);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(part), CodePointCommandᶻᴰ.XY_OFF_CURVE);
}
}
CodePointᶻᴰ.INSTANCE.setArgument(point.getValue(part), T002ᖟ.PART_1, x);
CodePointᶻᴰ.INSTANCE.setArgument(point.getValue(part), T002ᖟ.PART_2, y);
CodePointᶻᴰ.INSTANCE.setArgument(point.partᗅᗷᗷᗅ(part), T002ᖟ.PART_1, x);
CodePointᶻᴰ.INSTANCE.setArgument(point.partᗅᗷᗷᗅ(part), T002ᖟ.PART_2, y);
if (part == T002ᖟ.PART_2) {
tongs.add(point);
point = new V072Tong();
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(T002ᖟ.PART_1), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(point.getValue(T002ᖟ.PART_2), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(T002ᖟ.PART_1), CodePointCommandᶻᴰ.NOP);
CodePointᶻᴰ.INSTANCE.setCommand(point.partᗅᗷᗷᗅ(T002ᖟ.PART_2), CodePointCommandᶻᴰ.NOP);
}
if (startPoint) {
startPoint = false;