SlideShare a Scribd company logo
www.matthewmariani.us




guide
to scripts for accessibility tagging
and for applying alt text and doc info
These scripts are for use with InDesign CS5 and Acrobat 9
on the Macintosh platform.



THESE SCRIPTS ARE MADE AVAILABLE ON AN “AS IS”
BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED.
www.matthewmariani.us




Overview
(1) tagDocumentPlus.jsx (InDesign) – Tags all placed graphics in
    the active InDesign document as either Artifacts or as Figures
    with an Alt attribute. Also maps all paragraph styles to xml tags.
(2) makeAltTextForm.jsx (InDesign) – Creates an interactive pdf
    of a document tagged using tagDocumentPlus.jsx for gathering
    alternative text for images and document information.
(3) _finishAltTextDocInfoFormProcessing.sequ (Acrobat) –
    A batch sequence to complete processing of the interactive pdf.
(4) importAltTextDocInfoFromFDF.jsx (InDesign) – After the
    interactive pdf form is filled out, its form data can be exported
    from Acrobat to a form data file. This script maps these data
    back into the original InDesign document.
www.matthewmariani.us




tagDocumentPlus.jsx
Before running this script:
Open an InDesign document. The script affects the active document.

What the script does:
(1) Tags every untagged, placed graphic on a master page
    as an Artifact.
(2) Tags every untagged, placed graphic on a publication page
    that has a file name containing the character string “_art” or
    “art_” (case insensitive) as an Artifact.
(3) Tags every other untagged, placed graphic as a Figure and
    creates an Alt attribute for the Figure tag to hold alternative text.
www.matthewmariani.us




tagDocumentPlus.jsx (continued)
What the script does (continued)
(4) Removes any existing styles-to-tags mappings.
(5) Creates new styles-to-tags mappings for all paragraph styles:
   • By default: every paragraph style is mapped to the P tag.
   • Exception: paragraph styles that have names that contain
     the character sequences “H1”, “H2”, “H3”, “H4”, “H5”, and
     “H6” are mapped to tags with these names.
(6) Every paragraph is tagged according to these new mappings.
www.matthewmariani.us




tagDocumentPlus.jsx (continued)
Take note:
• Graphics that were tagged prior to running the script
  are NOT re-tagged.
• Previously tagged graphics are given an Alt attribute ONLY IF
  they do not already have one. No existing Alt attribute is altered.
• The script can be run again, if additional graphics are placed in
  the document after tagDocumentPlus.jsx was run.
• tagDocumentPlus.jsx can be used by itself, without the other
  scripts.
www.matthewmariani.us




makeAltTextForm.jsx
Before running this script:
Open an InDesign document that has been tagged using the script,
tagDocumentPlus.jsx. The script affects the active document.

Overview:
The script creates an interactive pdf from the active InDesign
document. The pdf is then transformed into a fillable form with
an Acrobat Batch Sequence. Using Adobe Reader, a subject
matter expert may use the form to author alternative text for
images tagged as Figures and elements of document information,
including title, author, description, and keywords.
Form data are mapped back into the InDesign file using the script,
importAltTextDocInfoFromFDF.jsx
www.matthewmariani.us




makeAltTextForm.jsx (continued)
What the script does:
(1) Checks for tagging problems in the document.
(2) Advises the user on corrective action needed if problems are
    found, and aborts the script. Problems include:
   • Untagged placed graphics.
   • Tagged graphics lacking Alt attributes.
   • Graphics tagged as something other than ‘Figure’ or ‘Artifact’.
   • Missing Alt text identifiers (which are created by the script,
     tagDocumentPlus.jsx).
(3) If no problems are found, an interactive pdf is created, and
    Acrobat activates and opens its Batch Sequences palette.
www.matthewmariani.us




makeAltTextForm.jsx (continued)
Take note:
• This script creates a new, temporary layer on which form field
  buttons are created. This layer is removed after the pdf is
  created but before the script finishes. The script does not alter
  anything else in the document.
• Long documents with many images may take several seconds
  to process.
• Once tagDocumentPlus.jsx has been run, changing any of the
  document settings for Facing Pages, Allow Document Pages
  to Shuffle, or Allow Selected Spread to Shuffle will make the
  interactive pdf created by makeAltTextForm.jsx unusable as
  a form.
www.matthewmariani.us




