I found something I had posted on XMPie's support site, and thought it might
be relevant to this discussion. This example is specific to superscripting
an embedded register mark, but with a little creativity it could be switched
to the non breaking URL.
Using InDesign Tagged Text method requires a single ADOR loaded with all the
markup for the line or paragraph you are wanting to set.
The easy method I have found to do this is by creating a couple of static
variables and appending them together in a QLingo expression. It can all be
placed into a single expression, but I break it apart for ease of use and
general readability.
variable-> _indd_tt_intro
value->
"<UNICODE-WIN>\r\n<Version:5><FeatureSet:InDesign-Roman><ParaStyle:NormalPar
agraphStyle>"
variable-> _indd_tt_font_start
value->
"<cTypeface:Light><cSize:9.000000><cLeading:16.000000><cFont:Century>"
variable-> _indd_tt_font_end
value-> "<cTypeface:Light><cSize:><cLeading:><cFont:>"
variable-> _input_string
value-> "This text contains several register marks, Apple® and iPod® that
need to be superscripted."
ADOR-> paragraph_or_line_of_text
Type-> Text
value->
if( length( trim( @{_input_string} ) ) )
{
@{_indd_tt_intro} & @{_indd_tt_font_start} & FindAndReplace( trim(
@{_input_string}, "®", "<cPosition:Superscript>®<cPosition:>" ) &
@{_indd_tt_font_start}
}
else
""
}
When you place the ADOR paragraph_or_line_of_text into your document, the
ADOR will expand and would set the value of input string in Century Light 9
point font on 16 point leading and superscript any embedded register marks.
There is no need to invoke nested composition in this example. In fact, I do
not believe you can used actual nested ADORs with this method and make it
work. I've never tried, so take that as an appropriate disclaimer.
-Mark