# Line breaking tests, using the dictionary model
# for complex scripts (Thai, Lao, Khmer, Myanmar).
#
# Format: input is the concatenation of the segments, which are separated by '|'.
# Everything after a '#' and blank lines are ignored.
# Characters can be escaped as \u{XXXX}.

# Thai
ภาษา|ไทย|ภาษา|ไทย
ภาษา
# #8243 (contains U+2060 WORD JOINER)
ก⁠รุ⁠ง
# #8599: breaks must not be inside grapheme clusters. These match ICU4C (ICU 79).
ตาม|ที่|กล่าว|มา|แล้ว
ตาม|ที่|ระบุ
ทั้ง|ที่|รู้|ว่า
ทุก|ที่|ทุก|เวลา
บาง|ที่
แล้ว|ก็|ไป
แล้ว|กัน|นะ
มา|นี้|ก่อน
เพื่อ|นั้น
เสีย|ว่า
นิ|รัน|ดร์

# Myanmar
# "Burmese Language" in Burmese
မြန်မာဘာသာ|စကား
မြန်မာ|စာ|မြန်မာ|စာ|မြန်မာ|စာ

# Khmer
សេចក្ដីប្រកាស|ជាស|កល|ស្ដីពី|សិទ្ធិមនុស្ស
ភាសាខ្មែរ|ភាសាខ្មែរ|ភាសាខ្មែរ
# #7218
អស់ |នឹង |មាន

# Lao
ກ່ຽວກັບ|ສິດ|ຂອງ|ມະນຸດ
ພາສາ|ລາວ|ພາສາ|ລາວ|ພາສາ|ລາວ

# Mixed scripts
ภาษา|ไทย|龟|山|岛
こ|ん|に|ち|は|世|界|ภาษา|ไทย
# From the Thai Wikipedia article on red pandas
แพนด้า|แดง |(อังกฤษ: |Red |panda, |Shining |cat; |จีน: |小|熊|貓; |พินอิ|น: |Xiǎo |xióngmāo) |สัตว์|เลี้ยง|ลูก|ด้วย|นม|ชนิด|หนึ่ง |มีชื่อ|วิทยาศาสตร์|ว่า |Ailurus |fulgens

# Rule-based tests
# https://github.com/unicode-org/icu4x/pull/3548
1:A # × [NU] × [IS] × [AL] ÷
1:א # × [NU] × [IS] × [HL] ÷
1:|￼ # × [NU] × [IS] ÷ [CB] ÷
1:|🏊 # × [NU] × [IS] ÷ [EB] ÷
# https://github.com/unicode-org/icu4x/issues/3811
1}\u{20} # × [NU] × [CL] × [SP] ÷
1)\u{20} # × [NU] × [CP] × [SP] ÷
1:\u{20} # × [NU] × [IS] × [SP] ÷
1/\u{20} # × [NU] × [SY] × [SP] ÷
🇦🇦\u{20} # × [RI] × [RI] × [SP] ÷
א-\u{20} # × [HL] × [HY] × [SP] ÷
ꨂ|𑤭\u{200D}\u{20} # [AS] [AK] [ZWJ] [SP]
￼⸉ |⸈ # [CB] [QU] [SP] [QU]
ꨔ\u{200D}ꦣ|𑛉 # [AS] [ZWJ] [AK] [NU]
🇿\u{200D}🇿\u{200D}🇿🇿 # × [RI] × [ZWJ] × [RI] × [ZWJ] × [RI] × [RI] ÷
᐀‘ |\u{13A34}/⸇𑙢\u{A} # [HH] [QU] [SP] [AL] [SY] [QU] [BA] [LF]
‘ ,0 # [QU_Pi] [SP] [IS] [NU] LB15a wins over LB15c
# Moved from line.rs unit tests
hello |world
$10 |$10
# LB14
[  abc |def
# LB15 used to prevent the break at 6, but has been removed in Unicode 15.1.
abc"  |(def
# Instead, in Unicode 15.1, LB15a and LB15b prevent these breaks.
« miaou »
# But not these:
Die |Katze |hat |»miau« |gesagt.
# LB16
)‼
)  ‼
# LB17
——|aa
—  —|aa
——  ——|123 |abc
# LB25
(0,1)+(2,3)
🏻 |🏻

# #8523: text ends partway through a longer dictionary word
ผู้|ใช้|ส
ປະເທດ|ລາວ|ມີ|ພົນ|ລ
ព្រះរាជាណាចក្រ|កម្ពុជា|ជា|ប
မြန်မာ|န

# #7218: the break at the end of a complex run follows the line break rules
ไทย!
ไทย, |ไทย
(ไทย)
“ไทย”
ไทย%
ไทย-|ไทย
ไทย...
ไทย  |ไทย
ไทย\u{200B}|ไทย
ไทย\u{A0}ไทย
ไทย\u{A}|ไทย
ไทยabc
ไทย|中|文
ปี
ปี๒๕๖๘ |๒๕๖๘ปี
ລາວ! |ລາວ