_finishAltTextDocInfoFormProcessing.sequ
This file is an Acrobat Batch Sequence essential to complete
processing of the interactive pdf produced by the script
makeAltTextForm.jsx.

Before running this batch sequence for the first time:
You will need to put the file,
_finishAltTextDocInfoFormProcessing.sequ, in the correct folder
so it will display as an option in Acrobat’s Batch Sequences
palette as _finishAltTextDocInfoFormProcessing. The location is
normally:
/Macintosh HD/Users/YOUR_USER_NAME_GOES_HERE/
Library/Application Support/Adobe/Acrobat/9.0_x86/Sequences/
www.matthewmariani.us




_finishAltTextDocInfoFormProcessing.sequ
(continued)

Run the batch sequence in Acrobat:
(1) Highlight the name of the batch sequence in the Batch
    Sequences palette by single clicking on it
(2) Select ‘Run Sequence’
(3) Select ‘OK’ ( File selection dialog opens )
(4) Browse to and select the pdf file to process
(5) Select ‘Select’
(6) Read custom dialog that opens
(7) Select ‘OK’
www.matthewmariani.us




_finishAltTextDocInfoFormProcessing.sequ
(continued)

Take action:
After the batch sequence completes: Open the pdf, and enable
extended rights in Adobe Reader so that the person filling the form
can save the form field data using Adobe Reader.
Acrobat Menu: ‘Advanced >> Extend Features in Adobe Reader...’
Select ‘Save Now’, then ‘Save’, then ‘Replace’.

Take note:
The file, codeForAcrobatBatchSequence.txt, contains the JavaScript
code included in _finishAltTextDocInfoFormProcessing.sequ.
www.matthewmariani.us




importAltTextDocInfoFromFDF.jsx
Before running this script:
A subject matter expert or editor will need to fill in the alternative text
and document information in the interactive pdf form, save it, and
return the pdf to the InDesign user.
Open the completed pdf form document in Acrobat.
Export the form data to an fdf file using:
Acrobat Menu: Forms >> Manage Form Data >> Export Data...’

What the script does:
(1) Prompts the user to select the form data file (fdf) containing alt
    text and doc info for the active InDesign document.
www.matthewmariani.us




What the script does (continued)
(2) Assigns alternative text from the fdf data source to all of
    the images tagged as Figures for which alternative text was
    provided.
(3) Populates the InDesign document’s title, author, description,
    and keywords metadata elements if the data were provided.
(4) Identifies instances of missing alternative text for images or
    missing document information, if any, and alerts the user.

More Related Content

What's hot

Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012
KiranVathaluru
 
Web based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverWeb based database application design using vb.net and sql server
Web based database application design using vb.net and sql server
Ammara Arooj
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
okmomwalking
 

What's hot (16)

Msaccess
MsaccessMsaccess
Msaccess
 
MorphX Development
MorphX DevelopmentMorphX Development
MorphX Development
 
Crystal reports seminar
Crystal reports seminarCrystal reports seminar
Crystal reports seminar
 
Ms access
Ms accessMs access
Ms access
 
Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports
 
Oracle reports
Oracle reportsOracle reports
Oracle reports
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha
 
Web based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverWeb based database application design using vb.net and sql server
Web based database application design using vb.net and sql server
 
Microsoft Dynamics AX 2012 - Development Introduction Training - Part 2/3
Microsoft Dynamics AX 2012 - Development Introduction Training - Part 2/3Microsoft Dynamics AX 2012 - Development Introduction Training - Part 2/3
Microsoft Dynamics AX 2012 - Development Introduction Training - Part 2/3
 
Microsoft Dynamics AX 2012 - X++ Compiled to CIL
Microsoft Dynamics AX 2012 - X++ Compiled to CILMicrosoft Dynamics AX 2012 - X++ Compiled to CIL
Microsoft Dynamics AX 2012 - X++ Compiled to CIL
 
Database Connection
Database ConnectionDatabase Connection
Database Connection
 
Ms access
Ms accessMs access
Ms access
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 

Viewers also liked

Print advert analysis template
Print advert analysis templatePrint advert analysis template
Print advert analysis template
msoppon
 

Viewers also liked (20)

InDesign, image masking, layer visibility controls
InDesign, image masking, layer visibility controlsInDesign, image masking, layer visibility controls
InDesign, image masking, layer visibility controls
 
Layering Masks
Layering MasksLayering Masks
Layering Masks
 
How to use indesign
How to use indesignHow to use indesign
How to use indesign
 
