ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: Fallback fails for Linux Libertine O to Junicode over private area, debugging?
Date: Fri, 7 Jan 2022 19:23:18 +0100	[thread overview]
Message-ID: <0000a065-1089-e01f-1d8e-8e2c4af90639@xs4all.nl> (raw)
In-Reply-To: <m0y23ra7fo.fsf@virginia.edu>

[-- Attachment #1: Type: text/plain, Size: 1775 bytes --]

On 1/7/2022 4:18 PM, J. P. Ascher via ntg-context wrote:

> % Libertine with a Junicode fallback, lib-fb-jun
looks like there is some beta junicode two (i tried the variable font 
but the ttf crashes (no hvar table) and the otf also has issues so 
probably a bit too beta) .. maybe that font will cover what libertine has?

- ttf variable : crash (probably due to missing hvar or invalid deltas)
- otf variable : issues
- otf normal   : crash on italic due to stem problem
- ttf normal   : seems to work

(it makes no sense to add all kind of sanity checks for fonts with issues)

the font has a fi ligature but not as feature so you need to add it:

\startluacode
     fonts.handlers.otf.addfeature {
         name = "xlig",
         type = "ligature",
         data = {
             [64257] = { "f", "i" },
         }
     }
\stopluacode

\definefontfeature[default][default][xlig=yes,dlig=yes] % is dflt defined ?

\setupbodyfont[junicode]

\starttext

     % fi ligature in \char 64257 but not in liga feature

          Ik fiets op de stoep en dat mag niet. \blank
     {\it Ik fiets op de stoep en dat mag niet.}\blank
     {\bf Ik fiets op de stoep en dat mag niet.}\blank
     {\bi Ik fiets op de stoep en dat mag niet.}\blank
\stoptext

attached a possible typescript file (patched from ws 2011 version)

anyway ... these fonts are probably to beta to be useful now although 
one needs users like you to test them and feedback

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: type-imp-junicode.mkxl --]
[-- Type: text/plain, Size: 2979 bytes --]

%D \module
%D   [     file=type-junicode,
%D      version=2011.09.18,
%D        title=\CONTEXT\ Typescript Macros,
%D     subtitle=Junicode Font Definitions,
%D       author=Wolfgang Schuster,
%D         date=\currentdate,
%D    copyright=Wolfgang Schuster,
%D      license=GNU General Public License]

% adapted by hh

\usetypescriptfile[texgyre]
\usetypescriptfile[dejavu]

\starttypescriptcollection [junicode]

% crash on data points / hvar inconsistency
%
% \definefontfeature[junicodebold][default]
%
% \definefontsynonym[junicoderegular][\s!file:junicodetwobetavf-roman.ttf]
% \definefontsynonym[junicodeitalic] [\s!file:junicodetwobetavf-italic.ttf]
%
% \starttypescript [\s!serif] [junicode]
%     \definefontsynonym [Junicode-Regular]    [junicoderegular][\s!features=default]
%     \definefontsynonym [Junicode-Italic]     [junicodeitalic] [\s!features=default]
%     \definefontsynonym [Junicode-Bold]       [junicoderegular][\s!features={default,junicodebold}]
%     \definefontsynonym [Junicode-BoldItalic] [junicodeitalic] [\s!features={default,junicodebold}]
% \stoptypescript

% italic crashes on stems in cff
%
% \starttypescript [\s!serif] [junicode]
%     \definefontsynonym [Junicode-Regular]    [\s!file:junicodetwobeta-regular.otf]   [\s!features=\s!default]
%     \definefontsynonym [Junicode-Italic]     [\s!file:junicodetwobeta-italic.otf]    [\s!features=\s!default]
%     \definefontsynonym [Junicode-Bold]       [\s!file:junicodetwobeta-bold.otf]      [\s!features=\s!default]
%     \definefontsynonym [Junicode-BoldItalic] [\s!file:junicodetwobeta-bolditalic.otf][\s!features=\s!default]
% \stoptypescript

\starttypescript [\s!serif] [junicode]
    \definefontsynonym [Junicode-Regular]    [\s!file:junicodetwobeta-regular.ttf]   [\s!features=\s!default]
    \definefontsynonym [Junicode-Italic]     [\s!file:junicodetwobeta-italic.ttf]    [\s!features=\s!default]
    \definefontsynonym [Junicode-Bold]       [\s!file:junicodetwobeta-bold.ttf]      [\s!features=\s!default]
    \definefontsynonym [Junicode-BoldItalic] [\s!file:junicodetwobeta-bolditalic.ttf][\s!features=\s!default]
\stoptypescript

\starttypescript [\s!serif] [junicode]
    \setups[\s!font:\s!fallback:\s!serif]
    \definefontsynonym [\s!Serif]           [Junicode-Regular]   [\s!features=\s!default]
    \definefontsynonym [\s!SerifItalic]     [Junicode-Italic]    [\s!features=\s!default]
    \definefontsynonym [\s!SerifBold]       [Junicode-Bold]      [\s!features=\s!default]
    \definefontsynonym [\s!SerifBoldItalic] [Junicode-BoldItalic][\s!features=\s!default]
\stoptypescript

\starttypescript [junicode]
    \definetypeface [junicode] [rm] [\s!serif] [junicode] [\s!default]
    \definetypeface [junicode] [tt] [\s!mono]  [dejavu]   [\s!default]
    \definetypeface [junicode] [mm] [\s!math]  [pagella]  [\s!default]
    \quittypescriptscanning
\stoptypescript

\stoptypescriptcollection

\endinput

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2022-01-07 18:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-07 15:18 J. P. Ascher via ntg-context
2022-01-07 16:52 ` Youssef Cherem via ntg-context
2022-01-07 16:59   ` J. P. Ascher via ntg-context
2022-01-07 18:33     ` Hans Hagen via ntg-context
2022-01-07 17:10 ` Hans Hagen via ntg-context
2022-01-07 18:55   ` J. P. Ascher via ntg-context
2022-01-07 19:19     ` Hans Hagen via ntg-context
2022-01-07 21:39       ` J. P. Ascher via ntg-context
2022-01-07 22:01         ` Why mtxrun fails ? Jean-Pierre Delange via ntg-context
2022-01-07 22:40           ` Otared Kavian via ntg-context
2022-01-07 23:00           ` Youssef Cherem via ntg-context
2022-01-08  0:42             ` Jean-Pierre Delange via ntg-context
2022-01-08  0:48               ` Jean-Pierre Delange via ntg-context
2022-01-08  0:45             ` Jean-Pierre Delange via ntg-context
2022-01-08  8:05           ` juh via ntg-context
2022-01-08 10:42         ` Fallback fails for Linux Libertine O to Junicode over private area, debugging? Hans Hagen via ntg-context
2022-01-07 18:23 ` Hans Hagen via ntg-context [this message]
2022-01-07 19:11   ` J. P. Ascher via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0000a065-1089-e01f-1d8e-8e2c4af90639@xs4all.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).