Renamed terminators
This commit is contained in:
parent
0886d6eac9
commit
39b66404dd
88 changed files with 1014 additions and 1011 deletions
|
|
@ -2,7 +2,7 @@ package love.distributedrebirth.unicode4d;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002ᖟ;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V036Teger;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
|
@ -26,7 +26,7 @@ public enum CodePointᶻᴰ {
|
|||
public static final int MODIFIER_SCRIPT_SUB = 0b000000000010000000;
|
||||
public static final int MODIFIER_ENVELOP = 0b000000000100000000;
|
||||
|
||||
public int getArgument(V036Teger teger, T002PartBinary part) {
|
||||
public int getArgument(V036Teger teger, T002ᖟ part) {
|
||||
int value = teger.getValue(part).getValueNumber();
|
||||
int result = value & MASK_ARGU;
|
||||
if ((value & MASK_SIGN) != 0) {
|
||||
|
|
@ -35,7 +35,7 @@ public enum CodePointᶻᴰ {
|
|||
return result;
|
||||
}
|
||||
|
||||
public void setArgument(V036Teger teger, T002PartBinary part, int number) {
|
||||
public void setArgument(V036Teger teger, T002ᖟ part, int number) {
|
||||
int value = teger.getValue(part).getValueNumber();
|
||||
int result = (value & MASK_CMD) + ((number >> 17) & MASK_SIGN) + (number & MASK_ARGU);
|
||||
teger.getValue(part).setValueNumber(result);
|
||||
|
|
@ -43,33 +43,33 @@ public enum CodePointᶻᴰ {
|
|||
|
||||
public int getArgumentUnicode(V036Teger teger) {
|
||||
int unicode = 0;
|
||||
unicode += teger.getValue(T002PartBinary.PART_1).getValueNumber() & MASK_ARGU+MASK_SIGN;
|
||||
unicode += (teger.getValue(T002PartBinary.PART_2).getValueNumber() & MASK_ARGU+MASK_SIGN) << 15;
|
||||
unicode += teger.getValue(T002ᖟ.PART_1).getValueNumber() & MASK_ARGU+MASK_SIGN;
|
||||
unicode += (teger.getValue(T002ᖟ.PART_2).getValueNumber() & MASK_ARGU+MASK_SIGN) << 15;
|
||||
return unicode;
|
||||
}
|
||||
|
||||
public void setArgumentUnicode(V036Teger teger, int unicode) {
|
||||
int value1 = teger.getValue(T002PartBinary.PART_1).getValueNumber();
|
||||
int value2 = teger.getValue(T002PartBinary.PART_2).getValueNumber();
|
||||
int value1 = teger.getValue(T002ᖟ.PART_1).getValueNumber();
|
||||
int value2 = teger.getValue(T002ᖟ.PART_2).getValueNumber();
|
||||
value1 = (value1 & MASK_CMD) + (unicode & MASK_ARGU+MASK_SIGN);
|
||||
value2 = (value2 & MASK_CMD) + ((unicode >> 15) & MASK_ARGU+MASK_SIGN);
|
||||
teger.getValue(T002PartBinary.PART_1).setValueNumber(value1);
|
||||
teger.getValue(T002PartBinary.PART_2).setValueNumber(value2);
|
||||
teger.getValue(T002ᖟ.PART_1).setValueNumber(value1);
|
||||
teger.getValue(T002ᖟ.PART_2).setValueNumber(value2);
|
||||
}
|
||||
|
||||
public CodePointCommandᶻᴰ getCommand(V036Teger teger) {
|
||||
int mode = 0;
|
||||
mode += (teger.getValue(T002PartBinary.PART_1).getValueNumber() >> 15) << 0;
|
||||
mode += (teger.getValue(T002PartBinary.PART_2).getValueNumber() >> 15) << 3;
|
||||
mode += (teger.getValue(T002ᖟ.PART_1).getValueNumber() >> 15) << 0;
|
||||
mode += (teger.getValue(T002ᖟ.PART_2).getValueNumber() >> 15) << 3;
|
||||
return CodePointCommandᶻᴰ.values()[mode];
|
||||
}
|
||||
|
||||
public void setCommand(V036Teger teger, CodePointCommandᶻᴰ command) {
|
||||
int mode = command.ordinal();
|
||||
int value1 = teger.getValue(T002PartBinary.PART_1).getValueNumber();
|
||||
int value2 = teger.getValue(T002PartBinary.PART_2).getValueNumber();
|
||||
teger.getValue(T002PartBinary.PART_1).setValueNumber(value1 | (((mode >> 0) << 15)) & MASK_CMD);
|
||||
teger.getValue(T002PartBinary.PART_2).setValueNumber(value2 | (((mode >> 3) << 15)) & MASK_CMD);
|
||||
int value1 = teger.getValue(T002ᖟ.PART_1).getValueNumber();
|
||||
int value2 = teger.getValue(T002ᖟ.PART_2).getValueNumber();
|
||||
teger.getValue(T002ᖟ.PART_1).setValueNumber(value1 | (((mode >> 0) << 15)) & MASK_CMD);
|
||||
teger.getValue(T002ᖟ.PART_2).setValueNumber(value2 | (((mode >> 3) << 15)) & MASK_CMD);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,11 +77,11 @@ public enum CodePointᶻᴰ {
|
|||
*/
|
||||
public int searchUnicode(List<V072Tong> tongs) {
|
||||
for (V072Tong tong:tongs) {
|
||||
if (CodePointCommandᶻᴰ.UNICODE.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002PartBinary.PART_1)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002PartBinary.PART_1));
|
||||
if (CodePointCommandᶻᴰ.UNICODE.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002ᖟ.PART_1)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002ᖟ.PART_1));
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.UNICODE.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002PartBinary.PART_2)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002PartBinary.PART_2));
|
||||
if (CodePointCommandᶻᴰ.UNICODE.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002ᖟ.PART_2)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002ᖟ.PART_2));
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
|
@ -93,11 +93,11 @@ public enum CodePointᶻᴰ {
|
|||
*/
|
||||
public int searchNumber(List<V072Tong> tongs) {
|
||||
for (V072Tong tong:tongs) {
|
||||
if (CodePointCommandᶻᴰ.NUMBER.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002PartBinary.PART_1)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002PartBinary.PART_1));
|
||||
if (CodePointCommandᶻᴰ.NUMBER.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002ᖟ.PART_1)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002ᖟ.PART_1));
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.NUMBER.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002PartBinary.PART_2)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002PartBinary.PART_2));
|
||||
if (CodePointCommandᶻᴰ.NUMBER.equals(CodePointᶻᴰ.INSTANCE.getCommand(tong.getValue(T002ᖟ.PART_2)))) {
|
||||
return CodePointᶻᴰ.INSTANCE.getArgumentUnicode(tong.getValue(T002ᖟ.PART_2));
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package love.distributedrebirth.unicode4d;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002ᖟ;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V036Teger;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
|
@ -24,16 +24,16 @@ public class Stringᶻᴰ {
|
|||
public V036Teger getCodePointByIndex(int index) {
|
||||
V072Tong tong = string.get(index >> 1);
|
||||
if ((index & 1) == 0) {
|
||||
return tong.getValue(T002PartBinary.PART_1);
|
||||
return tong.getValue(T002ᖟ.PART_1);
|
||||
} else {
|
||||
return tong.getValue(T002PartBinary.PART_2);
|
||||
return tong.getValue(T002ᖟ.PART_2);
|
||||
}
|
||||
}
|
||||
|
||||
public int charSize() {
|
||||
int result = 0;
|
||||
for (V072Tong points:string) {
|
||||
CodePointCommandᶻᴰ cmd = CodePointᶻᴰ.INSTANCE.getCommand(points.getValue(T002PartBinary.PART_1));
|
||||
CodePointCommandᶻᴰ cmd = CodePointᶻᴰ.INSTANCE.getCommand(points.getValue(T002ᖟ.PART_1));
|
||||
if (cmd == CodePointCommandᶻᴰ.START_LR) {
|
||||
result++;
|
||||
} else if (cmd == CodePointCommandᶻᴰ.START_RL) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import java.util.ArrayList;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002ᖟ;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V036Teger;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
|
||||
import love.distributedrebirth.unicode4d.CodePointCommandᶻᴰ;
|
||||
|
|
@ -30,8 +30,8 @@ public class DrawCharacter {
|
|||
public DrawCharacter(List<V072Tong> tongs) {
|
||||
this.tongs = tongs;
|
||||
for (V072Tong tong: tongs) {
|
||||
processCodePoint(tong.getValue(T002PartBinary.PART_1));
|
||||
processCodePoint(tong.getValue(T002PartBinary.PART_2));
|
||||
processCodePoint(tong.getValue(T002ᖟ.PART_1));
|
||||
processCodePoint(tong.getValue(T002ᖟ.PART_2));
|
||||
}
|
||||
if (currentContour != null) {
|
||||
contours.add(currentContour);
|
||||
|
|
@ -57,26 +57,26 @@ public class DrawCharacter {
|
|||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_MAX.equals(cmd)) {
|
||||
xMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
yMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
xMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
yMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_MIN.equals(cmd)) {
|
||||
xMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
yMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
xMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
yMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.ADVANCE.equals(cmd)) {
|
||||
advanceWidth = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
leftSideBearing = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
advanceWidth = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
leftSideBearing = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_ON_CURVE_START.equals(cmd)) {
|
||||
if (currentContour != null) {
|
||||
contours.add(currentContour);
|
||||
}
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
currentContour = new DrawGlyphContour();
|
||||
currentContour.point(x, y, true);
|
||||
return;
|
||||
|
|
@ -85,21 +85,21 @@ public class DrawCharacter {
|
|||
if (currentContour != null) {
|
||||
contours.add(currentContour);
|
||||
}
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
currentContour = new DrawGlyphContour();
|
||||
currentContour.point(x, y, true);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_ON_CURVE.equals(cmd)) {
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
currentContour.point(x, y, true);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_OFF_CURVE.equals(cmd)) {
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002ᖟ.PART_2);
|
||||
currentContour.point(x, y, false);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue