more ligatures with RA and their half forms

This commit is contained in:
minjaesong
2022-01-25 09:50:01 +09:00
parent 23aac0c1c1
commit 4623975858
5 changed files with 19 additions and 8 deletions

Binary file not shown.

View File

@@ -1808,7 +1808,7 @@ class TerrarumSansBitmap(
// TODO use proper version of Virama for respective scripts
private fun CodePoint.toHalfFormOrVirama(): List<CodePoint> = this.toHalfFormOrNull().let {
// println("[TerrarumSansBitmap] toHalfForm ${this.charInfo()} = ${it?.charInfo()}")
println("[TerrarumSansBitmap] toHalfForm ${this.charInfo()} = ${it?.charInfo()}")
if (it == null) listOf(this, DEVANAGARI_VIRAMA) else listOf(it)
}
@@ -1822,7 +1822,7 @@ class TerrarumSansBitmap(
}
private fun ligateIndicConsonants(c1: CodePoint, c2: CodePoint): List<CodePoint> {
// println("[TerrarumSansBitmap] Indic ligation ${c1.charInfo()} - ${c2.charInfo()}")
println("[TerrarumSansBitmap] Indic ligation ${c1.charInfo()} - ${c2.charInfo()}")
if (c2 == DEVANAGARI_RA) return toRaAppended(c1) // Devanagari @.RA
when (c1) {
0x0915 -> /* Devanagari KA */ when (c2) {
@@ -1836,6 +1836,9 @@ class TerrarumSansBitmap(
0x091F -> return listOf(0xF01A2) // GH.TT
0x0920 -> return listOf(0xF01A3) // GH.TTH
0x0922 -> return listOf(0xF01A4) // GH.DDH
0xF014F -> return listOf(0xF0172) // GH.TTR
0xF0150 -> return listOf(0xF0173) // GH.TTHR
0xF0152 -> return listOf(0xF0174) // GH.DDHR
else -> return c1.toHalfFormOrVirama() + c2
}
0x0919 -> /* Devanagari NGA */ when (c2) {
@@ -1907,12 +1910,18 @@ class TerrarumSansBitmap(
0x091F -> return listOf(0xF01A5) // P.TT
0x0920 -> return listOf(0xF01A6) // P.TTH
0x0922 -> return listOf(0xF01A7) // P.DDH
0xF014F -> return listOf(0xF0175) // P.TTR
0xF0150 -> return listOf(0xF0176) // P.TTHR
0xF0152 -> return listOf(0xF0177) // P.DDHR
else -> return c1.toHalfFormOrVirama() + c2
}
0x0937 -> /* Devanagari SSA */ when (c2) {
0x091F -> return listOf(0xF01A8) // SS.TT
0x0920 -> return listOf(0xF01AA) // SS.TTH
0x0922 -> return listOf(0xF01AB) // SS.DDH
0x0920 -> return listOf(0xF01A9) // SS.TTH
0x0922 -> return listOf(0xF01AA) // SS.DDH
0xF014F -> return listOf(0xF0178) // SS.TTR
0xF0150 -> return listOf(0xF0179) // SS.TTHR
0xF0152 -> return listOf(0xF017A) // SS.DDHR
else -> return c1.toHalfFormOrVirama() + c2
}
0x0939 -> /* Devanagari HA */ when (c2) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -8,4 +8,6 @@
शर्करा « RAsup must be above KA
अंग्रेजी
ख्य
மோநௌ « check the sanity of glyph reordering
மோநௌ « check the sanity of glyph reordering
भ्रष्ट ष्ट्रॉष्ठ्रॊष्ढ्रो प्ट्रॉप्ठ्रॊप्ढ्रो घ्ट्रॉघ्ठ्रॊघ्ढ्रो ष्ट्र्गौ ष्ठ्दॊ ष्ट्कष्ठ्कष्ढ्क
ष्ट्र्कष्ठ्र्कष्ढ्र्क प्ट्र्खप्ठ्र्खप्ढ्र्ख घ्ट्र्गघ्ठ्र्गघ्ढ्र्ग

Binary file not shown.