

     FreeBSD


 

<nickkokkalis@yahoo.co.uk>
$FreeBSD: doc/el_GR.ISO8859-7/articles/greek-language-support/article.sgml,v
1.10 2010/03/25 11:01:26 manolis Exp $
   2006, 2007, 2008  
 FreeBSD       FreeBSD Foundation.
          
           
 .           
      FreeBSD     
 ,      : [TM]  .
         ,  
        FreeBSD,   
       Xorg.
-------------------------------------------------------------------------------

1 

     FreeBSD      
,   .    ,     
        ISO/IEC 8859-7, 
          Xorg.   
     FreeBSD    ,  
       Xorg     .
      :

*     ,      FreeBSD 
    Xorg.
*       (keymap)  
  ,        ,  
   ISO/IEC 8859-7.
*           
       .
*       (keymap)  
  ,        ,  
   ISO/IEC 8859-7.
*          FreeBSD, 
        UTF-8    ISO/IEC 8859-
  7 .

-------------------------------------------------------------------------------

2       FreeBSD

      .      
  ,        
(shell).

*         
       .
*           
  .

-------------------------------------------------------------------------------

2.1        

           
ISO/IEC 8859-7    FreeBSD    :
     .
 Giorgos Keramidas <keramida@FreeBSD.org>    
    .      
     FreeBSD      
,         .   
           
     ,      :

  # cd /usr/share/syscons/fonts
  # fetch 'http://people.freebsd.org/~keramida/files/grfixed-8x16.fnt'
  # cd /usr/share/syscons/keymaps
  # fetch 'http://people.freebsd.org/~keramida/files/keramida.el-iso.kbd'

-------------------------------------------------------------------------------

2.2      

        
  ,      /etc/rc.conf  
:

  font8x16="grfixed-8x16"
  keymap="keramida.el-iso"

   ,         
       .  FreeBSD  
        .   
     :

  % vidcontrol -f 8x16 grfixed-8x16 < /dev/ttyv0
  % kbdcontrol -l keramida.el-iso < /dev/ttyv0

           ,
    .
-------------------------------------------------------------------------------

2.3     

            
 .      FreeBSD,   
   ,     
locale,       .
   locale      
  ,         
          .
-------------------------------------------------------------------------------

2.3.1     sh(1)

       sh(1),     
.profile      :

  export LANG="el_GR.ISO8859-7"
  export LC_CTYPE="el_GR.ISO8859-7"
  export LC_COLLATE="el_GR.ISO8859-7"
  unset LC_ALL LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME

-------------------------------------------------------------------------------

2.3.2     csh(1)

       csh(1),     
.cshrc      :

  setenv LANG "C"
  setenv LC_CTYPE "el_GR.ISO8859-7"
  setenv LC_COLLATE "el_GR.ISO8859-7"
  unsetenv LC_ALL LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME

-------------------------------------------------------------------------------

2.3.3     bash

       bash,     
.bashrc      :

  export LANG="el_GR.ISO8859-7"
  export LC_CTYPE="el_GR.ISO8859-7"
  export LC_COLLATE="el_GR.ISO8859-7"
  unset LC_ALL LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME

,    bash,         
.inputrc   :

  set convert-meta Off
  set input-meta On
  set output-meta On

-------------------------------------------------------------------------------

3       Xorg

       FreeBSD  
 Xorg.       Xorg  
       Xorg    UNIX 
(..  GNU/Linux).
,      Xorg     --
  .        ,
 ______FreeBSD.
            Xorg,
        /etc/X11/xorg.conf:

  Section "InputDevice"
      Identifier "Keyboard1"
      Driver "kbd"
      Option "XkbRules" "xorg"
      Option "XkbModel" "pc105"
      Option "XkbLayout" "us,el"
      Option "XkbOptions" "grp:alt_shift_toggle"
  EndSection

   /etc/X11/xorg.conf     ,  
   .    #  
          InputDevice.

     :,     InputDevice
          /etc/X11/xorg.conf:   
            .
               
         (   Identifier
     "Keyboard1" ).

            
 .  FreeBSD  ,     Xorg
 ,      locale,  
    .
   locale      
  ,         
   Xorg       .
       .xinitrc   . 
         :

  export LANG="el_GR.ISO8859-7"
  export LC_CTYPE="el_GR.ISO8859-7"
  export LC_COLLATE="el_GR.ISO8859-7"

     ,      
 locale   .     
    .    __
_.
   ,   Xorg      process
environment      .
      Xorg    
   X11 resources.   resources , ,  
  :

  Resource:   resource

      .Xresources   .
  XTerm    ,    
        ,
      .Xresources:

  XTerm*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-7


     :     .Xresources,  
        Xorg.     
     :

       % xrdb -merge ~/.Xresources


-------------------------------------------------------------------------------

4      Xorg

  Xorg        
bitmap.      ,   
 ISO/IEC 8859-7,     ISO/IEC 10646 (Universal
Character Set).   bitmap      Xorg
        ,    
     xlsfonts(1).   ,  , 
     ISO/IEC 8859-7  
  :

  % xlsfonts | fgrep -i iso8859-7

,        
ISO/IEC 10646,         
 UTF-8,     :

  % xlsfonts | fgrep -i iso10646

       
       Ports.   x11-fonts
     :

* x11-fonts/bitstream-vera
* x11-fonts/dejavu
* x11-fonts/liberation-fonts-ttf
* x11-fonts/urwfonts-ttf
* x11-fonts/webfonts

       TrueType.    
     , bitmap ,  
       ,  
 .
         Xorg, 
 GNOME   KDE,  TrueType      
          
.        .
-------------------------------------------------------------------------------

5      .

      ISO/IEC 8859-7    
 editors/emacs      .emacs   
  :

  (setq unibyte-display-via-language-environment t)
  (if (< emacs-major-version 22)
      (set-language-environment "Greek"))
  (set-terminal-coding-system 'greek-iso-8bit)
  (set-input-mode (car (current-input-mode))
                  (nth 1 (current-input-mode))
                  0)

           editors/
vim   ,       .vimrc 
    :

  set gfs=fixedgr

          
 mutt      .muttrc   :

  set charset="greek"
  set send_charset="US-ASCII:ISO-8859-1:ISO-8859-7:UTF-8"

-------------------------------------------------------------------------------
  ,   ,     ftp://ftp.FreeBSD.org/
                               pub/FreeBSD/doc/.
          FreeBSD,     
                   <questions@FreeBSD.org>.
             ,  e-mail 
                              <doc@FreeBSD.org>.
