home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / howto / danish-h < prev    next >
Encoding:
Text File  |  1995-03-23  |  8.2 KB  |  341 lines

  1.   The Linux Danish/International HOWTO
  2.   Thomas Petersen, petersen@risoe.dk
  3.   v1.0,    9 March    1994
  4.  
  5.   This document    describes how to configure Linux and various Linux
  6.   applications for use with the    Danish characterset and    keyboard. It is
  7.   hoped    that Linux users from other places in Western Europe will find
  8.   this document    of use too.
  9.  
  10.   1.  Introduction
  11.  
  12.   All European users of    almost any operating system have two problems:
  13.   The first is to tell the OS that you have a non-american keyboard, and
  14.   the second is    to get the OS to display the special letters.
  15.  
  16.   Under    Linux you change the way your computer interprets the keyboard
  17.   with the commands xmodmap and    loadkeys. loadkeys will    modify the
  18.   keyboard for plain Linux while 'xmodmap' makes the modifications
  19.   necessary when the handshaking between X and Linux is    imperfect.
  20.  
  21.   To display the characters you    need to    tell your applications that you
  22.   use the ISO-8859-Latin-1 international set of    glyphs.    Mostly this is
  23.   not necessary, but a number of key applications need special
  24.   attention.
  25.  
  26.   This Mini-Howto is intended to tell Danish users how to do this, but
  27.   will hopefully be of help to many other people.
  28.  
  29.   If you continue to have troubles after reading this you should try the
  30.   German HOWTO,     the Keystroke HOWTO for Linux or the ISO 8859-1 FAQ.
  31.   They have tips for many applications.    Many of    the hints contained
  32.   herein are cribbed from there. The HOWTOs are    available from all
  33.   respectable mirrors of sunsite.unc.edu while the ISO 8859-1 FAQ is
  34.   available from ftp.vlsivie.tuwien.ac.at in /pub/8bit/FAQ-ISO-8859-1.
  35.  
  36.  
  37.   2.  Keyboard setup
  38.  
  39.  
  40.  
  41.  
  42.  
  43.   2.1.    Loading    a Danish keytable
  44.  
  45.  
  46.   Keyboard mappings are    in /usr/lib/kbd/keytables/.  Try typing    either
  47.   of these two commands    to load    one
  48.  
  49.  
  50.        /usr/bin/loadkeys /usr/lib/kbd/keytables/dk.map
  51.        /usr/bin/loadkeys /usr/lib/kbd/keytables/dk-lat1.map
  52.  
  53.  
  54.  
  55.  
  56.   The difference between the two lines is that dk-lat1.map uses    `dead'
  57.   keys while dk.map doesn't.  Dead keys    are explained in section ``Dead-
  58.   Keys''.
  59.  
  60.   You can change the keymapping    loaded at boot by editing the file
  61.   /etc/rc.d/rc.keymap.
  62.  
  63.   If this doesn't work you simply haven't installed support for
  64.   international    keyboards.
  65.  
  66.  
  67.   2.2.    Getting    the AltGr key to work under X
  68.  
  69.  
  70.   Edit the file    /etc/Xconfig (under XFree86 2.0) or /etc/X11/XF86Config
  71.   (underXFree86    3.x) and make sure the line
  72.  
  73.  
  74.      RightAlt    ModeShift
  75.  
  76.  
  77.  
  78.  
  79.   appears in the Keyboard section. Usually you can do this by uncomment-
  80.   ing an appropriate line.
  81.  
  82.  
  83.   2.3.    Dead keys and accented characters
  84.  
  85.  
  86.   Dead keys are    those who don't    type anything until you    hit another key.
  87.   Tildes and umlauts are like this by default under Microsoft Windows
  88.   and if you use the dk-lat1.map keymap    under Linux.
  89.  
  90.  
  91.   2.3.1.  Removing dead    key functionality
  92.  
  93.   Under    plain Linux type
  94.  
  95.  
  96.        loadkeys    dk.map
  97.  
  98.  
  99.  
  100.  
  101.  
  102.   2.3.2.  Invoking dead    key functionality
  103.  
  104.  
  105.   o  Invoking dead key functionality under plain Linux
  106.  
  107.  
  108.      Under plain Linux type
  109.  
  110.  
  111.        loadkeys    dk-lat1.map
  112.  
  113.  
  114.  
  115.  
  116.  
  117.   o  Invoking dead key functionality under X11R5 sessions
  118.  
  119.  
  120.      Insert the    following lines    in a file ~/.Xmodmap or    /etc/X11/Xmodmap
  121.  
  122.  
  123.        keycode 21 = acute      Dgrave_accent           bar
  124.        keycode 35 = Ddiaeresis Dcircumflex_accent      Dtilde
  125.  
  126.  
  127.  
  128.  
  129.   You can now make  the    dead keys work by typing (e.g.)     xmodmap
  130.   .Xmodmap. Using the Slackware    distribution this commando will    be auto-
  131.   matically executed next time you run X.
  132.  
  133.   o  Invoking dead key functionality under X11R6 sessions
  134.  
  135.  
  136.      Under X11R6 applications dead keys    won't work unless they were
  137.      compiled with support for unusual input methods. The only
  138.      application reported to do    so is kterm - an xterm substitute.
  139.      Eventually    the situation might improve, but as it is you can't do
  140.      much but revert to    X11R5 or hack every application    you own. Do not
  141.      attempt the method    described for X11R5.
  142.  
  143.  
  144.  
  145.  
  146.   2.4.    Making o (oslash) O (Ooblique) and the dollar sign work
  147.  
  148.  
  149.  
  150.   2.4.1.  o (oslash) and O (Ooblique)
  151.  
  152.   Find out what    keymap you load    at boot-up. You    should be able to find
  153.   out by typing    less /etc/rc.d/rc.keymap.  On my computer it is    called
  154.   /usr/lib/kbd/keytables/dk-lat1.map. Find the line for    keycode    40 in
  155.   this file and    change it from
  156.  
  157.  
  158.        keycode    40 = cent           yen
  159.  
  160.  
  161.  
  162.  
  163.   to
  164.  
  165.  
  166.        keycode    40 = oslash           Ooblique
  167.  
  168.  
  169.  
  170.  
  171.   and load the keytable    as described in    section    ``LoadKeys''.
  172.  
  173.   Note:    This bug appears to have been fixed in version 0.88 of the
  174.   international    keytable package.
  175.  
  176.  
  177.   2.4.2.  Dollar sign
  178.  
  179.   The dollar sign is accessed with Shift-4 instead of AltGr-4 by
  180.   default. You can fix this by changing    the line
  181.  
  182.  
  183.        keycode     5 = four          dollar           dollar
  184.  
  185.  
  186.  
  187.  
  188.   in the keymap    file to    e.g.
  189.  
  190.  
  191.        keycode     5 = four          asciicircum      dollar
  192.  
  193.  
  194.  
  195.  
  196.   It doesn't matter if you something else instead asciicircum if it is
  197.   just a valid symbol name.  See section ``Glyphs'' for    a list of valid
  198.   symbols.
  199.   3.  Display and application setup
  200.  
  201.  
  202.  
  203.   3.1.    International character    sets in    specific applications
  204.  
  205.   A number of applications demand special attention. This section
  206.   descibes how to set up configuration filesfor    them.
  207.  
  208.  
  209.   o  bash v.1.13+ : Put    the following in your .inputrc file
  210.  
  211.  
  212.        set meta-flag on
  213.        set convert-meta    off
  214.        set output-meta on
  215.  
  216.  
  217.  
  218.  
  219.  
  220.   o  tcsh: Put the following in    your /etc/csh.login or .tcshrc file
  221.  
  222.  
  223.        setenv LC_CTYPE ISO-8859-1
  224.        stty pass8
  225.  
  226.  
  227.  
  228.  
  229.  
  230.   o  less: Set the following environment variable
  231.  
  232.  
  233.        LESSCHARSET=latin1
  234.  
  235.  
  236.  
  237.  
  238.  
  239.   o  elm: Set the following environment    variables
  240.  
  241.  
  242.        LANG=C
  243.        LC_CTYPE=ISO-8859-1
  244.  
  245.  
  246.  
  247.  
  248.  
  249.   o  emacs: Put    the following in your .emacs or    the /usr/lib/emacs/site-
  250.      lisp/default.el file:
  251.  
  252.  
  253.        (standard-display-european t)
  254.  
  255.        (set-input-mode (car (current-input-mode))
  256.            (nth 1 (current-input-mode))
  257.            0)
  258.  
  259.  
  260.  
  261.  
  262.  
  263.   o  TeX / LaTeX: Cribbed from the ISO 8859-1 FAQ by Michael Gschwind
  264.      <mike@vlsivie.tuwien.ac.at>:
  265.      In    LaTeX 2.09, use
  266.  
  267.  
  268.        \documentstyle[isolatin]{article}
  269.  
  270.  
  271.  
  272.  
  273.   to include support for ISO latin1 characters.    In LaTeX2e, the    commands
  274.  
  275.  
  276.        \documentclass{article}
  277.        \usepackage{isolatin}
  278.  
  279.  
  280.  
  281.  
  282.   will do the job.  isolatin.sty is available from all CTAN servers and
  283.   from URL ftp://ftp.vlsivie.tuwien.ac.at/pub/8bit.
  284.  
  285.  
  286.   3.2.    What characters    you can    display    under Linux
  287.  
  288.   Type dumpkeys    -l | less at the prompt    to find    out what is readily
  289.   available. You can map them to your keyboard via the keymap files
  290.   mentioned in section ``LoadKeys''.
  291.  
  292.   X11R5    Note: The dead keys don't get the correct names    under X11R5 with
  293.   this scheme. Generally
  294.  
  295.        dead_* (under plain Linux) => D*    or D*_accent (under X11R5)
  296.  
  297.  
  298.   (i.e.    the tilde may be dead_tilde in dk-lat1.map but X11R5 expects the
  299.   dead tilde to    be called Dtilde.) This    does not apply to X11R6.
  300.  
  301.  
  302.   3.3.    Loading    the Latin-1 characer set on the    console
  303.  
  304.   Execute the following    commands under the bash    shell:
  305.  
  306.  
  307.        setfont /usr/lib/kbd/consolefonts/lat1-16.psf
  308.        mapscrn /usr/lib/kbd/consoletrans/trivial
  309.        echo -ne    '\033(K'
  310.  
  311.  
  312.  
  313.  
  314.   Note:    This only has effect under plain Linux.    Do not try it under X.
  315.  
  316.  
  317.   4.  Post-amble: Acknowledgements and Copyright
  318.  
  319.   Thanks to Peter Dalgaard, Anders Majland, the    authors    of the German
  320.   Howto    and Michael Gschwind for help with several questions.
  321.  
  322.   This Mini-Howto is copyrighted by Thomas Petersen and    distributed as
  323.   other    Linux HOWTOs under the terms described below.
  324.  
  325.   Linux    HOWTO documents    may be reproduced and distributed in whole or in
  326.   part,    in any medium physical or electronic, as long as this copyright
  327.   notice is retained on    all copies. Commercial redistribution is allowed
  328.   and encouraged; however, the author would like to be notified    of any
  329.   such distributions.
  330.  
  331.   All translations, derivative works, or aggregate works incorporating
  332.   any Linux HOWTO documents must be covered under this copyright notice.
  333.   That is, you may not produce a derivative work from a    HOWTO and impose
  334.   additional restrictions on its distribution. Exceptions to these rules
  335.   may be granted under certain conditions; please contact the Linux
  336.   HOWTO    coordinator at the address given below.
  337.  
  338.   If you have questions, please    contact    Greg Hankins, the Linux    HOWTO
  339.   coordinator, at gregh@sunsite.unc.edu. You may finger    this address for
  340.   phone    number and additional contact information.
  341.