• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Change paragraph direction

Participant ,
Apr 25, 2016 Apr 25, 2016

Copy link to clipboard

Copied

Hi all,

are there anyway to create a script can select all text objects in file and change their paragraph  directions to Right to left with composer (Middle Eastern every line)

4.png

5.png

Thanks a lot

TOPICS
Scripting

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guide ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

Mine does not have the Right-to-Left options, and I can't see mention of them in the documentation.

menu.JPG

this is my flyout menu.

I recorded an action of me changing from Single-Line to Every-Line

act.JPG

have a go recording an action an see if the Paragraph settings have the extra options present in your version of illy.

I would be interested in seeing a comparison screen shot to the action shown above.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

@qwerty, the options show up if you enable Indic-Asian options under Preferences/Type

i too wondered about this, but it does not show up in the javascript reference. what you can do is make a paragraph style and apply it with a script

edit: just realized you have the arabic version. under Type in the menu bar there is an option to apply the middle eastern composer -  it applies to the whole document. it won't set your text right to left tho and i think it defaults to single line.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 27, 2016 Apr 27, 2016

Copy link to clipboard

Copied

I did not realize these options are part of the normal illy.

i'll have a play with them.

it does not give me access to RighttoLeft options.

the paragraph styles is a good idea and a workable solution.

I say go with the Paragraph styles idea.

it turns out even I have the option to set a paragraph style to be Right-to-Left. once the indic options in preferences are ticked

though when I set a paragraph style R2L it only reverses the text if I also have the middleEastern Every-Line Composer ticked in the paragraph panel's flyout menu. (or something like that, it does not seem to be as logical as you would expect)

none of this is a solution but gives us more to work with.

I've never typed R2L and it makes my head hurt, getting old and stuck in my ways...

Hope some of this helps, let me know how you go.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 30, 2016 Apr 30, 2016

Copy link to clipboard

Copied

LATEST

We can set Middle East Language option, using below snipet:

app.preferences.setBooleanPreference("showAsianTextOptions",true);

app.preferences.setBooleanPreference("AI WorldReadiness Dict Key",true);

However, I could not find any properties about RighttoLeft options...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines