From: Ben Moon via ntg-context <ntg-context@ntg.nl>
To: "Context Mailing List" <ntg-context@ntg.nl>
Cc: Ben Moon <ben@themoons.uk>
Subject: Re: blockligatures removing characters
Date: Fri, 13 May 2022 14:49:57 +0100 [thread overview]
Message-ID: <59d16edb-267a-4061-8d4a-12fa9be6663c@www.fastmail.com> (raw)
In-Reply-To: <20f1fc67-8e2e-43fb-92e7-7d9e06bfbdbc@www.fastmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 4487 bytes --]
I've just update and blockligatures=yes is working again; thanks very much Hans.
Ben
On Fri, 13 May 2022, at 14:29, Ben Moon via ntg-context wrote:
> Thanks Hans,
>
> I tried to modify your example for preventing the capital-Th ligature but this doesn't seem to work. The 'fi' ligature is prevented, but 'Th' still appears as a ligature. This occurs with the original lowercase version too. Have I missed something?
>
> ```
> \startluacode
> local demo = {
> name = "demo",
> options = {
> {
> patterns = {
> fio = "f|io",
> },
> words = [[ fioot fiots ]],
> },
> {
> patterns = {
> fio = "T|h",
> },
> words = [[ This That ]],
> },
> },
> }
> table.save("oeps-fixes.llg",demo)
> \stopluacode
>
> \setuplanguage[en][goodies={oeps-fixes.llg}]
>
> \setupbodyfont[ebgaramond]
>
> \starttext
> fiets fiots fiats fioot This That
> \stoptext
> ```
> Ben
>
> On Mon, 9 May 2022, at 14:03, Hans Hagen via ntg-context wrote:
>> On 5/9/2022 9:56 AM, Denis Maier via ntg-context wrote:
>> > Happens here as well, already on ConTeXt ver: 2022.03.12 17:56 LMTX.
>> >
>> > By the way, this even happens without special fonts:
>> >
>> > \blockligatures[Th]
>> >
>> > \definefontfeature[default:blocklig][default][liga=yes,blockligatures=yes]
>> >
>> > \setupbodyfont[myfont]
>> >
>> > \starttext
>> >
>> > \definedfont[Serif*default:blocklig]
>> >
>> > The This These are missing the `h'
>> >
>> > \stoptext
>> I'll fix it but it's not the way to do it in lmtx where we have
>>
>> \startluacode
>> local demo = {
>> name = "demo",
>> options = {
>> {
>> patterns = {
>> fio = "f|io",
>> },
>> words = [[ fioot fiots ]],
>> },
>> {
>> patterns = {
>> fio = "t|h",
>> },
>> words = [[ this that ]],
>> },
>> },
>> }
>> table.save("oeps-fixes.llg",demo)
>> \stopluacode
>>
>> \setuplanguage[en][goodies={oeps-fixes.llg}]
>>
>> \setupbodyfont[ebgaramond]
>>
>> \starttext
>> fiets fiots fiats fioot this that
>> \stoptext
>>
>> I just added (no upload) this
>>
>> \startluacode
>> local demo = {
>> name = "demo",
>> options = {
>> {
>> substitutions = {
>> th = "t|h",
>> Th = "T|h",
>> st = "s|t",
>> St = "S|t",
>> fi = "f|i",
>> },
>> },
>> },
>> }
>> table.save("oeps-fixes.llg",demo)
>> \stopluacode
>>
>> \setuplanguage[en][goodies={oeps-fixes.llg}]
>>
>> \setupbodyfont[ebgaramond]
>>
>> \starttext
>> The This These fiets and thisthis thisfiets
>> \stoptext
>>
>>
>>
>> -----------------------------------------------------------------
>> 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
>> ___________________________________________________________________________________
>>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 10899 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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-05-13 13:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-07 15:49 Ben Moon via ntg-context
2022-05-09 7:56 ` Denis Maier via ntg-context
2022-05-09 13:03 ` Hans Hagen via ntg-context
2022-05-09 13:20 ` Denis Maier via ntg-context
2022-05-13 13:29 ` Ben Moon via ntg-context
2022-05-13 13:49 ` Ben Moon via ntg-context [this message]
2022-05-13 13:53 ` Denis Maier 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=59d16edb-267a-4061-8d4a-12fa9be6663c@www.fastmail.com \
--to=ntg-context@ntg.nl \
--cc=ben@themoons.uk \
/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).