Boris Faure
8c970b8804
termptydbl: generate the exact double width test
...
This based on unicode 13.0:
https://www.unicode.org/reports/tr44/
Code is generated by tools/unicode_dbl_width.py
I'm using switch-case + fall through as I've found it was the best:
f46d550a8b
2020-07-05 23:34:13 +02:00
Boris Faure
ba980a594c
termptydbl: oops
2019-06-23 22:16:47 +02:00
Boris Faure
ef483dba0d
termptydbl: add special case for emoji that were single width before
2019-06-23 22:02:50 +02:00
Boris Faure
fd27c910b1
termptydbl: fix comparison.
2019-05-01 13:11:56 +02:00
Boris Faure
35b6f3c630
termptydbl: private use area is not double-width
2019-05-01 12:52:17 +02:00
Boris Faure
955195d2ae
termptydbl: greek, cyrillic, armenian, arabic, … are not double width
2019-05-01 12:39:53 +02:00
Boris Faure
3880157adc
termptydbl: consider [0x2630, 0x2638] as single width. Closes T7821
2019-05-01 11:41:14 +02:00
Carsten Haitzler
208e877e8f
dbl chars - another range with only some emoji to be doubled
2019-04-23 12:12:02 +01:00
Carsten Haitzler
ce61d0c648
dbl char - add final unicode full emoji list link
2019-04-23 11:21:08 +01:00
Boris Faure
d197d2207e
termptydbl: unbreak mutt/nethack/my shell prompt…
...
The following ranges are not double-width:
2500-257F Box Drawing
2580-259F Block Elements
25A0-25FF Geometric Shapes
E000- F8FF Private Use Area
2019-04-22 22:19:50 +02:00
Carsten Haitzler
f0191d0ffc
double width check - optimize by more tree-like parent range checks
2019-04-18 15:31:35 +01:00
Carsten Haitzler
1cf54d7dfd
emoji- handle as double width as they probably should
...
emoji render as if being double width and their origin is from asian
langs (japan came up with them), so we should make them double width.
2019-04-18 15:12:32 +01:00
Boris Faure
6f1a2dd452
constify
2017-07-06 21:37:56 +02:00
Boris Faure
be62d87f89
separate "termstate" from cursor state and screens. Closes T725
2015-04-23 20:02:53 +02:00
Cedric Bail
c1b516f231
terminology: inline the most common case for a small 2% speed up.
2013-10-28 18:54:30 +09:00
Sebastian Dransfeld
9336575145
Fix typo
...
SVN revision: 78638
2012-10-30 08:15:17 +00:00
Boris Faure
9e0d981e24
terminology: fix is_dblwidth
...
should use a proper bitmap someday…
Fixes #1687
SVN revision: 78627
2012-10-29 22:04:21 +00:00
Carsten Haitzler
7bce758c1d
small patch - make `xxxxyyy...xxx' quotes detected by link checker too.
...
SVN revision: 74308
2012-07-23 08:11:42 +00:00
Carsten Haitzler
cf055cc1b2
oops fix an oopsie id id that broke korean double with detection!
...
SVN revision: 74186
2012-07-19 13:06:37 +00:00
Carsten Haitzler
92d58dc532
mouve doublewidth checking to its own file to not "pollute" termpty.c.
...
also make it more of a tree to minimize compares.
SVN revision: 73787
2012-07-13 06:22:46 +00:00