Tags and attributes

1 view
Skip to first unread message

Michael Brady

unread,
Jun 1, 2012, 4:26:35 PM6/1/12
to indesi...@googlegroups.com
Is there a way in ID CS5.5 or 6 to apply an XML tag **with attributes** directly to a selected range of text in the layout, in the manner of using the Pragraph or Character Styles panels?

Below is a link to a screen movie I made showing what I am interested in doing. Right now I am faced with repeating a rote task of three separate steps 500 or 1,000 times. If I could apply the attributes with on single click of the mouse and now with clicking on a right-button menu item, then typing the same text over and over again,that would be immensely helpful.

Here is the link (btw, it's 13.5Mb):

http://www.michaelbradydesign.com/Transfer/InDesign_List/XML_tags_1.mov

Thanks


| | | | | | | | | | | | | | | | | | |
Michael Brady
www.michaelbradydesign.com/Blog/ | mic...@michaelbradydesign.com
www.twitter.com/typehuile | www.linkedin.com/in/typehuile | www.facebook.com/typehuile

"Thinking Like a Designer" at https://www.createspace.com/3462255

Roy McCoy

unread,
Jun 1, 2012, 6:36:20 PM6/1/12
to indesi...@googlegroups.com
Michael B. wrote:

> Is there a way in ID CS5.5 or 6 to apply an XML tag **with attributes** directly to a selected range of text in the layout, in the manner of using the Pragraph or Character Styles panels?

What you're doing now seems to me kind of like using these panels in that you're clicking on something in a list to the side of your doc. But you're typing something else and you want to automate the whole thing. I'm sure it can be done and probably fairly easily, though I've never worked with XML.

One thing that should help you but that you don't indicate being aware of is that you can assign a keycode to New Attribute (Edit > Keyboard Shortcuts > Product Area: Structure Menu). With a keycode assigned, you could for example get QuicKeys to type that and the attribute desired, and then I suppose you'd just need a QK shortcut for each attribute. The whole thing could probably be scripted as well, but we know about your attitude toward scripting. If a job like this doesn't get you at least into a simple utility like QuicKeys, then, well, good luck.


Roy

Evans, Rebecca

unread,
Jun 4, 2012, 7:38:51 AM6/4/12
to indesi...@googlegroups.com
Michael:

If the boldface term that uses the span is an InDesign character style,
you can assign an XML class to the span via the character style definition
in InDesign. In Character Style Options, at the bottom of the lefthand
list, is "Export Tagging." When you click on it, you have the option of
assigning an XML Tag and Class.


Rebecca Evans
Senior Designer/Compositor
The University of North Carolina Press
web: http://www.uncpress.unc.edu <http://www.uncpress.unc.edu/> and
http://southerngateways.com <http://southerngateways.com/>
blog: http://uncpressblog.com/ and http://uncpresscivilwar150.com/
facebook: http://www.facebook.com/UNCPress
twitter: https://twitter.com/uncpressblog
>--
>you are subscribed to "InDesign talk" on Google Groups, to post: send
>email to indesi...@googlegroups.com, to unsubscribe: send email to
>indesign-tal...@googlegroups.com, for more options visit
>http://groups.google.com/group/indesign-talk

Michael Brady

unread,
Jun 4, 2012, 7:46:43 AM6/4/12
to indesi...@googlegroups.com
Rebecca:

> If the boldface term that uses the span is an InDesign character style,
> you can assign an XML class to the span via the character style definition
> in InDesign. In Character Style Options, at the bottom of the lefthand
> list, is "Export Tagging." When you click on it, you have the option of
> assigning an XML Tag and Class.


God love you, sweeetie!
Thanks.

Michael
Reply all
Reply to author
Forward
0 new messages