After doing some quick reading, it sounds like Adobe wants you to use Lilo (Linguistic Library).
Linguistic
Library makes it possible to add linguistic services like spell checkers and hyphenation
services to Adobe products, through the Linguistic Library API.
Sounds great... but the language used to create these plugins is C++. In my opinion, C++ is an annoying language that should be avoided when possible, but if you like C++ then you're in luck!
ExtendScript, the language used to make general Adobe plugins (think Kuler) is like JavaScript. This may be a simpler language choice, but it could mean more work.
Here are my thoughts on the pros and cons of the choices.
Lilo
Pros
- Specifically made for hyphenation and language support
- Works in Illustrator, Photoshop, and InDesign
Cons
- Written in C++ (which means you will need to set up for environment to compile C++ via XCode)
2 Written in C++ (which really isn't a scripting language)
ExtendScript
Pros
- Javascript is a very flexible language that is very suitable for scripting
- There is a lot more help online for ExtendScript
Cons
- This is going against the grain. You will end up creating somewhat of a hack that reads textboxes and looks for things to hyphenate. This also means writing more complicated logic that Adobe already wrote and wrapped into Lilo
If I had to make a decision, I would choose Lilo. I don't like C++, but I don't want to write my own hyphenation code. It seems like with Lilo, all you have to do is create a dictionary of Armenian words and their hyphenation points.
I'm sure you found this already, but it seems important to link to the Lilo programming guide.
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/linguisticlibrary/pdfs/lilo-programming-guide.pdf