Kodi Community Forum
Bug Rendering UNICODE in XBMC/KODI Incorrectly - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Translations and Languages (https://forum.kodi.tv/forumdisplay.php?fid=90)
--- Thread: Bug Rendering UNICODE in XBMC/KODI Incorrectly (/showthread.php?tid=217099)

Pages: 1 2


RE: Rendering UNICODE in XBMC/KODI Incorrectly - Cyberrule - 2015-10-31

I know its difficult to understand. But thanks for your time mate.
Practically yes, Technically No,
I'll explain again,
For Tamil and more Indic Languages they have lot of letters. For Tamil they have 247 unique letters. they cannot make it on key board so they simplified those letters easy to type.

for example, Skin - called "தோல்" in Tamil
it only makes with 2 letters. but with computerized letter they used 4 letters.
ோ+த+ல+்
You may know that circle showing on first letter will be replace with next letter.
Image

for you reference
https://en.wikipedia.org/wiki/Tamil_script




(2015-10-25, 21:18)Razze Wrote: So the problem is that you can get it to draw with an unicode font, but that leads to the first letter switching places with the second?



RE: Rendering UNICODE in XBMC/KODI Incorrectly - geeth321 - 2015-11-18

bump


RE: Rendering UNICODE in XBMC/KODI Incorrectly - nero12 - 2016-02-17

@Cyberrule & @geeth321

Did you guys find an alternative way to accomplish ?


RE: Rendering UNICODE in XBMC/KODI Incorrectly - Cyberrule - 2021-05-05

bumping this up as its still an issue with Kodi 19
I have also created an issue https://github.com/xbmc/xbmc/issues/19692


RE: Rendering UNICODE in XBMC/KODI Incorrectly - scott967 - 2021-05-15

If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611g/arial_plus_tamil.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.


RE: Rendering UNICODE in XBMC/KODI Incorrectly - deadrat - 2021-05-22

I came to the forum with the same issue as the user @Cyberrule

I tried installing several Tamil Fonts and nothing seems to fix the issue. 

Could it have something to do with the Character Encoding? 

Under character set in Kodi settings, there is no option for me to select "Full Unicode" which is listed in this page


But I have no idea about the technicalities. :-( 

If I remember correctly, this issue with rendering Tamil and Malayalam texts used to happen with many different applications (such as XFCE, LXDE, Chromium, etc,) but that was almost a decade ago. 

I hope it gets fixed soon.


RE: Rendering UNICODE in XBMC/KODI Incorrectly - deadrat - 2021-05-22

(2021-05-15, 04:16)scott967 Wrote: If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611g/arial_plus_tamil.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
Sorry, I messed up my Font.xml file in the /usr/share/kodi/addons/skin.estuary/xml/ folder. 

I want to try using your font, but is there a way to restore or download a fresh copy of the Font.xml file ?


RE: Rendering UNICODE in XBMC/KODI Incorrectly - deadrat - 2021-05-22

(2021-05-15, 04:16)scott967 Wrote: If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611g/arial_plus_tamil.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
Sorry, I messed up my Font.xml file in the /usr/share/kodi/addons/skin.estuary/xml/ folder. 

I want to try using your font, but is there a way to restore or download a fresh copy of the Font.xml file ?


RE: Rendering UNICODE in XBMC/KODI Incorrectly - scott967 - 2021-05-22

(2021-05-22, 12:13)deadrat Wrote:
(2021-05-15, 04:16)scott967 Wrote: If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611g/arial_plus_tamil.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
Sorry, I messed up my Font.xml file in the /usr/share/kodi/addons/skin.estuary/xml/ folder. 

I want to try using your font, but is there a way to restore or download a fresh copy of the Font.xml file ?

If you have 7zip on your system (or probably any other unzip) you can open the Kodi install exe and extract font.xml.  Alternatively, you can get it off the xbmc github repo https://github.com/xbmc/xbmc/tree/Matrix/addons/skin.estuary/xml

scott s.
.


RE: Rendering UNICODE in XBMC/KODI Incorrectly - scott967 - 2021-05-23

(2021-05-22, 12:10)deadrat Wrote: I came to the forum with the same issue as the user @Cyberrule

I tried installing several Tamil Fonts and nothing seems to fix the issue. 

Could it have something to do with the Character Encoding? 

Under character set in Kodi settings, there is no option for me to select "Full Unicode" which is listed in this page


But I have no idea about the technicalities. :-( 

If I remember correctly, this issue with rendering Tamil and Malayalam texts used to happen with many different applications (such as XFCE, LXDE, Chromium, etc,) but that was almost a decade ago. 

I hope it gets fixed soon.

The technicality is that some scripts are considered "complex".  For these scripts it is insufficient to simply look up a unicode codepoint in a font file and get the glyph(s) and render them.  Complex scripts need to have a set of rules for rendering characters, and to support these rules font files need to have 2 open-type font tables, GSUB and GPOS, which the rules use to modify or substitute the glyphs pulled from the font file and then rendered.

Kodi uses the "freetype" open source library to access font files.  In the past freetype had some capability to process complex scripts, but a decision was taken by the freetype devs to remove the code for dealing with complex scripts.  That code forms the basis for a second open source project that goes by the name of HarfBuzz.  Kodi does not currently use the HarfBuzz library.  The good news is that there is development underway to add HarfBuzz to Kodi and use it to shape complex scripts.  The bad news is this is a Kodi version 20 project so if/when it gets completed it will only be available in Kodi nightly builds until such time as Kodi 20 is released.

scott s.
.


This forum uses Lukasz Tkacz MyBB addons.