LCDproc and character encoding
#1
Hello folks,

I finally got my display working, and apart from some latency it works great with LCDproc and XBMC. The only issue I have is that the progress bar when playing a movie shows up something like this:
Code:
[ÿÿÿÿÿ       ]
Now I had a look at LCD.cpp and found out that there are basically two char mappings, one for the KS0073 controller and one for the rest of them. The other one is actually the mapping for the very popular HD44780 display.

I myself have a graphical display at 256x64 pixels and the text on it is rendered by LCDproc using the Freetype library and the Andale Mono truetype font. So what happens, XBMC sends the "block" character for the progress bar (0xAB), which gets remapped by the HD44780 mapping to 0xFF, which corresponds to the "ÿ" character in a normal ASCII charset and gets rendered as such on the display.

To resolve this issue, I could simply patch LCDproc and introduce another mapping that maps this char back to the correct value. However there are some things I don't understand yet:
  1. Why does XBMC have to do any remapping anyway? Isn't LCDproc supposed to know which display controller is used and apply the correct mapping?
  2. What about Unicode characters? In the font used for the rendering, all graphical gimmick symbols are >0xFF, so if XBMC's char mappings should be extended in order to solve the issue, it would have to support Unicode characters.

This issue should concern everyone with a non-alphanumeric but graphical display where font rendering from standard character maps is incorporated. Any thoughts?
Running XBMC on my HTPC, tablet, phone and pinball machine.
Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. For troubleshooting and bug reporting, make sure you read this first.
Reply


Messages In This Thread
LCDproc and character encoding - by freezy - 2009-03-05, 15:05
[No subject] - by freezy - 2009-03-16, 11:09
[No subject] - by oleksiy - 2010-09-22, 16:23
[No subject] - by xens - 2010-10-12, 11:41
[No subject] - by aexme - 2010-10-13, 10:02
[No subject] - by spiff - 2010-10-13, 10:56
[No subject] - by xens - 2010-10-14, 21:52
[No subject] - by oleksiy - 2010-10-25, 09:22
[No subject] - by basovandrey - 2010-10-25, 09:33
[No subject] - by oleksiy - 2010-10-25, 09:42
[No subject] - by basovandrey - 2010-10-25, 11:53
[No subject] - by oleksiy - 2010-10-25, 12:07
[No subject] - by basovandrey - 2010-10-25, 14:39
[No subject] - by Xenomes - 2010-10-25, 15:10
[No subject] - by magnimus - 2010-12-09, 08:09
[No subject] - by oleksiy - 2010-12-09, 12:31
[No subject] - by magnimus - 2010-12-09, 15:13
LCDproc and character enc - by Ivdioni - 2010-12-11, 18:28
[No subject] - by ichAlex - 2011-02-08, 17:51
[No subject] - by ichAlex - 2011-02-11, 22:49
[No subject] - by magnimus - 2011-06-02, 15:37
Logout Mark Read Team Forum Stats Members Help
LCDproc and character encoding1