Highlighted

InDesign JS Script to Flip Single Characters INSIDE a Text Frame

Participant ,
May 26, 2020

Copy link to clipboard

Copied

hi there, anyone knows how to flip a single/few characters inside a Text Frame using js script in InDesign?

Thanks in advance.

Adobe Community Professional
Correct answer by Laubender | Adobe Community Professional

Hi eboda_snaf,

there is no property for this. So it cannot be done.

However, there is a workaround:

 

You could create a font with flipped character glyphs and assign the font to the text.

See into the IndyFont script by Jongware and Marc Autret that could assist for creating the font:

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

 

The other workaround would be:
Use anchored text frames that are flipped.

 

Regards,
Uwe Laubender

( ACP )

Topics

Scripting

Views

899

Likes

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

InDesign JS Script to Flip Single Characters INSIDE a Text Frame

Participant ,
May 26, 2020

Copy link to clipboard

Copied

hi there, anyone knows how to flip a single/few characters inside a Text Frame using js script in InDesign?

Thanks in advance.

Adobe Community Professional
Correct answer by Laubender | Adobe Community Professional

Hi eboda_snaf,

there is no property for this. So it cannot be done.

However, there is a workaround:

 

You could create a font with flipped character glyphs and assign the font to the text.

See into the IndyFont script by Jongware and Marc Autret that could assist for creating the font:

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

 

The other workaround would be:
Use anchored text frames that are flipped.

 

Regards,
Uwe Laubender

( ACP )

Topics

Scripting

Views

900

Likes

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
May 26, 2020 0
Adobe Community Professional ,
May 27, 2020

Copy link to clipboard

Copied

Hi eboda_snaf,

there is no property for this. So it cannot be done.

However, there is a workaround:

 

You could create a font with flipped character glyphs and assign the font to the text.

See into the IndyFont script by Jongware and Marc Autret that could assist for creating the font:

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

 

The other workaround would be:
Use anchored text frames that are flipped.

 

Regards,
Uwe Laubender

( ACP )

Likes

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
Reply
Loading...
May 27, 2020 2
Participant ,
May 28, 2020

Copy link to clipboard

Copied

Could you please elaborate how to "use anchored text frames that are flipped."

Thank you

Likes

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
Reply
Loading...
May 28, 2020 0
Participant ,
May 27, 2020

Copy link to clipboard

Copied

As Uwe said, there doesn't seem to be a property for flipping a text character in a frame. But, closely related to this (just in case it is useful to you), you can ROTATE a character in a text frame by switching to the Japanese Paragraph Composer and using the characterRotation property:

app.selection[0].composer = "$ID/HL Composer J";
app.selection[0]..characterRotation = 180;

See also https://indesignsecrets.com/free-script-to-rotate-selected-characters.php for a script a wrote that uses this feature.

Likes

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
Reply
Loading...
May 27, 2020 3
Participant ,
May 28, 2020

Copy link to clipboard

Copied

Thanks for your help...
i've tried but i cannot use rotation for this, it is not the same as flip effect.

Likes

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
Reply
Loading...
May 28, 2020 0
Adobe Community Professional ,
May 28, 2020

Copy link to clipboard

Copied

Thanks, I didn't know that other composers can not rotate the characters.

Likes

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
Reply
Loading...
May 28, 2020 0
Adobe Community Professional ,
May 29, 2020

Copy link to clipboard

Copied

Hi Ten A,

actually the other composers can rotate characters.

But not very "orderly". Maybe a feature that wasn't fully developed.

If you want to be sure that everything works as expected you need the Japanese Paragraph Composer.

 

But that leads us away from eboda_snaf's problem.

Already suggested two solutions:

[1] Use a new or special font where the glyph shapes are flipped.

[2] Use anchored text frames that are flipped.

 

Any other solution is welcome, but currently I cannot see one…

 

Regards,
Uwe Laubender

( ACP )

 

Likes

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
Reply
Loading...
May 29, 2020 0
Adobe Community Professional ,
May 29, 2020

Copy link to clipboard

Copied

eboda_snaft said:

"…Could you please elaborate how to "use anchored text frames that are flipped." …"

 

Hi,

see the screenshots from my German InDesign below:

 

AnchoredTextFramesFlipped-1.PNG

AnchoredTextFramesFlipped-2.PNG

AnchoredTextFramesFlipped-3.PNG

 

AnchoredTextFramesFlipped-4.PNG

 

Regards,
Uwe Laubender

( ACP )

Likes

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
Reply
Loading...
May 29, 2020 0