android_terminal/tests/wideChars/sip-chars.txt
Steven Luo 0da354d0a2 Add some torture tests for Unicode support
These are a set of specially-crafted text files designed to exercise
most of the corner cases in the Unicode support code, particularly
FullUnicodeLine.setChar()'s support for overwriting screen columns with
changes in sequence lengths and display widths.  For best (worst?)
results, use the tests in vttest mode; the lines of exactly 80 columns
will be more likely to uncover bugs that way.
2014-06-08 14:50:28 -07:00

101 lines
4.0 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

East Asian wide characters in the Supplementary Ideographic Plane (thanks to
http://www.i18nguy.com/unicode/supplementary-test.html):
𠜎𠜱𠝹𠱓𠱸
Mixed East Asian wide characters from the BMP and SIP:
中文:𠜎𠜱,你好,𠝹国。
𠱸,中文:你好,𠝹国。
Narrow characters and mixed east Asian wide characters from the BMP and SIP, in
an 80-column line:
xxxxxxxxxx中文:𠜎𠜱你好xx𠝹国。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好xxxxxxxxxx
xxxxxxxxxx𠱸,中文你xx好𠝹国。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx好
Overwriting an East Asian wide character from the SIP with a narrow character:
中文:𠜎 ESC [ 2 D x:
中文:𠜎x
xxx中文𠜎 ESC [ 2 D x:
xxx中文𠜎x
Overwriting an East Asian wide character from the SIP with a narrow character,
in the middle of an 80-column line with mixed narrow and wide chars:
xxx[...]xxx中文𠜎xxx[...]xxx你好xESC [ 27 G y:
xxxxxxxxxxxxxxxxxxxx中文𠜎xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好xy
xxx[...]xxx中文𠜎。xxx[...]xxx你好ESC [ 27 G y:
xxxxxxxxxxxxxxxxxxxx中文𠜎。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好y
Overwriting an East Asian wide character from the SIP with an East Asian wide
character from the BMP:
中文:𠜎 ESC [ 2 D 国:
中文:𠜎国
xxx中文𠜎 ESC [ 2 D 国:
xxx中文𠜎国
Overwriting an East Asian wide character from the SIP with an East Asian wide
character from the BMP in the middle of an 80-column line with mixed narrow and
wide chars:
xxx[...]xxx中文𠜎xxx[...]xxx你好xESC [ 27 G 国:
xxxxxxxxxxxxxxxxxxxx中文𠜎xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好x国
xxx[...]xxx中文𠜎。xxx[...]xxx你好ESC [ 27 G 国:
xxxxxxxxxxxxxxxxxxxx中文𠜎。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好国
Overwriting an East Asian wide character from the BMP with an East Asian wide
character from the SIP:
中文:国 ESC [ 2 D 𠜎:
中文:国𠜎
xxx中文国 ESC [ 2 D 𠜎:
xxx中文𠜎
Overwriting an East Asian wide character from the BMP with an East Asian wide
character from the SIP in the middle of an 80-column line with mixed narrow and
wide chars:
xxx[...]xxx中文国xxx[...]xxx你好xESC [ 27 G 𠜎:
xxxxxxxxxxxxxxxxxxxx中文国xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好x𠜎
xxx[...]xxx中文国。xxx[...]xxx你好ESC [ 27 G 𠜎:
xxxxxxxxxxxxxxxxxxxx中文国。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好𠜎
Inserting a narrow character into the middle of an East Asian wide character
from the SIP in the middle of an 80-column line with mixed narrow and wide
chars:
xxx[...]xxx中文𠜎xxx[...]xxx你好xESC [ 28 G y:
xxxxxxxxxxxxxxxxxxxx中文𠜎xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好xy
xxx[...]xxx中文𠜎。xxx[...]xxx你好ESC [ 28 G y:
xxxxxxxxxxxxxxxxxxxx中文𠜎。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好y
Inserting an East Asian wide character from the SIP into the middle of an East
Asian wide character from the BMP in the middle of an 80-column line with mixed
narrow and wide chars:
xxx[...]xxx中文国xxx[...]xxx你好xESC [ 28 G 𠜎:
xxxxxxxxxxxxxxxxxxxx中文国xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好x𠜎
xxx[...]xxx中文国。xxx[...]xxx你好ESC [ 28 G 𠜎:
xxxxxxxxxxxxxxxxxxxx中文国。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好𠜎
Inserting an East Asian wide character from the BMP into the middle of an East
Asian wide character from the SIP in the middle of an 80-column line with mixed
narrow and wide chars:
xxx[...]xxx中文𠜎xxx[...]xxx你好xESC [ 28 G 国:
xxxxxxxxxxxxxxxxxxxx中文𠜎xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好x国
xxx[...]xxx中文𠜎。xxx[...]xxx你好ESC [ 28 G 国:
xxxxxxxxxxxxxxxxxxxx中文𠜎。xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx你好国