From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107421 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Emoji color fonts not working on LMTX/Context MKIV Date: Wed, 20 May 2020 15:26:09 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4661976889597141875==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="45545"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 20 22:26:48 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbVIe-000Bk9-FJ for gctc-ntg-context-518@m.gmane-mx.org; Wed, 20 May 2020 22:26:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AE2241842E5; Wed, 20 May 2020 22:26:24 +0200 (CEST) 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 tVF0PkbKWFr4; Wed, 20 May 2020 22:26:23 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C0AE518437A; Wed, 20 May 2020 22:26:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3CF9C184373 for ; Wed, 20 May 2020 22:26:23 +0200 (CEST) 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 7NiVgm3Hjf7p for ; Wed, 20 May 2020 22:26:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.46; helo=mail-wm1-f46.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A1AEF1842E5 for ; Wed, 20 May 2020 22:26:22 +0200 (CEST) Original-Received: by mail-wm1-f46.google.com with SMTP id m12so3694112wmc.0 for ; Wed, 20 May 2020 13:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lud6Z4z4KRNKpiwIPdnMnQbusNAcZmYff4J2dE8s1to=; b=e//oX42BmO3uKNwd0fH3O0ZoFcL6luKntrTXxHxt1P2fBJqMU/9AjTtcNk2wQwadfa scHjAy/T8NulGPt44NO9s7WNo3qzjSzYzdJJaQGYRGa/AL43kxfgzVx7mcw9QueXFiBo coanysLr3Co8t0FhcbDxgu/ImXtIUCIzUQM6Of/VR5NfTjUeO92NGhZpZrjHMPAUqyka 1OyMuz5igWco7MHDi0YCiIJZvuh7GSB6OhiZhPD6+BldWkzaEZHbcTq7xZuwHZj9YTRn STF3eRPVEaXw9SeZDLSj352EeWrnWBemwqjQQkSn+WaMMe/RI3IBsDKh2awh9o2Suvty L7KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lud6Z4z4KRNKpiwIPdnMnQbusNAcZmYff4J2dE8s1to=; b=OhAhRC4skZYR4aEByOsJkmWj4X9r0xCjctQjs24jG34/mT9QHBfznI93NWRaPcqZeO I95NP+B7KXRP8vFJ4ZTZij468/29LWIIAw0/vXmtx49fS0dFYZbiGC1XIt+B9JtaBHSf Q95+9931ehOeeFNnYzYIGLxwCzdVvsy+8EtnUk1qEFXENYma8k23jLSkm+egoVh5SMJC rbUw3zJuhNED60BJQNutZqIx95ZgoHIEF0asyPhXIImmeXC2QC6GJELA2lbVCOuvCeWG txAWE61ThLPKQoTqWDHKAJxHEoDGqyWBpOJGs8ob03PABuWdyJG5Fu/mtNzgMxv0SQ+v R84Q== X-Gm-Message-State: AOAM532ezQCnVj1VrA7+KEQHXEgzfqjGYyVc8pjmsYYUOy0pcH4atAJo mAGWw5wseg9Ym4rETYXw6g5bwWtNrWIxL+siL8/nLnPcc+Q= X-Google-Smtp-Source: ABdhPJxCD8hqOZFufQ6yp4kWtMCyZZtTkgMq12QEYLxkC5YDcSeuG/ZCZ1Kv7SO1V1txIVyl9VTAAbkvy0cnXdeo/LY= X-Received: by 2002:a1c:a3c4:: with SMTP id m187mr5951383wme.50.1590006380377; Wed, 20 May 2020 13:26:20 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:107421 Archived-At: --===============4661976889597141875== Content-Type: multipart/alternative; boundary="0000000000007e395705a61a351e" --0000000000007e395705a61a351e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I did. It turns out that installing graphicsmagick does the trick (pun intended) for Noto Color Emoji. However, the issue persists for SVG fonts and the same message appears, despite of having cleaned the cache (I've used mtxrun --script cache --erase). Using the code Pablo sent, with EmojiOne Color instead of Twemoji Mozilla, I get the following error messages: LMTX (error): function call [998]: ...mtx/tex/texmf-context/tex/context/base/mkiv/mlib-svg.lua:1471: bad argument #1 to 'gsub' (string expected, got nil) MKIV (outlined emojis, flag emojis not working): fonts > svg conversion > executing runner 'otfsvg': inkscape --export-area-drawing --shell > temp-otf-svg-shape.log fonts > svg conversion > processing 1829 svg containers xml > core > load error: invalid xml file - parsed text (the line below repeated dozens of times) fonts > svg conversion > processing can be going on for a while fonts > svg conversion > processing 1829 pdf results fonts > svg conversion > there are no converted shapes, fix your setup fonts > svg conversion > svg conversion time 4.246 seconds In any event, LMTX prints only black and white emojis. On 5/20/2020 9:31 PM, Pablo Rodriguez wrote: > > On 5/20/20 12:26 PM, Jairo A. del Rio wrote: > >> [...] > >> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I > >> doing wrong? > > > > Hi Jairo, > > > > using latest ConTeXt with the following sample, I get these results: > > > > \definefontfamily[emoj][rm][Twemoji Mozilla][features=3D{color}] > > \setupbodyfont[emoj] > > \starttext > > =F0=9F=A4=A6=F0=9F=87=AC=F0=9F=87=A7 > > \stoptext > > > > MkIV (2020.01.30 14:13) displays colored icons. > > > > LMTX (2020.05.18 16:50) displays only black and white icons. > > > > I think this might be a bug in LMTX. > > > > Could you confirm the issue? > what if you wipe the cache > --0000000000007e395705a61a351e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I did. It turns out that installing graphicsmagick do= es the trick (pun intended) for Noto Color Emoji. However, the issue persis= ts for SVG fonts and the same message appears, despite of having cleaned th= e cache (I've used mtxrun --script cache --erase). Using the code Pablo= sent, with EmojiOne Color instead of Twemoji Mozilla, I get the following = error messages:

LMTX (error):

function call = [998]: ...mtx/tex/texmf-context/tex/context/base/mkiv/mlib-svg.lua:1471: ba= d argument #1 to 'gsub' (string expected, got nil)


MKIV (outlined emojis, flag emoji= s not working):

fonts = > svg conversion > executing runner 'otfsvg': inkscape = --export-area-drawing --shell > temp-otf-svg-shape.log

fonts = > svg conversion > processing 1829 svg containers

xml = > core > load error: invalid xml file - parsed text

(the line below repea= ted dozens of times)

fonts = > svg conversion > processing can be going on for a while

fonts = > svg conversion > processing 1829 pdf results

fonts = > svg conversion > there are no converted shapes, fix your setup

fonts = > svg conversion > svg conversion time 4.246 seconds


In any event, LMTX prints only = black and white emojis.


On 5/20/2020 9:31 PM, Pablo Rodriguez wrote:
> On 5/20/20 12:26 PM, Jairo A. del Rio wrote:
>> [...]
>> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am= I
>> doing wrong?
>
> Hi Jairo,
>
> using latest ConTeXt with the following sample, I get these results: >
>=C2=A0 =C2=A0 \definefontfamily[emoj][rm][Twemoji Mozilla][features=3D{= color}]
>=C2=A0 =C2=A0 \setupbodyfont[emoj]
>=C2=A0 =C2=A0 \starttext
>=C2=A0 =C2=A0 =F0=9F=A4=A6=F0=9F=87=AC=F0=9F=87=A7
>=C2=A0 =C2=A0 \stoptext
>
> MkIV (2020.01.30 14:13) displays colored icons.
>
> LMTX (2020.05.18 16:50) displays only black and white icons.
>
> I think this might be a bug in LMTX.
>
> Could you confirm the issue?
what if you wipe the cache
--0000000000007e395705a61a351e-- --===============4661976889597141875== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4661976889597141875==--