1 person found this helpful
No go. I tried that myself :-) there simply is no interface to the hyphenation modules for any language (nor for the spell check, which might have come in handy as well!).
You could download a hyphenated word list and use that for whatever purpose you need it. Down-sides: (a) you won't know how ID will break the word, as it may have different rules; (b) ID can break unknown words using rules, a word list cannot; (c) ID uses one-, two- and three-priority hyphens.
[Addendum] If you only need to be able to manually find breaking points, you could use an implementation of Knuth-Liang's algorithm. I wrote one in C, and it did rather good for, ah, perhaps 80% of words. For a purely rule-based system, that qualifies as "not too bad"
The hyphenator does the trick once I put the HTML-DOM stuff in a try-catch-block.
However the ExtendScript editor crashes when I use words that contain a circonflex.
I'll probably vreate an exceptions list to deal with those words.
Thanks a lot!