CrossLogic Online Courses
CrossLogic Online CoursesCrossLogic Online Courses
CrossLogic Online Courses
 
InDesign presentation deck
InDesign presentation deckInDesign presentation deck
InDesign presentation deck
 
Save time with indesign
Save time with indesignSave time with indesign
Save time with indesign
 
Creating Long Documents Using Adobe InDesign
Creating Long Documents Using Adobe InDesignCreating Long Documents Using Adobe InDesign
Creating Long Documents Using Adobe InDesign
 
InDesign CC 2017 interface
InDesign CC 2017 interfaceInDesign CC 2017 interface
InDesign CC 2017 interface
 
How to use InDesign - Emily Climer
How to use InDesign - Emily ClimerHow to use InDesign - Emily Climer
How to use InDesign - Emily Climer
 
INDESIGN eLEARNING
INDESIGN eLEARNINGINDESIGN eLEARNING
INDESIGN eLEARNING
 
InDesign Part 2
InDesign Part 2InDesign Part 2
InDesign Part 2
 
Adobe InDesign Primer
Adobe InDesign PrimerAdobe InDesign Primer
Adobe InDesign Primer
 
Demystifying WCAG 2.0: An Intro to Web, Office, InDesign, & PDF Accessibility
Demystifying WCAG 2.0: An Intro to Web, Office, InDesign, & PDF AccessibilityDemystifying WCAG 2.0: An Intro to Web, Office, InDesign, & PDF Accessibility
Demystifying WCAG 2.0: An Intro to Web, Office, InDesign, & PDF Accessibility
 
How to use indesign Lydia Rosad
How to use indesign Lydia RosadHow to use indesign Lydia Rosad
How to use indesign Lydia Rosad
 
Beginning Adobe InDesign CS6
Beginning Adobe InDesign CS6Beginning Adobe InDesign CS6
Beginning Adobe InDesign CS6
 
Print advert analysis template
Print advert analysis templatePrint advert analysis template
Print advert analysis template
 
Introduction to Adobe InDesign CC
Introduction to Adobe InDesign CCIntroduction to Adobe InDesign CC
Introduction to Adobe InDesign CC
 
InDesign Intro
InDesign IntroInDesign Intro
InDesign Intro
 
InDesign Crash Course
InDesign Crash CourseInDesign Crash Course
InDesign Crash Course
 
Creating an Magazine ad with Adobe InDesign
Creating an Magazine ad with Adobe InDesignCreating an Magazine ad with Adobe InDesign
Creating an Magazine ad with Adobe InDesign
 

Similar to Guide to InDesign scripts for enhancing 508 accessibility of pdfs

In design 2020 scripting read me
In design 2020 scripting read meIn design 2020 scripting read me
In design 2020 scripting read me
ssuserb96862
 
Asp.Net 2.0 Presentation
Asp.Net 2.0 PresentationAsp.Net 2.0 Presentation
Asp.Net 2.0 Presentation
sasidhar
 
Project Overview Project Requirements Our PROG 24178 p.pdf
Project Overview   Project Requirements     Our PROG 24178 p.pdfProject Overview   Project Requirements     Our PROG 24178 p.pdf
Project Overview Project Requirements Our PROG 24178 p.pdf
addtechglobalmarketi
 
Nirva Mambo Tutorial En
Nirva   Mambo Tutorial   EnNirva   Mambo Tutorial   En
Nirva Mambo Tutorial En
Olivier Lebleu
 
Filemaker Pro in the Pre-Media environment
Filemaker Pro in the Pre-Media environmentFilemaker Pro in the Pre-Media environment
Filemaker Pro in the Pre-Media environment
Tom Langton
 
F21SC Industrial Programming CW2 Data Analytics (35) 20192.docx
F21SC Industrial Programming CW2 Data Analytics (35) 20192.docxF21SC Industrial Programming CW2 Data Analytics (35) 20192.docx
F21SC Industrial Programming CW2 Data Analytics (35) 20192.docx
lmelaine
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdf
rajeshjangid1865
 
Ugif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutesUgif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutes
UGIF
 

Similar to Guide to InDesign scripts for enhancing 508 accessibility of pdfs (20)

In design 2020 scripting read me
In design 2020 scripting read meIn design 2020 scripting read me
In design 2020 scripting read me
 
Synopsis
SynopsisSynopsis
Synopsis
 
skintutorial
skintutorialskintutorial
skintutorial
 
skintutorial
skintutorialskintutorial
skintutorial
 
Doc manual 3.x
Doc manual 3.xDoc manual 3.x
Doc manual 3.x
 
As pnet
As pnetAs pnet
As pnet
 
About DesignMerge
About DesignMergeAbout DesignMerge
About DesignMerge
 
Asp.Net 2.0 Presentation
Asp.Net 2.0 PresentationAsp.Net 2.0 Presentation
Asp.Net 2.0 Presentation
 
Project Overview Project Requirements Our PROG 24178 p.pdf
Project Overview   Project Requirements     Our PROG 24178 p.pdfProject Overview   Project Requirements     Our PROG 24178 p.pdf
Project Overview Project Requirements Our PROG 24178 p.pdf
 
Nirva Mambo Tutorial En
Nirva   Mambo Tutorial   EnNirva   Mambo Tutorial   En
Nirva Mambo Tutorial En
 
Filemaker Pro in the Pre-Media environment
Filemaker Pro in the Pre-Media environmentFilemaker Pro in the Pre-Media environment
Filemaker Pro in the Pre-Media environment
 
Bi
BiBi
Bi
 
Yacks
YacksYacks
Yacks
 
Having Fun Building Web Applications (Day 2 slides)
Having Fun Building Web Applications (Day 2 slides)Having Fun Building Web Applications (Day 2 slides)
Having Fun Building Web Applications (Day 2 slides)
 
F21SC Industrial Programming CW2 Data Analytics (35) 20192.docx
F21SC Industrial Programming CW2 Data Analytics (35) 20192.docxF21SC Industrial Programming CW2 Data Analytics (35) 20192.docx
F21SC Industrial Programming CW2 Data Analytics (35) 20192.docx
 
To create a web service
To create a web serviceTo create a web service
To create a web service
 
Reengineering PDF-Based Documents Targeting Complex Software Specifications
Reengineering PDF-Based Documents Targeting Complex Software SpecificationsReengineering PDF-Based Documents Targeting Complex Software Specifications
Reengineering PDF-Based Documents Targeting Complex Software Specifications
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To Empowerment
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdf
 
Ugif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutesUgif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutes
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 

