浏览代码

Corrected console settings for British users

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3778 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Alexander E. Patrakov 21 年之前
父节点
当前提交
b3aee6ea72
共有 2 个文件被更改,包括 24 次插入11 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 20 11
      chapter07/console.xml

+ 4 - 0
chapter01/changelog.xml

@@ -107,6 +107,10 @@ first a summary, then a detailed log.</para>
 </itemizedlist>
 </itemizedlist>
 </listitem>
 </listitem>
 
 
+<listitem><para>June 12, 2004 [alexander]: British people speak English but
+need loadkeys and setfont (reported by Dave Mascall on IRC). Corrected the
+text on the console page to account for this</para></listitem>
+
 <listitem><para>June 12, 2004 [alexander]: Re-added the "background" option to
 <listitem><para>June 12, 2004 [alexander]: Re-added the "background" option to
 /etc/vimrc, since it has some educational value. Put this option inside an "if"
 /etc/vimrc, since it has some educational value. Put this option inside an "if"
 statement because it applies to some, not all, terminals</para></listitem>
 statement because it applies to some, not all, terminals</para></listitem>

+ 20 - 11
chapter07/console.xml

@@ -13,9 +13,11 @@
 
 
 <para>In this section we will configure the <command>console</command>
 <para>In this section we will configure the <command>console</command>
 initscript that sets up the keyboard
 initscript that sets up the keyboard
-map and the console font. If you are a native English speaker so that you
-don't need to use any non-ASCII characters, and your keyboard is a US one,
-skip this section. Without the configuration file,
+map and the console font. If you
+don't need to use any non-ASCII characters
+(British pound and Euro character are not ASCII),
+and your keyboard is a US one, you can skip this section.
+Without the configuration file,
 the <command>console</command> initscript will do nothing.</para>
 the <command>console</command> initscript will do nothing.</para>
 
 
 <para>The <command>console</command> script uses the
 <para>The <command>console</command> script uses the
@@ -50,8 +52,14 @@ KEYMAP="es euro"
 FONT="lat9-16 -u iso01"
 FONT="lat9-16 -u iso01"
 <userinput>EOF</userinput></screen>
 <userinput>EOF</userinput></screen>
 
 
-<para>If the KEYMAP or FONT variable is not set, the console initscript
-will not run the corresponding program.</para>
+<note><para>The FONT line above is correct only for the ISO-8859-15
+character set. If you prefer ISO-8859-1 and therefore use a pound sign
+instead of Euro, the correct FONT line is:</para>
+<screen><userinput>FONT="lat1-16"</userinput></screen></note>
+
+<para>If the KEYMAP or FONT variable is not set, the
+<command>console</command> initscript will not run the corresponding
+program.</para>
 
 
 <para>In some keymaps, the Backspace and Delete keys send characters
 <para>In some keymaps, the Backspace and Delete keys send characters
 different form ones in the default keymap built into the kernel.
 different form ones in the default keymap built into the kernel.
@@ -78,15 +86,16 @@ altgr   control alt keycode 111 = Boot
 <para>Then tell the <command>console</command> script to load this snippet
 <para>Then tell the <command>console</command> script to load this snippet
 after the main keymap:</para>
 after the main keymap:</para>
 
 
-<screen><userinput>cat &gt;&gt;/etc/sysconfig/console &lt;&lt;EOF</userinput>
+<screen><userinput>cat &gt;&gt;/etc/sysconfig/console &lt;&lt;"EOF"</userinput>
 KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"
 KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"
 <userinput>EOF</userinput></screen>
 <userinput>EOF</userinput></screen>
 
 
-<para>If back in <xref linkend="chapter-building-system"/> you decided to go
-compile your keymap directly into the kernel (later on in <xref
-linkend="chapter-bootable"/>), then strictly speaking you don't need to run the
-loadkeys program, since the kernel will set up the keymap for you,
-and thus you may omit the KEYMAP variable from the
+<para>If you decided to
+compile your keymap directly into the kernel later on in <xref
+linkend="chapter-bootable"/> instead of setting it every time from the
+<command>console</command> bootscript, then you don't need to run the
+<command>loadkeys</command> program. Since the kernel will set up the keymap,
+you can omit the KEYMAP variable from the
 <filename>/etc/sysconfig/console</filename>
 <filename>/etc/sysconfig/console</filename>
 configuration file. If you wish,
 configuration file. If you wish,
 you can still have it, this isn't going to hurt you. Keeping it could even
 you can still have it, this isn't going to hurt you. Keeping it could even