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

How to make Vertical Text start furom left to right?

Advocate ,
Mar 22, 2014 Mar 22, 2014

Copy link to clipboard

Copied

Sometimes some customers must be vertical text from left to right

This is mainly for Asian fonts

Whether it can be achieved with script,Or are there other methods?

............................................................................................................................................

Thank you~left to right.jpg

TOPICS
Scripting

Views

1.2K

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 ,
Mar 27, 2014 Mar 27, 2014

Copy link to clipboard

Copied

@喜狼_edny – hm. Possible, but the result is somehow unsatisfactory.

See for yourself.

We could start with some text right aligned in a table with just one single cell:1-TableCellWithTextRightAligned.png

We could rotate the cell to 270° like that:

Code:

var myCell = app.selection[0].tables[0].cells[0];

myCell.rotationAngle = 270;

2-TableCellRotatedTo270.png

And now we need the text direction from right to left and all characters rotated to 180°:

Code:

var myCell = app.selection[0].tables[0].cells[0];

myCell.rotationAngle = 270;

myProperties = {

    composer : "$ID/HL Composer Optyca",

    characterDirection : CharacterDirectionOptions.RIGHT_TO_LEFT_DIRECTION,

    paragraphDirection : ParagraphDirectionOptions.RIGHT_TO_LEFT_DIRECTION,

    characterRotation : 180

    };

myCell.texts[0].properties = myProperties;

Result:

3-CharacterDirection_RIGHT_TO_LEFT_TotatedCharactersTo180.png

Ugh! Not exactly the result we expected…
(Tested with InDesign CS5.5 on OSX 10.6.8)

It's the characterRotation that is not working as expected.

Uwe

Message was edited by: Laubender

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
Guru ,
Mar 27, 2014 Mar 27, 2014

Copy link to clipboard

Copied

Hi Uwe,

I'm pretty sure that's just a problem with Latin fonts but not with Chinese and the like.

See also http://indesignsecrets.com/rotate-text-inside-a-frame.php including the comments

Trevor

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 ,
Mar 27, 2014 Mar 27, 2014

Copy link to clipboard

Copied

@Trevor – hm, yes. For monospaced fonts that will work.

However, the characters will be rotated around the baseline.

And that is bearing other effects. Like ignoring cell insets.

Chinese (traditional) vs. monospaced Courier font:

RotatedText_MonospacedChinese-vs-MonospacedCourier.png

Uwe

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 ,
Mar 27, 2014 Mar 27, 2014

Copy link to clipboard

Copied

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 ,
Mar 27, 2014 Mar 27, 2014

Copy link to clipboard

Copied

But maybe 喜狼_edny (the OP) has something in mind that would mean a -90° character rotation:

RotatedTextMinus90.png

Let's see what he has to say…

Uwe

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
Advocate ,
Mar 28, 2014 Mar 28, 2014

Copy link to clipboard

Copied

Hi ,5.Laubender,

It is just like this that Ineed,How do you Achieve it,

The address can't be open,and the scrip can't be run,It is wrong

It is chinese, Just like this

justthis.jpg

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 ,
Mar 28, 2014 Mar 28, 2014

Copy link to clipboard

Copied

Hi, 喜狼_edny!
Good to hear from you.

What do you mean by: "The address can't be open" ?

I  accomplished the result with my German InDesign CS5.5 v7.5.3.

I'd like to share my InDesign file (plus IDML, plus PDF, plus JSX-file) with you.

Here a download link to a zip-file containing the necessary files:

https://www.dropbox.com/s/p5zzwtrnr6mhmco/RotatedText.zip

RotatedText.zip

    RotatedText_CS5.5.idml

    RotatedText_CS5.5.indd

    RotatedText_CS5.5.pdf

    RotateText.jsx

Run the script snippet after you have SELECTED the text frame with the table that is composed by only one cell.

Here a screen grab of the contents of the InDesign file:

RotatedText-InDesignDoc-Contents.png

Cheers,
Uwe

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
Advocate ,
Mar 31, 2014 Mar 31, 2014

Copy link to clipboard

Copied

LATEST

It is very good~

thank you very much

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 ,
Mar 28, 2014 Mar 28, 2014

Copy link to clipboard

Copied

Laubender wrote:

A case for IndyFont Pro 🙂

http://www.indiscripts.com/category/projects/IndyFont

Uwe

Indeed

IndyFont-Reversed.png

Thanks Uwe for the mention.

@+

Marc

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