Script to add Style Name slugs to each paragraph

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Script to add Style Name slugs to each paragraph

Viewing 7 reply threads
  • Author
    Posts
    • #88708
      Steve Straus
      Member

      I have been asked to export the text from a book so an editor can work on the text in Word for a new project. I have been searching for a script that would add slugs before and after each different paragraph style: <T>, </T>, etc. This could then be used when the book is repoured and styled via Find/Change. I know that the styles will export and stay intact, but these are not foolproof when an editor hacks into them in Word. I prefer to eliminate all paragraph styles when importing from Word and start fresh. Automation is the only way to do this as adding tags to every paragraph would take an eternity. Thanks!

    • #88715

      So Steve, what is your question?

    • #88719
      Steve Straus
      Member

      Kai — Do you know of a script that would do such a task? I use a script that adds small text boxes in near each style but would also like the ability to add in-text style slugs upon export.

      https://www.mediafire.com/file/n502t3zldt4nxp5/StyleTagger.jsxbin

    • #88721

      No, I do not know anything about a existing script.

      Your provided script from Chinna, does throw an error here. I use instead a Script from Roland Dreger.
      https://www.rolanddreger.net/de/288/absatzformate-auszeichnen-via-skript/#

      Back to your question: It is not clear what ‘in-text style slugs’ are for you?!
      If you try to insert tags in your document, you will surely get overset.

      However: Inserting tags seems possible. But since such a script is special and took more than 5 minutes, it should not provided for free.

      Kai

    • #88723
      Steve Straus
      Member

      Kai — My end goal is a Word doc with visible style tags embedded directly into the text so an editor can see what style the paragraph is when they are editing the doc. The second goal of such a script is so when re-imported back into ID, I can use this slug as an element that can be used in Find/Change to style the text. Yes, it would cause overflow in the ID doc, but my end file that I need is a Word doc, so trashing the ID doc would be okay. I agree that this would be a special script that is well worth paying for. I was not looking for a hand-out as this is for commercial purposes.

    • #88724

      Steve, well you could first test xtags from EM Software: https://emsoftware.com/products/emtags/ or this one: https://www.bitmix.de/ if this goes in your direction.
      Additional to that, you could provide a before/after InDesign-File (e.g. via dropbox).

    • #88740
      Steve Straus
      Member

      Kai — Here is a link to a set of files to help clarify what I am looking for:

      https://dl.dropboxusercontent.com/u/1610090/TextSample.zip

      After working up this sample, I think it might work better to try to export the text to a new ID doc where tweaks could be made prior to exporting to Word. Page 4 shows what type of doc I am looking to create: one with all the text in a single text box with style slugs added to each new style.

      This file also contains a working version of StyleTagger too.

      Any interest in trying to create such a script? If so, for how much?

    • #88742

      Steve, please contact me directly at info[at]ruebiarts.de.

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