FC18: Renamed mapper to recipe with fc18 generators static methods only
This commit is contained in:
parent
6b8d281e40
commit
c6144b8956
10 changed files with 72 additions and 92 deletions
|
|
@ -101,9 +101,9 @@ public class FourCornerUnicodeDisplayTest {
|
|||
List<Integer> cdc = new ArrayList<>();
|
||||
cdc.add(FCDotCDC1604DashP6.NX23_W.ordinal());
|
||||
cdc.add(FCDotCDC1604DashP6.NY09_EQUALS.ordinal());
|
||||
cdc.addAll(FourCornerUnicodeMapper.DICTIONARY.embedUNI2K("©Δ∞ 仙上主天"));
|
||||
cdc.addAll(FourCornerRecipe.embedUNI2K("©Δ∞ 仙上主天"));
|
||||
cdc.add(FCDotCDC1604DashP6.NY20_PLUS.ordinal());
|
||||
cdc.addAll(FourCornerUnicodeMapper.DICTIONARY.embedUNI2K("𑀳𑁂𑀮𑀺𑀉𑁄𑀤𑁄𑀭𑁂𑀡 𑀪𑀸𑀕"));
|
||||
cdc.addAll(FourCornerRecipe.embedUNI2K("𑀳𑁂𑀮𑀺𑀉𑁄𑀤𑁄𑀭𑁂𑀡 𑀪𑀸𑀕"));
|
||||
cdc.add(FCDotCDC1604DashP6.NY14_SEMICOLON.ordinal());
|
||||
//cdc.add(FCDotCDC1604DashP6._NEWLINE.ordinal());
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ public class FourCornerUnicodeDisplayTest {
|
|||
int bitsFC18 = cdc.size()*18;
|
||||
Assertions.assertTrue(bitsFC18 < bitsUTF8, "FC18 is not smaller");
|
||||
|
||||
List<Integer> cdc6 = FourCornerUnicodeMapper.DICTIONARY.embedFC18(cdc);
|
||||
List<Integer> cdc6 = FourCornerRecipe.embedFC18(cdc);
|
||||
Assertions.assertEquals(outputExpected, FourCornerUnicodeDisplay.text().renderFromInt18(cdc6));
|
||||
Assertions.assertTrue(cdc6.size() > cdc.size(), "FCx6 is not bigger");
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import java.util.List;
|
|||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.fc18.FourCornerUnicodeDisplay;
|
||||
import org.x4o.fc18.FourCornerUnicodeMapper;
|
||||
import org.x4o.fc18.FourCornerRecipe;
|
||||
import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence;
|
||||
import org.x4o.fc18.cake2.zero33.vt06.VTDash06DotZeroACursor;
|
||||
import org.x4o.fc18.cake2.zero33.vt06.VTDash06DotZeroCClear;
|
||||
|
|
@ -45,9 +45,9 @@ public class FCDotVT06Test {
|
|||
public void testCusorGoto() throws Exception {
|
||||
List<FourCornerX06BaklavaPointSequence> cdc = new ArrayList<>();
|
||||
cdc.add(VTDash06DotZeroACursor.VT_CURSOR_GOTO);
|
||||
cdc.addAll(FourCornerUnicodeMapper.DICTIONARY.toDecimalsX06(123)); // TODO: fix these are the wrong, we need to use the txt grams version
|
||||
cdc.addAll(FourCornerRecipe.toDecimalsX06(123)); // TODO: fix these are the wrong, we need to use the txt grams version
|
||||
cdc.add(FCDotCDC1604DashP6._RAKA_QUESTION);
|
||||
cdc.addAll(FourCornerUnicodeMapper.DICTIONARY.toDecimalsX06(456));
|
||||
cdc.addAll(FourCornerRecipe.toDecimalsX06(456));
|
||||
cdc.add(FCDotCDC1604DashP6._SALAH_EXCLAMATION);
|
||||
|
||||
Assertions.assertEquals("␘␘␇AG␇␇␇^BCD?␇␇␇^EFG!", FourCornerUnicodeDisplay.raw().renderFromX06(cdc));
|
||||
|
|
@ -59,7 +59,7 @@ public class FCDotVT06Test {
|
|||
public void testClearTop5Lines() throws Exception {
|
||||
List<FourCornerX06BaklavaPointSequence> cdc = new ArrayList<>();
|
||||
cdc.add(VTDash06DotZeroCClear.VT_CLEAR_TOP);
|
||||
cdc.addAll(FourCornerUnicodeMapper.DICTIONARY.toDecimalsX06(5));
|
||||
cdc.addAll(FourCornerRecipe.toDecimalsX06(5));
|
||||
cdc.add(FCDotCDC1604DashP6._SALAH_EXCLAMATION);
|
||||
|
||||
Assertions.assertEquals("␘␘␇CA␇␇␇^F!", FourCornerUnicodeDisplay.raw().renderFromX06(cdc));
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.fc18.FourCornerUnicodeDisplay;
|
||||
import org.x4o.fc18.FourCornerUnicodeMapper;
|
||||
import org.x4o.fc18.FourCornerRecipe;
|
||||
import org.x4o.fc18.cake2.FourCornerDotCake;
|
||||
import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence;
|
||||
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
|
||||
|
|
@ -139,10 +139,10 @@ public class LexerNCRTest {
|
|||
List<Integer> cdc = new ArrayList<>();
|
||||
for (int x = 1; x <= 1024; x++) {
|
||||
BigInteger v = BigInteger.valueOf(x);
|
||||
cdc.addAll(FourCornerUnicodeMapper.DICTIONARY.embedNCR1632Denominator(v));
|
||||
cdc.addAll(FourCornerRecipe.embedNCR1632Denominator(v));
|
||||
|
||||
//cdc.add(FourCornerDotCake.FC_NCR1632_XN.getStart()); // NXX_1
|
||||
List<Integer> nomList = FourCornerUnicodeMapper.DICTIONARY.embedNCR1632Numerator(BigInteger.ONE);
|
||||
List<Integer> nomList = FourCornerRecipe.embedNCR1632Numerator(BigInteger.ONE);
|
||||
Assertions.assertEquals(1, nomList.size());
|
||||
cdc.addAll(nomList); // NXX_1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue