From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93919 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: math with Unicode characters Date: Mon, 29 Feb 2016 15:21:15 +0100 Message-ID: <56D453DB.80506@gmail.com> References: <56D38252.5070806@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6591019570228397971==" X-Trace: ger.gmane.org 1456755761 30200 80.91.229.3 (29 Feb 2016 14:22:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 14:22:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 29 15:22:29 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaOiT-0003rI-Fz for gctc-ntg-context-518@m.gmane.org; Mon, 29 Feb 2016 15:22:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E62C076F6; Mon, 29 Feb 2016 15:21:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0uwXRDumQS2W; Mon, 29 Feb 2016 15:21:31 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id F0FD976F2; Mon, 29 Feb 2016 15:21:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 76FCB76F0 for ; Mon, 29 Feb 2016 15:21:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YjXeeiWmHg7s for ; Mon, 29 Feb 2016 15:21:28 +0100 (CET) Original-Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E9CE076EB for ; Mon, 29 Feb 2016 15:21:18 +0100 (CET) Original-Received: by mail-wm0-f46.google.com with SMTP id p65so70722629wmp.1 for ; Mon, 29 Feb 2016 06:21:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=Dn/ajDXab8lbKdX+4HWdUD2HhuQmoI3ngVHnMmo2hAY=; b=gce39qWtL1BC1KN4zMYtFZllikNgT795ms8FpkjMClICIsVRc6qktEuAjDdBsDZjbF KTbTvWnjalobiX+dmsiUwNwmLfqE5kxmUE/jkF4RlQYiNRlgWHBzKvQdLcSPM1vI9etD Kf54P7Iz1Fkobpuhn/xRtf2KFnuhB/JqmyjeA+f090Ebs+FNPeDJ+azQ719jFWuTDdUI jbR4rLBKrBdnkQ3c8Xc1hw2yetFu+uwZG+GO8e8GrSg7Jo4+kMDP0SRcarqImv2JEz10 gbv7zMntRE6GtIAE8td77iPh8AjyRjHkXAqAn0th7dRAsi1GskSoKoFihVizDnOBYJKH 9PYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=Dn/ajDXab8lbKdX+4HWdUD2HhuQmoI3ngVHnMmo2hAY=; b=P7dl0JsaXxgF5fI5xEThzD/yNZgiNdg97oIk0/DInThePesRbbq2KCEPt6/WcJQCfP xciSTNAJV2b/0I/wbdseYgZaW5K7otJ2nip8O9YyyESAAlvxeQ7CRRAhQdtI3kAtSo0v 9wJ2+RJLIr58+P/VWPg4iS7Kw3mSCzyyWSJJQN2nlRHV2DE3lOJYzQKemJVA9om12+ol +sRIV02r2JntPO3TJ3xTufUz1xGaujDqRvreWqlM1pogccG2s2usyotM5UH605mao3eh onE/ym5qKMhVe529HIFrvD6dWC3NeVzUsZlmZ1sLTWeRvJRZFLZXBqvKhVCt4ebKG9hB fBpg== X-Gm-Message-State: AD7BkJLGJI2PY43TkUGMe9c+wWEuHyFbrYoDFEa0wRDgXeuGySHH6gx17Cq7vN8EWH9Qqw== X-Received: by 10.194.23.37 with SMTP id j5mr14573441wjf.171.1456755678358; Mon, 29 Feb 2016 06:21:18 -0800 (PST) Original-Received: from keima.localdomain (x2f278d0.dyn.telefonica.de. [2.242.120.208]) by smtp.gmail.com with ESMTPSA id x66sm16653945wmb.20.2016.02.29.06.21.17 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Feb 2016 06:21:17 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <56D38252.5070806@gmx.es> 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:93919 Archived-At: This is a multi-part message in MIME format. --===============6591019570228397971== Content-Type: multipart/alternative; boundary="------------080802090606060505060407" This is a multi-part message in MIME format. --------------080802090606060505060407 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Pablo Rodriguez > 29. Februar 2016 um 00:27 > Dear list, > > I have the following sample: > > \definefallbackfamily[mainface][rm][TeX Gyre Pagella][range=3D{=E2=8B=80= }] > \definefontfamily[mainface][rm][EB Garamond] > \starttext > =E2=8B=80 > \stoptext > > Is there any way to have the Unicode character on the final PDF documen= t > without having to edit the text? You have to switch to math mode to show the symbol \starttext $=E2=8B=80$ \stoptext or use a math font as fallback to show the symbol in text mode. \definefallbackfamily[mainface][rm][TeX Gyre Pagella Math][range=3D0x22C0= ] %\definefontfamily[mainface][rm][EB Garamond] \definefontfamily[mainface][rm][Latin Modern Roman] \setupbodyfont[mainface] \starttext =E2=8B=80 \stoptext BTW: Use default fonts in your examples. Wolfgang --------------080802090606060505060407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
29= .=20 Februar 2016 um 00:27
Dear list,

I hav= e=20 the following sample:

\definefallbackfamily[mainface][rm][TeX Gyre Pagella][range=3D{=E2=8B=80}]
\definefontfamily[mainface][rm= ][EB=20 Garamond]
\starttext
=E2=8B=80
\stoptext

Is t= here=20 any way to have the Unicode character on the final PDF document
withou= t having to edit the text?
You have to switch to math mode to show the symbol

\starttext
$=E2=8B=80$
\stoptext

or use a math font as fallback to show the symbol in text mode.

\definefallbackfamily[mainface][rm][TeX Gyre Pagella Math][range=3D0x22C0= ]
%\definefontfamily[mainface][rm][EB Garamond]
\definefontfamily[mainface][rm][Latin Modern Roman]

\setupbodyfont[mainface]

\starttext
=E2=8B=80
\stoptext

BTW: Use default fonts in your examples.

Wolfgang
--------------080802090606060505060407-- --===============6591019570228397971== 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= --===============6591019570228397971==--