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

Create Outline for Arabic text in a Latin story

Community Expert ,
Dec 15, 2016 Dec 15, 2016

Copy link to clipboard

Copied

I have a long book in Turkish that have Arabic words and sentences on most pages. I wanted to select all Arabic characters on all pages so I can outline them.

I used GREP in Find/Change, but I was only able to format all Arabic text within the document it doesn't show a selection highlight so I can choose "Create Outline" from the menu

TOPICS
Scripting

Views

630

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 ,
Dec 15, 2016 Dec 15, 2016

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 ,
Dec 15, 2016 Dec 15, 2016

Copy link to clipboard

Copied

Good day Karthik,

I looked at the linked page, It didn't make sense to me as I have little knowledge with scripts. Can you please elaborate on how to use those 11 lines, should I paste them into a text editor, and do I have to tweak any thing there before applying it on Arabic text?

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 ,
Dec 15, 2016 Dec 15, 2016

Copy link to clipboard

Copied

HI Zaid,

Save this as .jsx extention

app.findGrepPreferences = app.changeGrepPreferences = null;      

app.findGrepPreferences.findWhat = "\\S+";

app.findGrepPreferences.appliedFont = "ZapfDingbats BT";  // change the font name of yours

var found = app.activeDocument.findGrep();

app.findGrepPreferences = app.changeGrepPreferences = null;

for(var i =0;i<found.length;i++)

{

      var myObj = found.createOutlines(false);

    }

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 ,
Dec 15, 2016 Dec 15, 2016

Copy link to clipboard

Copied

LATEST

And change the font name whatever you need

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 ,
Dec 15, 2016 Dec 15, 2016

Copy link to clipboard

Copied

Hi Zaid,

what is the purpose of creating outlines?

1.

Perhaps the glyphs cannot be embedded with PDF Export or cannot be embedded properly?
And you want to make sure, that everything is readable as expected in exported PDFs?

Then I'd do the outlines with PDF export using a trick described here:

http://indesignsecrets.com/converting-text-to-outlines-the-right-way.php

2.

If not, expect some changes in composition of the surrounding text after outlining directly on the page.
Further, expect massive changes of composition after doing some edits in the text.

3.

If the purpose is to copy/paste glyph shapes: Convert to outlines without deleting the original text:
The UI is supporting this by holding the modifier key alt when converting text to outlines.

In scripting it's the boolean argument of the method createOutlines() that decides if original text is deleted.

Note: The result of the process is a shape or a group of shapes not anchored to the text.

So if you decide to use the method Karthik linked to and want duplicated shapes without removing the original text, use:

createOutlines(false)

instead of:

createOutlines()

Regards,
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