From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47656 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: LM typsescript problem Date: Mon, 23 Feb 2009 12:22:15 -0500 Message-ID: References: <34ABF7A8-CE4F-437D-9CA3-FE9376350226@princeton.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============0594370418==" X-Trace: ger.gmane.org 1235409887 8468 80.91.229.12 (23 Feb 2009 17:24:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 17:24:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 23 18:26:02 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LbeZ6-00084Q-OF for gctc-ntg-context-518@m.gmane.org; Mon, 23 Feb 2009 18:26:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DB901FCDD; Mon, 23 Feb 2009 18:24:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05735-03-15; Mon, 23 Feb 2009 18:23:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 740271FCF3; Mon, 23 Feb 2009 18:23:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C71A71FCF3 for ; Mon, 23 Feb 2009 18:23:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05735-03-14 for ; Mon, 23 Feb 2009 18:22:47 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 311261FCEF for ; Mon, 23 Feb 2009 18:22:47 +0100 (CET) Original-Received: from vms173015pub.verizon.net (vms173015pub.verizon.net [206.46.173.15]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1NHMioA000605 for ; Mon, 23 Feb 2009 18:22:46 +0100 Original-Received: from new-host.home ([72.82.250.115]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KFJ00EQB493CPLQ@vms173015.mailsrvcs.net> for ntg-context@ntg.nl; Mon, 23 Feb 2009 11:22:16 -0600 (CST) In-reply-to: <34ABF7A8-CE4F-437D-9CA3-FE9376350226@princeton.edu> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=206.46.173.15; country=US; region=TX; city=Grapevine; postalcode=76051; latitude=32.9234; longitude=-97.0810; metrocode=623; areacode=817; http://maps.google.com/maps?q=32.9234,-97.0810&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 184069728 - 5c324a5bd25c X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47656 Archived-At: --===============0594370418== Content-type: multipart/alternative; boundary=Apple-Mail-2--595502548 --Apple-Mail-2--595502548 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Please forgive my resending this. The problem is acute since it concerns a journal that I publish. As I understand it right now, the problem is that Thomas's latest Greek module and my installation of Latin Modern in MKII are not playing nicely together. (The module works well when I use other fonts). Is there a better diagnosis of the problem or even a fix for it? I would really hate to have to change the bodyfont for the journal at this point in the current volume. Alan On Feb 22, 2009, at 10;56,17 , Alan Bowen wrote: acute > I am currently faced with an unacceptable choice (ConTeXt ver: > 2009.01.18 14:39 MKII). > > My environment file has: > > \enableregime[mac] > \mainlanguage[en] > % use \fr, \de, e.g., for local changes > > %%%% Margin Kerning and Font Expansion > \usetypescript[serif,sans,mono,mm][hanging][normal] > \setupalign[hz,hanging] > \setupfootnotes[align={hz,hanging}] > > \startfonthandling[greekpure] > \defineprotrudefactor . 0 1 > \defineprotrudefactor , 0 1 > \defineprotrudefactor ; 0 1 > \defineprotrudefactor ? 0 1 > \defineprotrudefactor - 0 1 > > \defineprotrudefactor hyphen 0 1 > \defineprotrudefactor endash 0 .5 > \defineprotrudefactor emdash 0 .33 > \stopfonthandling > > %%%% Default Encoding > \setupencoding[default=ec] > > % install Latin Modern > % install margin kerning BEFORE the font is loaded: since Latin > Modern is > % loaded before font definitions, load it again > > \usetypescript[lmodern][\defaultencoding] %<<== > \starttypescript[serif][default][size] %<<== > \definebodyfont[9.5pt,10.5pt][rm][default] > \definebodyfont[9.5pt,10.5pt][mm][default] > \stoptypescript %<<== > > \setupbodyfont[lmodern,rm,10.5pt] > > %\setupfontsynonym[Serif][handling=normal] > > % install Greek Font > \usemodule[ancientgreek] > [font=GreekDioxipe,scale=1.15,altfont=GreekCanonica,altscale=0.9] > > \setupfontsynonym[GreekDioxipe][handling=greekpure] > \setupfontsynonym[GreekCanonica][handling=greekpure] > > If I run it as it is, the Greek fonts behave properly but I get > arithmetic overflow errors as soon as ConTeXt reaches a footnote: > e.g. > > ! Arithmetic overflow. > \dododefineprotrudefactor ...width \fi \fi \relax > \rpcode > \handledfont #1\di... > > \dosetpairhandling ...ng \let \char \normalchar }} > \fi > ...ododefineprotrudefactor ! 0 .2 > \dosetpairhandling > \dodode... > > \next1 ...csname \the \csname \@fha@ #1\endcsname > \fi > \rawprocesscommaitem ...commalevel \endcsname {#1} > \expandafter > \rawprocessco... > punctuation,a > lpha,extended > ... > l.34 \footnotetext[first] > {An Italian version of this review is to be > publish... > > If I comment the lines marked by %<<==, the Greek fonts do not print > at the right size and I lose all control of the scaling. (Changing > the scale accomlishes nothing.) Still, I do get footnotes and > document processes properly otherwise. > > Again, any suggestions would be greatly appreciated. > > Alan --Apple-Mail-2--595502548 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Please forgive my resending = this. The problem is acute since it concerns a journal that I = publish. 

