addCenteredTabsOverColumns is a Translate Script function added with client version 5.41.05. It was added to handle the table based Associated Press sports agate files that include secondary column headers such as:
- FBC Glance
- NFL Team Rankings
- NFL Take-Aways Give-Aways
Unlike other tabular functions:
the addCenteredTabsOverColumns function does NOT need the heading paragraph to be contiguous with the table itself. It will hunt for the next paragraphs to locate the paragraph where the table starts.
And here is an example of that ruleset's results. Notice the Offense and Defense headings centered over columns 1-3 and 4-6 respectively:
Standard Details table:
|Parameters||No maximum but they must be supplied in multiples of 3|
|p1||The text to center|
|p2||The zero indexed column number that represents the left column|
|p3||The zero indexed column number that represents the right column|
|pn||The text to center|
|pn+1||The zero indexed column number that represents the left column|
|pn+2||The zero indexed column number that represents the right column|
If you attempt to use a utility to adjust the tabs to a different column width after translation, it will likely destroy the centered aligned tabs created by this function.
addCenteredTabsOverColumns is the longest named translate script function and it shares the ability to have an unlimited number of parameters.
Note about future write-back:
We have a feature planned to write-back tabular data from the Adobe InDesign pages and Adobe InCopy stories as an HTML table. However, these centered headings will not write back nicely because there aren't as many tabs on the lines. So the HTML table versions will not be pretty.