From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oO2FN7oo52GnZgAAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 21:53:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kEIwNLoo52HaEQEAauVa8A (envelope-from ) for ; Tue, 18 Jan 2022 21:53:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F6C9100CC for ; Tue, 18 Jan 2022 21:53:14 +0100 (CET) Received: from localhost ([::1]:47714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9vTd-0004tv-N7 for larch@yhetil.org; Tue, 18 Jan 2022 15:53:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9vRH-0002WI-5P for emacs-orgmode@gnu.org; Tue, 18 Jan 2022 15:50:47 -0500 Received: from [2607:f8b0:4864:20::535] (port=39817 helo=mail-pg1-x535.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9vRF-0005Fw-G1 for emacs-orgmode@gnu.org; Tue, 18 Jan 2022 15:50:46 -0500 Received: by mail-pg1-x535.google.com with SMTP id r11so307222pgr.6 for ; Tue, 18 Jan 2022 12:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rc8JVd+Ti6+G+L3TA3cPW/3VSqNdX1LceteuO9bbyHI=; b=bzDf3J6YiyWgP87VpGspNvYpVpYDc6Y01SsW/2Roz5TFgcuDJbAKqIRs5BSB2QeBpu wTf3R1GKaNKolnHOjNxg71uVxVhzCy8TXGdbLfWIVE+wGmNrlQfvWBRq6D2vnakh8I97 Z0xrRoWljuHKsUyhR+gRZ+WGg9+NHHqXjHsoY1hNbrvE+dnb6INgFXsYgvy9yk6i6ZuD aWxktoLrq1d4k7bc49gh/LqupDSdwOH3oZ+tEvaf8p5YcdpTbawesP2h+Jn5nscCSMFL Wk0xme5DYKlnTu6iQjI3exb3NyPzfNfRji10/+fGfDqoXK0wPv/J5Bn0hFJvde+ZliVE yuLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rc8JVd+Ti6+G+L3TA3cPW/3VSqNdX1LceteuO9bbyHI=; b=AiwVp/dmuaWKPecQ9YuIzYay88I4IuLSRSj2NP4rVBJguqatlCICc/a08iuWHOPia/ WXqZrL8ULCrcNf1kYhdmtpJ5n4MOYt/CN55K0dvqO3yV6pypxwawYDAGdFOa/02TsT7I fiVGiRAzr1P0b+YxGLekaPKG9fI5shuS+qzhxyiYSVkaIyfz1qnpTKrA8mn+v0r1VJgz zPfVBPaqVB3iNO3U4p7oyo9rLOYK4Ws58H5dnbSjU8LZJnNniSNG10y3b7QyiXD1+aql r3zXG1fZgFeZAT+LCUlIRtcIT7HZs9HXYRhQFoRqWak+fpuBIAYCKZ76ZJiUukYEChRa uLMQ== X-Gm-Message-State: AOAM532iW3kdkBacJosNqRHTkhRBYPCHI9gAZIaeOBPtpO+1fdDvCQVe mNeyQTguIDHRYE9vr2cZmH8Smj8Q/Iih4LWtzqM= X-Google-Smtp-Source: ABdhPJzUBoLQsbVxx8guaZLtZviIm4hN02X04c6kK2bXtD8OQ2hFpS4INYaeX4LlfUnXOtAkHPFoFWUqcD8XenNcWzs= X-Received: by 2002:a63:2c93:: with SMTP id s141mr24518717pgs.337.1642539043522; Tue, 18 Jan 2022 12:50:43 -0800 (PST) MIME-Version: 1.0 References: <87zgo3o7uw.fsf@posteo.net> In-Reply-To: <87zgo3o7uw.fsf@posteo.net> From: Ken Mankoff Date: Tue, 18 Jan 2022 12:50:31 -0800 Message-ID: Subject: Re: Preview fonts from Dired with org-latex-preview (and test opentype features) To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Content-Type: multipart/alternative; boundary="00000000000038104305d5e16cf5" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::535 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=mankoff@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642539194; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Rc8JVd+Ti6+G+L3TA3cPW/3VSqNdX1LceteuO9bbyHI=; b=I46F5AV1e02Qij649kn1wcv75jlHxPvAbaCjCWzoInnK0b4iMh1kEwPRi2Uzp7QzbMlTAB nGzVeIZHSgG8axLCGGFuWoKbLsunhfwQ87jQMLTQ1nVd4YVUenFxu34O1wTAe2or5ue/37 lZX9kpfAlrVR6AfOIDQ16rjyOm3bRTjcPeAVQHiTNk7g8smLMx5p1Es2o4+CpVQb3V465Y vpwaIckz6o60ZaF9xuAm6uGm+ngjVV30AL+zsm/XEnOsmiKzapam8B+I2IbfTK2bVRWbBC m6Mj3kOYwTt2YuIbAFiM2yi81vSbc55OshzMrK/Oc7NPUDih2iaqNThu2iqUVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642539194; a=rsa-sha256; cv=none; b=HisKJC6134YGPan9Ahopnu9XPqiaUZgVaMCfurjQzIu/Wt5JAtncGKHFKUPW+B/UWnjFm1 7I7C2V1puQm/9jZbFoDHWXZs9YLXEUHNo/71BOC8S+dhbjRjKMxmeCD29hMiZY7CF0N3sg 3g9tXwoJa+zlIM5yDS83BZAuFJ25Ia5NGuQ4ImDdVUnw0+2dk88vpCmrt0cWS9HhjyTCyK paMtkKitkmz6C/grxrWWiL6uZTLfBrcQRABFGl1l5CFvHiePM1dRlRh8aTibFuw0I4aM7J LxYjzcb8n9IvF+toTxNDXL7MACnhSGOh1RcfKtRQY3gGH5LSoK3mGxZhPEeKQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bzDf3J6Y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bzDf3J6Y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8F6C9100CC X-Spam-Score: -4.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: FAJXHE/yynQk --00000000000038104305d5e16cf5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Mon, Jan 10, 2022, 08:53 Juan Manuel Mac=C3=ADas wrote: > Hi, > > I have written for my personal use this code (still quite crude) that > allows me to preview with org-latex-preview small text strings in a font > marked in dired, and test open type features too. The preview is > compiled with LuaLaTeX, since LuaTeX allows to load fonts that are not > installed in the system. > > When a font is selected, the list of opentype features included in the > font are extracted (using the otfinfo command), and they are arranged in > the preview buffer as buttons. By clicking on each button we can > activate in the preview the corresponding opentype feature. For example, > if the font includes the 'smcp' feature, clicking on the button 'smcp' > the text will be displayed in small caps. > > We can enter the text strings literally or through Unicode code: each > character separated by a space; the separation between words is marked > with a vertical bar. For example, this code: > > 0063 006f 0064 0065 | 0068 0065 0072 0065 > > returns the string "code here". > > As a third option, a complete specimen can be displayed from a file. > > Here is a demo video: https://cloud.disroot.org/s/aHXKiof36fTSZGB > > As I said, my function is still pretty crude, and while it works well, > it's now more of a proof of concept than a finished thing. But if anyone > wants to try it, I attach the code here in an org document. > > Best regards, > > Juan Manuel > > --00000000000038104305d5e16cf5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Please ex= cuse brevity. Sent from tiny pocket computer with non-haptic feedback keybo= ard.

On Mon, Jan 10, 2022, 08:53 Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> wrote:
Hi,

I have written for my personal use this code (still quite crude) that
allows me to preview with org-latex-preview small text strings in a font marked in dired, and test open type features too. The preview is
compiled with LuaLaTeX, since LuaTeX allows to load fonts that are not
installed in the system.

When a font is selected, the list of opentype features included in the
font are extracted (using the otfinfo command), and they are arranged in the preview buffer as buttons. By clicking on each button we can
activate in the preview the corresponding opentype feature. For example, if the font includes the 'smcp' feature, clicking on the button = 9;smcp'
the text will be displayed in small caps.

We can enter the text strings literally or through Unicode code: each
character separated by a space; the separation between words is marked
with a vertical bar. For example, this code:

0063 006f 0064 0065 | 0068 0065 0072 0065

returns the string "code here".

As a third option, a complete specimen can be displayed from a file.

Here is a demo video: https://cloud.disroot.or= g/s/aHXKiof36fTSZGB

As I said, my function is still pretty crude, and while it works well,
it's now more of a proof of concept than a finished thing. But if anyon= e
wants to try it, I attach the code here in an org document.

Best regards,

Juan Manuel

--00000000000038104305d5e16cf5--