2022-01-30 22:00:16 +01:00
|
|
|
package love.distributedrebirth.numberxd;
|
2022-01-28 11:24:54 +01:00
|
|
|
|
2022-01-29 12:39:43 +01:00
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
2022-08-23 09:28:19 +02:00
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
|
|
|
|
|
2022-08-24 17:33:39 +02:00
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-01-31 19:06:09 +01:00
|
|
|
public enum Gê̄ldGetậlÅtHebrewVowel {
|
2022-01-28 11:24:54 +01:00
|
|
|
NONE (0, (char) 0x0000),
|
|
|
|
|
VOWEL_1 (1, (char) 0x05B4),
|
|
|
|
|
VOWEL_2 (2, (char) 0x05B5),
|
|
|
|
|
VOWEL_3 (3, (char) 0x05B6),
|
2022-02-09 16:39:11 +01:00
|
|
|
|
2022-01-28 11:24:54 +01:00
|
|
|
VOWEL_4 (4, (char) 0x05B2),
|
|
|
|
|
VOWEL_5 (5, (char) 0x05C7),
|
|
|
|
|
VOWEL_6 (6, (char) 0x05B7), // 06 = PATAH
|
|
|
|
|
VOWEL_7 (7, (char) 0x05A1),
|
2022-02-09 16:39:11 +01:00
|
|
|
|
2022-01-28 11:24:54 +01:00
|
|
|
VOWEL_8 (8, (char) 0x05A2),
|
|
|
|
|
VOWEL_9 (9, (char) 0x05A3),
|
|
|
|
|
VOWEL_10 (10, (char) 0x05B9), // 10 = POINT HOLAM
|
|
|
|
|
VOWEL_16 (16, (char) 0x05B8), // 16 = QAMATS
|
2022-02-09 16:39:11 +01:00
|
|
|
|
2022-01-28 11:24:54 +01:00
|
|
|
VOWEL_22 (22, (char) 0x0598),
|
|
|
|
|
VOWEL_30 (30, (char) 0x05BB), // 30 = QUBUTS
|
|
|
|
|
VOWEL_36 (36, (char) 0x05B3), // 36 = HATAF QAMATS
|
|
|
|
|
VOWEL_42 (42, (char) 0x05B1), // 50 = HATEF SEGOL
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
public static final byte BITMASK = 0b00001111;
|
|
|
|
|
private final int fractionOffset;
|
|
|
|
|
private final char character;
|
|
|
|
|
|
2022-01-31 19:06:09 +01:00
|
|
|
private static final Map<Character, Gê̄ldGetậlÅtHebrewVowel> CHAR_MAP = Collections.unmodifiableMap(
|
2022-01-29 12:39:43 +01:00
|
|
|
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getCharacter(), v -> v)));
|
|
|
|
|
|
2022-01-31 19:06:09 +01:00
|
|
|
private Gê̄ldGetậlÅtHebrewVowel(int fractionOffset, char character) {
|
2022-01-28 11:24:54 +01:00
|
|
|
this.fractionOffset = fractionOffset;
|
|
|
|
|
this.character = character;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getFractionOffset() {
|
|
|
|
|
return fractionOffset;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public char getCharacter() {
|
|
|
|
|
return character;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-31 19:06:09 +01:00
|
|
|
public static Gê̄ldGetậlÅtHebrewVowel indexOf(int index) {
|
2022-01-28 11:24:54 +01:00
|
|
|
return values()[index & BITMASK];
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-31 19:06:09 +01:00
|
|
|
public static Gê̄ldGetậlÅtHebrewVowel valueOfCharacter(char codePoint) {
|
|
|
|
|
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlÅtHebrewVowel.NONE);
|
2022-01-28 11:24:54 +01:00
|
|
|
}
|
|
|
|
|
}
|