ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Sorting registers method for "uppercase like lowercase, diacritics ignored"
@ 2019-01-20 20:59 Marcus Vinicius Mesquita
  2019-01-20 21:18 ` Marcus Vinicius Mesquita
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Marcus Vinicius Mesquita @ 2019-01-20 20:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear list,

In the wiki page https://wiki.contextgarden.net/Registers it is said that:

- There’s no preset for the combination "uppercase like lowercase,
diacritics ignored", try "zm,pm,zc,zm,uc".

Well, I tried all possible permutations thereof, and also the predefined
methods, and none gives what my editor wants, which is just "uppercase like
lowercase, diacritics ignored".
See MWE attached.
Please, would somebody help me achieve the desired result?

TIA

ConTeXt version:
ConTeXt Process Management 1.02
current version: 2019.01.19 12:06

Marcus Vinicius

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

[-- Attachment #2: MWE.pdf --]
[-- Type: application/pdf, Size: 56494 bytes --]

[-- Attachment #3: MWE.tex --]
[-- Type: application/x-tex, Size: 4664 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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
___________________________________________________________________________________

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

* Re: Sorting registers method for "uppercase like lowercase, diacritics ignored"
  2019-01-20 20:59 Sorting registers method for "uppercase like lowercase, diacritics ignored" Marcus Vinicius Mesquita
@ 2019-01-20 21:18 ` Marcus Vinicius Mesquita
  2019-01-20 22:02 ` Thomas A. Schmitz
  2019-01-21  6:56 ` Henning Hraban Ramm
  2 siblings, 0 replies; 5+ messages in thread
From: Marcus Vinicius Mesquita @ 2019-01-20 21:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Sorry,

the wanted result is:

A
abnegação 1
agrilhoado 1
água 1
alegria 1
anjo 1
árvore 1


O
ódio
orgulho


Regards,

Marcus Vinicius

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

[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________

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

* Re: Sorting registers method for "uppercase like lowercase, diacritics ignored"
  2019-01-20 20:59 Sorting registers method for "uppercase like lowercase, diacritics ignored" Marcus Vinicius Mesquita
  2019-01-20 21:18 ` Marcus Vinicius Mesquita
@ 2019-01-20 22:02 ` Thomas A. Schmitz
  2019-01-21  6:56 ` Henning Hraban Ramm
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2019-01-20 22:02 UTC (permalink / raw)
  To: ntg >> mailing list for ConTeXt users

On 20.01.19 21:59, Marcus Vinicius Mesquita wrote:
> Well, I tried all possible permutations thereof, and also the predefined
> methods, and none gives what my editor wants, which is just "uppercase like
> lowercase, diacritics ignored".
> See MWE attached.
> Please, would somebody help me achieve the desired result?

Your example doesn't contain any uppercase letters. Which makes it a bit 
difficult to test what you're looking for. I must admit that I'm not 
very familiar with register "methods," I assume that Wolfgang or Hans 
will be able to tell you how to use them. For your case, if you merely 
want to get rid of all distinctions between upper- and lowercase, 
accents, etc., you could use
Lua (slightly modified example):

\mainlanguage[pt]
\defineregister [nome]
\setupregister  [nome] [
       language=pt,
       n=1,
]

\startluacode
   userdata = userdata or { }
   function userdata.indexing(s)
     t = characters.lower(characters.shaped(s))
     context.nome( { t }, s)
   end
\stopluacode

\def\mynome#1%
   {\ctxlua{userdata.indexing([==[#1]==])}}

\starttext

\mynome{árvore}árvore \mynome{Äard}Äard \mynome{água}água 
\mynome{Água}Água  \mynome{abnegação}abnegação \mynome{alegria}alegria 
\mynome{agrilhoado}agrilhoado \mynome{anjo}anjo \mynome{ódio}ódio 
\mynome{orgulho}orgulho \mynome{Åz}Åz \mynome{Åaaa}Åaaa \mynome{Özz}Özz 
\mynome{Öaa}Öaa

\page[yes]

\placeregister [nome]

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Sorting registers method for "uppercase like lowercase, diacritics ignored"
  2019-01-20 20:59 Sorting registers method for "uppercase like lowercase, diacritics ignored" Marcus Vinicius Mesquita
  2019-01-20 21:18 ` Marcus Vinicius Mesquita
  2019-01-20 22:02 ` Thomas A. Schmitz
@ 2019-01-21  6:56 ` Henning Hraban Ramm
  2019-01-22  2:45   ` Marcus Vinicius Mesquita
  2 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2019-01-21  6:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I don’t know if this setup is supposed to work with \place..., for me

\setupregister[method={zm,pm,zc,zm,uc}] works.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2019-01-20 um 21:59 schrieb Marcus Vinicius Mesquita <marcusvinicius.mesquita@gmail.com>:

> Dear list,
> 
> In the wiki page https://wiki.contextgarden.net/Registers it is said that:
> 
> - There’s no preset for the combination "uppercase like lowercase, diacritics ignored", try "zm,pm,zc,zm,uc".
> 
> Well, I tried all possible permutations thereof, and also the predefined methods, and none gives what my editor wants, which is just "uppercase like lowercase, diacritics ignored".
> See MWE attached. 
> Please, would somebody help me achieve the desired result?
> 
> TIA
> 
> ConTeXt version:
> ConTeXt Process Management 1.02
> current version: 2019.01.19 12:06
> 
> Marcus Vinicius <MWE.pdf><MWE.tex>___________________________________________________________________________________
> 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
___________________________________________________________________________________

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

* Re: Sorting registers method for "uppercase like lowercase, diacritics ignored"
  2019-01-21  6:56 ` Henning Hraban Ramm
@ 2019-01-22  2:45   ` Marcus Vinicius Mesquita
  0 siblings, 0 replies; 5+ messages in thread
From: Marcus Vinicius Mesquita @ 2019-01-22  2:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Thomas, thank you for your solution. It works.

Hraban, I tried your suggestion, but it does not work.
See new attached MWE.

Best regards

Marcus Vinicius

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

[-- Attachment #2: MWE.pdf --]
[-- Type: application/pdf, Size: 10712 bytes --]

[-- Attachment #3: MWE.tex --]
[-- Type: application/x-tex, Size: 858 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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
___________________________________________________________________________________

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

end of thread, other threads:[~2019-01-22  2:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-20 20:59 Sorting registers method for "uppercase like lowercase, diacritics ignored" Marcus Vinicius Mesquita
2019-01-20 21:18 ` Marcus Vinicius Mesquita
2019-01-20 22:02 ` Thomas A. Schmitz
2019-01-21  6:56 ` Henning Hraban Ramm
2019-01-22  2:45   ` Marcus Vinicius Mesquita

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).