From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85498 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Palatino patch for the current ConTeXt version Date: Wed, 27 Nov 2013 21:55:43 +0100 Message-ID: <52965C4F.7020509@wxs.nl> References: <001a01cee387$691cd370$3b567a50$@tosovsky@email.cz> <5288AC1E.6040406@wxs.nl> <008801ceeb00$db41e820$91c5b860$@tosovsky@email.cz> <5295AF37.3010906@wxs.nl> <00b901ceebad$900fb0a0$b02f11e0$@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385585749 25674 80.91.229.3 (27 Nov 2013 20:55:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2013 20:55:49 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 27 21:55:56 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 1Vlm9M-00023x-FI for gctc-ntg-context-518@m.gmane.org; Wed, 27 Nov 2013 21:55:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF70510218; Wed, 27 Nov 2013 21:55:55 +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 qDLG9iKgKvoY; Wed, 27 Nov 2013 21:55:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ED7FA101F6; Wed, 27 Nov 2013 21:55:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2390B101F6 for ; Wed, 27 Nov 2013 21:55:53 +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 RTdxfO85GJUY for ; Wed, 27 Nov 2013 21:55:51 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 36D1D101E8 for ; Wed, 27 Nov 2013 21:55:51 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rARL0j8N004966 for ; Wed, 27 Nov 2013 22:00:46 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 1785-1713362 for ; Wed, 27 Nov 2013 21:55:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <00b901ceebad$900fb0a0$b02f11e0$@tosovsky@email.cz> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04KSJ0Jtf - 8d0fd4ef589e - 20131127 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:85498 Archived-At: On 11/27/2013 9:16 PM, Jan Tosovsky wrote: > On 2013-11-27 Hans Hagen wrote: >> On 11/27/2013 12:40 AM, Jan Tosovsky wrote: >>> On 2013-11-17 Hans Hagen wrote: >>>> On 11/17/2013 12:23 PM, honyk wrote: >>>>> Hello Everyone, >>>>> >>>>> 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. >>>>> >>>> >>>> there are several ways to apply patches runtime, see *.lfg files >>>> (and also fonts-mkiv.pdf) >>> >>> 1) I've created a sample LFG file >>> 2) placed it into the folder where other LFG files are stored >>> 3) removed pala.tma and pala.tmc files from the cache >>> 4) triggered the generating >>> >>> My pala.lfg file seems to be ignored: >>> >>> return { >>> name = "pala", >>> comment = "Switching the small capped 'i' to a dotless variant >>> in Palatino Linotype.", >>> remapping = { >>> tounicode = true, >>> unicodes = { >>> ["i.sc"] = 983201, >>> }, >>> }, >>> } >> >> you have to load them ... see fonts-mkiv.pdf > > Thanks, I got it. Two next steps are required and one turned out as > redundant. > > 1) Create a sample LFG file > 2) Place it into the folder where other LFG files are stored > 3) NEW! Execute 'mtxrun --generate' command to include newly added LFG file > into a file database > 4) NEW! Specify a new font feature referencing to this goodie: > \definefontfeature[dotlessi][mode=base,goodies=pala,unicoding=yes] > \definefontfamily[mainface][rm][Palatino > Linotype][features={default,quality,dotlessi}] > 5) Trigger the generating > > It does something, but not what I need :-) > > My MWE: > \definefontfeature[dotlessi][mode=base,goodies=pala,unicoding=yes] > \definefontfamily[palatino][rm][Palatino > Linotype][features={default,quality,dotlessi}] > \setupbodyfont[palatino] > \starttext > Athenians \sc{Athenians} > \stoptext > > This LFG core settings: > unicodes = { > ["a.sc"] = 97, (1) > ["b.sc"] = 983261, (2) > }, > > (1) replaces all small 'a' into small caps variants - just for testing > purposes > (2) doesn't replace small caps 'i' to small caps 'b', but when small caps > text is selected, b is copied into the clipboard - so some replacement is > performed, but incomplete. > > Maybe other tables need to be tweaked as well... > Has anybody any experience with this? this mechanism assumes that the shapes match the one that unicode expects so the (default) tounicode is used ... originally this features was meant for fonts with a faulty mapping (some dingbat fonts have that) Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________