(Note: Thai spaces at the phrasal level and not the word level.)
I have a ~900 page Thai document that I am trying to typeset and in the first paragraph I noticed that a line is breaking before a closing smart quote. So that in my pdf I have something like the following
นายบุญคำไปตลาดเพื่อซื้อทุเรียน.
"
Where the quotation mark is actually a double closing smart quote (U+201D). It is still early days in typesetting this book and there may be other punctuation that lines are being broken before.
- How can I suppress breaking before single and double closing smart quotes?
- How can I suppress breaking before other punctuation in case that becomes an issue?
In case there is something here that is causing my problem. Here are my settings:
#set page(
width: 176mm,
height: 250mm,
margin: (inside: 20mm, outside: 15mm, top: 15mm, bottom: 20mm)
)
#set text(font: "Sarabun",
size: 11pt,
lang: "th",
hyphenate: true)
#set par(justify: true,
justification-limits: (
spacing: (min: 90% - 0.01em, max: 100% + 0.02em),
tracking: (min: -0.01em, max: 0.01em)),
first-line-indent: (amount: 1.5em, all: true),
linebreaks: "optimized",
leading: 0.85em,
spacing: 0.85em)
EDIT:
Here is the actual text causing the problem. However, the text should be irrelevant. Given a ~900 page document with numerous quotes, if splitting before a quotation mark is possible, then statistically, it will happen. I need a way to repress it.
“พระเจ้าทรงเป็นความรัก” (1 ยอห์น 4:16 THSV) ทั้งพระลักษณะและพระบัญญัติของพระองค์ก็เป็นความรัก เป็นอย่างนั้นเสมอมา และจะเป็นอย่างนั้นสืบไปเป็นนิตย์ “องค์ผู้สูงเด่น คือผู้อยู่ในนิรันดร์กาล” และทางแห่ง “การเสด็จของพระองค์ก็เป็นดังดั้งเดิม” นั้น ไม่ทรงเปลี่ยนแปลง ในพระองค์ “ไม่มีการแปรปรวน หรือไม่มีเงาอันเนื่องจากการเปลี่ยนแปลง” (อิสยาห์ 57:15 TH1971; ฮาบากุก 3:6 TH1971; ยากอบ 1:17 TH1971)
