From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47601 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: LM typsescript problem Date: Sun, 22 Feb 2009 10:56:17 -0500 Message-ID: <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="===============0361058611==" X-Trace: ger.gmane.org 1235334764 18768 80.91.229.12 (22 Feb 2009 20:32:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2009 20:32:44 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 22 21:34:00 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 1LbL1T-0005i9-98 for gctc-ntg-context-518@m.gmane.org; Sun, 22 Feb 2009 21:33:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2D081FE50; Sun, 22 Feb 2009 21:32:36 +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 09697-02-6; Sun, 22 Feb 2009 21:31:18 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41FA91FD5A; Sun, 22 Feb 2009 21:01:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B48F1FB1F for ; Sun, 22 Feb 2009 16:57:09 +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 14812-06-2 for ; Sun, 22 Feb 2009 16:56:25 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id DCBBF1FADF for ; Sun, 22 Feb 2009 16:56:25 +0100 (CET) Original-Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1MFuOb8027862 for ; Sun, 22 Feb 2009 16:56:25 +0100 Original-Received: from new-host.home ([72.82.250.115]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KFH00KP05LTWDTD@vms173019.mailsrvcs.net> for ntg-context@ntg.nl; Sun, 22 Feb 2009 09:56:18 -0600 (CST) X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=206.46.173.19; 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: 183537056 - 599fc000ae55 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:47601 Archived-At: --===============0361058611== Content-type: multipart/alternative; boundary=Apple-Mail-1--687060062 --Apple-Mail-1--687060062 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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-1--687060062 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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

= --Apple-Mail-1--687060062-- --===============0361058611== 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 ___________________________________________________________________________________ --===============0361058611==--