Skip to content

Commit 48b0865

Browse files
committed
Update mbyte from Vim 8.0 to 8.1
1 parent dbe5ef3 commit 48b0865

File tree

2 files changed

+74
-10
lines changed

2 files changed

+74
-10
lines changed

doc/mbyte.jax

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*mbyte.txt* For Vim バージョン 8.0. Last change: 2016 Jul 21
1+
*mbyte.txt* For Vim バージョン 8.1. Last change: 2018 Jan 21
22

33
VIMリファレンスマニュアル by Bram Moolenaar et al.
44

@@ -24,8 +24,9 @@ Unicodeについても説明する。
2424
7. X11での入力 |mbyte-XIM|
2525
8. MS-Windowsでの入力 |mbyte-IME|
2626
9. キーマップを使用した入力 |mbyte-keymap|
27-
10. UTF-8を使う |mbyte-utf8|
28-
11. 主なオプション |mbyte-options|
27+
10. imactivatefunc() を使用した入力 |mbyte-func|
28+
11. UTF-8を使う |mbyte-utf8|
29+
12. 主なオプション |mbyte-options|
2930

3031
NOTE: このファイルにはUnicodeの文字が含まれている。他のエンコーディングを使用
3132
している場合は、変な文字、あるいは四角形として表示されるかもしれない。
@@ -806,6 +807,9 @@ Wnn4.2は多くのシステムで動作し、インターネットのさまざ
806807

807808
現在、GUI Vimは|OverTheSpot||OffTheSpot||Root|の3つのスタイルをサポート
808809
している。
810+
|+GUI_GTK| 機能付きでコンパイルされた場合は、GUI Vimは |OnTheSpot|
811+
|OverTheSpot| の 2 つのスタイルをサポートする。'imstyle' でスタイルを選択す
812+
ることができる。
809813

810814
*. on-the-spot *OnTheSpot*
811815
Preedit AreaとStatus Areaはアプリケーション領域にクライアントアプリケー
@@ -1215,7 +1219,35 @@ Combining forms:
12151219
ﭏ 0xfb4f Xal alef-lamed
12161220

12171221
==============================================================================
1218-
10. UTF-8を使う (Using UTF-8) *mbyte-utf8* *UTF-8* *utf-8* *utf8*
1222+
10. imactivatefunc() を使用した入力 *mbyte-func*
1223+
1224+
Vim には 'imactivatefunc' および 'imstatusfunc' オプションがある。これらは外部
1225+
コマンドやその他の方法によって Vim からインプットメソッドを有効/無効にするのに
1226+
便利である。例として、fcitx は fcitx-remote コマンドを提供する: >
1227+
1228+
set iminsert=2
1229+
set imsearch=2
1230+
set imcmdline
1231+
1232+
set imactivatefunc=ImActivate
1233+
function! ImActivate(active)
1234+
if a:active
1235+
call system('fcitx-remote -o')
1236+
else
1237+
call system('fcitx-remote -c')
1238+
endif
1239+
endfunction
1240+
1241+
set imstatusfunc=ImStatus
1242+
function! ImStatus()
1243+
return system('fcitx-remote')[0] is# '2'
1244+
endfunction
1245+
1246+
このスクリプトを使うことによって、Vim が |+xim| 付きでコンパイルされていない場
1247+
合でも XIM を有効/無効にすることができる。
1248+
1249+
==============================================================================
1250+
11. UTF-8を使う (Using UTF-8) *mbyte-utf8* *UTF-8* *utf-8* *utf8*
12191251
*Unicode* *unicode*
12201252
Unicodeは、他の文字セットをすべて含むように設計された。そのため、どんな言語の
12211253
テキストでもUnicodeを使って書くことができる(希少な言語を除く)。そして、他のエ
@@ -1361,7 +1393,7 @@ X-Windowを使っているなら、UTF-8をサポートしているインプッ
13611393

13621394

13631395
==============================================================================
1364-
11. 主なオプション (Overview of options) *mbyte-options*
1396+
12. 主なオプション (Overview of options) *mbyte-options*
13651397

13661398
これらのオプションはマルチバイトテキストのファイルの編集に関係する。詳細は
13671399
options.txtの説明を参照。

en/mbyte.txt

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*mbyte.txt* For Vim version 8.0. Last change: 2016 Jul 21
1+
*mbyte.txt* For Vim version 8.1. Last change: 2018 Jan 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -26,8 +26,9 @@ For changing the language of messages and menus see |mlang.txt|.
2626
7. Input on X11 |mbyte-XIM|
2727
8. Input on MS-Windows |mbyte-IME|
2828
9. Input with a keymap |mbyte-keymap|
29-
10. Using UTF-8 |mbyte-utf8|
30-
11. Overview of options |mbyte-options|
29+
10. Input with imactivatefunc() |mbyte-func|
30+
11. Using UTF-8 |mbyte-utf8|
31+
12. Overview of options |mbyte-options|
3132

3233
NOTE: This file contains UTF-8 characters. These may show up as strange
3334
characters or boxes when using another encoding.
@@ -832,6 +833,9 @@ Use the RPM or port for your system.
832833

833834
Currently, GUI Vim supports three styles, |OverTheSpot|, |OffTheSpot| and
834835
|Root|.
836+
When compiled with |+GUI_GTK| feature, GUI Vim supports two styles,
837+
|OnTheSpot| and |OverTheSpot|. You can select the style with the 'imstyle'
838+
option.
835839

836840
*. on-the-spot *OnTheSpot*
837841
Preedit Area and Status Area are performed by the client application in
@@ -1251,7 +1255,35 @@ Combining forms:
12511255
ﭏ 0xfb4f Xal alef-lamed
12521256

12531257
==============================================================================
1254-
10. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
1258+
10. Input with imactivatefunc() *mbyte-func*
1259+
1260+
Vim has the 'imactivatefunc' and 'imstatusfunc' options. These are useful to
1261+
activate/deactivate the input method from Vim in any way, also with an external
1262+
command. For example, fcitx provide fcitx-remote command: >
1263+
1264+
set iminsert=2
1265+
set imsearch=2
1266+
set imcmdline
1267+
1268+
set imactivatefunc=ImActivate
1269+
function! ImActivate(active)
1270+
if a:active
1271+
call system('fcitx-remote -o')
1272+
else
1273+
call system('fcitx-remote -c')
1274+
endif
1275+
endfunction
1276+
1277+
set imstatusfunc=ImStatus
1278+
function! ImStatus()
1279+
return system('fcitx-remote')[0] is# '2'
1280+
endfunction
1281+
1282+
Using this script, you can activate/deactivate XIM via Vim even when it is not
1283+
compiled with |+xim|.
1284+
1285+
==============================================================================
1286+
11. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
12551287
*Unicode* *unicode*
12561288
The Unicode character set was designed to include all characters from other
12571289
character sets. Therefore it is possible to write text in any language using
@@ -1399,7 +1431,7 @@ not everybody is able to type a composing character.
13991431

14001432

14011433
==============================================================================
1402-
11. Overview of options *mbyte-options*
1434+
12. Overview of options *mbyte-options*
14031435

14041436
These options are relevant for editing multi-byte files. Check the help in
14051437
options.txt for detailed information.

0 commit comments

Comments
 (0)