Manipulating text in a TextBox in Adobe InDesign CS5

青春壹個敷衍的年華 提交于 2019-12-10 12:58:06

问题


How can I do some manipulations with the text in a TextBox on resize in Adobe InDesign CS5?

The main goal is too split the last word on every row to achieve something like a custom hyphenation.

Is it possible using JavaScript (or ExtendScript?) ?

Thanks.

UPDATE

I've tried to describe my problem in comments

I need an example on ExtendScript, which would find textbox dimensions and hyphenate the text according to dimension and after I'd like to create an event on textbox resize, which would do the same thing after every resize.


回答1:


You'll probably be able to write a script to do what you want, but the functionality is already built into InDesign.

If I understand your problem correctly it's InDesign does not hyphenate Armenian properly? You can insert manual hyphenationsin the text using the text tool and pressing 'Ctrl'+'-' where you want the hyphen in the text. Unfortunately you'll have to do that everytime you resize the box, because the words will move around - which is probably the problem you're having.

You can set the language in InDesign in the Character tab (shortcut is 'Ctrl'+'t') and upload custom dictionaries/word lists with rules specific to your language including rules for spelling and hyphenation. Unfortunately I couldn't find Armenian in my short search, but perhaps you're more lucky.

Check out the link for more details:

http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6f4da.html



来源:https://stackoverflow.com/questions/5741063/manipulating-text-in-a-textbox-in-adobe-indesign-cs5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!