ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] weird character normalization in the wiki
@ 2024-03-09  8:35 Pablo Rodriguez via ntg-context
  2024-03-11  8:31 ` [NTG-context] " Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-03-09  8:35 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

Dear list,

https://wiki.contextgarden.net/Greek#Monotonic_and_Acute_Accent includes
two samples that should display the difference betweeen the monotonic
accent and the polytonic acute accent (which generate two different
characters for each such accented vowel).

Excluding other implications, these are two different characters. In
some fonts each pair of different characters for each accented letter
lead to the same glyph, in other fonts those glyphs are different.

This sample shows the difference (there should display two slightly
different accents [unless there is some character normalization on the
way]):

  \definefontfamily[mainface][rm][EBGaramond]
  \setupbodyfont[mainface, 500pt]
  \definecolor [tred]  [r=1,t=.5,a=1]
  \definecolor [tblue] [b=1,t=.25,a=1]
  \starttext
  \startTEXpage[offset=1ex]
  \startoverlay
    {\color[tred]{Ά}}
    {\color[tblue]{Ά}}
  \stopoverlay
  \stopTEXpage
  \stoptext

The problem that I have is tricky. Thanks to character normalization (at
least in Firefox), searching for "á" will also find "a" (unless “Match
diacritics” is enabled).

I’m afraid the wiki is performing some character normalization, which
renders samples in
https://wiki.contextgarden.net/Greek#Monotonic_and_Acute_Accent useless.

Searching for "Ά" in https://wiki.contextgarden.net/Greek should give
not more than 4 matches (not case-sensitive and with “Match diacritics”
[or similar filter for your browser] enabled). I‘m afraid I get none.

While editing the article searching for "Ά" (case-insensitive and not
normalizing characters), gave me 4 matches, but only in the source (no
ocurrence was found in the preview).

Once changes are saved, "Ά" occurrences dissapear (since they seem to be
normalized).

Sure, they may be a workaround to type codepoints instead of characters
(such as with \utfchar{0x1fbb}, but wouln’t it be possible to disable
that character normalization in the wiki?

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://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] 3+ messages in thread

* [NTG-context] Re: weird character normalization in the wiki
  2024-03-09  8:35 [NTG-context] weird character normalization in the wiki Pablo Rodriguez via ntg-context
@ 2024-03-11  8:31 ` Taco Hoekwater
  2024-03-11 15:51   ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2024-03-11  8:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

Hi,



> On 9 Mar 2024, at 09:35, Pablo Rodriguez via ntg-context <ntg-context@ntg.nl> wrote:
> 
> Sure, they may be a workaround to type codepoints instead of characters
> (such as with \utfchar{0x1fbb}, but wouln’t it be possible to disable
> that character normalization in the wiki?

AFAIK, Wikimedia’s Unicode normalisation can not be turned off.


Best wishes,
Taco

___________________________________________________________________________________
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] 3+ messages in thread

* [NTG-context] Re: weird character normalization in the wiki
  2024-03-11  8:31 ` [NTG-context] " Taco Hoekwater
@ 2024-03-11 15:51   ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-03-11 15:51 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 3/11/24 09:31, Taco Hoekwater wrote:
>> On 9 Mar 2024, at 09:35, Pablo Rodriguez via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Sure, they may be a workaround to type codepoints instead of characters
>> (such as with \utfchar{0x1fbb}, but wouln’t it be possible to disable
>> that character normalization in the wiki?
>
> AFAIK, Wikimedia’s Unicode normalisation can not be turned off.

Hi Taco,

then I have to use the woraround.

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://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] 3+ messages in thread

end of thread, other threads:[~2024-03-11 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-09  8:35 [NTG-context] weird character normalization in the wiki Pablo Rodriguez via ntg-context
2024-03-11  8:31 ` [NTG-context] " Taco Hoekwater
2024-03-11 15:51   ` 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).