ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš" <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: \os
Date: Sat, 02 Aug 2014 22:36:25 +0200	[thread overview]
Message-ID: <op.xjzfiz122ef5qg@lk-2008-nbk> (raw)
In-Reply-To: <4FFD6FC4-B015-4613-BAD2-C53728EA7EF5@gmail.com>

Hello,

On Sat, 02 Aug 2014 19:07:43 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> Don’t use the \os command this way because the command is only meant to be used on the form {\os 1234} where you put braces around the numbers you want to change. When you use the \os command as shown above you get problems because ligatures, kerning etc. are disabled by the command.

OK, thanks for explanation.

This means that one has to switch to \os only when a number is to be printed.

So when I want all numbers in the document to be old-style (and also ligatures etc. be kept), I have to:

1) switch to {\os } when writing a number manually,

2) define "old-style-making-commands" wherever numbers are generated automatically, i.e. e.g.:
	- head commands (sections, chapters...),
	- enumerator commands (which use numbers),
	- page numbering commands,
	- href commands (which generate texts like "see section 1.2.3 on page 123").

It seems to me be a little "labor of Sisyphus" at the moment.

(But it's clear one would have to enclose manually entered numbers to {\os } or similar structure anyway.)

Thanks anyway,

Lukas

> \starttext
>
> AV TA fi ffi fl ffl
>
> {\os AV TA fi ffi fl ffl}
>
> \stoptext
>
>
> A different method to enable old style figures is to use the \feature command which enables the feature without canceling ligatures etc.
>
> \definefontfeature[f:oldstyle][onum=yes]
>
> \starttext
>
> 0123456789 {\os 0123456789} 0123456789
>
> 0123456789 \feature[+][f:oldstyle]0123456789 \feature[-][f:oldstyle]0123456789
>
> \stoptext
>
> Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2014-08-02 20:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 16:39 \os Procházka Lukáš Ing. - Pontex s. r. o.
2014-08-01 16:51 ` \os Wolfgang Schuster
2014-08-02  8:51   ` \os Procházka Lukáš Ing. - Pontex s. r. o.
2014-08-02 17:07     ` \os Wolfgang Schuster
2014-08-02 20:36       ` Procházka Lukáš [this message]
2014-08-03 17:26         ` \os Joshua Krämer
2014-08-03 18:48         ` \os Wolfgang Schuster
2014-08-03 21:10           ` \os Procházka Lukáš

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.xjzfiz122ef5qg@lk-2008-nbk \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).