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 seen in an other thread that I can do things like <$sort filter=<<my-filter>>/>
So today I tried to build the complete filter. But I've not been sucessful at that. My attempt:
first, the filter I need for e (here within a list widget):<$set name="special" filter="[<initial>compare:string:eq[e]<special-case>]">
<$list filter="[tag[glossaire]prefix<initial>][tag[glossaire]prefix[é]]+[sortan[]]">
for all the other letter, that is only:
$list filter="[tag[glossaire]prefix<initial>]"/>
(it seems I don't need sorting then. Is that a coincidence or is it a general truth?)
What I coded:
\define glossy()
<$set name="initial" filter="[{!!title}lowercase[]]">
<$set name="special-case" value="=[tag[glossaire]prefix[é]]+[sortan[]]">
<$set name="special" filter="[<initial>compare:string:eq[e]<special-case>]">
special <<special>> now defined
<$set name="ext-filter" value="[tag[glossaire]prefix<initial>]<$macrocall $name=special>>">
ext-filter <<ext-filter>> ready
<ul>
<$list filter=<<ext-filter>>>
<li><$link/></li>
</$list>
</ul>
</$set>
</$set>
</$set>
\end
My results:
special =[tag[glossaire]prefix[é]]+[sortan[]] now defined
ext-filter [tag[glossaire]prefix]=[tag[glossaire]prefix[é]]+[sortan[]] ready
en-tête de colonne ou de ligne
ensemble de pages
environnement maîtrisé
<$macrocall
$name=special>>
If I omit the double quotes arount the filter value in setting ext-filter, I'm getting a grammar error (no big surprise!)/