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: 

Viewing 5 reply threads
  • Author
    Posts
    • #72317
      Sandeep J
      Member

      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

    • #72318
      Sandeep J
      Member

      Any jsx script will do, that will export indesign alt text and later after localization that could be import on the respective graphics.

    • #72320
      David Blatner
      Keymaster

      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?

    • #72321

      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.

    • #72324
      Sandeep J
      Member

      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.

    • #72334

      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

Viewing 5 reply threads
  • You must be logged in to reply to this topic.
>