diff --git a/assets/devanagari_variable.tga b/assets/devanagari_variable.tga index 09a8cdf..c8e750a 100644 --- a/assets/devanagari_variable.tga +++ b/assets/devanagari_variable.tga @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2e191f1cc83a4b0991b48daf40f5c51365875e5d65c9cf21105628fc041a7463 +oid sha256:58117e3b5b600d922970998e271ba0c7e01e4ff9620ce37b89119b044c75e01f size 409618 diff --git a/src/net/torvald/terrarumsansbitmap/gdx/TerrarumSansBitmap.kt b/src/net/torvald/terrarumsansbitmap/gdx/TerrarumSansBitmap.kt index efe9b58..140d3ff 100755 --- a/src/net/torvald/terrarumsansbitmap/gdx/TerrarumSansBitmap.kt +++ b/src/net/torvald/terrarumsansbitmap/gdx/TerrarumSansBitmap.kt @@ -1148,6 +1148,19 @@ class TerrarumSansBitmap( // END of tamil subsystem implementation // BEGIN of devanagari string replacer + // Unicode Devanagari Rendering Rule R14 + else if (c == DEVANAGARI_RA && cNext == DEVANAGARI_U) { + seq.add(DEVANAGARI_SYLL_RU); i += 1 + } + else if (c == DEVANAGARI_RA && cNext == DEVANAGARI_UU) { + seq.add(DEVANAGARI_SYLL_RUU); i += 1 + } + else if (c == DEVANAGARI_RRA && cNext == DEVANAGARI_U) { + seq.add(DEVANAGARI_SYLL_RRU); i += 1 + } + else if (c == DEVANAGARI_RRA && cNext == DEVANAGARI_UU) { + seq.add(DEVANAGARI_SYLL_RRUU); i += 1 + } // Unicode Devanagari Rendering Rule R6-R8 // (this must precede the ligaturing-machine coded on the 2nd pass, otherwise the rules below will cause undesirable effects) else if (devanagariConsonants.contains(c) && cNext == DEVANAGARI_VIRAMA && cNext2 == DEVANAGARI_RA) { @@ -1701,9 +1714,14 @@ class TerrarumSansBitmap( private val DEVANAGARI_RA = 0x930 private val DEVANAGARI_RRA = 0x931 private val DEVANAGARI_YA = 0x92F + private val DEVANAGARI_U = 0x941 + private val DEVANAGARI_UU = 0x942 private val DEVANAGARI_SYLL_RU = 0xF0100 private val DEVANAGARI_SYLL_RUU = 0xF0101 + private val DEVANAGARI_SYLL_RRU = 0xF0140 + private val DEVANAGARI_SYLL_RRUU = 0xF0141 + private val DEVANAGARI_OPEN_YA = 0xF0103 private val DEVANAGARI_RA_SUPER = 0xF0104 private val DEVANAGARI_EYELASH_RA = 0xF012A diff --git a/testing.PNG b/testing.PNG index 489d0a8..077e5cf 100755 Binary files a/testing.PNG and b/testing.PNG differ diff --git a/testtext.txt b/testtext.txt index 263372c..68902e0 100755 --- a/testtext.txt +++ b/testtext.txt @@ -1,4 +1,4 @@ फ़ॊण्ज़ीणू क्की क्कि र्क र्त्सा र्र्ल ऱ्ड क्राप् ठ्री त्र् स्त्रक्ष्य ह्णह्नह्मह्यह्लह्वह्र णनमयलव ज़्लतान छात्त्र छात्र क्ष्र ज्ञ्र -ङ्यछ्यट्यठ्यड्यढ्यद्यश्यह्य ढा \ No newline at end of file +ङ्यछ्यट्यठ्यड्यढ्यद्यश्यह्य ढा ऱुमिक्यूब \ No newline at end of file diff --git a/work_files/devanagari_variable.psd b/work_files/devanagari_variable.psd index f835f55..20e5cb8 100644 --- a/work_files/devanagari_variable.psd +++ b/work_files/devanagari_variable.psd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4fb3985238b681b895168e1da0c931d9083aff95da85017eedc28d53ecd8f136 -size 448284 +oid sha256:348299c30b81f3288924c6764cecac7b27e8b6627c768e5cb1b898155970cab9 +size 450110