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
- This topic has 7 replies, 2 voices, and was last updated 7 years, 6 months ago by Kai Rübsamen.
-
AuthorPosts
-
-
September 28, 2016 at 2:56 pm #88708Steve StrausMember
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!
-
September 29, 2016 at 1:52 am #88715Kai RübsamenMember
So Steve, what is your question?
-
September 29, 2016 at 5:20 am #88719Steve StrausMember
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
-
September 29, 2016 at 6:27 am #88721Kai RübsamenMember
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
-
September 29, 2016 at 6:39 am #88723Steve StrausMember
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.
-
September 29, 2016 at 6:53 am #88724Kai RübsamenMember
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). -
September 29, 2016 at 11:00 am #88740Steve StrausMember
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?
-
September 29, 2016 at 11:26 am #88742Kai RübsamenMember
Steve, please contact me directly at info[at]ruebiarts.de.
-
-
AuthorPosts
- You must be logged in to reply to this topic.