| •1 |
Test data for line breaking |
| 2 |
=========================== |
| 3 |
|
| 4 |
Files named ``*.in'' are input text. ``*.out'' are expected outputs. |
| 5 |
|
| 6 |
Default configuration is as following. Overridden values are described |
| 7 |
by each test data. |
| 8 |
|
| 9 |
charmax: 998 |
| 10 |
colmin: 0 |
| 11 |
colmax: 76 |
| 12 |
context: NONEASTASIAN |
| 13 |
format: SIMPLE |
| 14 |
hangul as AL: no |
| 15 |
legacy CM: yes |
| 16 |
virama sign: behave as consonant joiner |
| 17 |
newline: "\n" |
| 18 |
sizing: UAX11 |
| 19 |
tailoring EAW: none |
| 20 |
tailoring LBC: none |
| 21 |
urgent breaking:none |
| 22 |
preprocessing: none |
| 23 |
|
| 24 |
01 Generic |
| 25 |
---------- |
| 26 |
|
| 27 |
ar.in |
| 28 |
ar.out |
| 29 |
Arabic |
| 30 |
el.in |
| 31 |
el.out |
| 32 |
Greek |
| 33 |
fr.in |
| 34 |
fr.out |
| 35 |
French |
| 36 |
he.in |
| 37 |
he.out |
| 38 |
Hebrew |
| 39 |
ja.in |
| 40 |
ja.out |
| 41 |
Japanese |
| 42 |
ja-a.in |
| 43 |
ja-a.out |
| 44 |
Japanese (annotated readings) |
| 45 |
ja-k.in |
| 46 |
Japanese (kana transcribed) |
| 47 |
ko.in |
| 48 |
ko.out |
| 49 |
Korean |
| 50 |
ko-decomp.in |
| 51 |
ko-decomp.out |
| 52 |
Korean (NFD) |
| 53 |
ru.in |
| 54 |
ru.out |
| 55 |
Russian |
| 56 |
sa.in |
| 57 |
sa.out |
| 58 |
Sanskrit |
| 59 |
th.in |
| 60 |
th.out |
| 61 |
Thai |
| 62 |
vi.in |
| 63 |
vi.out |
| 64 |
Vietnamese |
| 65 |
vi-decomp.in |
| 66 |
vi-decomp.out |
| 67 |
Vietnamese (decomposed) |
| 68 |
zh.in |
| 69 |
zh.out |
| 70 |
Chinese Mandarin |
| 71 |
|
| 72 |
02 Hangul text |
| 73 |
-------------- |
| 74 |
|
| 75 |
amitagyong.in |
| 76 |
amitagyong.out |
| 77 |
complex hangul syllables and conjoining jamo. |
| 78 |
tailoring EAW: U+302E and U+302F are nonspacing. |
| 79 |
ko.al.out |
| 80 |
treat hangul syllables and conjoining jamo as alphabetic (AL). |
| 81 |
|
| 82 |
03 Tailoring Line Breaking Classes |
| 83 |
---------------------------------- |
| 84 |
|
| 85 |
ja-k.in |
| 86 |
ja-k.out |
| 87 |
colmax: 72 |
| 88 |
ja-k.ns.out |
| 89 |
colmax: 72 |
| 90 |
kana nonstarters (small kana) are assigned Line Breaking Class ``ID''. |
| 91 |
|
| 92 |
04 Folding/unfolding |
| 93 |
-------------------- |
| 94 |
|
| 95 |
fr.fixed.out |
| 96 |
ja.fixed.out |
| 97 |
same as default but an empty line is inserted after each paragraph. |
| 98 |
fr.flowed.out |
| 99 |
ja.flowed.out |
| 100 |
RFC 3676 ``Format="FLOWED"; DelSp="YES"'' format. |
| 101 |
fr.plain.out |
| 102 |
ja.plain.out |
| 103 |
same as default. |
| 104 |
quotes.in |
| 105 |
unfolded e-mail text with one problematic line. |
| 106 |
quotes.norm.in |
| 107 |
unfolded e-mail text without problematic lines. |
| 108 |
quotes.fixed.out |
| 109 |
quotes.flowed.out |
| 110 |
quotes.plain.out |
| 111 |
folded e-mail text by three methods as above. |
| 112 |
|
| 113 |
05 Long lines |
| 114 |
------------- |
| 115 |
|
| 116 |
ecclesiazusae.in |
| 117 |
ecclesiazusae.out |
| 118 |
ecclesiazusae.CharactersMax.out |
| 119 |
charmax: 79 |
| 120 |
ecclesiazusae.ColumnsMax.out |
| 121 |
urgent breaking:FORCE |
| 122 |
ecclesiazusae.ColumnsMin.out |
| 123 |
colmin: 7 |
| 124 |
colmax: 66 |
| 125 |
urgent breaking:FORCE |
| 126 |
|
| 127 |
06 East Asian context |
| 128 |
--------------------- |
| 129 |
|
| 130 |
fr.ea.out |
| 131 |
context: EASTASIAN |
| 132 |
|
| 133 |
07 n/a |
| 134 |
------ |
| 135 |
|
| 136 |
08 n/a |
| 137 |
------ |
| 138 |
|
| 139 |
09 URI |
| 140 |
------ |
| 141 |
|
| 142 |
uri.in |
| 143 |
uri.break.out |
| 144 |
colmax: 1 |
| 145 |
preprocessing: break URIs according to some CMoS rules. |
| 146 |
uri.break.http.out |
| 147 |
colmax: 1 |
| 148 |
preprocessing: break HTTP URLs according to some CMoS rules; never |
| 149 |
break FTP URLs. |
| 150 |
uri.nonbreak.out |
| 151 |
colmax: 1 |
| 152 |
preprocessing: never break URIs. |
| 153 |
|
| 154 |
10 n/a |
| 155 |
------ |
| 156 |
|
| 157 |
11 Formatting context |
| 158 |
--------------------- |
| 159 |
|
| 160 |
fr.format.out |
| 161 |
ja.format.out |
| 162 |
insert context names. |
| 163 |
fr.newline.out |
| 164 |
ko.newline.out |
| 165 |
trim spaces at end of each lines. |
| 166 |
|
| 167 |
12 Indentation |
| 168 |
-------------- |
| 169 |
|
| 170 |
fr.wrap.out |
| 171 |
ja.wrap.out |
| 172 |
Paragraphs are indented by one horizontal tab ("\t") and other lines |
| 173 |
are indented by four spaces (" "). |
| 174 |
|
| 175 |
13 RFC 3676 |
| 176 |
----------- |
| 177 |
|
| 178 |
fr.flowed.out |
| 179 |
ja.flowed.out |
| 180 |
folding by RFC 3676 ``Format="FLOWED"; DelSp="YES"'' method. |
| 181 |
flowedsp.in |
| 182 |
flowedsp.out |
| 183 |
unfolding RFC 3676 ``Format="FLOWED"; DelSp="NO"'' (obsoleted |
| 184 |
RFC 2646) format. |
| 185 |
|
| 186 |
14 Non-South East Asian context |
| 187 |
------------------------------- |
| 188 |
|
| 189 |
th.al.out |
| 190 |
treat South East Asian complex context (SA) as alphabetic (AL). |
| 191 |
|
| 192 |
15 n/a |
| 193 |
------ |
| 194 |
|
| 195 |
16 n/a |
| 196 |
------ |
| 197 |
|
| 198 |
Other useful test data |
| 199 |
---------------------- |
| 200 |
|
| 201 |
* LineBreakTest.txt file in Unicode Character Database (UCD) may be |
| 202 |
useful for regression test. Current version of this file will be |
| 203 |
found at: |
| 204 |
http://www.unicode.org/Public/UNIDATA/auxiliary/LineBreakTest.txt |
| 205 |
|
| 206 |
$$ |