How to repress line breaking before punctuation

(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.

  1. How can I suppress breaking before single and double closing smart quotes?
  2. 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)

After playing around with each of your settings individually, it seems that the issue comes from the small min tracking value:

tracking: (min: -0.01em, max: 0.01em)

If I set it to -0.16em I can’t find a page width that causes the error again. It’s up to you, of course, to decide whether this change is acceptable or not.

MWE
#set page(width: 61mm)

#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.16em, max: 0.01em)
  ),
  first-line-indent: (amount: 1.5em, all: true),
  linebreaks: "optimized",
  leading: 0.85em,
  spacing: 0.85em
)


"นายบุญคำไปตลาดเพื่อซื้อทุเรียน"

Thank you, my nonsensical example (“Mr. Boonkham went to the market to buy durian”) was not the actual paragraph. (I didn’t want to share my private information on the public forum.) The issue with the break before the quotation mark was there even before I added the “tracking” code. Also, if we adjust the tracking and fix the first paragraph, who is to say that the change doesn’t cause a break before a quotation mark somewhere down stream in the ~900 page document. I need a solution that forbids breaks before closing quotation marks. In my TeX header, I have code that does this for my ~700 page Lao book. However, I am trying to avoid using TeX moving forward, if possible.