[tw5] Re: glossary with diacritics

2020-10-27 Thread Jean-Pierre Rivière
I don't ee the point of prefix[e]!prefix[é] because é won't be incorporated by prefix[e]. Also, the second run is not working because of two glitches: 1) [[ instead of [ at the beginning and [é) instead of [é]. Thanks again. Le lundi 26 octobre 2020 à 18:36:02 UTC+1, Mark S. a écrit : > You

Re: [tw5] Re: glossary with diacritics

2020-10-27 Thread Xavier Cazin
Duh, sortan[] !!! Thanks for the reminder, Mark -- Xavier. On Mon, Oct 26, 2020 at 6:36 PM 'Mark S.' via TiddlyWiki < tiddlywiki@googlegroups.com> wrote: > You can't insert a widget into the middle of a filter. But it doesn't > matter, you don't need it: > > <$set name="initial"

[tw5] Re: glossary with diacritics

2020-10-26 Thread 'Mark S.' via TiddlyWiki
You can't insert a widget into the middle of a filter. But it doesn't matter, you don't need it: <$set name="initial" filter="[{!!title}lowercase[]]"> <$list filter="[tag[glossaire]prefix!prefix[é]] [[tag[glossaire]prefix[é)]]+[sortan[]]"> In the first part of the filter I exclude é. In the

Re: [tw5] Re: glossary with diacritics

2020-10-26 Thread Jean-Pierre Rivière
£Hi! Thank you, this one is functionnal. BTW, I was already in 5.1.23-prerelease. But how can I get the doc form this new trim operator? Le samedi 24 octobre 2020 à 08:58:18 UTC+2, Xavier a écrit : > Hi Jean-Pierre, > > If you don't mind using the TiddlyWiki prerelease, I suggest the brand new

Re: [tw5] Re: glossary with diacritics

2020-10-24 Thread Xavier Cazin
Hi Jean-Pierre, If you don't mind using the TiddlyWiki prerelease, I suggest the brand new subsort filter operator as well as the newly parametrised trim operator: \define glossaryLetter() <$vars initial={{{ [lowercase[]] }}}> <$vars initial_regexp={{{ [compare:string:eq[e]]

Re: [tw5] Re: glossary with diacritics

2020-10-22 Thread Jean-Pierre Rivière
I have not been able to achieve what I wanted in this case with subfilter, but I've been successul with regexp. So I post it here. \define glossaryLetter() <$set name="initial" filter="[{!!title}lowercase[]]"> <$set name="others" filter="[compare:string:eq[e]then[é]]"> <$wikify name="pattern"

Re: [tw5] Re: glossary with diacritics

2020-10-22 Thread Jean-Pierre Rivière
Hi Xavier! I've already used subfilter. As I used it and understood it, it is of use as a substitude for mapping within filters. But yes, I can map an array of just one element. I did not think of that. As for dictionnary, I was already planning its use. But to mark "é" as a co-letter for

Re: [tw5] Re: glossary with diacritics

2020-10-21 Thread Xavier Cazin
Hi Jean-Pierre, I was about to point you to dictionaries and suggest that you use getindex <>, but now I'm not sure if I understand your issue correctly. One sure thing however: you cannot insert a filter

[tw5] Re: glossary with diacritics

2020-10-21 Thread Jean-Pierre Rivière
Hi Tones, My problem is not so much the order of the letter as of now. However, your input may well serve me. Non, my real concerne is that I am not successfull in getting a special filter for e, even though I already have this special case ready. I'm unable to connect it dynamically. I have

[tw5] Re: glossary with diacritics

2020-10-20 Thread TW Tones
Other "half baked" ideas, - é list-before or list-after e - On tiddlywiki.com see the ">> Regards Tones On Wednesday, 21 October 2020 10:06:13 UTC+11, TW Tones wrote: > > Jean-Pierre, > > Just a quick idea not thought through > > In

[tw5] Re: glossary with diacritics

2020-10-20 Thread TW Tones
Jean-Pierre, Just a quick idea not thought through In the pre-release there is the sortby operator. Perhaps having a sort macro \define sorter() A a B b C c D d E é e Then sortby You may need to split[] the letters to obtain the first letter etc. Regards Tones On Wednesday, 21 October