annotate runtime/doc/hangulin.txt @ 9313:c0760b25f31d v7.4.1939

commit https://github.com/vim/vim/commit/28607ba2b82668503f8406bc13690d59af46deb3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 15 21:44:51 2016 +0200 patch 7.4.1939 Problem: Memory access error when reading viminfo. (Dominique Pelle) Solution: Correct index in jumplist when at the end.
author Christian Brabandt <cb@256bit.org>
date Wed, 15 Jun 2016 21:45:05 +0200
parents 17333ebd2bbd
children 9f48eab77d62
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7272
17333ebd2bbd commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Christian Brabandt <cb@256bit.org>
parents: 7208
diff changeset
1 *hangulin.txt* For Vim version 7.4. Last change: 2015 Nov 24
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
6
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 Introduction *hangul*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 ------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 It is to input hangul, the Korean language, with VIM GUI version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 If you have a XIM program, you can use another |+xim| feature.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
11 Basically, it is for anybody who has no XIM program.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 Compile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 -------
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
15 Next is a basic option. You can add any other configure option. >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
17 ./configure --with-x --enable-multibyte --enable-hangulinput \
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
18 --disable-xim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
20 And you should check feature.h. If |+hangul_input| feature is enabled
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 by configure, you can select more options such as keyboard type, 2 bulsik
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
22 or 3 bulsik. You can find keywords like next in there. >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 #define HANGUL_DEFAULT_KEYBOARD 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 #define ESC_CHG_TO_ENG_MODE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 /* #define X_LOCALE */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 Environment variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 ---------------------
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
30 You should set LANG variable to Korean locale such as ko, ko_KR.eucKR
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
31 or ko_KR.UTF-8.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 If you set LC_ALL variable, it should be set to Korean locale also.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 VIM resource
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 ------------
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
36 You may want to set 'encoding' and 'fileencodings'.
7272
17333ebd2bbd commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Christian Brabandt <cb@256bit.org>
parents: 7208
diff changeset
37 Next are examples: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
39 :set encoding=euc-kr
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
40 :set encoding=utf-8
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
41 :set fileencodings=ucs-bom,utf-8,cp949,euc-kr,latin1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 Keyboard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 --------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 You can change keyboard type (2 bulsik or 3 bulsik) using VIM_KEYBOARD
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
46 or HANGUL_KEYBOARD_TYPE environment variables. For sh, just do (2 bulsik): >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 export VIM_KEYBOARD="2"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 or >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 export HANGUL_KEYBOARD_TYPE="2"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 If both are set, VIM_KEYBOARD has higher priority.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 Hangul Fonts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 ------------
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
56 If you use GTK version of GVIM, you should set 'guifont' and 'guifontwide'.
7272
17333ebd2bbd commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Christian Brabandt <cb@256bit.org>
parents: 7208
diff changeset
57 For example: >
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
58 set guifont=Courier\ 12
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
59 set guifontwide=NanumGothicCoding\ 12
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
60
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
61 If you use Motif or Athena version of GVIM, you should set 'guifontset' in
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
62 your vimrc. You can set fontset in the .Xdefaults file.
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
63
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
64 $HOME/.gvimrc: >
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
65 set guifontset=english_font,hangul_font
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 $HOME/.Xdefaults: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 Vim.font: english_font
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 ! Nexts are for hangul menu with Athena
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 *international: True
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 Vim*fontSet: english_font,hangul_font
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 ! Nexts are for hangul menu with Motif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 *international: True
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 Vim*fontList: english_font;hangul_font:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 attention! the , (comma) or ; (semicolon)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
80 And there should be no ':set guifont'. If it exists, then Gvim ignores
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
81 ':set guifontset'. It means VIM runs without fontset supporting.
4707450c2b33 updated for version 7.0066
vimboss
parents: 12
diff changeset
82 So, you can see only English. Hangul does not be correctly displayed.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
84 After 'fontset' feature is enabled, VIM does not allow using english
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
85 font only in 'font' setting for syntax.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 For example, if you use >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 :set guifontset=eng_font,your_font
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 in your .gvimrc, then you should do for syntax >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 :hi Comment guifg=Cyan font=another_eng_font,another_your_font
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 If you just do >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 :hi Comment font=another_eng_font
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
92 then you can see a error message. Be careful!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 hangul_font width should be twice than english_font width.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 Unsupported Feature
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 -------------------
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
98 We don't support Johab font.
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
99 We don't support Hanja input.
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
100 And We don't have any plan to support them.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
102 If you really need such features, you can use console version of VIM with a
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
103 capable terminal emulator.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 Bug or Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 --------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 Send comments, patches and suggestions to:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
109 SungHyun Nam <goweol@gmail.com>
7208
2c00f6b312bf commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
110 Chi-Deok Hwang <...>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 vim:tw=78:ts=8:ft=help:norl: