blob: 7487e62257883797f858d942ca11f63216a88b2a [file] [log] [blame]
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001*hangulin.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
5
6Introduction *hangul*
7------------
8It is to input hangul, the Korean language, with VIM GUI version.
9If you have a XIM program, you can use another |+xim| feature.
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000010Basically, it is for anybody who has no XIM program.
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
12Compile
13-------
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000014Next is a basic option. You can add any other configure option. >
Bram Moolenaar071d4272004-06-13 20:20:40 +000015
16 ./configure --with-x --enable-multibyte --enable-fontset --enable-hangulinput
17
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000018And you should check feature.h. If |+hangul_input| feature is enabled
Bram Moolenaar071d4272004-06-13 20:20:40 +000019by configure, you can select more options such as keyboard type, 2 bulsik
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000020or 3 bulsik. You can find keywords like next in there. >
Bram Moolenaar071d4272004-06-13 20:20:40 +000021
22 #define HANGUL_DEFAULT_KEYBOARD 2
23 #define ESC_CHG_TO_ENG_MODE
24 /* #define X_LOCALE */
25 /* #define SLOW_XSERVER */
26
27Environment variables
28---------------------
29You should set LANG variable to Korean locale such as ko or ko_KR.euc.
30If you set LC_ALL variable, it should be set to Korean locale also.
31
32VIM resource
33------------
34You should add nexts to your global vimrc ($HOME/.vimrc). >
35
36 :set fileencoding=korea
37
38Keyboard
39--------
40You can change keyboard type (2 bulsik or 3 bulsik) using VIM_KEYBOARD
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000041or HANGUL_KEYBOARD_TYPE environment variables. For sh, just do (2 bulsik): >
Bram Moolenaar071d4272004-06-13 20:20:40 +000042
43 export VIM_KEYBOARD="2"
44or >
45 export HANGUL_KEYBOARD_TYPE="2"
46
47If both are set, VIM_KEYBOARD has higher priority.
48
49Hangul Fonts
50------------
51You can set text font using $HOME/.Xdefaults or $HOME/.gvimrc.
52But to use Hangul, you should set 'guifontset' in your vimrc.
53
54$HOME/.Xdefaults: >
55 Vim.font: english_font
56
57 ! Nexts are for hangul menu with Athena
58 *international: True
59 Vim*fontSet: english_font,hangul_font
60
61 ! Nexts are for hangul menu with Motif
62 *international: True
63 Vim*fontList: english_font;hangul_font:
64
65$HOME/.gvimrc: >
66 set guifontset=english_font,hangul_font
67
68attention! the , (comma) or ; (semicolon)
69
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000070And there should be no ':set guifont'. If it exists, then Gvim ignores
71':set guifontset'. It means VIM runs without fontset supporting.
72So, you can see only English. Hangul does not be correctly displayed.
Bram Moolenaar071d4272004-06-13 20:20:40 +000073
74After 'fontset' feature is enabled, VIM does not allow using 'font'.
75For example, if you use >
76 :set guifontset=eng_font,your_font
77in your .gvimrc, then you should do for syntax >
78 :hi Comment guifg=Cyan font=another_eng_font,another_your_font
79If you just do >
80 :hi Comment font=another_eng_font
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000081then you can see a GOOD error message. Be careful!
Bram Moolenaar071d4272004-06-13 20:20:40 +000082
83hangul_font width should be twice than english_font width.
84
85Unsupported Feature
86-------------------
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000087Johab font not yet supported. And I don't have any plan.
Bram Moolenaar071d4272004-06-13 20:20:40 +000088If you really want to use johab font, you can use the
89hanguldraw.c in gau package.
90
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000091Hanja input not yet supported. And I don't have any plan.
Bram Moolenaar071d4272004-06-13 20:20:40 +000092If you really want to input hanja, just use VIM with hanterm.
93
94Bug or Comment
95--------------
96Send comments, patches and suggestions to:
97
98 Chi-Deok Hwang <hwang@mizi.co.kr>
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000099 Nam SungHyun <namsh@kldp.org>
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100
101 vim:tw=78:ts=8:ft=help:norl: