msx4atari-spec/spec/borgcube/hinari.md

1.5 KiB
Raw Permalink Blame History

Hinarī

Encoding to display 3,6,9 bit data and multiples of it, like adult 18 bit octodec to replace 8 bit hex codes.

Code Points

@TerminatorGunAmmo注(website = "https://baki.fandom.com/wiki/Hinary")
public final class T008ᖟGunHinarī implements TerminatorGun {
	private final static String VALUES = "י"+"ײ"+"ױ"+"װ"+"ר"+"ד"+"ז"+"ו";
	//Hinarī(ヒナリー) is octal hebrew binary
	public void kanonSchot(StringBuilder str, int ordinal) {
		str.appendCodePoint(VALUES.codePoints().skip(ordinal).findFirst().getAsInt());
	}
}
@TerminatorGunAmmo注(website = "https://en.wikipedia.org/wiki/Hebrew_diacritics")
public final class T008ᖟGunHinarīSupplement6 implements TerminatorGun {
	private final static String VALUES = "\u05BD"+"\u05B5"+"\u05B6"+"\u05B2"+"\u05B3"+"\u05BB"+"\u05B0"+"\u05B7";
	//Hinarī + HinarīSupplement6 = 6 bit number
	public void kanonSchot(StringBuilder str, int ordinal) {
		str.appendCodePoint(VALUES.codePoints().skip(ordinal).findFirst().getAsInt());
	}
}
@TerminatorGunAmmo注(website = "https://en.wikipedia.org/wiki/Hebrew_(Unicode_block)")
public final class T008ᖟGunHinarīSupplement9 implements TerminatorGun {
	private final static String VALUES = "\u0594"+"\u0595"+"\u05A9"+"\u059F"+"\u0598"+"\u05A0"+"\u059E"+"\u059D";
	// Hinarī + HinarīSupplement6 + HinarīSupplement9 = 9 bit number
	public void kanonSchot(StringBuilder str, int ordinal) {
		str.appendCodePoint(VALUES.codePoints().skip(ordinal).findFirst().getAsInt());
	}
}

3,6,9 bit Values