Hewbrew+unicode=hell
This commit is contained in:
parent
76f3da5da7
commit
ca1fe9d9d0
27 changed files with 460 additions and 115 deletions
|
|
@ -4,6 +4,9 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
|||
import love.distributedrebirth.numberxd.base2t.part.T03PartTrit;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
|
||||
import love.distributedrebirth.numberxd.unicode.BaseGlyphSet;
|
||||
import love.distributedrebirth.numberxd.unicode.SourceGlyph;
|
||||
import love.distributedrebirth.numberxd.unicode.SourceGlyphCharSet;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class Gê̄ldGetậlÅtHebrew {
|
||||
|
|
@ -40,18 +43,36 @@ public class Gê̄ldGetậlÅtHebrew {
|
|||
return new V009Tyte(value0, value1, value2);
|
||||
}
|
||||
|
||||
public double toDecimalValue(boolean firstChar) {
|
||||
public double toDecimalValue(boolean useFullValue) {
|
||||
double fraction = letter.getDecimal();
|
||||
if (firstChar) {
|
||||
return fraction; // use full value
|
||||
}
|
||||
if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(vowel)) {
|
||||
fraction = fraction * Math.pow(FRACTION_POWER, vowel.getFractionOffset());
|
||||
}
|
||||
if (useFullValue) {
|
||||
return fraction;
|
||||
}
|
||||
double result = NUMERATOR_ONE/fraction;
|
||||
return result;
|
||||
}
|
||||
|
||||
public void toFractionNotation(boolean useFullValue, StringBuilder buf, BaseGlyphSet glyphCharset, SourceGlyphCharSet sourceCharset) {
|
||||
String fraction = glyphCharset.BȍőnPrintNumber10(letter.getDecimal());
|
||||
if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(vowel)) {
|
||||
fraction = sourceCharset.print(SourceGlyph.PART_BRACKET_BEGIN)
|
||||
+ fraction
|
||||
+ sourceCharset.print(SourceGlyph.MATH_MULTIPLY)
|
||||
+ glyphCharset.BȍőnPrintNumber10(FRACTION_POWER)
|
||||
+ sourceCharset.print(SourceGlyph.MATH_POWER)
|
||||
+ glyphCharset.BȍőnPrintNumber10(vowel.getFractionOffset())
|
||||
+ sourceCharset.print(SourceGlyph.PART_BRACKET_CLOSE);
|
||||
}
|
||||
if (!useFullValue) {
|
||||
buf.append(glyphCharset.BȍőnPrintNumber10((int)NUMERATOR_ONE));
|
||||
buf.append(sourceCharset.print(SourceGlyph.MATH_DIVIDE));
|
||||
}
|
||||
buf.append(fraction);
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlÅtHebrewLetter getLetter() {
|
||||
return letter;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue