mediawiki-extensions-Visual.../demos/ve/pages/multibyte.html
Ed Sanders 90e4f4d665 Store multi byte characters as one element
Getting & setting the cursor is done with byte offsets
instead of data model offset (characters) so we need to
be able to convert between the two as well as splitting
characters.

TODO: The regex only works on surrogate pairs, not
yet combining accents.

fixupInsertion will combine a combining mark with the
character to its left it it can.

Bug: 48630

Change-Id: I8d936fb15d82f73cd45fac142c540a7950850d55
2013-05-25 00:50:11 +02:00

6 lines
186 B
HTML

<p>12𨋢456789𨋢bc</p>
<p>「𨋢」字響<tt>香港</tt>衍生出好多新詞,好似:𨋢</p>
<p>abc</p>
<p>one c̀ombining accent</p>
<p>two ç̀ombining accents</p>
<p>def</p>