mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Use a multistage lookup table for grapheme segmentation
This commit is contained in:
parent
272045287a
commit
583a858769
9 changed files with 33798 additions and 7730 deletions
32
tools/wcswidth/char-props-data.go
generated
Normal file
32
tools/wcswidth/char-props-data.go
generated
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
package wcswidth
|
||||
|
||||
|
||||
type GraphemeBreakProperty uint8
|
||||
|
||||
const (
|
||||
GBP_AtStart GraphemeBreakProperty = iota
|
||||
GBP_None
|
||||
GBP_Prepend
|
||||
GBP_CR
|
||||
GBP_LF
|
||||
GBP_Control
|
||||
GBP_Extend
|
||||
GBP_Regional_Indicator
|
||||
GBP_SpacingMark
|
||||
GBP_L
|
||||
GBP_V
|
||||
GBP_T
|
||||
GBP_LV
|
||||
GBP_LVT
|
||||
GBP_ZWJ
|
||||
)
|
||||
|
||||
type IndicConjunctBreak uint8
|
||||
|
||||
const (
|
||||
ICB_None IndicConjunctBreak = iota
|
||||
ICB_Linker
|
||||
ICB_Consonant
|
||||
ICB_Extend
|
||||
)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue