ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tlig feature sometimes does not work
Date: Fri, 12 Mar 2021 19:11:40 -0500	[thread overview]
Message-ID: <CAMHZ1dYwyHSVDbPDrj1y8swYkoM01m6QpDiObr8T4hViVpb-5g@mail.gmail.com> (raw)
In-Reply-To: <2c4a74c3-e06e-2714-3a37-696c492d0e5b@xs4all.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2062 bytes --]

That's bad.  It seems, I forgot to add the fallbacks properly.  I will
reach out to the designer to add those chars.

On Fri, Mar 12, 2021 at 12:32 PM Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 3/11/2021 2:05 AM, Mohammad Hossein Bateni wrote:
> > Hi,
> >
> > Since most fonts do not have the standard tex ligatures built in, I tend
> > to add them when I load the fonts.  Once in a while, I run into fonts
> > where this does not work.
> >
> > See the attached tex/pdf files.  I basically load the font as follows:
> >
> > \definefontfeature[tf][arabic][tlig=yes]
> > \definedfont[dejavusansmono*tf]
> >
> > This works fine for DejaVuSansMono and for one Farsi font I use
> > (
> https://github.com/rastikerdar/vazir-font/blob/master/dist/Vazir-Regular.ttf
> > <
> https://github.com/rastikerdar/vazir-font/blob/master/dist/Vazir-Regular.ttf>)
>
> > but not for this other Farsi font
> > (
> https://github.com/aminabedi68/Mikhak/blob/master/Font/ttf/Mikhak-Medium.ttf
> > <
> https://github.com/aminabedi68/Mikhak/blob/master/Font/ttf/Mikhak-Medium.ttf>).
>
> > Perhaps this is because the last font is not standard, but
> > TrueType/OpenType standard is sometimes up for interpretation.
> >
> > I see two strange symptoms here:
> >
> > \showotfcomposition displays the tlig feature differently for the last
> > font.  It appears in the "extra" list, not in "basic".  Why is that?
> > What does this mean anyway?
>
> The font doesn't have endash and emdash so there is nothing to construct
> from the double -
>
> \starttext
>      \definedfont[file:Mikhak-Medium.ttf*default] foo--bar
>      [\char"2013]
>      [\char"2014]
> \stoptext
>
> Just ask the author to add these characters and you're fine.
>
> 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 #1.2: Type: text/html, Size: 3304 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

  reply	other threads:[~2021-03-13  0:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11  1:05 Mohammad Hossein Bateni
2021-03-12 17:32 ` Hans Hagen
2021-03-13  0:11   ` Mohammad Hossein Bateni [this message]
2021-03-13  0:13     ` Mohammad Hossein Bateni
2021-03-13  1:01       ` Mohammad Hossein Bateni
2021-03-13  8:12         ` Hans Hagen
2021-03-14  3:18           ` Mohammad Hossein Bateni
2021-03-13  8:00       ` Hans Hagen

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=CAMHZ1dYwyHSVDbPDrj1y8swYkoM01m6QpDiObr8T4hViVpb-5g@mail.gmail.com \
    --to=bateni@gmail.com \
    --cc=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.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).