* issue with OT feature in LMTX
@ 2022-12-03 13:04 Pablo Rodriguez via ntg-context
2022-12-04 12:34 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-03 13:04 UTC (permalink / raw)
To: ConTeXt users; +Cc: Pablo Rodriguez
Dear list,
I have the following sample (using current latest from 2022.12.01 13:05):
\definefallbackfamily[mainface][rm][Noto Emoji]
[range={0x1F004-0xFE837}, force=yes]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\setupbodyfont[mainface]
\definestructureconversionset
[sectionnumbers]
[0,n,Characters,g,n]
[n]
\definefontfeature[section]
[smcp=yes,
c2sc=yes]
\setupheads[sectionconversionset=sectionnumbers]
\setuphead[section][style={\feature[+][section]}]
\starttext
\section{Just text}
{\feature[+][section]Just text}
\stoptext
LMTX outputs no small caps and it fallbacks to Noto Emoji. LuaTeX gives
the right output.
Am I missing something or have I hit a bug in LMTX?
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: issue with OT feature in LMTX
2022-12-03 13:04 issue with OT feature in LMTX Pablo Rodriguez via ntg-context
@ 2022-12-04 12:34 ` Hans Hagen via ntg-context
2022-12-04 17:59 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-12-04 12:34 UTC (permalink / raw)
To: Pablo Rodriguez via ntg-context; +Cc: Hans Hagen
On 12/3/2022 2:04 PM, Pablo Rodriguez via ntg-context wrote:
> Dear list,
>
> I have the following sample (using current latest from 2022.12.01 13:05):
>
> \definefallbackfamily[mainface][rm][Noto Emoji]
> [range={0x1F004-0xFE837}, force=yes]
> \definefontfamily[mainface][rm][TeX Gyre Pagella]
> \setupbodyfont[mainface]
>
> \definestructureconversionset
> [sectionnumbers]
> [0,n,Characters,g,n]
> [n]
>
> \definefontfeature[section]
> [smcp=yes,
> c2sc=yes]
>
> \setupheads[sectionconversionset=sectionnumbers]
>
> \setuphead[section][style={\feature[+][section]}]
>
> \starttext
> \section{Just text}
> {\feature[+][section]Just text}
> \stoptext
>
> LMTX outputs no small caps and it fallbacks to Noto Emoji. LuaTeX gives
> the right output.
>
> Am I missing something or have I hit a bug in LMTX?
more a bug in your approach: you specify a range where you also
overwrite private slots (that happen to be used for caps) .. at t he
cost of runtime i'll add a check against overwriting these
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: issue with OT feature in LMTX
2022-12-04 12:34 ` Hans Hagen via ntg-context
@ 2022-12-04 17:59 ` Pablo Rodriguez via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-04 17:59 UTC (permalink / raw)
To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez
On 12/4/22 13:34, Hans Hagen via ntg-context wrote:
> On 12/3/2022 2:04 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Am I missing something or have I hit a bug in LMTX?
> more a bug in your approach: you specify a range where you also
> overwrite private slots (that happen to be used for caps) .. at t he
> cost of runtime i'll add a check against overwriting these
Many thanks for the fix, Hans.
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-04 17:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 13:04 issue with OT feature in LMTX Pablo Rodriguez via ntg-context
2022-12-04 12:34 ` Hans Hagen via ntg-context
2022-12-04 17:59 ` Pablo Rodriguez via ntg-context
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).