From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42885 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: mkii and xetex with tl2008: invalid fontname errors Date: Thu, 31 Jul 2008 13:54:05 +0200 Message-ID: <6faad9f00807310454k3ab13566t6437c85bde7969c@mail.gmail.com> References: <6faad9f00807310323o38d293f8se9c504c7bf3288b@mail.gmail.com> <489197A2.3010604@elvenkind.com> <6faad9f00807310356v36d11c2bh9370815eb8c0dba@mail.gmail.com> <48919BB9.7030708@elvenkind.com> <6faad9f00807310406v66f7dcb6vbf02f335b48d0acf@mail.gmail.com> <48919D3E.1040806@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217505361 28073 80.91.229.12 (31 Jul 2008 11:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 11:56:01 +0000 (UTC) Cc: Jonathan Kew To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 31 13:56:50 2008 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 1KOWlq-0001Kb-44 for gctc-ntg-context-518@m.gmane.org; Thu, 31 Jul 2008 13:56:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 211251FC09; Thu, 31 Jul 2008 13:55:37 +0200 (CEST) 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 19964-01-7; Thu, 31 Jul 2008 13:54:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08B171FBD4; Thu, 31 Jul 2008 13:54:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5ADDE1FBD4 for ; Thu, 31 Jul 2008 13:54:44 +0200 (CEST) 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 15406-02-17 for ; Thu, 31 Jul 2008 13:54:08 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by ronja.ntg.nl (Postfix) with ESMTP id 730521FBBD for ; Thu, 31 Jul 2008 13:54:06 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so401525ywm.74 for ; Thu, 31 Jul 2008 04:54:05 -0700 (PDT) Original-Received: by 10.151.156.7 with SMTP id i7mr1100887ybo.115.1217505245336; Thu, 31 Jul 2008 04:54:05 -0700 (PDT) Original-Received: by 10.151.83.13 with HTTP; Thu, 31 Jul 2008 04:54:05 -0700 (PDT) In-Reply-To: <48919D3E.1040806@elvenkind.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:42885 Archived-At: Taco: > ... does it actually work, and can you explain why? I don't get the "error" any more with that fix (and it's not an error anyway). The problem is that if there is no "file:" prefix in font synonyms, then ConTeXt asks for \font\whatever="texgyre-whatever:options" and XeTeX first asks fontconfig, font not there, and then asks kpathsea and kpathsea complains about "font not present". With minimals I don't get that complaint printed out. It used to complain in some other way some time ago, but let's forget that for a moment. Then, since ConTeXt figures out that font doesn't exist, it asks for \font\whatever="[texgyge-whatever]:options" and then XeTeX finds the font and ConTeXt uses it. There's a third iteration asking for a font without quotes, but I should check the exact order of those three attempts, and maybe attempt without quotes is not needed any more since Jonathan fixed the behaviour of quoted filenames to also look for kpathsea fonts, not only system fonts if I recall correctly. If there is "file:" prefix, the first iteration is skipped, so it's more efficient to load fonts. We have fixed that (added "file:" in front of names) in number of font definitions some time ago (most important being LM since it's really used each time when one compiles a XeTeX document), but those "palatino"/"times" synonyms were not fixed at the time of major changes for some reason (overseen, me being lazy, it worked anyway?, ... I don't quite remember). However, there is still "problem" with "+trep" (a missing/unneeded mapping, depends on how you treat it) in this font call: texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep; trep and tlig both happened to map to tex-text some time ago. Then I asked Hans to optimize the behaviour a bit since some mappings of " and ` were really cruel and lead to inability to use grave accents at all. He removed some mappings, but left both tlig and trep there. In luatex, tlig does a mapping of -- and --- and trep does a mapping of apostrophe. In XeTeX +tlig option in "features=default" gets replaced by "mapping=tlig" which has all the three replacements (--, --- and ') font-ini.tex: \remapfontfeature tlig yes mapping=tlig while +trep is passed unmodified to xetex. So the behaviour is inconsistent in LuaTeX and XeTeX (no reason why it should be), but it just happens that nobody cares/complains. The second option would be useful if one really wanted to recall all the other TeX ligatures and replacements back (`, ``, ", >>, <<, `<, `> or whatever else is there), else I think that having two options is really not needed. tlig and trep used to have all the other old TeX replacements & ligatures there, but I asked Hans to remove most of them exactly for the reason mentioned above (grave accents were gone). XeTeX just happens not to complain about "+trep", but that "+trep" should be removed one day. Maybe just font-ini.tex: \remapfontfeature trep yes [empty] Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________