The document for IMR_DOCUMENTFEED is at https://docs.microsoft.com/en-us/windows/win32/intl/imr-documentfeed
This was originally requested at https://github.com/zufuliu/notepad2/issues/127, mostly used by Japanese IMEs. From these links on issue, it seems can be handled very similar to IMR_RECONVERTSTRING (without last loop).
Is there any ime supporting document feed feature?
Or working use cases?
I don't known yet. What I guessed is it's similar to retrieve-surrounding on GTK [feature-requests:#1066] ; i.e.: once we received the request, we return some text around caret or target text, and IME then can use these text to find better/valid candidate words, thus improved conversion accuracy.
As commented on https://github.com/zufuliu/notepad2/issues/127#issuecomment-521087537, it was at least used by Japanese IME, so called 前後フィードバック or 前後参照 in Japanese, but I don't have any steps to generate the request.
Related
Feature Requests:
#1066To make a change here we really need to be able to test it.
Some tests/steps are available at https://github.com/zufuliu/notepad2/issues/127 , briefed as bellow:
sample text (ignore line numbers):
expected result:
hana
before each word on line 1 and line 2ippatu
after each word on line 3 and line 4hana
orippatu
press space to select candidate item.(tested on Win10 with MS Japanese IME)
IMR_DOCUMENTFEED
is sent (inWM_IME_REQUEST
) after typinghana
orippa
.the behavior looks similar to GTK's “retrieve-surrounding” signal: https://developer.gnome.org/gtk3/stable/GtkIMContext.html#GtkIMContext-retrieve-surrounding
I'm not seeing the desired behaviour (different characters with different context) with any application including Firefox 72 on Windows 10 using either the Microsoft or Google Japanese IMEs. For Firefox:
Microsoft IME:
花が痛い
花が咲く
危機一髪
ファイト一髪
Google IME:
花が痛い
花が咲く
危機一発
ファイト一発
In Sakura, also seeing "花" for "hana" in all cases and different "ippatu" based on IME, not context.
Tried clearing history for both Microsoft and Google. Perhaps there are other language options that need setting.
I can not tell the difference. same as Neil.
https://groups.google.com/g/scintilla-interest/c/A6Rhbg7JP7c
Committed implementation from @johnsonj with [dcbeef].
Demonstration video:
https://www.youtube.com/watch?v=Kj3lTrCcS7M&authuser=0
Related
Commit: [dcbeef]