I need Indesign macro to export and import alt text.
Learn / Forums / General InDesign Topics / I need Indesign macro to export and import alt text.
Tagged: InDesign CS5
- This topic has 5 replies, 3 voices, and was last updated 9 years, 4 months ago by Chris Thompson.
-
AuthorPosts
-
-
December 22, 2014 at 5:49 am #72317Sandeep JMember
Hello Guys,
I need Indesign macro to export and import alt text.
Could you please help to create such macro? Motive is to export text for localization and after localization import the same.
to find alt text go to Object -> Object Export Options -> Alt Text
-
December 22, 2014 at 5:52 am #72318Sandeep JMember
Any jsx script will do, that will export indesign alt text and later after localization that could be import on the respective graphics.
-
December 22, 2014 at 8:14 am #72320David BlatnerKeymaster
This is not a simple task, Sandeep. I am sure it can be done with a script, but do you have a budget to pay someone to write it? What format do you want the text in? One long txt file? Or many txt files? A CSV file?
-
December 22, 2014 at 9:09 am #72321Chris ThompsonMember
Is the alt text included in an IDML file? Do you need the remaining text translated also (i.e. the text that isn’t alt text) ?
Most translators can use IDML as an exchange format for their CAT (computer aided translation) tools.Chris.
Edit: answering my own question – apparently IDML isn’t an option:
I set up a test file, and my alt text didn’t appear in Wordfast Pro (the CAT tool that I use).
Plus, this link :
https://www.proz.com/forum/sdl_trados_support/275228-sdl_trados_studio_2014_cannot_extract_alt_text_in_idml_files.html
appears to suggest that Trados (the most widely-used CAT tool) doesn’t see the text either. -
December 22, 2014 at 10:28 am #72324Sandeep JMember
even I am using wordfast pro, I don’t know how can I make this alt text appear in TXML, very confusing.
I have 50 InDesign file and I don’t want to manually export that text using Object -> Object Export Options -> Alt Text and later paste the same.
-
December 23, 2014 at 1:46 am #72334Chris ThompsonMember
Hmm, interesting.
I’ve just created a test file with alt text on and object, and exported to IDML. I then opened up the IDML (which is just a zipped archive of XML files), to look through with a text editor.
The alt text IS in fact in the IDML file, under Spreads.In my very simple sample it was in a file called Spread_uc3.xml, and in a section of XML like this:
<ObjectExportOption AltTextSourceType=”SourceCustom” ActualTextSourceType=”SourceXMLStructure” CustomAltText=”Alt text added in the dialog” CustomActualText=”$ID/” ApplyTagType=”TagFromStructure” CustomImageConversion=”false” ImageConversionType=”JPEG” CustomImageSizeOption=”SizeRelativeToPageWidth” ImageExportResolution=”Ppi300″ GIFOptionsPalette=”AdaptivePalette” GIFOptionsInterlaced=”true” JPEGOptionsQuality=”High” JPEGOptionsFormat=”BaselineEncoding” ImageAlignment=”AlignLeft” ImageSpaceBefore=”0″ ImageSpaceAfter=”0″ UseImagePageBreak=”false” ImagePageBreak=”PageBreakBefore” CustomImageAlignment=”false” SpaceUnit=”CssPixel” CustomLayout=”false” CustomLayoutType=”AlignmentAndSpacing”>
The alt text that I added is “Alt text added in the dialog” which appears under CustomAltText=”Alt text added in the dialog”
So it would appear that the filters used by our CAT tools aren’t picking this up as potentially-translatable text.
I wonder if the open source OmegaT with those Okapi filters would be configurable to do this? Sorry, but I don’t have the time or tech knowledge to test this.
Good luck,
Chris
-
-
AuthorPosts
- You must be logged in to reply to this topic.