FC18: Corrected english misspellings in code
This commit is contained in:
parent
1a919b86bc
commit
8d18ffa552
6 changed files with 18 additions and 18 deletions
|
|
@ -378,7 +378,7 @@ public class FourCornerUnicodeDisplay {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void strobeNumberChocoPigChoped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction) {
|
||||
public void strobeNumberChocoPigChopped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction) {
|
||||
// TODO: add pure FC6 too like; auto fixedQ = 0QTPF.D2F3432F.A2B43F242E;
|
||||
List<Integer> numberCandy = new ArrayList<>();
|
||||
//FourCornerRecipe.toDecimalsX18(numberCandy, 0);
|
||||
|
|
|
|||
|
|
@ -329,8 +329,8 @@ public enum FourCornerDotCake {
|
|||
|
||||
/// XML4 has fixed size limits to have stable complexity (9,12,12 bit)
|
||||
FC_XDBX0512_NS(0x02CE00, 512, "XML4 StringID of Namespace"),
|
||||
FC_XDBX2048_ATTR(0x02D000, 4096, "XML4 StringID of Attribute"),
|
||||
FC_XDBX2048_TAG(0x02E000, 4096, "XML4 StringID of Element"),
|
||||
FC_XDBX4096_ATTR(0x02D000, 4096, "XML4 StringID of Attribute"),
|
||||
FC_XDBX4096_TAG(0x02E000, 4096, "XML4 StringID of Element"),
|
||||
|
||||
// =========== Allow big sand worms to be called with walking the sand
|
||||
|
||||
|
|
@ -423,8 +423,8 @@ public enum FourCornerDotCake {
|
|||
FC_DECIMAL2304_BANK(0x03C978, 4096, "Number choco pig 2304 bit decimal point bank"),
|
||||
FC_FLOAT2304_SEL0(0x03D978, 192, "Number choco pig 2304 bit floating point select"),
|
||||
FC_FLOAT2304_BANK(0x03DA38, 4096, "Number choco pig 2304 bit floating point bank"),
|
||||
FC_CHOPED2304_SEL0(0x03EA38, 192, "Number choco pig 2304 bit choped point select"),
|
||||
FC_CHOPED2304_BANK(0x03EAF8, 4096, "Number choco pig 2304 bit choped point bank"),
|
||||
FC_CHOPPED2304_SEL0(0x03EA38, 192, "Number choco pig 2304 bit chopped point select"),
|
||||
FC_CHOPPED2304_BANK(0x03EAF8, 4096, "Number choco pig 2304 bit chopped point bank"),
|
||||
|
||||
// =========== Allow adult escape sequences
|
||||
|
||||
|
|
@ -564,7 +564,7 @@ public enum FourCornerDotCake {
|
|||
if (idx <= FC_SANDWORM_15.ordinal()) {
|
||||
return FourCornerDotCakeTower.TXT_EMBEDS;
|
||||
}
|
||||
if (idx <= FC_CHOPED2304_BANK.ordinal()) {
|
||||
if (idx <= FC_CHOPPED2304_BANK.ordinal()) {
|
||||
return FourCornerDotCakeTower.TXT_NCR;
|
||||
}
|
||||
return FourCornerDotCakeTower.TXT_ESC;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public interface FourCornerZion7Candlelier extends FourCornerZion7Bereshit {
|
|||
void strobeNumberChocoPigFloat(FCFlameNumberTaste taste, boolean bias, BigInteger exponent, BigInteger mantissa);
|
||||
|
||||
/// An chopped pig point number. (4+1148+1152)
|
||||
void strobeNumberChocoPigChoped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction);
|
||||
void strobeNumberChocoPigChopped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction);
|
||||
// XDBX18: doom.wad uses (ARM) Q16.16 which is equal to the real (Texas) Q15.16 (because doom map like E2M3 = 6 bit float)
|
||||
|
||||
//void strobeStructBlockRemark(boolean beginOrEnd, boolean textOrDoc);
|
||||
|
|
@ -75,7 +75,7 @@ public interface FourCornerZion7Candlelier extends FourCornerZion7Bereshit {
|
|||
}
|
||||
|
||||
@Override
|
||||
default void strobeNumberChocoPigChoped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction) {
|
||||
default void strobeNumberChocoPigChopped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -518,7 +518,7 @@ public class FourCornerZionStenoGrapher {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void strobeNumberChocoPigChoped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction) {
|
||||
public void strobeNumberChocoPigChopped(FCFlameNumberTaste taste, BigInteger quake, BigInteger fraction) {
|
||||
requireTongueFC18();
|
||||
Objects.requireNonNull(quake);
|
||||
requireBigPositive(quake);
|
||||
|
|
@ -527,7 +527,7 @@ public class FourCornerZionStenoGrapher {
|
|||
requireBigPositive(fraction);
|
||||
requireBigMax(fraction, BIG_BITS_1152);
|
||||
BigInteger pig = quake.shiftLeft(1152).add(fraction);
|
||||
outAddBankCake12(FourCornerDotCake.FC_CHOPED2304_SEL0, FourCornerDotCake.FC_CHOPED2304_BANK, NCR_BANK_IDX_TOPPAGE_2304, pig, v -> {
|
||||
outAddBankCake12(FourCornerDotCake.FC_CHOPPED2304_SEL0, FourCornerDotCake.FC_CHOPPED2304_BANK, NCR_BANK_IDX_TOPPAGE_2304, pig, v -> {
|
||||
return (v & 0xFF) + (taste.ordinal() << 8);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ public class FourCornerZionStenoLexer {
|
|||
CAKE_EATERS.add(new StenoScannerNumberChocoPigRational());
|
||||
CAKE_EATERS.add(new StenoScannerNumberChocoPigDecimal());
|
||||
CAKE_EATERS.add(new StenoScannerNumberChocoPigFloat());
|
||||
CAKE_EATERS.add(new StenoScannerNumberChocoPigChoped());
|
||||
CAKE_EATERS.add(new StenoScannerNumberChocoPigChopped());
|
||||
CAKE_EATERS.add(new StenoScannerDEC());
|
||||
ArrayList.class.cast(CAKE_EATERS).trimToSize();
|
||||
}
|
||||
|
|
@ -603,10 +603,10 @@ public class FourCornerZionStenoLexer {
|
|||
}
|
||||
}
|
||||
|
||||
static final class StenoScannerNumberChocoPigChoped extends StenoScannerNumberBank {
|
||||
static final class StenoScannerNumberChocoPigChopped extends StenoScannerNumberBank {
|
||||
|
||||
public StenoScannerNumberChocoPigChoped() {
|
||||
super(FourCornerDotCake.FC_CHOPED2304_SEL0, FourCornerDotCake.FC_CHOPED2304_BANK, NCR_BANK12_SIZE, FCFlameNumberSparklerSmoke.CHOCO_PIG_CHOPED);
|
||||
public StenoScannerNumberChocoPigChopped() {
|
||||
super(FourCornerDotCake.FC_CHOPPED2304_SEL0, FourCornerDotCake.FC_CHOPPED2304_BANK, NCR_BANK12_SIZE, FCFlameNumberSparklerSmoke.CHOCO_PIG_CHOPED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -615,7 +615,7 @@ public class FourCornerZionStenoLexer {
|
|||
BigInteger pig = lexer.numberBankReadBig12(numberBankTop);
|
||||
BigInteger quake = pig.shiftRight(1152);
|
||||
BigInteger fraction = pig.and(BIG_BITS_1152);
|
||||
lexer.handler.strobeNumberChocoPigChoped(taste, quake, fraction);
|
||||
lexer.handler.strobeNumberChocoPigChopped(taste, quake, fraction);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,13 +37,13 @@ import org.x4o.fc18.zion7.flame4.FCFlameNumberTaste;
|
|||
* @author Willem Cazander
|
||||
* @version 1.0 Sep 5, 2025
|
||||
*/
|
||||
public class StenoNumberChocoChopedTest {
|
||||
public class StenoNumberChocoChoppedTest {
|
||||
|
||||
@Test
|
||||
public void testChochChoped123() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerFC18(out);
|
||||
writer.strobeNumberChocoPigChoped(FCFlameNumberTaste.NUMBER_POSITIVE, BigInteger.valueOf(456), BigInteger.valueOf(123));
|
||||
writer.strobeNumberChocoPigChopped(FCFlameNumberTaste.NUMBER_POSITIVE, BigInteger.valueOf(456), BigInteger.valueOf(123));
|
||||
String res = FourCornerUnicodeDisplay.text().render(out);
|
||||
Assertions.assertEquals("456.123", res);
|
||||
}
|
||||
|
|
@ -52,7 +52,7 @@ public class StenoNumberChocoChopedTest {
|
|||
public void testChochChopedNeg456() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerFC18(out);
|
||||
writer.strobeNumberChocoPigChoped(FCFlameNumberTaste.NUMBER_NEGATIVE, BigInteger.valueOf(789), BigInteger.valueOf(123));
|
||||
writer.strobeNumberChocoPigChopped(FCFlameNumberTaste.NUMBER_NEGATIVE, BigInteger.valueOf(789), BigInteger.valueOf(123));
|
||||
String res = FourCornerUnicodeDisplay.text().render(out);
|
||||
Assertions.assertEquals("-789.123", res);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue