From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91109 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: how to insert symbols into document? Date: Sat, 18 Apr 2015 16:09:44 +0200 Message-ID: References: <5532453E.9040003@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============1803005390==" X-Trace: ger.gmane.org 1429366240 23620 80.91.229.3 (18 Apr 2015 14:10:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 14:10:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 18 16:10:28 2015 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 1YjTRx-00046R-RO for gctc-ntg-context-518@m.gmane.org; Sat, 18 Apr 2015 16:10:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 152B61022A for ; Sat, 18 Apr 2015 16:10:25 +0200 (CEST) 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 umdF75loCzCa for ; Sat, 18 Apr 2015 16:10:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2BB611022D for ; Sat, 18 Apr 2015 16:10:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C7BE101F9 for ; Sat, 18 Apr 2015 16:09:58 +0200 (CEST) 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 R7_H9j0S2jFq for ; Sat, 18 Apr 2015 16:09:57 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 54979101EA for ; Sat, 18 Apr 2015 16:09:54 +0200 (CEST) Original-Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3IE9rWa000586 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 18 Apr 2015 16:09:53 +0200 Original-Received: by wiun10 with SMTP id n10so47646151wiu.1 for ; Sat, 18 Apr 2015 07:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=xe6JtOXwKQRRI/gNMs5IBMT//6i+4fN2q82f/lfGnKE=; b=DnXzNNGETqOl/ezicvw98uAa0AHxQgWDcXVdKTsgNkE/zyZjaEFYuf/yLog9Ep7rN+ AkUj7QedwrwS7l+LSAT4WfdO09cul1tnyIwcp/EE43E8RoxqdfC+up97sp8cQ8OS2A+x s72FQScZhPe8+19J13E9qyXxfY7e2CL+cD71TbBnjNEdCPdfEgrjNtyzvxWQBZFcc5tH FSZ8YcdzICXEInPSSnWuwFA0Uq9ZvYkJ1a5cX3tw2zxRuU5lY+wigzRj8qVBE0WMKFm3 XnmZkthrE+NyYhAjp2dIIvOwDvO1Q7EsboVIB+RQ6JAkPvp9sYGAPJMh3UbbWcg6nDJV 0vZg== X-Received: by 10.194.59.199 with SMTP id b7mr15011254wjr.26.1429366193089; Sat, 18 Apr 2015 07:09:53 -0700 (PDT) Original-Received: from keima.localdomain (x2f292b7.dyn.telefonica.de. [2.242.146.183]) by mx.google.com with ESMTPSA id s4sm7092180wix.14.2015.04.18.07.09.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 Apr 2015 07:09:52 -0700 (PDT) In-Reply-To: <5532453E.9040003@wxs.nl> X-Mailer: Apple Mail (2.2098) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::231; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Ohq9RSJ - 594df6a1dad3 - 20150418 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::231 as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=2a00:1450:400c:c05::231; envelope-from=; helo=mail-wi0-x231.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:91109 Archived-At: --===============1803005390== Content-Type: multipart/alternative; boundary="Apple-Mail=_69F4832E-1FB9-46B0-AFBC-03D04D025CAD" --Apple-Mail=_69F4832E-1FB9-46B0-AFBC-03D04D025CAD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 18.04.2015 um 13:51 schrieb Hans Hagen : >=20 > On 4/18/2015 1:21 PM, Csikos Bela wrote: >>=20 >> Before answering I wanted to find out how to make this fallback: = Using a given font >> and fall back to only one (or a few) specific characters in another = font. For example >> using Tex Gyre Pagella and fall back to Dejavu's black diamond, but = not to any other >> characters. >>=20 >> To learn how to do this, in the last few days I read most of (if not = all) the related pages on >> the wiki site, and browsed the indicated pdf documents too. = Unfortunately I find the wiki >> pages confusing, and I couldn't find out how to solve the problem = yet, but I did not want >> to wait longer with the answer. I will study further the docs. >=20 > search for 'fallbacks' in the test suite >=20 > (you can have fallback ranges but also individual characters) Fallbacks don=E2=80=99t work when you use \iffontchar to check if the = character is in the font even though it is available in the fallback font. \definefallbackfamily [testfont] [rm] [DejaVu Serif] [range=3D0x25C6] \definefontfamily [testfont] [rm] [TeX Gyre Pagella] \setupbodyfont[dejavu] \starttext =E2=97=86 : \checkedtextchar{"25C6}{{\tttf ??}} \switchtobodyfont[testfont] =E2=97=86 : \checkedtextchar{"25C6}{{\tttf ??}} \stoptext Wolfgang= --Apple-Mail=_69F4832E-1FB9-46B0-AFBC-03D04D025CAD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 18.04.2015 um 13:51 schrieb Hans Hagen <pragma@wxs.nl>:

On 4/18/2015 1:21 PM, Csikos Bela = wrote:

Before answering I wanted to find out = how to make this fallback: Using a given font
and fall = back to only one (or a few) specific characters in another font. For = example
using Tex Gyre Pagella and fall back to Dejavu's = black diamond, but not to any other
characters.

To learn how to do this, in the last few days = I read most of (if not all) the related pages on
the wiki = site, and browsed the indicated pdf documents too. Unfortunately I find = the wiki
pages confusing, and I couldn't find out how to = solve the problem yet, but I did not want
to wait longer = with the answer. I will study further the docs.

search for 'fallbacks' in = the test suite

(you can have fallback = ranges but also individual characters)

Fallbacks don=E2=80=99t = work when you use \iffontchar to check if the character is in the = font
even though it is available in the fallback = font.

\definefallbackfamily [testfont] [rm] [DejaVu Serif] = [range=3D0x25C6]
\definefontfamily     = [testfont] [rm] [TeX Gyre Pagella]

\setupbodyfont[dejavu]

\starttext

=E2=97=86 : = \checkedtextchar{"25C6}{{\tttf ??}}

\switchtobodyfont[testfont]

=E2=97=86 : = \checkedtextchar{"25C6}{{\tttf ??}}

\stoptext

Wolfgang
= --Apple-Mail=_69F4832E-1FB9-46B0-AFBC-03D04D025CAD-- --===============1803005390== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1803005390==--