From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114393 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Nedeljkovic via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Cyrillic alternate form in Neacademia Date: Wed, 23 Feb 2022 07:45:30 +0100 Message-ID: References: <05463727-63ee-9097-da34-dc112fdbe5c4@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6971945444911377442==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Nedeljkovic To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 23 08:26:13 2022 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 1nMm2O-0007aQ-Vl for gctc-ntg-context-518@m.gmane-mx.org; Wed, 23 Feb 2022 08:26:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D92BB2A2693; Wed, 23 Feb 2022 08:25:47 +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 X0uXHWKCXTWN; Wed, 23 Feb 2022 08:25:46 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 972072A22EA; Wed, 23 Feb 2022 08:25:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0A5F72A22D1 for ; Wed, 23 Feb 2022 07:45:47 +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 c7Y8VFPKCsK0 for ; Wed, 23 Feb 2022 07:45:45 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.52; helo=mail-qv1-f52.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 93CD02A22CF for ; Wed, 23 Feb 2022 07:45:45 +0100 (CET) Original-Received: by mail-qv1-f52.google.com with SMTP id fc19so6661011qvb.7 for ; Tue, 22 Feb 2022 22:45:45 -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=eAPPR4Cu7lVqEsjSAHsJZvcB1Ix2kwHJi41SC138xL4=; b=f7mCWJvHvWT2XFB5An8ViFo1PRLcm3JddeOf1vJFLGQ6z53xRJFjlQOwy5RYUtpjq9 lZ7oJqdSQiRhOLhyIBQNUUE+tX2+0dfLWpo2plLGkxMRbS667e0fQu2QbpIkUSTKxBn4 6PvfhIsXyYwi289UE/NMJlGiE6FnExuAclGnO4jUrwpbCjL6rnnXSfi5M3cUEFKW8p4X 05yy+phciCIVUCldw3GuHZIZ3Vgp251Y4Hpk8LznqWTqXQmaTuTW/vld3yeoS9kNGGr1 8t7PNvFhyvPOSVlLZrAxt9boRT/yLAa8af8xoarz62Ym/jBMF21hjukLN+nv3U2F4gLs R79Q== 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=eAPPR4Cu7lVqEsjSAHsJZvcB1Ix2kwHJi41SC138xL4=; b=lNu1LHnLX3yamYgxc19m1e1gT4pYEtt1gXeusExk/Hy+ff4ssWaxHzcI/1UUH0XXZD GEKhu64RXsJ6+Oz10nkd3Wz7FM6f8psm3hi8uxsDeP7cGMUmvb88Qg2kBkDdGDgOJU7W KewjXA4sUn9QcBtk0U3tJTg/MmSP7A+PFZRdmGYVRxhiw9V5wIQmvIGmqDetU5ppF/YO WvMxXv5OVwRbnwTCq6MpQdypEtYpFzN4ngJpeSM/POq3CMUXKX0AJ5jv8tapBF0kAqgH o3Cfuc9pMJhw78qAKtoJu+/h8rfhRDN5xDsrLjswyU6y75yCA3wchtLRjJOK2Gvs74jD Qzcw== X-Gm-Message-State: AOAM5315dc2sbG5jPzK6LfPsr2C6wN3ihej0x0W+eTpyW9RdJy8sCL2m GtBKaujPqLTfhW611roPy9pqMcCc2M9JNRdSLgjPdb7UaG8= X-Google-Smtp-Source: ABdhPJyfsX46vNZagFPJ4VefQF9HvSUyrjIldhjvLkvqI1gCo34P58H2qHnvmtEePT3eZXEQSyAlbHeP02uay+uYGDc= X-Received: by 2002:a05:6214:62e:b0:42c:4194:6ab4 with SMTP id a14-20020a056214062e00b0042c41946ab4mr22036814qvx.69.1645598741446; Tue, 22 Feb 2022 22:45:41 -0800 (PST) In-Reply-To: <05463727-63ee-9097-da34-dc112fdbe5c4@xs4all.nl> X-Mailman-Approved-At: Wed, 23 Feb 2022 08:25:45 +0100 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:114393 Archived-At: --===============6971945444911377442== Content-Type: multipart/alternative; boundary="0000000000006d43c405d8a9d08c" --0000000000006d43c405d8a9d08c Content-Type: text/plain; charset="UTF-8" Hans, Thank you for your suggestion. I tried disabling all otf features except besub, but it didn't work. I presume that prepend should be added like this: \startluacode fonts.handlers.otf.addfeature { name = "besub", type = "substitution", prepend = true, data = { ["uni0431"] = "uni0431.SRB.alt" } } \stopluacode BTW, I'm using LMTX Context version 2022.01.21 20:13. Should I send you some files for diagnostics? On Wed, Feb 23, 2022 at 12:00 AM Hans Hagen via ntg-context < ntg-context@ntg.nl> wrote: > On 2/19/2022 4:59 PM, Stefan Nedeljkovic via ntg-context wrote: > > Dear list, > > > > I'm using the typeface Neacademia Text, and I'm trying to configure it > > to the specifics of the Serbian language. I want to replace the usual > > form of the lowercase cyrillic letter BE with the traditional Serbian > > form. I opened the font file in Font Forge and looked up the glyph info. > > Here is what I tried and what failed: > > > > \startluacode > > fonts.handlers.otf.addfeature { > > name = "besub", > > type = "substitution", > > data = { > > ["uni0431"] = "uni0431.SRB.alt" > > } > > } > > \stopluacode > > > > \definefontfeature[default] > > [mode=node,kern=yes, > > liga=yes,dlig=yes, > > calt=yes,ss03=yes, > > case=yes,ccmp=yes, > > locl=yes,script=cyrl,language=srb, > > besub=yes] > > > > No luck using hex codes either: > > > > \startluacode > > fonts.handlers.otf.addfeature { > > name = "besub", > > type = "substitution", > > data = { > > [0x1ab] = 0x3f8 > > } > > } > > \stopluacode"uni0431" > > > > Interestingly the single substitutions from page 175 of the fonts manual > > seem to work just fine. > > Any help is appreciated. > hard to say but you enabel quite some features so probably uni0431 is > already replaced .. maybe > > prepend = true, > > helps > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --0000000000006d43c405d8a9d08c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hans,

