On 10/8/2013 4:34 PM, Stéphanie Vilayphiou wrote:
Hello,
I'm making a flushleft document with no hyphenation. However, URLs are
then not hyphenated either and end up in the margin.
\hyphenateurl{} works only when setupalign[] is set to hyphenated.
Is there a way to hyphenate only URLs?
You need to provide a few more options to \setupalign:
\starttext
\appendtoks\tttf\to\everyhyphenatedurl % maybe we need a proper setup
\setupalign[nothyphenated,stretch,tolerant]
I wonder how stable these youtube links are but nevertheless youtube is
a nice
way to find new artists. Some only perform (mostly) at this medium, like
\hyphenatedurl {http://www.youtube.com/watch?v=FI0fyOaD94Y} also to be
seen in
\hyphenatedurl {http://www.youtube.com/watch?v=HIJPxxoF7dw} and
\hyphenatedurl
{http://www.youtube.com/watch?v=r2i7TkGwOCw} (beware, you can spend days
watching
this once you see what's going on). Videos like \hyphenatedurl
{http://www.youtube.com/watch?v=6CombsS6vFc} trigger you to visit
concerts. Or this one
\hyphenatedurl {http://www.youtube.com/watch?v=HJ0ImaGUYZo} (you have to
him live!)
also to be seen in \hyphenatedurl
{http://www.youtube.com/watch?v=NgzQ_e2huJQ} (a series).
Also, once you start looking up some specific artists it can trigger you in
buying all dvd's and many cd's on where they perform, like \hyphenatedurl
{http://www.youtube.com/watch?v=Y6YooxOTsus}, \hyphenatedurl
{http://www.youtube.com/watch?v=9hdxYW2YODE}, and \hyphenatedurl
{http://www.youtube.com/watch?v=su8ztwNbIsU}. beware, watching the
interviews
with him and and watching his instructional videos changes the way you
listen to
some music. And then there are those videos (but of course I use the dvds
eventually) that are great while pondering and writing new code, take
\hyphenatedurl {http://www.youtube.com/watch?v=umyB1QDP5PM}. Then there
are those
channels, like \hyphenatedurl
{http://www.youtube.com/user/JoeBonamassaTV?feature=watch}, that make
you buy
even more disks, this time I bought blu-rays (forcing me to buy a player
too). I could
on for ages but I now have enough links for testing.
\stoptext
Well, it renders okay, but one can debate of it looks pretty. Let's hope
that you might use ragged right rendering. Urls will always be kind of
ugly anyway.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________