# Re: [NTG-context] disabling onum in url

On 2011-10-02 19:53, Pablo Rodríguez wrote:
> On 10/02/2011 06:40 PM, Philipp Gesang wrote:
> > Well, in my previous example, rather use:
> >
> >   \definefontfeature[url][onum=no,smcp=yes]
> >
> > and come back with a complete example if it doesn’t help.
>
> Philipp, I'm afraid it doesn't work. Sample file:

As I thought: the problem is rather with latin modern not having
small caps as font feature, so „\definefontfeature” will have
zero effect on the example. Your options are afaics: either pick
a font that has the smcp feature (\setupbodyfont[antykwa-poltawskiego]
for example) or rely on the “style” key of the interaction
setups:

·································································

\setupbodyfontenvironment[default][em=italic]
\setupinteraction[state=start,color=,style=\em,contrastcolor=,focus=standard]

\setupurl[style={\tf\sc}]
%%%                 ^^^ for the traditional method

\define[1]\href{%
\begingroup
\setupinteraction[style=\sc]% locally override the interaction style
\goto{\hyphenatedurl{#1}}[url(#1)]%
\endgroup%
}

\starttext

42 abcd
%%% With the internal command:
\from[aurl]
42 abcd
\href{0123456789abcdef}
42 abcd

\stoptext

·································································

> Imagine a whole book in one document. If you have more than 100 urls, it
> would be inconvenient to have to go to the document preamble and back to
> the body text only to add an url.

In this case, wouldn’t you prefer a bibliography?

Philipp

--
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpDazBje1xeD.pgp
Description: PGP signature

___________________________________________________________________________________
___________________________________________________________________________________