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

Script to reverse order of containers in paragraph tag

Community Beginner ,
Nov 08, 2019 Nov 08, 2019

Hello! I'm working with PDFs in right-to-left languages(Arabic and Farsi), however they read left-to-right. I have tried using the reading order panel to select a sentence and mark it as paragraph, but it still doesn't read right. What I have to do is select the text, then in the Tags panel click the drop down menu and select "Create Tag from Selection". What I get is a paragraph tag with each text character as it's own container. However, they're in the wrong order (left-to-right). I have to manually re-arrange them, line by line, character by character. This gets pretty tedious.

 

Is there a better way to do this, or is there a script that will reverse the order of the containers? Or put them in Right to Left order?

Pic for visual:

Screen Shot 2019-11-08 at 10.28.59 AM.png

TOPICS
How to , Standards and accessibility
1.0K
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 ,
Nov 08, 2019 Nov 08, 2019

No, a script can't do that. Note, however, that you can change the Reading Order setting manually, via Edit - Preferences - Reading.

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 Beginner ,
Nov 08, 2019 Nov 08, 2019

Does this setting stick with the document? I thought that only changes it for the individual computer. 

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
Engaged ,
Nov 08, 2019 Nov 08, 2019

Have you checked to see that the document language property is set correctly, and not over-ridden in the tag structure?

"however they read left-to-right" - read by what? Are you using real AT like NVDA or JAWS

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 Beginner ,
Nov 08, 2019 Nov 08, 2019

I have set the correct language, and set the binding to right edge. I feel like I've checked the tag structure before, and it didn't fix it. But I can check again. Is there anything to do there besides set the content and tag to the correct language?

 

They're being read by the Arabic or Farsi voice by Acrobat Read Out Loud.

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
Engaged ,
Nov 09, 2019 Nov 09, 2019

Please do not use Read Out Loud for accessibility testing. Use real assistive technology like NVDA (free) or JAWS (expensive), or a screen reader emulator like the one built into PAC3 (free). 

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 Beginner ,
Nov 09, 2019 Nov 09, 2019
LATEST

Unfortunately I have to use what's built into Acrobat, since that's what my client uses. I've put the request for JAWS, but my company has security issues. So for now, I'm stuck.

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