Skip to main content
LynxKx
Inspiring
September 10, 2026
Question

Has anyone built a User Dictionary for Thai language?

  • September 10, 2026
  • 9 replies
  • 52 views

I’m building a script to fix word wrapping but I need a Thai dictionary which isn’t currently supported with Hunspell. Does anyone by chance have a User dictionary they’ve created/acquired for Thai? I’m looking to do the same for Chinese/Japanese/Korean/Arabic.

    9 replies

    LynxKx
    LynxKxAuthor
    Inspiring
    September 11, 2026

    i’m referring to when a word is broken between lines. since Thai language doesnt have spaces it makes it more difficult to manage like other languages and adobe doesnt have a supported dictionary to reference. i have the language selected - but it doesnt make a difference.

    Mike Witherell
    Community Expert
    Community Expert
    September 11, 2026

    Hi Lyn,

    I’m afraid I am misunderstanding you. I did some reading and now understand that there are no spaces between words; but rather a system of vowel pointing.

    But just to rule out the basics, here, did you...

    Did you make and apply a paragraph style to the text?

    Did you choose Thai as the spell-checker language (which controls hyphenation) within that paragraph style that is applied to the text?

    Are you also using the World-Ready Composer in that same paragraph style?

    What Hyphenation and Justification settings/values did you put in this paragraph style?

    I read elsewhere that some Thai typesetters must insert discretionary linebreaks where it needs to break to a new line.

    Does something like this github help the matter? https://github.com/syafiqhadzir/hunspell-th

    Mike Witherell
    LynxKx
    LynxKxAuthor
    Inspiring
    September 11, 2026

    Yes, I’m impeccable with my paragraph style settings, world-ready paragraph composer, language set to thai. From what I’ve researched, I need a thai user dictionary that my script will cross reference, but also came up with adobe not thoroughly supporting Thai - which is why it also spits out character encoding errors in my accessibility check. 

    Mike Witherell
    Community Expert
    Community Expert
    September 11, 2026

    Hi Lyn,

    Thai is one of 65 spell-checker languages already supplied within InDesign. When you use paragraph styles for controlling text (you do, don’t you?) you will find it under Paragraph Style Options > Advanced Character Formats > Language...

    Mike Witherell
    rob day
    Community Expert
    Community Expert
    September 11, 2026

    I’m building a script to fix word wrapping

     

    Hi ​@LynxKx , Just to clarify, by word wrapping do you mean where words break when Hyphenate is enabled in Paragraph settings? If that’s the case the Language chosen in the Character panel determines where words hyphenate and break. With ExtendScript it would be the text’s appliedLanguage—this gets a selected text’s language. There can be multiple applied languages within a document:

     

    $.writeln(app.activeDocument.selection[0].appliedLanguage.name)

     

    Here the two columns have different languages applied and the texts break, hyphenate and spell check differently:

     

     

     

    Joel Cherney
    Community Expert
    Community Expert
    September 10, 2026

    What’s wrong with current word wrap? What are you trying to fix?

    I don’t handle much Thai but, if you’re using the World-Ready Composer, Thai line endings should be a solved issue and not require any fixes to word wrap. Just delivered a Thai project that passed post-formatting linguistic review with zero bad line endings. Furthermore, if you look in Edit → Preferences → Dictionary and look under Thai, I think you’ll find that Thai Hunspell dictionaries are already installed. I don’t know but I suspect that they are the same dictionaries located here: https://github.com/syafiqhadzir/hunspell-th

    Kinsoku shori for Japanese (and Chinese) would most likely be best handled in an appropriate CJK locale - here are some instructions to install a Japanese locale with an English interface. Korean uses spaces, between words but there’s also a recurring Korean layout bug where it wraps in the middle of words. I wrote a script to search Korean text for lines not ending with spaces or punctuation, which I’d be happy to share with you if it would be helpful.

    In Arabic, my default install of what we used to call the “Middle East Edition” features Arabic Hunspell dictionaries already installed, and no word wrapping issues. 

    So: can you give us more detail regarding what you’re trying to achieve?