Adding words to Thai User Dictionary does not add whole word recognition
In Thai, you can add a word with or without hyphenation to the Thai language User Dictionary and that word does not become recognized as a whole word. If you double click on the word, it will still only highlight parts of the word that it recognizes as forming a word (leaving the rest of the added word not selected).
This leads to hyphenation problems because if InDesign still sees the word in three parts then it will break the word into those parts without recognizing the need to hyphenate the word.
So there needs to be a way for us to add whole word recognition to the Thai language processing.
-
Kenton commented
So after looking into this more it looks like the main control of selecting and line breaking is handled by HarfBuzz clusters.
If a word has multiple clusters to form the whole word (either already in the dictionary or a custom word) HarfBuzz will break the word between those clusters and Hunspell has no notification that a word was broken. No hyphens are created.
However if a word is recognized as all one cluster and there is a hyphenation rule for that word then Hunspell is used to break the word with a hyphen.