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~
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:
We could rotate the cell to 270° like that:
Code:
var myCell = app.selection[0].tables[0].cells[0];
myCell.rotationAngle = 270;
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:
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
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
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:
Uwe
Copy link to clipboard
Copied
Copy link to clipboard
Copied
But maybe 喜狼_edny (the OP) has something in mind that would mean a -90° character rotation:
Let's see what he has to say…
Uwe
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
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:
Cheers,
Uwe
Copy link to clipboard
Copied
It is very good~
thank you very much
Copy link to clipboard
Copied
Laubender wrote:
A case for IndyFont Pro 🙂
http://www.indiscripts.com/category/projects/IndyFont
Uwe
Indeed
Thanks Uwe for the mention.
@+
Marc