Thank you for your suggestion. I = tried disabling=C2=A0all otf features except besub, but it didn't work.= I presume that prepend should be added like this:

\startluacode
fonts.handlers.otf.addfeature {
name =3D "besu= b",
type =3D "substitution",
prepend =3D true= ,
data =3D {
["uni0431"] =3D "uni0431.SRB.alt&quo= t;
}
}
\stopluacode

BTW, I'm u= sing LMTX Context version=C2=A02022.01.21 20:13. Should I send you some fil= es for diagnostics?

On Wed, Feb 23, 2022 at 12:00 AM Hans Hagen via nt= g-context <ntg-context@ntg.nl&= gt; wrote:
On 2/= 19/2022 4:59 PM, Stefan Nedeljkovic via ntg-context wrote:
> Dear list,
>
> I'm using the typeface Neacademia Text, and I'm trying to conf= igure it
> to the specifics of the Serbian language. I want to replace the usual =
> form of the lowercase cyrillic=C2=A0letter BE with the traditional Ser= bian
> form. I opened the font file in Font Forge and looked up the glyph inf= o.
> Here is what I tried and what failed:
>
> \startluacode
> fonts.handlers.otf.addfeature {
> name =3D "besub",
> type =3D "substitution",
> data =3D {
> ["uni0431"] =3D "uni0431.SRB.alt"
> }
> }
> \stopluacode
>
> \definefontfeature[default]
>=C2=A0 =C2=A0 [mode=3Dnode,kern=3Dyes,
>=C2=A0 =C2=A0 liga=3Dyes,dlig=3Dyes,
>=C2=A0 =C2=A0 calt=3Dyes,ss03=3Dyes,
>=C2=A0 =C2=A0 case=3Dyes,ccmp=3Dyes,
>=C2=A0 =C2=A0 locl=3Dyes,script=3Dcyrl,language=3Dsrb,
>=C2=A0 =C2=A0 besub=3Dyes]
>
> No luck using hex codes either:
>
> \startluacode
> fonts.handlers.otf.addfeature {
> name =3D "besub",
> type =3D "substitution",
> data =3D {
> [0x1ab] =3D 0x3f8
> }
> }
> \stopluacode"uni0431"
>
> Interestingly the single substitutions from page 175 of the fonts manu= al
> seem to work just fine.
> Any help is appreciated.
hard to say but you enabel quite some features so probably uni0431 is
already replaced .. maybe

=C2=A0 =C2=A0 =C2=A0prepend =3D true,

helps

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000006d43c405d8a9d08c-- --===============6971945444911377442== 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== --===============6971945444911377442==--