[NTG-context] hyphenate urls in a non hyphenated text

Stéphanie Vilayphiou stephanie.vilayphiou at gmail.com
Wed Oct 9 00:01:50 CEST 2013


Ah ok, I tried it in Context live first and it didn't output a PDF, but 
it works like a charm on my server.
See an example here, page 24: 
http://esadgv.stdin.fr/media/pdf/esad-gv_catalogue_2012-2013.pdf
Thanks a lot for your help!
Stéphanie

Le mar. 08 oct. 2013 22:37:27 CEST, Marco Patzer a écrit :
> On 2013–10–08 Stéphanie Vilayphiou wrote:
>
>> I'd like to try a minimal example of your second email, Hans, but I
>> can't figure out how to use those functions?
>> Can you make another minimal example so that I can understand better
>> how this works?
>
> It's sufficient to copy-paste the code into your document. Note that
> the redefined code has do precede \setupalign.
>
> \unprotect
> \unexpanded\def\nohyphens
>    {\ifx\dohyphens\relax
>       \unexpanded\edef\dohyphens
>         {\hyphenminoffset\the\hyphenminoffset\relax
>          \lang_basics_synchronize_min_max}%
>     \fi
>     \hyphenminoffset\plusthousand
>     \lang_basics_synchronize_min_max}
> \protect
>
> \setupalign
>    [nothyphenated]
>
> \starttext
>    \hyphenatedurl{http://bits.blogs.nytimes.com/2010/03/05/a-former-book-designer-says-good-riddance-to-print/?hpw&_r=0}
>    \input knuth
> \stoptext
>
> Marco
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________

--
École Supérieure d'Art et Design, www.esad-gv.fr — 25 rue Lesdiguières,
38 000 •Grenoble ; Tél. +33 (0)4 76 86 61 30, Fax +33 (0)4 76 85 28 18,
Mél. grenoble@ esad-gv.fr — Place des Beaux-Arts, CS 40 074, 26 903
•Valence cedex 9 ; Tél. +33 (0)4 75 79 24 00, Fax +33 (0)4 75 79 24 40,
Mél. valence@ esad-gv.fr •Inge Linder-Gaillard, responsable des études
et de la recherche, T^él. +33 (0)4 76 86 61 34, M^ob. +33 (0)6 98 08 43
86, M^él. inge.linder-gaillard at esad-gv.fr



More information about the ntg-context mailing list