Real ascii ghost keys for china

This commit is contained in:
Willem Cazander 2022-10-23 17:48:30 +02:00
parent e3bab90221
commit be643fa4bb
14 changed files with 68 additions and 30 deletions

View file

@ -45,7 +45,7 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer,
};
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<DefaultBãßBȍőnʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_BUNDLE = GhostKey鬼鑰匙.asciiᴺᵉʷ("BUNDLE");
private static final GhostKey鬼鑰匙 GHOST_BUNDLE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderEgg注()
public VrGem4Unicode4DService locateVrGem4Unicode4DService(DefaultBãßBȍőnʸᴰ<NotepadDeskApp> boon) {

View file

@ -13,8 +13,8 @@ public interface BãßBȍőnAuthorʸᴰ<T extends BãßBȍőnʸᴰ<T>> extends B
@BãßBȍőnPiratePhase注(dependencies = {BãßBȍőnPirateʸᴰ.βrahmanBoonLaw.class})
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnAuthorʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_NAME = GhostKey鬼鑰匙.asciiᴺᵉʷ("NAME");
private static final GhostKey鬼鑰匙 GHOST_COPYRIGHT = GhostKey鬼鑰匙.asciiᴺᵉʷ("COPYRIGHT");
private static final GhostKey鬼鑰匙 GHOST_NAME = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_COPYRIGHT = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final String DEFAULT_NAME = "奴隸來自 仙上主天";
private static final String DEFAULT_COPYRIGHT = "©Δ∞ 仙上主天";

View file

@ -13,7 +13,7 @@ public interface BãßBȍőnDuytsFlüsternʸᴰ<T extends BãßBȍőnʸᴰ<T>> e
@BãßBȍőnPiratePhase注(dependencies = {BãßBȍőnPirateʸᴰ.βrahmanBoonLaw.class})
final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnDuytsFlüsternʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_PURPOSE = GhostKey鬼鑰匙.asciiᴺᵉʷ("PURPOSE");
private static final GhostKey鬼鑰匙 GHOST_PURPOSE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final String DEFAULT_PURPOSE = "Undefined";
@BãßBȍőnSpiderWire注

View file

@ -14,8 +14,8 @@ public interface BãßBȍőnExportʸᴰ<T extends BãßBȍőnʸᴰ<T>> extends B
@BãßBȍőnPiratePhase注(dependencies = {BãßBȍőnPirateʸᴰ.βrahmanBoonLaw.class})
final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnExportʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_ARTIFACT = GhostKey鬼鑰匙.asciiᴺᵉʷ("ARTIFACT");
private static final GhostKey鬼鑰匙 GHOST_GROUP = GhostKey鬼鑰匙.asciiᴺᵉʷ("GROUP");
private static final GhostKey鬼鑰匙 GHOST_ARTIFACT = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_GROUP = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnExportʸᴰ<?> boon;

View file

@ -1,11 +1,39 @@
package love.distributedrebirth.bassboon.death;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import love.distributedrebirth.bassboon.Bãß;
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
import love.distributedrebirth.bassboon.jpp.lang.StringDEC6B;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface GhostKey鬼鑰匙 extends StringDEC6B {
enum 𓉡 {
ײןןזןןןזזזןײ;
private final Map<Class<?>, AtomicInteger> 精神龸鑰匙 = Collections.synchronizedMap(new HashMap<>());
private final int 開始龸價值龸阿瑪利亞 = 0xB00BBABE - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE;
}
static GhostKey鬼鑰匙 asciiᴳʰᵒˢᵗ() {
Class<?> parentClass = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE).getCallerClass();
AtomicInteger cnt = 𓉡.ײןןזןןןזזזןײ.精神龸鑰匙.get(parentClass);
if (cnt == null) {
cnt = new AtomicInteger(𓉡.ײןןזןןןזזזןײ.開始龸價值龸阿瑪利亞);
𓉡.ײןןזןןןזזזןײ.精神龸鑰匙.put(parentClass, cnt);
}
int fieldNumber = cnt.incrementAndGet();
StringBuilder buf = new StringBuilder();
buf.append(Integer.toHexString(parentClass.hashCode()).toUpperCase()); // our callers are named Ꝑŕḯṿª so use hashCode
buf.append(StringDEC6B.BasicAscii.UNDERSCORE);
buf.append(Integer.toHexString(fieldNumber).toUpperCase());
return asciiᴺᵉʷ(buf.toString());
}
static GhostKey鬼鑰匙 asciiᴺᵉʷ(String text) {
for (int i=0;i<text.length();i++) {
if (!BasicAscii.UNICODE.isValidKey(text.charAt(i))) {

View file

@ -1,25 +1,35 @@
package love.distributedrebirth.bassboon.jpp.lang;
import love.distributedrebirth.bassboon.Bãß;
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface StringDEC6B extends StringProxy {
// BASIC uses https://en.wikipedia.org/wiki/Six-bit_character_code#Examples_of_six-bit_ASCII_variants
enum BasicAscii {
UNICODE;
// BASIC uses https://en.wikipedia.org/wiki/Six-bit_character_code#Examples_of_six-bit_ASCII_variants
private static final String VALUES =
" !\"#$%&'()*+,-./" +
"@ABCDEFGHIJKLMNO" +
"0123456789:;<=>?" +
"PQRSTUVWXYZ[\\]^_";
public static char UNDERSCORE = '_'; // mmmm maybe use the enum for all control flow chars only ...
private static final String VALUES_KEY =
"ABCDEFGHIJKLMNO" +
"0123456789" +
Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO +
Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ONE +
"23456789" +
"PQRSTUVWXYZ" +
"_";
UNDERSCORE;
private static final String VALUES =
VALUES_KEY +
Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_SPACE +
"!\"#$%&'()*+,-./" +
"@" +
":;<=>?" +
"[\\]^" +
UNDERSCORE;
public boolean isValid(char c) {
for (int i=0;i<VALUES.length();i++) {

View file

@ -17,8 +17,8 @@ import love.distributedrebirth.bassboon.yd.abacus.BãßBȍőnAbacusSetʸᴰ;
public interface BãßBȍőnNumberMatrixʸᴰ<T extends BãßBȍőnNumberMatrixʸᴰ<T>> extends BãßBȍőnAbacusSetʸᴰ<T> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnNumberMatrixʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_MATRIX_DIMENSION = GhostKey鬼鑰匙.asciiᴺᵉʷ("ABACUS_DIMENSION");
private static final GhostKey鬼鑰匙 GHOST_NUMBER_BLOCK = GhostKey鬼鑰匙.asciiᴺᵉʷ("NUMBER_BLOCK");
private static final GhostKey鬼鑰匙 GHOST_MATRIX_DIMENSION = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_NUMBER_BLOCK = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnNumberMatrixʸᴰ<?> boon;

View file

@ -22,10 +22,10 @@ public interface BãßBȍőnAbacusEnumBaseʸᴰ<T extends BãßBȍőnʸᴰ<T> &
@BãßBȍőnPiratePhase注(dependencies = {BãßBȍőnPirateʸᴰ.βrahmanBoonBereshit.class})
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnAbacusEnumBaseʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_RANK_ONE = GhostKey鬼鑰匙.asciiᴺᵉʷ("RANK_ONE");
private static final GhostKey鬼鑰匙 GHOST_LENGTH = GhostKey鬼鑰匙.asciiᴺᵉʷ("LENGTH");
private static final GhostKey鬼鑰匙 GHOST_RANK_RING_TONE = GhostKey鬼鑰匙.asciiᴺᵉʷ("RANK_RING_TONE");
private static final GhostKey鬼鑰匙 GHOST_MAP_TONE = GhostKey鬼鑰匙.asciiᴺᵉʷ("MAP_TONE");
private static final GhostKey鬼鑰匙 GHOST_RANK_ONE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_LENGTH = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_RANK_RING_TONE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_MAP_TONE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnAbacusEnumBaseʸᴰ<?> boon;

View file

@ -14,7 +14,7 @@ public interface BãßBȍőnAbacusZombieʸᴰ<T extends BãßBȍőnʸᴰ<T>, K e
@BãßBȍőnPiratePhase注(dependencies = {BãßBȍőnPirateʸᴰ.βrahmanBoonBereshit.class})
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnAbacusZombieʸᴰ<?,?>> {
private static final GhostKey鬼鑰匙 GHOST_ZOMBIE = GhostKey鬼鑰匙.asciiᴺᵉʷ("ZOMBIE");
private static final GhostKey鬼鑰匙 GHOST_ZOMBIE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnAbacusZombieʸᴰ<?,?> boon;

View file

@ -35,7 +35,7 @@ public interface BãßBȍőnMBeanServerʸᴰ<T extends BãßBȍőnʸᴰ<T>> exte
protected static final String STR_COLON = ":";
protected static final String STR_IS = "=";
protected static final String STR_COMMA = ",";
private static final GhostKey鬼鑰匙 GHOST_JMX = GhostKey鬼鑰匙.asciiᴺᵉʷ("JMX");
private static final GhostKey鬼鑰匙 GHOST_JMX = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnMBeanServerʸᴰ<?> boon;

View file

@ -12,8 +12,8 @@ import love.distributedrebirth.bassboon.death.spider.BãßBȍőnSpiderWire注;
public interface BãßBȍőnPartAlt1ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartʸᴰ<T> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnPartAlt1ʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_ALT1_NAME = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT1_NAME");
private static final GhostKey鬼鑰匙 GHOST_ALT1_WEBSITE = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT1_WEBSITE");
private static final GhostKey鬼鑰匙 GHOST_ALT1_NAME = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_ALT1_WEBSITE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnPartAlt1ʸᴰ<?> boon;

View file

@ -12,8 +12,8 @@ import love.distributedrebirth.bassboon.death.spider.BãßBȍőnSpiderWire注;
public interface BãßBȍőnPartAlt2ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt1ʸᴰ<T> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnPartAlt2ʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_ALT2_NAME = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT2_NAME");
private static final GhostKey鬼鑰匙 GHOST_ALT2_WEBSITE = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT2_WEBSITE");
private static final GhostKey鬼鑰匙 GHOST_ALT2_NAME = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_ALT2_WEBSITE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnPartAlt2ʸᴰ<?> boon;

View file

@ -12,8 +12,8 @@ import love.distributedrebirth.bassboon.death.spider.BãßBȍőnSpiderWire注;
public interface BãßBȍőnPartAlt3ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt2ʸᴰ<T> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnPartAlt3ʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_ALT3_NAME = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT3_NAME");
private static final GhostKey鬼鑰匙 GHOST_ALT3_WEBSITE = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT4_WEBSITE");
private static final GhostKey鬼鑰匙 GHOST_ALT3_NAME = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_ALT3_WEBSITE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnPartAlt3ʸᴰ<?> boon;

View file

@ -12,8 +12,8 @@ import love.distributedrebirth.bassboon.death.spider.BãßBȍőnSpiderWire注;
public interface BãßBȍőnPartAlt4ʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends BãßBȍőnPartAlt3ʸᴰ<T> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª<BãßBȍőnPartAlt4ʸᴰ<?>> {
private static final GhostKey鬼鑰匙 GHOST_ALT4_NAME = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT4_NAME");
private static final GhostKey鬼鑰匙 GHOST_ALT4_WEBSITE = GhostKey鬼鑰匙.asciiᴺᵉʷ("ALT4_WEBSITE");
private static final GhostKey鬼鑰匙 GHOST_ALT4_NAME = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
private static final GhostKey鬼鑰匙 GHOST_ALT4_WEBSITE = GhostKey鬼鑰匙.asciiᴳʰᵒˢᵗ();
@BãßBȍőnSpiderWire注
private BãßBȍőnPartAlt4ʸᴰ<?> boon;