Prevent URL's from breaking at the end of a line

81 views
Skip to first unread message

Tom

unread,
Nov 13, 2009, 2:05:10 AM11/13/09
to XMPie Interest Group
Hello all,

How can I prevent URL's from breaking at the end of a line in
InDesign?
I work with uDirect desktop version.
Text is placed in InDesign with an excel file as a text ADOR.

Example:
This is a small text with an url in the text www.facebook.
com wich breaks at the end of the line.

I want 'www.facebook.com' on the same line.

When working in a normal InDesign document, I would select the URL and
check 'No Break'
But how can I do this when using uDirect?

Tom

Bill

unread,
Nov 13, 2009, 3:14:26 AM11/13/09
to XMPie Interest Group
I made a little test, with CS3 French Windows and uDirect 4.6.2, and
could not reproduce your problem: XMPie allowed me assign the "No
Break"option ("Sans retour automatique" in French) to Text ADORs,
inserted in InDesign Text block, as easily as I would have done for
raw InDesign words or sentences...

I tried with URLs such as www.facebook.com, www.ververyveryveryveryverylong.com
and www.short.xx: each time it was necessary (i.e. for all cases,
except the last one), the whole URL provided by uDirect was entirely
moved to the next line in the InDesign Text block, with no visible
break, where the dots are located.

I certainly missed something in your question... Can you elaborate?

Else, I can provide this little application if needed.

Tom

unread,
Nov 13, 2009, 3:28:36 AM11/13/09
to XMPie Interest Group
Hi Bill,

the text placed from the excel list as a text ADOR is a whole text
block/sentence with the URL in. So it's not only an URL that's placed
in a block of text in InDesign. I can not assign the 'no break' option
to a whole text block, all text would be on one line than.
Maybe I can figure something out with nested styles.

Tom

JasonSpr

unread,
Nov 13, 2009, 12:05:43 PM11/13/09
to XMPie Interest Group
Is it just one URL, and is the URL always in the same place in the
text? For example, is the data like
"Hey John, nice day isn't it, please visit URLHERE, thanks!"

If so, one workaround would be to alter your data in excel so that you
have three columns, blurb1 blurb2 blurb3, with blurb2 consisting of
the URL, and the other two of the text surrounding it. Then you could
turn on the no break option for that Ador.

Cheers
-JG

Tom

unread,
Nov 16, 2009, 3:38:49 AM11/16/09
to XMPie Interest Group
hey Jason,

No it's not like that.
Its always a different text, sometimes up to 3 URL's in the sentence.
So with your solution, I would end up with 7 or 8 colums for 1 piece
of text.

I tried something with nested composition, but that only works with
text files and I can't assign onother paragraph style (with no break)
to the nested text ADORs.

but still thanks for your effort to find a solution for me.

Tom

Mark Kuehn

unread,
Nov 16, 2009, 10:34:40 PM11/16/09
to xmpie...@googlegroups.com
The way you could do it is by using InDesign Tagged Text. Search this group
for Superscripting. It is not real "clean or easy" by it does work.

-Mark

Tom

unread,
Nov 17, 2009, 4:09:51 AM11/17/09
to XMPie Interest Group
Of course, that works. Didn't think of that.
maybe I was hoping for an easier solution.

thanks.

Tom

JasonSpr

unread,
Nov 17, 2009, 11:29:05 AM11/17/09
to XMPie Interest Group
I took the liberty of doing a search for Superscripting but
unfortunately found only this thread. How would tagged text be used
here? Wouldn't any tagging applied just end up being applied to the
entire text of the ador? It seems Tom understands the suggestion, so
this is just for my own curiosity and knowledge.

Cheers,
Jason

Bill

unread,
Nov 17, 2009, 12:02:52 PM11/17/09
to XMPie Interest Group
Just type "Superscript" in the Group Search bar, and you would find at
least two quite recent and interesting discussions on the matter.
Good luck!

Mark Kuehn

unread,
Nov 17, 2009, 4:23:11 PM11/17/09
to xmpie...@googlegroups.com
When using tagged text, you essentially have the exact level of control that
you have using InDesign from the GUI. The difference is each action you want
taken must be controlled using tag names. The most current reference I could
find for tag names is in this document
www.adobe.com/go/learn_id_taggedtext

-Mark

> From: JasonSpr <jason.go...@gmail.com>
> Reply-To: <xmpie...@googlegroups.com>
> Date: Tue, 17 Nov 2009 08:29:05 -0800 (PST)
> To: XMPie Interest Group <xmpie...@googlegroups.com>
> Subject: [xmpie-users] Re: Prevent URL's from breaking at the end of a line
>
>

Mark Kuehn

unread,
Nov 17, 2009, 4:52:08 PM11/17/09
to xmpie...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages