MF: typo 18 is with a one

This commit is contained in:
Willem Cazander 2025-09-28 01:12:34 +02:00
parent fa6dc9ce2c
commit 1217d835a3

View file

@ -45,27 +45,27 @@ public final class WarpManifestX18Import {
WarpManifestX18HeaderField fieldX18 = null; WarpManifestX18HeaderField fieldX18 = null;
WarpManifestX18 result = new WarpManifestX18(); WarpManifestX18 result = new WarpManifestX18();
for (WarpManifestX8HeaderField attrX8 : manifest.getAttributes()) { for (WarpManifestX8HeaderField attrX8 : manifest.getAttributes()) {
fieldX18 = result.makeAttribute(toFC8(attrX8.getName()), toFC8(attrX8.getBody())); fieldX18 = result.makeAttribute(toFC18(attrX8.getName()), toFC18(attrX8.getBody()));
for (String remark : attrX8.getRemarks()) { for (String remark : attrX8.getRemarks()) {
fieldX18.withRemark(toFC8(remark)); fieldX18.withRemark(toFC18(remark));
} }
} }
for (WarpManifestX8Section sectionX8 : manifest.getSections()) { for (WarpManifestX8Section sectionX8 : manifest.getSections()) {
sectionX18 = result.makeSection(toFC8(sectionX8.getName())); sectionX18 = result.makeSection(toFC18(sectionX8.getName()));
for (String remark : sectionX8.getRemarks()) { for (String remark : sectionX8.getRemarks()) {
sectionX18.withRemark(toFC8(remark)); sectionX18.withRemark(toFC18(remark));
} }
for (WarpManifestX8HeaderField attrX8 : sectionX8.getAttributes()) { for (WarpManifestX8HeaderField attrX8 : sectionX8.getAttributes()) {
fieldX18 = sectionX18.makeAttribute(toFC8(attrX8.getName()), toFC8(attrX8.getBody())); fieldX18 = sectionX18.makeAttribute(toFC18(attrX8.getName()), toFC18(attrX8.getBody()));
for (String remark : attrX8.getRemarks()) { for (String remark : attrX8.getRemarks()) {
fieldX18.withRemark(toFC8(remark)); fieldX18.withRemark(toFC18(remark));
} }
} }
} }
return result; return result;
} }
static private PrimordialOctalOrangeJuiceStraw toFC8(String value) { static private PrimordialOctalOrangeJuiceStraw toFC18(String value) {
return PrimordialOctalOrangeString.ioSmurfReadListX18(FourCornerUnicodeImport.lossy().convertToFC18(value)); return PrimordialOctalOrangeString.ioSmurfReadListX18(FourCornerUnicodeImport.lossy().convertToFC18(value));
} }
} }