|
Karsten Hopp |
fb04e6 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
fb04e6 |
Subject: Patch 7.4.913
|
|
Karsten Hopp |
fb04e6 |
Fcc: outbox
|
|
Karsten Hopp |
fb04e6 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
fb04e6 |
Mime-Version: 1.0
|
|
Karsten Hopp |
fb04e6 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
fb04e6 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Patch 7.4.913
|
|
Karsten Hopp |
fb04e6 |
Problem: No utf-8 support for the hangul input feature.
|
|
Karsten Hopp |
fb04e6 |
Solution: Add utf-8 support. (Namsh)
|
|
Karsten Hopp |
fb04e6 |
Files: src/gui.c, src/hangulin.c, src/proto/hangulin.pro, src/screen.c,
|
|
Karsten Hopp |
fb04e6 |
src/ui.c, runtime/doc/hangulin.txt, src/feature.h
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/gui.c 2015-08-11 19:13:55.138175689 +0200
|
|
Karsten Hopp |
fb04e6 |
--- src/gui.c 2015-11-10 14:20:22.653009478 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 1223,1230 ****
|
|
Karsten Hopp |
fb04e6 |
gui.highlight_mask = (cattr | attr);
|
|
Karsten Hopp |
fb04e6 |
#ifdef FEAT_HANGULIN
|
|
Karsten Hopp |
fb04e6 |
if (composing_hangul)
|
|
Karsten Hopp |
fb04e6 |
! (void)gui_outstr_nowrap(composing_hangul_buffer, 2,
|
|
Karsten Hopp |
fb04e6 |
! GUI_MON_IS_CURSOR | GUI_MON_NOCLEAR, cfg, cbg, 0);
|
|
Karsten Hopp |
fb04e6 |
else
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
(void)gui_screenchar(LineOffset[gui.row] + gui.col,
|
|
Karsten Hopp |
fb04e6 |
--- 1223,1241 ----
|
|
Karsten Hopp |
fb04e6 |
gui.highlight_mask = (cattr | attr);
|
|
Karsten Hopp |
fb04e6 |
#ifdef FEAT_HANGULIN
|
|
Karsten Hopp |
fb04e6 |
if (composing_hangul)
|
|
Karsten Hopp |
fb04e6 |
! {
|
|
Karsten Hopp |
fb04e6 |
! char_u *comp_buf;
|
|
Karsten Hopp |
fb04e6 |
! int comp_len;
|
|
Karsten Hopp |
fb04e6 |
!
|
|
Karsten Hopp |
fb04e6 |
! comp_buf = hangul_composing_buffer_get(&comp_len);
|
|
Karsten Hopp |
fb04e6 |
! if (comp_buf)
|
|
Karsten Hopp |
fb04e6 |
! {
|
|
Karsten Hopp |
fb04e6 |
! (void)gui_outstr_nowrap(comp_buf, comp_len,
|
|
Karsten Hopp |
fb04e6 |
! GUI_MON_IS_CURSOR | GUI_MON_NOCLEAR,
|
|
Karsten Hopp |
fb04e6 |
! cfg, cbg, 0);
|
|
Karsten Hopp |
fb04e6 |
! vim_free(comp_buf);
|
|
Karsten Hopp |
fb04e6 |
! }
|
|
Karsten Hopp |
fb04e6 |
! }
|
|
Karsten Hopp |
fb04e6 |
else
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
(void)gui_screenchar(LineOffset[gui.row] + gui.col,
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 2572,2580 ****
|
|
Karsten Hopp |
fb04e6 |
#ifdef FEAT_HANGULIN
|
|
Karsten Hopp |
fb04e6 |
if (composing_hangul
|
|
Karsten Hopp |
fb04e6 |
&& gui.col == gui.cursor_col && gui.row == gui.cursor_row)
|
|
Karsten Hopp |
fb04e6 |
! (void)gui_outstr_nowrap(composing_hangul_buffer, 2,
|
|
Karsten Hopp |
fb04e6 |
! GUI_MON_IS_CURSOR | GUI_MON_NOCLEAR,
|
|
Karsten Hopp |
fb04e6 |
! gui.norm_pixel, gui.back_pixel, 0);
|
|
Karsten Hopp |
fb04e6 |
else
|
|
Karsten Hopp |
fb04e6 |
{
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
--- 2583,2601 ----
|
|
Karsten Hopp |
fb04e6 |
#ifdef FEAT_HANGULIN
|
|
Karsten Hopp |
fb04e6 |
if (composing_hangul
|
|
Karsten Hopp |
fb04e6 |
&& gui.col == gui.cursor_col && gui.row == gui.cursor_row)
|
|
Karsten Hopp |
fb04e6 |
! {
|
|
Karsten Hopp |
fb04e6 |
! char_u *comp_buf;
|
|
Karsten Hopp |
fb04e6 |
! int comp_len;
|
|
Karsten Hopp |
fb04e6 |
!
|
|
Karsten Hopp |
fb04e6 |
! comp_buf = hangul_composing_buffer_get(&comp_len);
|
|
Karsten Hopp |
fb04e6 |
! if (comp_buf)
|
|
Karsten Hopp |
fb04e6 |
! {
|
|
Karsten Hopp |
fb04e6 |
! (void)gui_outstr_nowrap(comp_buf, comp_len,
|
|
Karsten Hopp |
fb04e6 |
! GUI_MON_IS_CURSOR | GUI_MON_NOCLEAR,
|
|
Karsten Hopp |
fb04e6 |
! gui.norm_pixel, gui.back_pixel, 0);
|
|
Karsten Hopp |
fb04e6 |
! vim_free(comp_buf);
|
|
Karsten Hopp |
fb04e6 |
! }
|
|
Karsten Hopp |
fb04e6 |
! }
|
|
Karsten Hopp |
fb04e6 |
else
|
|
Karsten Hopp |
fb04e6 |
{
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/hangulin.c 2015-07-21 17:53:11.577527989 +0200
|
|
Karsten Hopp |
fb04e6 |
--- src/hangulin.c 2015-11-10 14:20:22.653009478 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 1619,1621 ****
|
|
Karsten Hopp |
fb04e6 |
--- 1619,1667 ----
|
|
Karsten Hopp |
fb04e6 |
*des++ = johab_lcon_to_wan[lv];
|
|
Karsten Hopp |
fb04e6 |
return 8;
|
|
Karsten Hopp |
fb04e6 |
}
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ char_u *
|
|
Karsten Hopp |
fb04e6 |
+ hangul_string_convert(buf, p_len)
|
|
Karsten Hopp |
fb04e6 |
+ char_u *buf;
|
|
Karsten Hopp |
fb04e6 |
+ int *p_len;
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ char_u *tmpbuf = NULL;
|
|
Karsten Hopp |
fb04e6 |
+ vimconv_T vc;
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ if (enc_utf8)
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ vc.vc_type = CONV_NONE;
|
|
Karsten Hopp |
fb04e6 |
+ if (convert_setup(&vc, (char_u *)"euc-kr", p_enc) == OK)
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ tmpbuf = string_convert(&vc, buf, p_len);
|
|
Karsten Hopp |
fb04e6 |
+ convert_setup(&vc, NULL, NULL);
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ return tmpbuf;
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ char_u *
|
|
Karsten Hopp |
fb04e6 |
+ hangul_composing_buffer_get(p_len)
|
|
Karsten Hopp |
fb04e6 |
+ int *p_len;
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ char_u *tmpbuf = NULL;
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ if (composing_hangul)
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ int len = 2;
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ tmpbuf = hangul_string_convert(composing_hangul_buffer, &len;;
|
|
Karsten Hopp |
fb04e6 |
+ if (tmpbuf != NULL)
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ *p_len = len;
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
+ else
|
|
Karsten Hopp |
fb04e6 |
+ {
|
|
Karsten Hopp |
fb04e6 |
+ tmpbuf = vim_strnsave(composing_hangul_buffer, 2);
|
|
Karsten Hopp |
fb04e6 |
+ *p_len = 2;
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ return tmpbuf;
|
|
Karsten Hopp |
fb04e6 |
+ }
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/proto/hangulin.pro 2013-08-10 13:37:14.000000000 +0200
|
|
Karsten Hopp |
fb04e6 |
--- src/proto/hangulin.pro 2015-11-10 14:20:22.653009478 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 6,9 ****
|
|
Karsten Hopp |
fb04e6 |
--- 6,11 ----
|
|
Karsten Hopp |
fb04e6 |
void hangul_keyboard_set __ARGS((void));
|
|
Karsten Hopp |
fb04e6 |
int hangul_input_process __ARGS((char_u *s, int len));
|
|
Karsten Hopp |
fb04e6 |
void hangul_input_clear __ARGS((void));
|
|
Karsten Hopp |
fb04e6 |
+ char_u *hangul_string_convert __ARGS((char_u *buf, int *p_len));
|
|
Karsten Hopp |
fb04e6 |
+ char_u *hangul_composing_buffer_get __ARGS((int *p_len));
|
|
Karsten Hopp |
fb04e6 |
/* vim: set ft=c : */
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/screen.c 2015-08-11 18:52:58.077121515 +0200
|
|
Karsten Hopp |
fb04e6 |
--- src/screen.c 2015-11-10 14:20:22.657009438 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 10047,10053 ****
|
|
Karsten Hopp |
fb04e6 |
if (gui.in_use)
|
|
Karsten Hopp |
fb04e6 |
{
|
|
Karsten Hopp |
fb04e6 |
if (hangul_input_state_get())
|
|
Karsten Hopp |
fb04e6 |
! MSG_PUTS_ATTR(" \307\321\261\333", attr); /* HANGUL */
|
|
Karsten Hopp |
fb04e6 |
}
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
#ifdef FEAT_INS_EXPAND
|
|
Karsten Hopp |
fb04e6 |
--- 10047,10059 ----
|
|
Karsten Hopp |
fb04e6 |
if (gui.in_use)
|
|
Karsten Hopp |
fb04e6 |
{
|
|
Karsten Hopp |
fb04e6 |
if (hangul_input_state_get())
|
|
Karsten Hopp |
fb04e6 |
! {
|
|
Karsten Hopp |
fb04e6 |
! /* HANGUL */
|
|
Karsten Hopp |
fb04e6 |
! if (enc_utf8)
|
|
Karsten Hopp |
fb04e6 |
! MSG_PUTS_ATTR(" \355\225\234\352\270\200", attr);
|
|
Karsten Hopp |
fb04e6 |
! else
|
|
Karsten Hopp |
fb04e6 |
! MSG_PUTS_ATTR(" \307\321\261\333", attr);
|
|
Karsten Hopp |
fb04e6 |
! }
|
|
Karsten Hopp |
fb04e6 |
}
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
#ifdef FEAT_INS_EXPAND
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/ui.c 2015-09-01 20:31:16.311776122 +0200
|
|
Karsten Hopp |
fb04e6 |
--- src/ui.c 2015-11-10 14:20:22.657009438 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 1723,1730 ****
|
|
Karsten Hopp |
fb04e6 |
--- 1723,1739 ----
|
|
Karsten Hopp |
fb04e6 |
char_u *s;
|
|
Karsten Hopp |
fb04e6 |
int len;
|
|
Karsten Hopp |
fb04e6 |
{
|
|
Karsten Hopp |
fb04e6 |
+ char_u *tmpbuf;
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ tmpbuf = hangul_string_convert(s, &len;;
|
|
Karsten Hopp |
fb04e6 |
+ if (tmpbuf != NULL)
|
|
Karsten Hopp |
fb04e6 |
+ s = tmpbuf;
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
while (len--)
|
|
Karsten Hopp |
fb04e6 |
inbuf[inbufcount++] = *s++;
|
|
Karsten Hopp |
fb04e6 |
+
|
|
Karsten Hopp |
fb04e6 |
+ if (tmpbuf != NULL)
|
|
Karsten Hopp |
fb04e6 |
+ vim_free(tmpbuf);
|
|
Karsten Hopp |
fb04e6 |
}
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/runtime/doc/hangulin.txt 2013-08-10 13:24:54.000000000 +0200
|
|
Karsten Hopp |
fb04e6 |
--- runtime/doc/hangulin.txt 2015-11-10 14:26:20.313417262 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 1,11 ****
|
|
Karsten Hopp |
fb04e6 |
! *hangulin.txt* For Vim version 7.4. Last change: 2009 Jun 24
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
- NOTE: The |+hangul_input| feature is scheduled to be removed. If you want to
|
|
Karsten Hopp |
fb04e6 |
- keep it, please send a message to the Vim user maillist.
|
|
Karsten Hopp |
fb04e6 |
-
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Introduction *hangul*
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
--- 1,8 ----
|
|
Karsten Hopp |
fb04e6 |
! *hangulin.txt* For Vim version 7.4. Last change: 2015 Nov 10
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Introduction *hangul*
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 17,23 ****
|
|
Karsten Hopp |
fb04e6 |
-------
|
|
Karsten Hopp |
fb04e6 |
Next is a basic option. You can add any other configure option. >
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! ./configure --with-x --enable-multibyte --enable-fontset --enable-hangulinput
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
And you should check feature.h. If |+hangul_input| feature is enabled
|
|
Karsten Hopp |
fb04e6 |
by configure, you can select more options such as keyboard type, 2 bulsik
|
|
Karsten Hopp |
fb04e6 |
--- 14,21 ----
|
|
Karsten Hopp |
fb04e6 |
-------
|
|
Karsten Hopp |
fb04e6 |
Next is a basic option. You can add any other configure option. >
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! ./configure --with-x --enable-multibyte --enable-hangulinput \
|
|
Karsten Hopp |
fb04e6 |
! --disable-xim
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
And you should check feature.h. If |+hangul_input| feature is enabled
|
|
Karsten Hopp |
fb04e6 |
by configure, you can select more options such as keyboard type, 2 bulsik
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 26,43 ****
|
|
Karsten Hopp |
fb04e6 |
#define HANGUL_DEFAULT_KEYBOARD 2
|
|
Karsten Hopp |
fb04e6 |
#define ESC_CHG_TO_ENG_MODE
|
|
Karsten Hopp |
fb04e6 |
/* #define X_LOCALE */
|
|
Karsten Hopp |
fb04e6 |
- /* #define SLOW_XSERVER */
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Environment variables
|
|
Karsten Hopp |
fb04e6 |
---------------------
|
|
Karsten Hopp |
fb04e6 |
! You should set LANG variable to Korean locale such as ko or ko_KR.euc.
|
|
Karsten Hopp |
fb04e6 |
If you set LC_ALL variable, it should be set to Korean locale also.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
VIM resource
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
! You should add nexts to your global vimrc ($HOME/.vimrc). >
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! :set fileencoding=korea
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Keyboard
|
|
Karsten Hopp |
fb04e6 |
--------
|
|
Karsten Hopp |
fb04e6 |
--- 24,44 ----
|
|
Karsten Hopp |
fb04e6 |
#define HANGUL_DEFAULT_KEYBOARD 2
|
|
Karsten Hopp |
fb04e6 |
#define ESC_CHG_TO_ENG_MODE
|
|
Karsten Hopp |
fb04e6 |
/* #define X_LOCALE */
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Environment variables
|
|
Karsten Hopp |
fb04e6 |
---------------------
|
|
Karsten Hopp |
fb04e6 |
! You should set LANG variable to Korean locale such as ko, ko_KR.eucKR
|
|
Karsten Hopp |
fb04e6 |
! or ko_KR.UTF-8.
|
|
Karsten Hopp |
fb04e6 |
If you set LC_ALL variable, it should be set to Korean locale also.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
VIM resource
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
! You may want to set 'encoding' and 'fileencodings'.
|
|
Karsten Hopp |
fb04e6 |
! Next are examples:
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! :set encoding=euc-kr
|
|
Karsten Hopp |
fb04e6 |
! :set encoding=utf-8
|
|
Karsten Hopp |
fb04e6 |
! :set fileencodings=ucs-bom,utf-8,cp949,euc-kr,latin1
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Keyboard
|
|
Karsten Hopp |
fb04e6 |
--------
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 52,59 ****
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Hangul Fonts
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
! You can set text font using $HOME/.Xdefaults or in your gvimrc file.
|
|
Karsten Hopp |
fb04e6 |
! But to use Hangul, you should set 'guifontset' in your vimrc.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
$HOME/.Xdefaults: >
|
|
Karsten Hopp |
fb04e6 |
Vim.font: english_font
|
|
Karsten Hopp |
fb04e6 |
--- 53,68 ----
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Hangul Fonts
|
|
Karsten Hopp |
fb04e6 |
------------
|
|
Karsten Hopp |
fb04e6 |
! If you use GTK version of GVIM, you should set 'guifont' and 'guifontwide'.
|
|
Karsten Hopp |
fb04e6 |
! For example:
|
|
Karsten Hopp |
fb04e6 |
! set guifont=Courier\ 12
|
|
Karsten Hopp |
fb04e6 |
! set guifontwide=NanumGothicCoding\ 12
|
|
Karsten Hopp |
fb04e6 |
!
|
|
Karsten Hopp |
fb04e6 |
! If you use Motif or Athena version of GVIM, you should set 'guifontset' in
|
|
Karsten Hopp |
fb04e6 |
! your vimrc. You can set fontset in the .Xdefaults file.
|
|
Karsten Hopp |
fb04e6 |
!
|
|
Karsten Hopp |
fb04e6 |
! $HOME/.gvimrc: >
|
|
Karsten Hopp |
fb04e6 |
! set guifontset=english_font,hangul_font
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
$HOME/.Xdefaults: >
|
|
Karsten Hopp |
fb04e6 |
Vim.font: english_font
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 66,105 ****
|
|
Karsten Hopp |
fb04e6 |
*international: True
|
|
Karsten Hopp |
fb04e6 |
Vim*fontList: english_font;hangul_font:
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
- $HOME/.gvimrc: >
|
|
Karsten Hopp |
fb04e6 |
- set guifontset=english_font,hangul_font
|
|
Karsten Hopp |
fb04e6 |
-
|
|
Karsten Hopp |
fb04e6 |
attention! the , (comma) or ; (semicolon)
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
And there should be no ':set guifont'. If it exists, then Gvim ignores
|
|
Karsten Hopp |
fb04e6 |
':set guifontset'. It means VIM runs without fontset supporting.
|
|
Karsten Hopp |
fb04e6 |
So, you can see only English. Hangul does not be correctly displayed.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! After 'fontset' feature is enabled, VIM does not allow using 'font'.
|
|
Karsten Hopp |
fb04e6 |
For example, if you use >
|
|
Karsten Hopp |
fb04e6 |
:set guifontset=eng_font,your_font
|
|
Karsten Hopp |
fb04e6 |
in your .gvimrc, then you should do for syntax >
|
|
Karsten Hopp |
fb04e6 |
:hi Comment guifg=Cyan font=another_eng_font,another_your_font
|
|
Karsten Hopp |
fb04e6 |
If you just do >
|
|
Karsten Hopp |
fb04e6 |
:hi Comment font=another_eng_font
|
|
Karsten Hopp |
fb04e6 |
! then you can see a GOOD error message. Be careful!
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
hangul_font width should be twice than english_font width.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Unsupported Feature
|
|
Karsten Hopp |
fb04e6 |
-------------------
|
|
Karsten Hopp |
fb04e6 |
! Johab font not yet supported. And I don't have any plan.
|
|
Karsten Hopp |
fb04e6 |
! If you really want to use johab font, you can use the
|
|
Karsten Hopp |
fb04e6 |
! hanguldraw.c in gau package.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! Hanja input not yet supported. And I don't have any plan.
|
|
Karsten Hopp |
fb04e6 |
! If you really want to input hanja, just use VIM with hanterm.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Bug or Comment
|
|
Karsten Hopp |
fb04e6 |
--------------
|
|
Karsten Hopp |
fb04e6 |
Send comments, patches and suggestions to:
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
- Chi-Deok Hwang <hwang@mizi.co.kr>
|
|
Karsten Hopp |
fb04e6 |
SungHyun Nam <goweol@gmail.com>
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
vim:tw=78:ts=8:ft=help:norl:
|
|
Karsten Hopp |
fb04e6 |
--- 75,112 ----
|
|
Karsten Hopp |
fb04e6 |
*international: True
|
|
Karsten Hopp |
fb04e6 |
Vim*fontList: english_font;hangul_font:
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
attention! the , (comma) or ; (semicolon)
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
And there should be no ':set guifont'. If it exists, then Gvim ignores
|
|
Karsten Hopp |
fb04e6 |
':set guifontset'. It means VIM runs without fontset supporting.
|
|
Karsten Hopp |
fb04e6 |
So, you can see only English. Hangul does not be correctly displayed.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! After 'fontset' feature is enabled, VIM does not allow using english
|
|
Karsten Hopp |
fb04e6 |
! font only in 'font' setting for syntax.
|
|
Karsten Hopp |
fb04e6 |
For example, if you use >
|
|
Karsten Hopp |
fb04e6 |
:set guifontset=eng_font,your_font
|
|
Karsten Hopp |
fb04e6 |
in your .gvimrc, then you should do for syntax >
|
|
Karsten Hopp |
fb04e6 |
:hi Comment guifg=Cyan font=another_eng_font,another_your_font
|
|
Karsten Hopp |
fb04e6 |
If you just do >
|
|
Karsten Hopp |
fb04e6 |
:hi Comment font=another_eng_font
|
|
Karsten Hopp |
fb04e6 |
! then you can see a error message. Be careful!
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
hangul_font width should be twice than english_font width.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Unsupported Feature
|
|
Karsten Hopp |
fb04e6 |
-------------------
|
|
Karsten Hopp |
fb04e6 |
! We don't support Johab font.
|
|
Karsten Hopp |
fb04e6 |
! We don't support Hanja input.
|
|
Karsten Hopp |
fb04e6 |
! And We don't have any plan to support them.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
! If you really need such features, you can use console version of VIM with a
|
|
Karsten Hopp |
fb04e6 |
! capable terminal emulator.
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
Bug or Comment
|
|
Karsten Hopp |
fb04e6 |
--------------
|
|
Karsten Hopp |
fb04e6 |
Send comments, patches and suggestions to:
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
SungHyun Nam <goweol@gmail.com>
|
|
Karsten Hopp |
fb04e6 |
+ Chi-Deok Hwang <...>
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
vim:tw=78:ts=8:ft=help:norl:
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/feature.h 2014-11-30 13:34:16.893626683 +0100
|
|
Karsten Hopp |
fb04e6 |
--- src/feature.h 2015-11-10 14:30:08.087134574 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 677,685 ****
|
|
Karsten Hopp |
fb04e6 |
# define ESC_CHG_TO_ENG_MODE /* if defined, when ESC pressed,
|
|
Karsten Hopp |
fb04e6 |
* turn to english mode
|
|
Karsten Hopp |
fb04e6 |
*/
|
|
Karsten Hopp |
fb04e6 |
- # if !defined(FEAT_XFONTSET) && defined(HAVE_X11) && !defined(FEAT_GUI_GTK)
|
|
Karsten Hopp |
fb04e6 |
- # define FEAT_XFONTSET /* Hangul input requires xfontset */
|
|
Karsten Hopp |
fb04e6 |
- # endif
|
|
Karsten Hopp |
fb04e6 |
# if defined(FEAT_XIM) && !defined(LINT)
|
|
Karsten Hopp |
fb04e6 |
Error: You should select only ONE of XIM and HANGUL INPUT
|
|
Karsten Hopp |
fb04e6 |
# endif
|
|
Karsten Hopp |
fb04e6 |
--- 677,682 ----
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 687,693 ****
|
|
Karsten Hopp |
fb04e6 |
#if defined(FEAT_HANGULIN) || defined(FEAT_XIM)
|
|
Karsten Hopp |
fb04e6 |
/* # define X_LOCALE */ /* for OS with incomplete locale
|
|
Karsten Hopp |
fb04e6 |
support, like old linux versions. */
|
|
Karsten Hopp |
fb04e6 |
- /* # define SLOW_XSERVER */ /* for extremely slow X server */
|
|
Karsten Hopp |
fb04e6 |
#endif
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
/*
|
|
Karsten Hopp |
fb04e6 |
--- 684,689 ----
|
|
Karsten Hopp |
fb04e6 |
*** ../vim-7.4.912/src/version.c 2015-11-10 14:06:48.765187078 +0100
|
|
Karsten Hopp |
fb04e6 |
--- src/version.c 2015-11-10 14:21:28.556347509 +0100
|
|
Karsten Hopp |
fb04e6 |
***************
|
|
Karsten Hopp |
fb04e6 |
*** 743,744 ****
|
|
Karsten Hopp |
fb04e6 |
--- 743,746 ----
|
|
Karsten Hopp |
fb04e6 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
fb04e6 |
+ /**/
|
|
Karsten Hopp |
fb04e6 |
+ 913,
|
|
Karsten Hopp |
fb04e6 |
/**/
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
--
|
|
Karsten Hopp |
fb04e6 |
From "know your smileys":
|
|
Karsten Hopp |
fb04e6 |
:-D Big smile
|
|
Karsten Hopp |
fb04e6 |
|
|
Karsten Hopp |
fb04e6 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
fb04e6 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
fb04e6 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
fb04e6 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|