Changeset 49451499 for chapter07


Ignore:
Timestamp:
10/04/2006 05:38:45 PM (18 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
52207fc
Parents:
5bc82c5
Message:

Update the description of UTF-8 support in Linux-2.6.18

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7818 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/console.xml

    r5bc82c5 r49451499  
    9393        the Kbd package. The <command>console</command> bootscript will
    9494        convert an available keymap to UTF-8 on the fly if this variable is
    95         set to the encoding of the available non-UTF-8 keymap. Note, however,
    96         that dead keys (i.e., keys that don't produce a character by
    97         themselves, but put an accent onto a character procuced by the next
    98         key; there are no dead keys on the standard US keyboard) and composing
    99         (i.e., pressing Ctrl+. A E in order to produce the &AElig; character)
    100         will not work in UTF-8 mode without the special kernel patch.
    101         This variable is useful only in UTF-8 mode.</para>
    102       </listitem>
    103     </varlistentry>
    104 
    105     <varlistentry>
    106       <term>BROKEN_COMPOSE</term>
    107       <listitem>
    108         <para>Set this to <quote>0</quote> if you are going to apply the kernel patch in
    109         Chapter 8. Note that you also have to add the character set expected
    110         by composition rules in your keymap to the FONT variable after the
    111         <quote>-m</quote> switch. This variable is useful only in UTF-8 mode.</para>
     95        set to the encoding of the available non-UTF-8 keymap.</para>
    11296      </listitem>
    11397    </varlistentry>
    11498
    11599  </variablelist>
    116 
    117   <para>Support for compiling the keymap directly into the kernel has been
    118   removed because there were reports that it leads to incorrect results.</para>
    119100
    120101  <para>Some examples:</para>
     
    153134
    154135    <listitem>
    155       <para>The following is a Unicode-enabled example for Bulgarian, where a stock
    156       UTF-8 keymap exists and defines no dead keys or composition rules:</para>
     136      <para>The following is a Unicode-enabled example for Bulgarian, where a
     137      stock UTF-8 keymap exists:</para>
    157138
    158139<screen role="nodump"><userinput>cat &gt; /etc/sysconfig/console &lt;&lt; "EOF"
     
    187168
    188169    <listitem>
    189       <para>The following example illustrates keymap autoconversion from
    190       ISO-8859-15 to UTF-8 and enabling dead keys in Unicode mode:</para>
     170      <para>There is no pre-made UTF-8 Russian keyamp, therefore it has to be
     171      produced by converting the existing KOI8-R keymap as illustrated
     172      below:</para>
    191173
    192174<screen role="nodump"><userinput>cat &gt; /etc/sysconfig/console &lt;&lt; "EOF"
     
    194176
    195177UNICODE="1"
    196 KEYMAP="de-latin1"
    197 KEYMAP_CORRECTIONS="euro2"
    198 LEGACY_CHARSET="iso-8859-15"
    199 BROKEN_COMPOSE="0"
    200 FONT="LatArCyrHeb-16 -m 8859-15"
    201 
    202 # End /etc/sysconfig/console</literal>
    203 EOF</userinput></screen>
     178KEYMAP="ru_ms"
     179LEGACY_CHARSET="koi8-r"
     180FONT="LatArCyrHeb-16"
     181
     182# End /etc/sysconfig/console</literal>
     183EOF</userinput></screen>
     184    </listitem>
     185
     186    <listitem>
     187      <para>Some keymaps have dead keys (i.e., keys that don't produce a
     188      character by themselves, but put an accent on the character produced
     189      by the next key) or define composition rules (such as: <quote>press
     190      Ctrl+. A E to get &AElig;</quote> in the default keymap).
     191      Linux-&linux-version; in UTF-8 keyboard mode assumes that accented
     192      characters produced via dead keys or composing are in the Latin-1 range
     193      of Unicode, and it is impossible to change this assumption. Thus,
     194      accented characters needed for, e.g., the Czech language, can't be typed
     195      on Linux console in UTF-8 mode (but files containing these characters can
     196      be displayed correctly). The solution is either to avoid the use of
     197      UTF-8, or to install the X window system that doesn't have this
     198      limitation in its input handling.</para>
    204199    </listitem>
    205200
     
    217212  to blfs-support list -->
    218213  <note>
    219     <para>The <filename>/etc/sysconfig/console</filename> file only controls the
    220     Linux text console localization. It has nothing to do with setting the proper
    221     keyboard layout and terminal fonts in the X Window System, with ssh sessions
    222     or with a serial console.</para>
     214    <para>The <filename>/etc/sysconfig/console</filename> file only controls the    Linux text console localization. It has nothing to do with setting the
     215    proper keyboard layout and terminal fonts in the X Window System, with ssh
     216    sessions or with a serial console. In such situations, limitations mentioned
     217    in the last two list items above do not apply.</para>
    223218  </note>
    224219
Note: See TracChangeset for help on using the changeset viewer.