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

tricky text wrap situation / formatting from Word import

Explorer ,
Jul 24, 2021 Jul 24, 2021

Copy link to clipboard

Copied

Is there a way to automate or simplify this?

I have a very long, long Word doc filled with a thousand course descriptions titles (the bold part, below) composed of THREE elements: the course #, the course title, and the Credits. It looks like this:

Screen Shot 2021-07-24 at 11.03.12 PM.png

 

The InDesign file, however, needs to look like this:

Screen Shot 2021-07-24 at 11.03.18 PM.png

 

The trick is that half the Course Title is now AFTER the Credits. In effect, in InDesign, the type looks like: AC 2050 The Art of Creating Online 3 credits Content

 

To get that effect, I have started pasting a table before each listing, and then cutting and paste the three elements into it like this:

Screen Shot 2021-07-24 at 11.03.26 PM.png

 

The obvious problem is that I am very likely to introduce errors doing it this way, and also it will take an extremely long time to do this manually.

Is there a way to import this or style it somehow to simplify or automate this styling?

 

To make matters worse, the formatting in the Word doc is messy and inconsistent. There's no differentiation between the Course # and Course Title, and between the Title and Credits it's a messy mixtures of spaces and tabs (see below), so anything I import into InDesign is going to also be weird.

Screen Shot 2021-07-24 at 11.19.03 PM.png

 

Help!

TOPICS
How to

Views

129

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

correct answers 1 Correct answer

Community Expert , Jul 25, 2021 Jul 25, 2021

I agree with Lukas

 

Start by cleaning up the word file

There's a GREP in the Edit>Find/Change (CTRL F or CMD F)

Go to the GREP tab and look for the remove multiple spaces

EugeneTyson_0-1627202804126.png

 

After you've done this - all the double spaces/double tabs etc are removed from the file.

 

Next, you need to find the Course title and the credits and reintroduce clean tabs

Based on your sample file a GREP change for the courses would insert the appropriate tabs for the table

Find:

^(AC \d+) (.+?) (\d+ (?=Credit).+)

Chang

...

Votes

Translate

Translate
Community Expert ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

Looks like the text is in a table and that's what makes it wrap. increasing the width of the cell for the course name or using a smaller font is what needs to be done to fit it on a line… or convert the table to text to remove the constraints of the cell.

To clean up tab, doubble tabs and multiple spaces to the same symbol use find change (with GREP if you are comfortable with that, otherwise it is a great oppertunity to learn GREP). You would also probably look to clean up so that you consistently just gave a  return after the word credits. Cleaning text is a standard chore.

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 ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

I agree with Lukas

 

Start by cleaning up the word file

There's a GREP in the Edit>Find/Change (CTRL F or CMD F)

Go to the GREP tab and look for the remove multiple spaces

EugeneTyson_0-1627202804126.png

 

After you've done this - all the double spaces/double tabs etc are removed from the file.

 

Next, you need to find the Course title and the credits and reintroduce clean tabs

Based on your sample file a GREP change for the courses would insert the appropriate tabs for the table

Find:

^(AC \d+) (.+?) (\d+ (?=Credit).+)

Change to:
$1\t$2\t$3

 

This replaces the spaces with tabs

EugeneTyson_2-1627203260848.png

 

Based on your current text - if the courses don't start with AC throughout - then a different approach is required.

 

However, this sets up the use of your convert text to tables.

Highligh the entire Text and choose 

EugeneTyson_3-1627203364790.png

 

EugeneTyson_4-1627203409291.png

 

And you'll notice the table autosizes to the correct width of the text frame

EugeneTyson_5-1627203434274.png

 

Then you can manually adjust the Table

There's a few scripts out there for Resizing Tables

https://creativepro.com/sizing-tables-with-script/

 

You might find it useful.

 

Let us know if there's other information you require - or perhaps a more complex search for course titles.

There's some excellent GREP experts on the forum who I think are fantastic and really helpful.

I can do some basic GREP searches but there are ingenious ways.

 

 

 

 

 

 

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
Explorer ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

THANK YOU.

 

"Convert Text to Tables" was what I needed.

 

And there it was – right below "Insert Table" – and I had never noticed it and never used it before.

 

Formatting the file took some tricks, but once I got those tabs in place, I could make my tables without all the cut and paste. Incidentally, did you know that the row widths are created to match your tabs? Amazing.

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 ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

LATEST

Yes, I knew that - but with different lengths of text I figured you'd want different widths.

Anyway - glad it's working 🙂

 

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