ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Old-style numerals
@ 2005-06-16 12:50 Nikolai Weibull
  2005-06-16 13:39 ` Adam Lindsay
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Weibull @ 2005-06-16 12:50 UTC (permalink / raw)


To get old-style numerals as the default, the accepted solutions seems
to be the following:

\usetypescript [modern][\defaultencoding]
\usetypescript [map] [latin-modern-os] [\defaultencoding]

\setupbodyfont[modern]

However, this causes old-style numbers to be used for \type as well,
which looks weird.  Is there a way to override the switching to
old-style numerals for the fixed-width typeface?

Example:

\usetypescript [modern][\defaultencoding]
\usetypescript [map] [latin-modern-os] [\defaultencoding]
\setupbodyfont[modern]
\starttext
1 2 3 \type{1 2 3}
\stoptext

Thanks,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Old-style numerals
  2005-06-16 12:50 Old-style numerals Nikolai Weibull
@ 2005-06-16 13:39 ` Adam Lindsay
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Lindsay @ 2005-06-16 13:39 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

Nikolai Weibull said this at Thu, 16 Jun 2005 14:50:32 +0200:

>
>However, this causes old-style numbers to be used for \type as well,
>which looks weird.  Is there a way to override the switching to
>old-style numerals for the fixed-width typeface?

Variants on variants, here...

That makes sense, typographically. All I did was hack a few lines in the
texnansi-os-public-lm.map file so that the tt fonts used the original
encoding. UNzip and rehash with the attached file, and test it with this:

\usetypescript [modern][texnansi]
\loadmapfile[texnansi-oslftt-public-lm]
\setupbodyfont[modern]
\starttext
1 2 3 \type{1 2 3}
\stoptext
 
...adapting it to the typescript[map] idiom and to other encodings is
left as an exercise for the reader. :)
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[-- Attachment #2: newmap.zip --]
[-- Type: application/zip, Size: 978 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-16 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-16 12:50 Old-style numerals Nikolai Weibull
2005-06-16 13:39 ` Adam Lindsay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).