Thanks for the detailed explanation, I would like to combine 6 characters to create one multibyte code as you mentioned here:
>But this is not all. Unicode also knows combining characters, which occupy no >space by themselves but are printed on top of the previous codepoint, >sometimes modifying its shape (think of accents, underlines, overlines, etc.). >Each of these also gets its own codepoint, and there may be several on a >single spacing character. The 'maxcombine' option, which can range from 0 to 6 >(default 2) defines how many Vim will accept. Arabic can usually print even >the most complex vocalised Coranic text with no more than 2 combining >characters per spacing character, Hebrew may require 4 in some cases, so Vim >took some safety margin and allows up to 6. I've `set maxcombine=6` but then what ? how do I combine 4 or 6 characters into one (looking for a real example since Idon't know arabic or Hebrew). if someone can guide me through it I could submit an update in the help if that's of interest. 2020年6月6日(土) 14:02 Bram Moolenaar <[email protected]>: > > > Matt Anonyme wrote: > > > I am trying to hack on vim's codebase but there is something I dont get, > > that is the value of MB_MAXBYTES defined at: > > https://github.com/vim/vim/blob/c17e66c5c0acd5038f1eb3d7b3049b64bb6ea30b/src/vim.h#L1771 > > > > Here is the description: > > ==== > > /// character of up to 6 bytes, or one 16-bit character of up to three bytes > > /// plus six following composing characters of three bytes each. > > #define MB_MAXBYTES 21 > > /// Maximum number of bytes in a multi-byte character. It can be one 32-bit > > ==== > > > > I understand that 3 + 6 * 3 = 21 but I don't get how we can input a > > multibyte character of 21 bytes ? In what encoding/way is it possible ? > > We allow for six composing character, they go in the same screen cell. > > -- > Facepalm reply #3: "I had a great time in Manhattan" "I thought you were > going to New York?" > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ > \\\ an exciting new programming language -- http://www.Zimbu.org /// > \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CADHp1NzdEnj-DoxyM9CmKyFePABhnhL9g2QHiCgoi7Js_smLiA%40mail.gmail.com.
