From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88334 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \os Date: Sun, 3 Aug 2014 20:48:11 +0200 Message-ID: <52459496-C03F-4A44-AB43-80AA06704F2F@gmail.com> References: <9891CD4C-1BE2-4F7F-8FFF-BAD0E3D88CD6@gmail.com> <4FFD6FC4-B015-4613-BAD2-C53728EA7EF5@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1836696347==" X-Trace: ger.gmane.org 1407091733 23704 80.91.229.3 (3 Aug 2014 18:48:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Aug 2014 18:48:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 03 20:48:48 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XE0pm-0004ZJ-Sw for gctc-ntg-context-518@m.gmane.org; Sun, 03 Aug 2014 20:48:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8485D10221 for ; Sun, 3 Aug 2014 20:48:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c7VTyclVZ5aI for ; Sun, 3 Aug 2014 20:48:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1924210222 for ; Sun, 3 Aug 2014 20:48:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5494D101E6 for ; Sun, 3 Aug 2014 20:48:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id a9XaqNeC+H2n for ; Sun, 3 Aug 2014 20:48:18 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 2182F101E2 for ; Sun, 3 Aug 2014 20:48:17 +0200 (CEST) Original-Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s73ImGLb011453 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 3 Aug 2014 20:48:17 +0200 Original-Received: by mail-wi0-f175.google.com with SMTP id ho1so3867747wib.14 for ; Sun, 03 Aug 2014 11:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=nwhxxnQ79Oxaf4xzraeAh09bQbu6YcGcXPvCeCWUeL4=; b=LqD9xgU+RU7SsnZpVEkG3Ha7Otl+u85v+LSCj4R+feQuBZC5U8UgHQuprIW/5GnllA Zn4Vz5kuPw3SPskyiIMfgGHFkWxf7qudBX3tnI0mRhE8sS2OQ2IBC8/22H9Hc7ub8uyf C4NiUfU6OXede74HS9Z3hzR3L9psv5Lcc0cmWDJT6HAfvvi4J6vWXc5BI/hmZ71V4Mvb 1sHJg+Bfwdy8ZzQuvRqxfrE5qA9To/iuMxdGmFuhLqt57JFCJG+SFVZSF0Nh+HXz9NhL tJVuGh90/nDML4j7w6vzleAb+PU5LACuhZDIvS9hcIfdPLB/moZTn5BUJ5DhjfXOIvz2 +u7w== X-Received: by 10.180.96.169 with SMTP id dt9mr23067222wib.62.1407091696709; Sun, 03 Aug 2014 11:48:16 -0700 (PDT) Original-Received: from keima.localdomain (x2f2e336.dyn.telefonica.de. [2.242.227.54]) by mx.google.com with ESMTPSA id da9sm32478435wib.5.2014.08.03.11.48.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Aug 2014 11:48:14 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TMyiMhiP - 86abd2538a37 - 20140803 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88334 Archived-At: --===============1836696347== Content-Type: multipart/alternative; boundary="Apple-Mail=_A101440E-F24A-42C8-A9C5-010931799D4B" --Apple-Mail=_A101440E-F24A-42C8-A9C5-010931799D4B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 02.08.2014 um 22:36 schrieb Proch=E1zka Luk=E1=9A : > Hello, >=20 > On Sat, 02 Aug 2014 19:07:43 +0200, Wolfgang Schuster = wrote: >=20 >> Don=92t 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. >=20 > OK, thanks for explanation. >=20 > This means that one has to switch to \os only when a number is to be = printed. >=20 > So when I want all numbers in the document to be old-style (and also = ligatures etc. be kept), I have to: >=20 > 1) switch to {\os } when writing a number manually, >=20 > 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"). >=20 > It seems to me be a little "labor of Sisyphus" at the moment. >=20 > (But it's clear one would have to enclose manually entered numbers to = {\os } or similar structure anyway.) No, this is wrong and I=92m not sure what you try to achieve because = first you talk about disabling old style figures and now your talking = about enabling them. When you *want* your document to use old style figures for the body font = you have to enable the onum feature in the default feature set which can = be done with \definefontfeature[default][default][onum=3Dyes] before you set the font with the \setupbodyfont command. To change the = numbers for certain parts of your document you can use the \feature = command, e.g. \setupcaption[figure][style=3D{\feature[+][f:lnum]}] enables lining figures for the caption of your figures. The \os command itself should only be used when you have a few numbers = which should appear in a different layout from the global setup. Wolfgang= --Apple-Mail=_A101440E-F24A-42C8-A9C5-010931799D4B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 02.08.2014 um 22:36 schrieb = Proch=E1zka Luk=E1=9A <LPr@pontex.cz>:

Hello,

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

Don=92t 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.)

No, this is = wrong and I=92m not sure what you try to achieve because first you talk = about disabling old style figures and now your talking about enabling = them.


When you *want* your = document to use old style figures for the body font you have to enable = the onum feature in the default feature set which can be done = with

    = \definefontfeature[default][default][onum=3Dyes]

= before you set the font with the \setupbodyfont command. To change the = numbers for certain parts of your document you can use the \feature = command, e.g.

    = \setupcaption[figure][style=3D{\feature[+][f:lnum]}]

<= div>enables lining figures for the caption of your = figures.


The \os command itself = should only be used when you have a few numbers which should appear in a = different layout from the global = setup.

Wolfgang
= --Apple-Mail=_A101440E-F24A-42C8-A9C5-010931799D4B-- --===============1836696347== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1836696347==--