Skip to content

Commit 1cf9c48

Browse files
authored
Merge pull request #2383 from h-east/update-mbyte
Update mbyte.{txt,jax}
2 parents 1a954bf + dd0b1ea commit 1cf9c48

File tree

2 files changed

+65
-7
lines changed

2 files changed

+65
-7
lines changed

doc/mbyte.jax

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*mbyte.txt* For Vim バージョン 9.1. Last change: 2025 Aug 10
1+
*mbyte.txt* For Vim バージョン 9.1. Last change: 2025 Oct 12
22

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

@@ -942,6 +942,34 @@ NOTE: IMEを使用するには入力したい言語をシステムに追加す
942942
5. 追加ボタンをクリック
943943

944944

945+
MS-Windows IME の互換性 *multibyte-ime-compatibility*
946+
947+
Vim は Windows システム上のインプットメソッドを `imm32.dll` (Input Method
948+
Manager) を介して管理する。この実装は Windows 2000 時代に遡るため、最新のイン
949+
プットメソッドと完全に互換性がない可能性がある。最新の入力メソッドの処理は
950+
Text Services Framework (TSF) に移行しており、その動作は従来の IME インターフェ
951+
イスと完全には一致しない可能性がある。IME と TSF の詳細については、Microsoft
952+
のドキュメントウェブサイトを参照 (Microsoft ドキュメントの URL は頻繁に変更さ
953+
れるため、リンクは省略している)。
954+
955+
Windows の表示言語が CJK 言語に設定されている場合、Vim の起動時に誤ってインプッ
956+
トメソッド (IM) をノーマルモードで有効にしてしまうことがある。この問題を回避す
957+
るには、|gvimrc| ファイルに以下の設定を追加してみて欲しい: >
958+
959+
autocmd VimEnter * set imdisable | set noimdisable
960+
<
961+
これらの問題の診断または解決に進展があった場合は、フィードバックを歓迎する。
962+
963+
Note: IME の動作は、ベンダーによる実装の違いにより異なる場合がある。特定のイン
964+
プットメソッドで問題が発生した場合は、別のインプットメソッドで試すことをお勧め
965+
する。
966+
967+
Vim の |+multi_byte_ime| システムとの適切な統合には、インプットメソッドの状態
968+
変化が Vim のソースコード内の `ImmGetOpenStatus()` 関数によって検出可能でなけ
969+
ればならない。現在、多言語入力をサポートする一部のインプットメソッドでは、gVim
970+
が捕捉できない内部状態の変化が発生する場合がある。
971+
972+
945973
IMEやXIMがオンのときのカーソルの色 *CursorIM*
946974
IMEの状態に応じてカーソルの色を変えることができる。通常、IMEの状態はデスク
947975
トップの隅(やタスクバー)に表示されているが、これはあまり確認しやすくないの

en/mbyte.txt

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*mbyte.txt* For Vim version 9.1. Last change: 2025 Aug 10
1+
*mbyte.txt* For Vim version 9.1. Last change: 2025 Oct 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -971,6 +971,36 @@ of Windows you use. For example, on my Windows 2000 box:
971971
The default is still English (United Stated)
972972

973973

974+
MS-Windows IME Compatibility *multibyte-ime-compatibility*
975+
976+
Vim manages input methods on Windows systems via the `imm32.dll` (Input Method
977+
Manager). The implementation, dating back to the Windows 2000 era, may not be
978+
fully compatible with modern input methods. Modern input method processing
979+
has shifted to the Text Services Framework (TSF), whose behavior may not fully
980+
align with the traditional IME interface. For details about IME and TSF,
981+
refer to the Microsoft documentation website (link is omitted since MS
982+
documentation URLs often change).
983+
984+
In some cases Vim might incorrectly enable the Input Method (IM) in Normal
985+
mode upon startup when the Windows display language is set to a CJK language.
986+
To work around this issue, try adding the following configuration to your
987+
|gvimrc| file: >
988+
989+
autocmd VimEnter * set imdisable | set noimdisable
990+
<
991+
If you make any progress in diagnosing or resolving these issues, feedback is
992+
welcome.
993+
994+
Note: IME behavior can vary due to differences in implementations by different
995+
vendors. If you encounter issues with a specific input method, it is
996+
recommended to test with an alternative one.
997+
998+
For proper integration with Vim's |+multi_byte_ime| system, changes in the
999+
input method's status must be detectable by the `ImmGetOpenStatus()` function
1000+
in Vims source code. Currently, some input methods that support multi-language
1001+
input may have internal state changes that gVim cannot capture.
1002+
1003+
9741004
Cursor color when IME or XIM is on *CursorIM*
9751005
There is a little cute feature for IME. Cursor can indicate status of IME
9761006
by changing its color. Usually status of IME was indicated by little icon
@@ -1108,8 +1138,8 @@ it to the Vim maintainer for inclusion in the distribution:
11081138

11091139
HEBREW KEYMAP *keymap-hebrew*
11101140

1111-
This file explains what characters are available in UTF-8 and CP1255 encodings,
1112-
and what the keymaps are to get those characters:
1141+
This file explains what characters are available in UTF-8 and CP1255
1142+
encodings, and what the keymaps are to get those characters:
11131143

11141144
glyph encoding keymap ~
11151145
Char UTF-8 cp1255 hebrew hebrewp name ~
@@ -1240,9 +1270,9 @@ Combining forms:
12401270
==============================================================================
12411271
10. Input with imactivatefunc() *mbyte-func*
12421272

1243-
Vim has the 'imactivatefunc' and 'imstatusfunc' options. These are useful to
1244-
activate/deactivate the input method from Vim in any way, also with an external
1245-
command. For example, fcitx provide fcitx-remote command: >
1273+
Vim has the 'imactivatefunc' and 'imstatusfunc' options. These are useful to
1274+
activate/deactivate the input method from Vim in any way, also with an
1275+
external command. For example, fcitx provide fcitx-remote command: >
12461276
12471277
set iminsert=2
12481278
set imsearch=2

0 commit comments

Comments
 (0)