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

Combine text paths in Illustrator

Participant ,
Jan 29, 2025 Jan 29, 2025

Copy link to clipboard

Copied

Many maps I download from ArcGIS have all text labels as individual letters of text instances grouped together to make a word. If i change the font size or scale it can ruin the formatting.

 

I am aware you can copy the text group, click the type tool, make a new text object and paste the text and it will all flow properly together. I also have several scripts downloaded from the web that are supposed to combine the text into one object, but none are working.

 

Is there an easy /automatic fix for this, that will fix every group of text on my map (many hundreds of text labels) into easily editable united text instances?

edit: i addded "text paths.eps". When i tried to add an AI file it gave the error: "The attachment's text paths.ai content type (application/postscript) does not match its file extension and has been removed."  Hopefully eps works

TOPICS
Feature request , How-to , Performance , Scripting , Third party plugins , Type

Views

286
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

correct answers 2 Correct answers

Community Expert , Mar 12, 2025 Mar 12, 2025

Copy it from the page.

Create a new file oin a text editor (no RTF, just text)

Save as with the file extension .jsx

Votes

Translate
Community Expert , Mar 12, 2025 Mar 12, 2025

Select all the text in the file Sergey entered and copy it. Open a new file as plain text in a text editor and paste the trxt you copied into it. Save as a plain text (not rich text) file to your desktop. To use go to AI>Scripts>Other Scripts and navigate to the file on your desktop. 

Votes

Translate
Adobe
Community Expert ,
Jan 29, 2025 Jan 29, 2025

Copy link to clipboard

Copied

Can you share a sample map (Illustrator file)?

Votes

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
Participant ,
Jan 29, 2025 Jan 29, 2025

Copy link to clipboard

Copied

Thanks, i was able to upload an eps file

Votes

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 ,
Jan 29, 2025 Jan 29, 2025

Copy link to clipboard

Copied

As far as I can see from your EPS, if this is indeed the case, the texts in it are not made up of individual letters, but are a "Type on Path" object. In this case, you should mass detach the editable text from the vector path. There is an old script by Nathaniel Vaughn KELSO "Detatch Text from Path", I modified it a bit for your case

SergeyOsokin_0-1738207936052.png

 

// Based on Detatch Text from Path by Nathaniel Vaughn KELSO
(function () {
  if (!documents.length) return;

  var sel = app.selection;
  if (!sel.length || sel.typename === "TextRange") return;

  for (i = sel.length - 1; i >= 0; i--)
    if (sel[i].typename === "TextFrame" && sel[i].kind === TextType.PATHTEXT) {
      var currTF = sel[i];
      var newTF = currTF.parent.textFrames.add();

      for (j = 0; j < currTF.lines.length; j++) {
        var frame = currTF.lines[j];
        if (j > 0) newTF.paragraphs.add("");
        frame.duplicate(newTF);
      }

      currTF = currTF.createOutline();
      newTF.top = currTF.top;
      newTF.left = currTF.left;

      currTF.remove();
      newTF.selected = true;
    }
})();

 

Votes

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
Participant ,
Mar 12, 2025 Mar 12, 2025

Copy link to clipboard

Copied

Thank you so much for this!  I thought i replied earlier but i didnt - do you know how to turn that text you wrote into a script? Apologies i did look online how to make a script but couldnt find

Votes

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 12, 2025 Mar 12, 2025

Copy link to clipboard

Copied

Copy it from the page.

Create a new file oin a text editor (no RTF, just text)

Save as with the file extension .jsx

Votes

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
Participant ,
Mar 12, 2025 Mar 12, 2025

Copy link to clipboard

Copied

thank you so much, this will improve my life considerably!

Votes

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 12, 2025 Mar 12, 2025

Copy link to clipboard

Copied

Select all the text in the file Sergey entered and copy it. Open a new file as plain text in a text editor and paste the trxt you copied into it. Save as a plain text (not rich text) file to your desktop. To use go to AI>Scripts>Other Scripts and navigate to the file on your desktop. 

Votes

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
Participant ,
Mar 12, 2025 Mar 12, 2025

Copy link to clipboard

Copied

LATEST

Thank you!

Votes

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