Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Script / Plug-in to map changes to fonts (change globally and repetitively)

Return to Member Forum

  • Author
    Posts
    • #61341
      Eric Chapman
      Member

      I am translating the InDesign files for a 5-volume set of books from English using a Translation Environment Tool (TEnT) that will export IDML in the target language. To preserve formatting, the TEnT carries over the font names to the target language IDML document. Many of the fonts in the original English source InDesign documents do not support all the target language characters. Maybe some power user of InDesign (I'm not) would know of tricks (a GREP script?) to change fonts in InDesign documents quickly, consistently and repetively?Actually they need to be “mapped.” I will need to repeatedly run the script each time I export a trial run of an ID document to map multiple source fonts to multiple target fonts.

      I'm going to have to go through all the fonts and try to find comparable ones for the target language, but after I get that done, there's got to be an easy way change them document-wide so the new InDesign document is readable in the target language. Thank you!

      I'm using CS5.5 on a Mac running OS 10.6.8 (Snow Leopard). I am running FontAgent Pro 4.202.

      P.S. I did find this, but it apparently doesn't support CS4 or CS5, and it is for missing fonts, not quite what I'm looking for, but close. https://indisnip.wordpress.com/…..scripting/

    • #61346
      Eric Chapman
      Member

      On another list I got this suggestion:

      “InDesign IDML files are some sort of zip archive. You could try to search for specific font names in all sub-files of the IDML files after having extracted them, replace the font name with the name of the new font, then recreate the IDML files and open them again in InDesign to check.”

      I did change the suffix to .zip and found a Resources folder with a fonts.xml file in it. But I have no clue what to do next — i.e. how to change font names, etc. or even if this is the right and/or only place to do it.

    • #61515
      Eric Chapman
      Member

      Could anyone help me make a Java script that I could edit to put in the names of the fonts I want to replace and the ones I want to replace them with? I found this for AppleScript (https://macscripter.net/viewtop…..p?id=31980), but I don't understand scripting, and I'm assuming it's better to use Java so I can share the script across platforms. Of course, on a font-by-font basis, one can just use Type>Find Font… and then replace it, but when there are lots of fonts and one has to repeat the process regularly, it'd be nice to have a script. Thank you! -Eric

    • #61519
      Anonymous
      Inactive

      The script you're looking for is FindChangeByList and it actually comes with InDesign. All you have to do is edit the text file that it points to with the text searches you are wanting to replace (though i recommend you duplicate the script and text file and name them something so you have the original).

      There's another script called RecordFindChange that you can get here:

      https://forums.adobe.com/message/2580645

      that makes it easier to get the text queries into the proper format for the text file.

    • #61533
      Eric Chapman
      Member

      jessereko said:

      The script you're looking for is FindChangeByList and it actually comes with InDesign. […]

      There's another script called RecordFindChange that you can get here:

      https://forums.adobe.com/message/2580645

      that makes it easier to get the text queries into the proper format for the text file.


      Thank you very, very much! I will try to make it work. And thanks for the warning about re-saving with a different name so as to preserve the originals.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Forum Ads