As I understand it right now, the = problem is that Thomas's latest Greek module and my installation of = Latin Modern in MKII are not playing nicely together. (The module works = well when I use other fonts). 

Is there a = better diagnosis of the problem or even  a fix for it? I would = really hate to have to change the bodyfont for the journal at this point = in the current = volume.

Alan


On Feb 22, 2009, at 10;56,17 , Alan Bowen wrote: = acute

I am currently faced = with an unacceptable choice (ConTeXt  ver: = 2009.01.18 14:39 MKII).

My environment = file has:

\enableregime[mac]
\mainlanguage[en]
% use \fr, \de, e.g., for = local changes

%%%%  Margin Kerning and Font = Expansion
\usetypescript[serif,sans,mono,mm][hanging][normal]=
\setupalign[hz,hanging]
\setupfootnotes[align=3D{hz,hanging}]

\startfonthandling[greekpure]
\defineprotrudefactor . 0 = 1
\defineprotrudefactor , 0 1
\defineprotrudefactor ; 0 = 1
\defineprotrudefactor ? 0 1
\defineprotrudefactor - 0 = 1

\defineprotrudefactor hyphen 0 1
\defineprotrudefactor endash = 0 .5
\defineprotrudefactor emdash 0 = .33 
\stopfonthandling

%%%%  Default = Encoding
\setupencoding[default=3Dec]

% install Latin = Modern
%= install margin kerning BEFORE the font is loaded: since Latin Modern = is
% = loaded before font definitions, load it again

\usetypescript[lmodern][\defaultencoding]  = = %<<=3D=3D
\starttypescript[serif][default][size] = = %<<=3D=3D
  \definebodyfont[9.5pt,10.5pt][rm][default]
  \definebodyfont[9.5pt,10.5pt][mm][default]
\stoptypescript = %<<=3D=3D

\setupbodyfont[lmodern,rm,10.5pt]

%\setupfontsynonym[Serif][handling=3Dnormal]
<= div>
% install Greek Font
\usemodule[ancientgreek][font=3DGreekDioxipe,scale=3D1.15,= altfont=3DGreekCanonica,altscale=3D0.9]

\setupfontsynonym[GreekDioxipe][handling=3Dgreekpure]
\setupfontsynonym[GreekCanonica][handling=3Dgreekpure]

If I run it as it is, the Greek fonts = behave properly but I get arithmetic overflow errors as soon as ConTeXt = reaches a footnote:
e.g.

! = Arithmetic overflow.
\dododefineprotrudefactor ...width \fi \fi = \relax 
              =                     =                 \rpcode = \handledfont #1\di...


<argument> punctuation,a
...
l.34 = \footnotetext[first]
             =             {An Italian version of this = review is to be publish...

If I comment = the lines marked by %<<=3D=3D, the Greek fonts do not print at the = right size and I lose all control of the scaling. (Changing the scale = accomlishes nothing.) Still, I do get footnotes and document processes = properly otherwise.

Again, any suggestions = would be greatly = appreciated.

Alan
<= /div>
= --Apple-Mail-2--595502548-- --===============0594370418== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0594370418==--