Fixed pie 9D enum offset calculation

This commit is contained in:
Willem Cazander 2025-05-25 12:54:36 +02:00
parent 905bec88e2
commit cce1f040e5
2 changed files with 13 additions and 1 deletions

View file

@ -73,7 +73,7 @@ public interface FourCornerDotCollePie9 extends FourCornerX06BaklavaPointSequenc
List<Integer> result = new ArrayList<>();
result.addAll(FCDotDEC2701DashPX0.ESC68_2PIE9D.baklavaPointSequence());
result.add(letter.baklavaPointDotIndex());
result.add(FCDotCDC1604DashP6.NX01_A.ordinal() - offset);
result.add(FCDotCDC1604DashP6.NX01_A.ordinal() + offset);
//result.add(FCDotCDC1604DashP6.SEQ_SALAH__EXCLAMATION.cakePointDotIndex()); // TODO: add api layer snake for head
return result;
}

View file

@ -30,6 +30,7 @@ import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence;
import org.x4o.fc18.cake2.pie9c.FCDotPIE9CDash26;
import org.x4o.fc18.cake2.pie9d.FCDotPIE9DDash10;
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
import org.x4o.fc18.cake2.zero33.dec1.FCDotCMD5401Dash2D;
import org.x4o.fc18.cake2.zero33.dec1.FCDotDEC0801DashE10;
@ -165,6 +166,17 @@ public class FourCornerUnicodeDisplayTest {
Assertions.assertEquals("θ̲ο̲ι̲θοιhoih̲o̲i̲𝘩𝘰𝘪𝐇𝐎𝐈ΘΟΙ𝚯𝚶𝚰", FourCornerUnicodeDisplay.text().renderFromX06(cdc));
}
@Test
public void testDec2Pie9DBoldNum() throws Exception {
List<FourCornerX06BaklavaPointSequence> cdc = new ArrayList<>();
cdc.add(FCDotPIE9DDash10.BOLD_DECIMAL_1);
cdc.add(FCDotPIE9DDash10.BOLD_DECIMAL_2);
cdc.add(FCDotPIE9DDash10.BOLD_DECIMAL_3);
cdc.add(FCDotCDC1604DashP6._SALAH_EXCLAMATION);
Assertions.assertEquals("𝟏𝟐𝟑", FourCornerUnicodeDisplay.text().renderFromX06(cdc));
}
@Test
public void testDecIncText() throws Exception {
List<FourCornerX06BaklavaPointSequence> cdc = new ArrayList<>();