Hello,<br><br><br>I am trying to make my lcdproc work with some greek characters on an imon lcd . For anyone unfamiliar with it, this LCD is not working with text, but drawing on a grid of 6x8 per character. For more information please see <a href="http://codeka.com/blogs/index.php/2007/09/26/imon_lcd_patch_v0_3?blog=5">http://codeka.com/blogs/index.php/2007/09/26/imon_lcd_patch_v0_3?blog=5</a>&nbsp; <br>
Quote from the patch:<br><br>+/*<br>+ * The iMON LCD doesn&#39;t have a &quot;text mode&quot; -- everthing is pixel-based. So we need to define<br>+ * our own font, basically. This structure holds the definition of that font. The characters<br>
+ * we define here are 6x8 pixels in size, each byte in the &#39;pixels&#39; array represents one column<br>+ * of pixels. The most significant bit is the top row, the least significant bit is the bottom<br>+ * row.<br>+ */<br>
<br>Trying to produce my own greek fonts this way i took the simple example of capital O<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &#39;O&#39;, { 0x0, 0x7C, 0x82, 0x82, 0x82, 0x7C } },<br>and produced<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &#39;Θ&#39;, { 0x0, 0x7C, 0x92, 0x92, 0x92, 0x7C } },<br>
<br>Various tests have shown me that what I have done there, works. But&nbsp; there seems to be a big but: I can not include any greek letters in my LCDd.conf. <br>I have cross checked this by changing the code in pre-compile time to:<br>
<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &#39;O&#39;,  { 0x0, 0x7C, 0x92, 0x92, 0x92, 0x7C } },<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &#39;Θ&#39;, { 0x0, 0x7C, 0x92, 0x92, 0x92, 0x7C } },<br><br>so that both these characters are drawn like the letter Θ.<br><br>and added a simple goodbye message in my LCDd.conf (my simple failsafe way of testing this) that contained OOOO and ΘΘΘΘ. This resulted in only the OOOO being printed (as ΘΘΘΘ of course).<br>
I was thinking that maybe the deamon expects its conf file to be in plain english, so i wrote a small perl script that did quite the same (just in case I was missing something)<br><br>All these tests of course only confirmed what most of you already know (and my google searches had told me -but I was still hoping) : there is no way to send non-latin characters to LCDproc and get them out alive, right?<br>
<br>Is there anything I am missing?<br><br>I am not a code expert but if someone feels like giving me a hint, maybe I could take it one step further.<br><br><br>My problem is - just in case I didn&#39;t make myself clear (it happens when I overthink)- that even though I have the ability to draw the desired characters, they&nbsp; get lost in translation :) How do I efficiently feed LCDproc/myscreen with my non-static greek text ( I mean, it&#39;s not a static menu that I can once and for all transcode) withouth using&nbsp; a &quot;wrapper&quot;&nbsp; for any app that will be sending greek chars. <br>
<br>Any help will be greatly appreciated.<br><br>Also, though I should mention the note on the patch mentioned above:<br><br>The &#39;ch&#39; member is an int so theoretically, you could<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * specify UTF-32 code points as the ch. But then you&#39;d have to translate the UTF-8<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * (or whatever) input to imonlcd_string to UTF-32, which doesn&#39;t sound like much fun...<br><br>This &quot;theoretically&quot; part doesn&#39;t sound very promising,does it<br><br><br><br>Thank you very much in advance,<br>
<br><br>Dialecti<br>