Guide to InDesign scripts for enhancing 508 accessibility of pdfs

  • 1. www.matthewmariani.us guide to scripts for accessibility tagging and for applying alt text and doc info These scripts are for use with InDesign CS5 and Acrobat 9 on the Macintosh platform. THESE SCRIPTS ARE MADE AVAILABLE ON AN “AS IS” BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  • 2. www.matthewmariani.us Overview (1) tagDocumentPlus.jsx (InDesign) – Tags all placed graphics in the active InDesign document as either Artifacts or as Figures with an Alt attribute. Also maps all paragraph styles to xml tags. (2) makeAltTextForm.jsx (InDesign) – Creates an interactive pdf of a document tagged using tagDocumentPlus.jsx for gathering alternative text for images and document information. (3) _finishAltTextDocInfoFormProcessing.sequ (Acrobat) – A batch sequence to complete processing of the interactive pdf. (4) importAltTextDocInfoFromFDF.jsx (InDesign) – After the interactive pdf form is filled out, its form data can be exported from Acrobat to a form data file. This script maps these data back into the original InDesign document.
  • 3. www.matthewmariani.us tagDocumentPlus.jsx Before running this script: Open an InDesign document. The script affects the active document. What the script does: (1) Tags every untagged, placed graphic on a master page as an Artifact. (2) Tags every untagged, placed graphic on a publication page that has a file name containing the character string “_art” or “art_” (case insensitive) as an Artifact. (3) Tags every other untagged, placed graphic as a Figure and creates an Alt attribute for the Figure tag to hold alternative text.
  • 4. www.matthewmariani.us tagDocumentPlus.jsx (continued) What the script does (continued) (4) Removes any existing styles-to-tags mappings. (5) Creates new styles-to-tags mappings for all paragraph styles: • By default: every paragraph style is mapped to the P tag. • Exception: paragraph styles that have names that contain the character sequences “H1”, “H2”, “H3”, “H4”, “H5”, and “H6” are mapped to tags with these names. (6) Every paragraph is tagged according to these new mappings.
  • 5. www.matthewmariani.us tagDocumentPlus.jsx (continued) Take note: • Graphics that were tagged prior to running the script are NOT re-tagged. • Previously tagged graphics are given an Alt attribute ONLY IF they do not already have one. No existing Alt attribute is altered. • The script can be run again, if additional graphics are placed in the document after tagDocumentPlus.jsx was run. • tagDocumentPlus.jsx can be used by itself, without the other scripts.
  • 6. www.matthewmariani.us makeAltTextForm.jsx Before running this script: Open an InDesign document that has been tagged using the script, tagDocumentPlus.jsx. The script affects the active document. Overview: The script creates an interactive pdf from the active InDesign document. The pdf is then transformed into a fillable form with an Acrobat Batch Sequence. Using Adobe Reader, a subject matter expert may use the form to author alternative text for images tagged as Figures and elements of document information, including title, author, description, and keywords. Form data are mapped back into the InDesign file using the script, importAltTextDocInfoFromFDF.jsx
  • 7. www.matthewmariani.us makeAltTextForm.jsx (continued) What the script does: (1) Checks for tagging problems in the document. (2) Advises the user on corrective action needed if problems are found, and aborts the script. Problems include: • Untagged placed graphics. • Tagged graphics lacking Alt attributes. • Graphics tagged as something other than ‘Figure’ or ‘Artifact’. • Missing Alt text identifiers (which are created by the script, tagDocumentPlus.jsx). (3) If no problems are found, an interactive pdf is created, and Acrobat activates and opens its Batch Sequences palette.
  • 8. www.matthewmariani.us makeAltTextForm.jsx (continued) Take note: • This script creates a new, temporary layer on which form field buttons are created. This layer is removed after the pdf is created but before the script finishes. The script does not alter anything else in the document. • Long documents with many images may take several seconds to process. • Once tagDocumentPlus.jsx has been run, changing any of the document settings for Facing Pages, Allow Document Pages to Shuffle, or Allow Selected Spread to Shuffle will make the interactive pdf created by makeAltTextForm.jsx unusable as a form.
  • 9. www.matthewmariani.us _finishAltTextDocInfoFormProcessing.sequ This file is an Acrobat Batch Sequence essential to complete processing of the interactive pdf produced by the script makeAltTextForm.jsx. Before running this batch sequence for the first time: You will need to put the file, _finishAltTextDocInfoFormProcessing.sequ, in the correct folder so it will display as an option in Acrobat’s Batch Sequences palette as _finishAltTextDocInfoFormProcessing. The location is normally: /Macintosh HD/Users/YOUR_USER_NAME_GOES_HERE/ Library/Application Support/Adobe/Acrobat/9.0_x86/Sequences/
  • 10. www.matthewmariani.us _finishAltTextDocInfoFormProcessing.sequ (continued) Run the batch sequence in Acrobat: (1) Highlight the name of the batch sequence in the Batch Sequences palette by single clicking on it (2) Select ‘Run Sequence’ (3) Select ‘OK’ ( File selection dialog opens ) (4) Browse to and select the pdf file to process (5) Select ‘Select’ (6) Read custom dialog that opens (7) Select ‘OK’
  • 11. www.matthewmariani.us _finishAltTextDocInfoFormProcessing.sequ (continued) Take action: After the batch sequence completes: Open the pdf, and enable extended rights in Adobe Reader so that the person filling the form can save the form field data using Adobe Reader. Acrobat Menu: ‘Advanced >> Extend Features in Adobe Reader...’ Select ‘Save Now’, then ‘Save’, then ‘Replace’. Take note: The file, codeForAcrobatBatchSequence.txt, contains the JavaScript code included in _finishAltTextDocInfoFormProcessing.sequ.
  • 12. www.matthewmariani.us importAltTextDocInfoFromFDF.jsx Before running this script: A subject matter expert or editor will need to fill in the alternative text and document information in the interactive pdf form, save it, and return the pdf to the InDesign user. Open the completed pdf form document in Acrobat. Export the form data to an fdf file using: Acrobat Menu: Forms >> Manage Form Data >> Export Data...’ What the script does: (1) Prompts the user to select the form data file (fdf) containing alt text and doc info for the active InDesign document.
  • 13. www.matthewmariani.us What the script does (continued) (2) Assigns alternative text from the fdf data source to all of the images tagged as Figures for which alternative text was provided. (3) Populates the InDesign document’s title, author, description, and keywords metadata elements if the data were provided. (4) Identifies instances of missing alternative text for images or missing document information, if any, and alerts the user.