From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85534 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Re: Palatino patch for the current ConTeXt version Date: Sun, 1 Dec 2013 09:40:05 +0100 Message-ID: <11281.9852577106$1385887215@news.gmane.org> References: <001a01cee387$691cd370$3b567a50$@tosovsky@email.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385887204 29658 80.91.229.3 (1 Dec 2013 08:40:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Dec 2013 08:40:04 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 01 09:40:11 2013 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 1Vn2ZX-0004LG-8b for gctc-ntg-context-518@m.gmane.org; Sun, 01 Dec 2013 09:40:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38609101F8; Sun, 1 Dec 2013 09:40:10 +0100 (CET) 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 V41e43KaR6kS; Sun, 1 Dec 2013 09:40:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 93933101EE; Sun, 1 Dec 2013 09:40:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2930D101EE for ; Sun, 1 Dec 2013 09:40:07 +0100 (CET) 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 uMSblyO4x2vH for ; Sun, 1 Dec 2013 09:40:06 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 02281101DE for ; Sun, 1 Dec 2013 09:40:05 +0100 (CET) Original-Received: from fep11.mx.upcmail.net (fep11.mx.upcmail.net [62.179.121.31]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rB18e4ei017869 for ; Sun, 1 Dec 2013 09:40:05 +0100 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep11-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131201084004.UIIC22639.viefep11-int.chello.at@edge02.upcmail.net> for ; Sun, 1 Dec 2013 09:40:04 +0100 Original-Received: from emk ([89.176.227.41]) by edge02.upcmail.net with edge id w8g41m0090uDent028g4f9; Sun, 01 Dec 2013 09:40:04 +0100 X-SourceIP: 89.176.227.41 In-Reply-To: <001a01cee387$691cd370$3b567a50$@tosovsky@email.cz> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7jh2XO7GjkZtDfQrOXK4t4HURQDgK5xikw Content-Language: cs X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.31; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WKU8E44C - 95fdd08c3ca5 - 20131201 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:85534 Archived-At: On 2013-11-17 Jan Tosovsky wrote: > > I am trying to fix a Palatino small caps issue using the procedure > explained here: > http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV > > That fix seems to be obsolete nowadays and returning errors. > almost fixed now using this procedure: 1) Create a new LFG file local fix_pala = { comment = "Switching i.sc glyphs indexes", fixes = function(data) local descriptions = data.descriptions descriptions[983201].index = 1170 descriptions[983261].index = 1110 end } return { name = "pala", comment = "Switching the small capped 'i' to a dotless variant in Palatino Linotype.", treatments = { ["pala.ttf"] = fix_pala, ["palai.ttf"] = fix_pala, ["palab.ttf"] = fix_pala, ["palabi.ttf"] = fix_pala, }, } 2) Place it into the folder where other LFG files are stored (tex\texmf-context\tex\context\fonts) 3) Execute 'mtxrun --generate' command to include newly added LFG file into a file database 4) Specify a new font feature referencing to this goodie in the source file: \definefontfeature[dotlessi][mode=base,goodies=pala] \definefontfamily[palatino][rm][Palatino Linotype][features={default,quality,dotlessi}] \setupbodyfont[palatino] \starttext {Athenians \smallcaps{Athenians}}\par {Athenians \sc{Athenians}}\par {\it Athenians \smallcaps{Athenians}}\par {\bf Athenians \smallcaps{Athenians}}\par {\bi Athenians \smallcaps{Athenians}}\par \stoptext 5) Trigger the generating It works except the regular font style. In this case \smallcaps option behaves differently than for e.g. \it or \bf styles. I am quite confused. Moreover, when faked caps are switched on using \sc, it works. Can anybody explain what is happening here? Thanks, Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________