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

Best Practices for Accessible TOCs in PDFs from InDesign

Participant ,
Mar 15, 2024 Mar 15, 2024

I have noticed a few things with accessible TOC's made in InDesign:

  1. InDesign correctly tags TOCs as <TOC> when the automatic table of contents feature is used.  TOCs are required to be tagged as <TOC> per PDF/UA criteria for accessible documents.
  2. InDesign by default sets the TOC entries to use the zoom setting "fit in window," which is inaccessible because we may not require users to view the document a certain way.
  3. InDesign by default leaves off the alt-tag for each TOC entry, which is inaccessible per the criteria for PDF/UA compliant documents.

    Therefore, when building automatic TOCs, we must:

 

  1.  Let InDesign build the TOC automatically.
  2. Add leader dots using a character style with the underline set to use the dot stroke:  https://community.adobe.com/t5/indesign-discussions/indesign-cannot-artifact-leader-dots-accessibili...
  3. Manually edit each hyperlinked entry in the TOC to use the zoom setting "inherit zoom"
  4. Manually edit eachhyperlinked entry in the TOC to have an alt-text.

 

HOWEVER....

Doing these things destroys the bookmarks and the document exports without bookmarks, which is also a failure for PDF/UA criteria.

 

The only workaround I have found is to create a second automatic TOC that I do not mainipulate in any way, drag it into the pasteboard of the InDesign document, and re-export.

This second TOC generates the bookmarks, and the first TOC that is visible on the page now has the proper zoom settings and link-alt tags.  The required <TOC> tag is preserved.


Does anyone have a better and less clumsy solution?  

TOPICS
Bug , Import and export
1.2K
Translate
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 15, 2024 Mar 15, 2024

Well, basically, I think you're pointing out really valid problems with the accessibility of PDF docs exported from InDesign. I've seen quite a few documents lately that had auto-generated TOCs off on the pasteboard, with manually constructed TOCs and separate bookmarks in the live document, as if they're working from the same playbook as the one you just posted. It seems to me that better TOC generation in InDesign, if it were going to answer your better-solution question, will most likely require some feature requests. If I'm wrong, I'm sure that we can get some additional expertise in your thread (in the form of persons who have already posted in your accessibility threads, like @Bevi Chagnon - PubCom.com or @Willi Adelberger who have already posted in your recent thread about dot leaders in TOCs).

 

There is one contribution I'm certain that I can make, assuming you can figure out other ways to autogenerate TOCs without manual intervention: you needn't manually apply the dot-leader-underline Character Style. A more automated solution would be to specify a pair of Nested Styles in your TOC text paragraph style - the first applying no character style up to a tab, then a second applying your underline style through one tab. That way, your underline dot leader is applied with no manual handling of the TOC. 

 

But the rest of your TOC challenges don't seem to have obvious answers I can provide. I suspect that the zoom settings in the hyperlinked TOC might be editable in IDML, but that's merely a hunch. 

Translate
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 15, 2024 Mar 15, 2024

There is a way to do leader dots with GREP, but I am not clever enough to figure out how to do that.  Someone provided it in another forum, but in a language I unfortunately don't speak.  😞

Translate
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 15, 2024 Mar 15, 2024

Post a link! 

 

(I'm a localization engineer; if I can't parse the regex myself, and my machine translation tools can't provide a decent gloss, I have places where I myself can post "Who's up, right now, who knows GREP and thus-and-so language?" and have good reason to hope for useful answers.)

 

 

Translate
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 19, 2024 Mar 19, 2024
LATEST
Translate
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