- From: Alex Keng <notifications@github.com>
- Date: Fri, 10 Dec 2021 01:06:39 -0800
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/editing/issues/368/990755893@github.com>
EditContext only handles plain texts (it provides plain text view to communicate with OS text input services), so the styling of text like bold, italic, etc, are out of scope of EC, and should be handled by the author's editor model. The textformatupdate event here is not for styling of the text, it's for the styling of the "decoration" that IME provides to give users hints during the composition, ex showing phrases in Japanese IME (the active phrase has thick underline) ![image](https://user-images.githubusercontent.com/42681140/145543258-b9a0105f-303c-4ce7-b8b4-13d04b8b8163.png) with this information, the author can render the decoration (ex. in a canvas element) to re-create the same IME experience as in normal text input box. The current spec includes the styles that Windows TSF supports (the [TF_DISPLAYATTRIBUTE ](https://docs.microsoft.com/en-us/windows/win32/api/msctf/ns-msctf-tf_displayattribute) structure). The spec doesn't support all the styles defined in [NSUnderlineStyle](https://developer.apple.com/documentation/uikit/nsunderlinestyle?language=objc) on Mac (ex. alternating dashes and dots, NSUnderlineStylePatternDashDot), but those special styles don't seem to be used by IMEs, so the current set of styles should be good. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/editing/issues/368#issuecomment-990755893
Received on Friday, 10 December 2021 09:06:52 UTC