Why? What? Enter < 0016 > or < 0017 > under the searched text to find the table?

Contributor ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

Enter < 0016 > or < 0017 > under the searched text to find the table. What is this high-tech?

This is true. A friend asked me, and I tried.

But I was very confused and didn't know why.

Is this a regular expression?

Where can I learn more relevant knowledge?

 

Thank you.

Snipaste_2022-09-06_19-04-43.png

TOPICS
Bug , How to , Import and export , Performance , Scripting

Views

69

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
community guidelines

correct answers 1 Correct answer

Advocate , Sep 06, 2022 Sep 06, 2022
Advocate ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

https://www.indiscripts.com/blog/public/data/idcs4-special-characters/en_InDesignCS4-CS5-SpecialChar...

---
Can automate anything - as long as it doesn't require A.I. 😉 and even then 3rd helping hand can be created 😉

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
community guidelines
Community Expert ,
Sep 08, 2022 Sep 08, 2022

Copy link to clipboard

Copied

Hi @dublove ,

it's easier as you might think.

Select the character that constitutes a table. You'll get that best in the Story Editor Window.

Sample 1, a table with 1 body row: 0016 is shown in the Info panel.

 

CharacterOfTableSelected-1-Row-0016.PNG

 

Sample 2, a table with 2 body rows: 0016 0017 is shown.

 

CharacterOfTableSelected-2-Rows-0016-0017.PNG

Sample 3, a table with 3 body rows: 0016 0017 0017 is shown.

CharacterOfTableSelected-3-Rows-0016-0017-0017.PNG

 

 

Now try this with a couple of tables in your document. Text Find pattern:

<0016><0017><0017>

Result: You will not find tables with 1 or 2 body rows.

But you will find tables with 3 and more body rows.

 

So technically spoken, I'm speculating here a bit, you'll find the first three body rows of every table in the document.

Another note on the number of rows you can detect with a combination of <0016> and <0017> with Text Find: Header rows do not count, footer rows do not count!

That means:

<0016><0017>

will also find this table where we see 1 header row, 1 footer row and 2 body rows:

CharacterOfTableSelected-1H-1F-2BodyRows-0016-0017.PNG

And of course, with that pattern you will find tables with more than 2 body rows as well, regardless of the number of body rows and footer rows.

 

Regards,
Uwe Laubender
( Adobe Community Professional )

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
community guidelines
Community Expert ,
Sep 09, 2022 Sep 09, 2022

Copy link to clipboard

Copied

Not sure I understand why you would <0016> and/or <0017> to get to tables. Why not use myDoc.stories.everyItem().tables.everyItem().getElements() ? Then loop through the array of tables and get their row counts. That way it's easy to target tables with e.g. more than three rows. Or fewer than ten rows. Or whatever.

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
community guidelines
Community Expert ,
Sep 09, 2022 Sep 09, 2022

Copy link to clipboard

Copied

LATEST

Hi Peter,

that would catch also nested tables in text cells and also tables in footnote texts.

What's more? Doing this in TEXT Find will navigate you to tables using the GUI without any scripting. Could be handy if you have a very large document with some tables you want to visit in the layout.

 

Regards,
Uwe Laubender
( Adobe Community Professional )

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
community guidelines