[PATCH] hd44780-charmap.h koi8-r charmap fix

Yura Scheglyuk <[email protected]>
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
		Hi!

I fixed koi8-r charmap for hd44780. I removed pseudo-graphics symbols 
because it's rarely used and remapping symbols like HEART and so on.

Another patch for docs/lcdproc-user/drivers/imon.docbook - I made typo 
when posted first patch for imon charmap support, sorry. Anyway I update 
imon.dockbook to sync with current supported charmaps.

-- 
Best regards, Yura Scheglyuk.

_______________________________________________
LCDproc mailing list
[email protected]
http://lists.omnipotent.net/mailman/listinfo/lcdproc
hd44780-charmap.h.patch (text/plain, 2 KB)
---  server/drivers/hd44780-charmap.h.orig	2011-02-11 05:07:04.000000000 +0600
+++  server/drivers/hd44780-charmap.h	2011-03-22 16:46:33.002900164 +0600
@@ -168,7 +168,6 @@
         248, 249, 250, 251, 252, 253, 254, 255
 };
 
-
 /*
  * Electronic Assembly's KS0073 based LCDs table
  * http://www.lcd-module.de/eng/pdf/doma/dip204-4e.pdf
@@ -284,7 +283,7 @@
  * Table for HD44780 controller with ROM mask supporting
  * the european charset (ROM code A02).
  *
- * Russian KOI8-R codepage as input, comments in KOI8-R.
+ * Russian KOI8-R codepage as input
  */
 const unsigned char HD44780_KOI8R_charmap[] = {
         /* #0 */
@@ -308,15 +307,15 @@
         112, 113, 114, 115, 116, 117, 118, 119,
         120, 121, 122, 123, 124, 125, 126, 127,
         /* #128 */
-         45, 124,  43,  43,  43,  43,  43,  43,
-         43,  43,  43,  32,  32,  32,  32,  32,
-         32,  32,  32,  32, 183, 183,  32, 126,
-         28,  29,  32,  32, 176, 178, 183, 247,
+         45, 124,  43,  43,  43,  43,  43,  43,       /* ─ │ ┌ ┐ └ ┘ ├ ┤ */
+         43,  43,  43,  32,  32,  32,  32,  32,       /* ┬ ┴ ┼ ▀ ▄ █ ▌ ▐ */
+        144, 145, 146, 147, 148, 149, 150, 126,       /*               ≈ */
+         28,  29, 154, 155, 176, 157, 183, 247,       /* ≤ ≥     °   · ÷ */
         /* #160 */
-         45, 124,  43, 203,  43,  43,  43,  43,       /*       ё         */
-         43,  43,  43,  43,  43,  43,  43,  43,
-         43,  43,  43, 203,  43,  43,  43,  43,       /*       Ё         */
-         43,  43,  43,  43,  43,  43,  43, 169,
+        160, 161, 162, 203, 164, 165, 166, 167,       /*       ё         */
+        168, 169, 170, 171, 172, 173, 174, 175,
+        176, 177, 178, 203, 180, 181, 182, 183,       /*       Ё         */
+        184, 185, 186, 187, 188, 189, 190, 169,       /*               © */
         /* #192 */
         172,  65, 128, 137, 129,  69, 216, 146,       /* ю а б ц д е ф г */
          88, 132, 133,  75, 134,  77,  72,  79,       /* х и й к л м н о */
docs-lcdproc-user-driversv-imon.docbook.patch (text/plain, 2.3 KB)
--- docs/lcdproc-user/drivers/imon.docbook.orig	2011-01-18 05:16:04.000000000 +0600
+++ docs/lcdproc-user/drivers/imon.docbook	2011-03-22 17:49:04.638493864 +0600
@@ -77,6 +77,54 @@
     when the kernel module (<link linkend="imon-kernelmodules">see above</link>) is loaded.
   </para></listitem>
 </varlistentry>
+# [default: none; legal: none, hd44780_euro, upd16314, hd44780_koi8_r]
+
+<varlistentry>
+  <term>
+    <property>CharMap</property> =
+    {
+      <emphasis><parameter><literal>hd44780_euro</literal></parameter></emphasis> |
+      <parameter><literal>hd44780_koi8_r</literal></parameter> |
+      <parameter><literal>upd16314</literal></parameter> |
+      <parameter><literal>none</literal></parameter>
+    }
+  </term>
+  <listitem><para>
+      Set the character mapping depending on the display you have:
+      <itemizedlist>
+        <listitem><para>
+          The default, <literal>hd44780_euro</literal> is for displays with 
+          a ROM mask supporting the european charset (ROM code A02).
+        </para></listitem>
+        <listitem><para>
+          <literal>hd44780_koi8_r</literal> maps input from a client in
+          Russian KOI8-R to displays with a ROM mask supporting the european
+          charset (ROM code A02).
+        </para></listitem>
+        <listitem><para>
+          <literal>upd16314</literal> is for displays with a Nec uPD16314
+          vacuum fluorescent display (VFD) controller with ROM code 002
+          character set. If your display has ROM code 001 character set you
+          may use the <literal>hd44780_euro</literal> charmap instead.
+        </para></listitem>
+        <listitem><para>
+          The <literal>none</literal> charmap does not translate any characters.
+          It displays the characters the display controllers actually has
+          stored in its CGROM for that position instead. This setting is
+          intended for debugging purpose.
+        </para></listitem>
+      </itemizedlist>
+      You only need to set this parameter if you have a non-standard charmap.
+
+      <tip>
+        <para>
+        See <filename>server/drivers/hd44780-charset.h</filename>
+        in <package>LCDproc</package>'s source directory for the actual
+        mappings.
+        </para>
+      </tip>
+  </para></listitem>
+</varlistentry>
 </variablelist>
 
 </sect3>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.