ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] K with combining macron below
@ 2025-05-20 12:36 denis.maier
       [not found] ` <GV0P278MB02116BA1FD8C4C59CFA29DF48365A@GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM>
  0 siblings, 1 reply; 2+ messages in thread
From: denis.maier @ 2025-05-20 12:36 UTC (permalink / raw)
  To: ntg-context


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

Hi,

I’m trying to use a k with a bar/line below: ḵ. The problem is that my font (Cardo) doesn’t seem to have this character in a precombined version. So, I need to combine the letter with the combining macron below: https://www.compart.com/en/unicode/U+0331
While this works with the default font, with Cardo the result looks off, i.e., the macron is not placed centered under the letter, but slightly to the right. How can I get the correct placement of the macron?

Best,
Denis

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definefontfamily[cardo][rm][Cardo]

\setupbodyfont[
    mainface,
    11pt,
    ]
\starttext

{\em ḵabc} (with macron)

{\em ḵabc} (with combining macron)

\switchtobodyfont[cardo]
{\em ḵabc} (with macron)

{\em ḵabc} (with combining macron)

{ḵabc} (with combining macron)

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



[-- Attachment #1.2: Type: text/html, Size: 6194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [NTG-context] Re: K with combining macron below
       [not found] ` <GV0P278MB02116BA1FD8C4C59CFA29DF48365A@GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM>
@ 2025-05-28 12:28   ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2025-05-28 12:28 UTC (permalink / raw)
  To: denis.maier, mailing list for ConTeXt users; +Cc: Hans Hagen

On 5/26/2025 11:08 AM, denis.maier@unibe.ch wrote:
> Just a quick follow up: Does anyone know how I could approach/solve this 
> problem? Or do I just have to wait for a font update?

maybe

\definefontfeature[default][default][compose=yes]

at the top of the file works

> Best,
> 
> Denis
> 
> *Von:*Maier, Denis Christian (UB)
> *Gesendet:* Dienstag, 20. Mai 2025 14:36
> *An:* mailing list for ConTeXt users <ntg-context@ntg.nl>
> *Betreff:* K with combining macron below
> 
> Hi,
> 
> I’m trying to use a k with a bar/line below: ḵ. The problem is that my 
> font (Cardo) doesn’t seem to have this character in a precombined 
> version. So, I need to combine the letter with the combining macron 
> below: https://www.compart.com/en/unicode/U+0331 <https:// 
> www.compart.com/en/unicode/U+0331>
> 
> While this works with the default font, with Cardo the result looks off, 
> i.e., the macron is not placed centered under the letter, but slightly 
> to the right. How can I get the correct placement of the macron?
> 
> Best,
> 
> Denis
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> \definefontfamily[cardo][rm][Cardo]
> 
> \setupbodyfont[
> 
>      mainface,
> 
>      11pt,
> 
>      ]
> 
> \starttext
> 
> {\em ḵabc} (with macron)
> 
> {\em ḵabc} (with combining macron)
> 
> \switchtobodyfont[cardo]
> 
> {\em ḵabc} (with macron)
> 
> {\em ḵabc} (with combining macron)
> 
> {ḵabc} (with combining macron)
> 
> \stoptext
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-28 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-20 12:36 [NTG-context] K with combining macron below denis.maier
     [not found] ` <GV0P278MB02116BA1FD8C4C59CFA29DF48365A@GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM>
2025-05-28 12:28   ` [NTG-context] " Hans Hagen 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).