Antonio Scandurra
4766c98bbe
Treat Korean characters as different kinds of chars
2015-10-15 21:02:21 +02:00
Antonio Scandurra
8f7b303fc5
Recognize half width symbols
2015-10-15 19:01:23 +02:00
Antonio Scandurra
a3c3b48caa
Recognize full width symbols
2015-10-15 18:59:12 +02:00
Antonio Scandurra
1fc9a25b5c
Recognize half width characters
2015-10-15 18:57:11 +02:00
Antonio Scandurra
b2a7f4a28e
Create utility function to recognize double width characters
2015-10-15 16:02:08 +02:00
Antonio Scandurra
9af7795a7e
Avoid skipping null bytes
...
Now that we build DOM nodes via `document.createElement`, there's no need to
skip null byte characters (nor to avoid to pair them) because the browser will
keep them in the document (unlike `innerHTML`).
2015-09-14 11:45:29 +02:00
Antonio Scandurra
ac64245848
Avoid pairing null bytes characters
2015-09-03 19:54:55 +02:00
Kevin Sawicki
dc824485aa
Pass character codes around in TextUtils
...
Previously the character codes were looked up for each type of character pair.
2014-10-28 16:55:36 -07:00
Kevin Sawicki
232be1f876
📝 Mention combined characters
2014-10-24 13:31:42 -07:00
Kevin Sawicki
ddeec5d4d5
Treat combined characters as paired characters
2014-10-24 13:31:42 -07:00
Kevin Sawicki
146e8c2a0b
💄 Remove extra newline
2014-09-17 10:40:12 -07:00
Kevin Sawicki
f1fd13b0b2
Return as soon as first paired character is found
...
Previously the character count of the entire string was taken even
though it was only checking for the presence of a paired character.
Now hasPairedCharacter returns as early as possible and the now
unused getCharacterCount has been removed.
2014-09-17 10:35:33 -07:00
Kevin Sawicki
e343b0e0fc
Don't treat consecutive variation selectors as a sequence
2014-09-17 10:17:27 -07:00
Kevin Sawicki
c1aa5c9e48
📝 Mention variation sequence in comment
2014-09-17 10:17:27 -07:00
Kevin Sawicki
878da262d2
Add support for Unicode variation sequences
...
These are character pairs that should be treated as tokens with a
buffer delta of 2 and a screen delta of 1.
2014-09-17 10:17:26 -07:00
Kevin Sawicki
1fa2099eba
Don't mark text-utils methods as public
2014-01-22 10:05:53 -08:00
Kevin Sawicki
76332c76bd
Flatten src directory
...
* Move src/app to src/
* Move src/stdlib to src/
* Remove src/app and src/stdlib from NODE_PATH
2013-08-19 20:13:57 -07:00