Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-21 Thread Marcus Vinicius Mesquita
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


MWE.pdf
Description: Adobe PDF document


MWE.tex
Description: TeX document
___
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
___

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Henning Hraban Ramm
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 
:

> 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 
> ___
> 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
___

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Thomas A. Schmitz

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
___

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Marcus Vinicius Mesquita
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
___
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
___

[NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Marcus Vinicius Mesquita
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
Description: Adobe PDF document


MWE.tex
Description: TeX document
___
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
___