[pmwiki-users] Accent (in wiklist)

John Rankin john.rankin at affinity.co.nz
Sun May 7 23:39:14 CDT 2006


On Sunday, 7 May 2006 12:02 AM, malexism at free.fr <malexism at free.fr> wrote:
>I'm becomming invisible, that's nice ! :-)
>
>malexism at free.fr a écrit :
>> Hello,
>> Me bay my first post disappeared ?

Sorry; my mail server had a hard disk crash, so I was off the wires.
>> 
>> I'm playing, seriously, with wikiforms, and now, with the wikilist
>> feature. There is a probleme in my language, french, because accents on
>> letters are causing a strange sort in the list.
>> 
>> You can see that :
>> http://www.uzeste.org/a/index.php/LesArtsALOeuvre-MMM-Catalogue
>> 
>> if you clic on the "Auteur (nom)" col, the last one is an "E" acute...
>> It should be with other "E"... Is this a PHP problem, Apache server
>> problem, PmWiki problem or WikiForms problem ?

This is the "how to collate text that contains diacritical marks" problem. 
The ASCII representation of e-acute sorts after z, by default.

The wikiform script uses a piece of sort code from Pm's PITS recipe that 
uses the strcasecmp PHP function to compare strings. 

Do you have a locale set in your config file? The php manual suggests
that if it's set, then php will sort diacritics correctly.

I need to investigate possible ways around this. The answer may lie here:
http://nz.php.net/manual/en/function.strcoll.php

>> 
>> Another question : is it possible in (:wikilist:) to display a col
>> without the header (without the name of the field) ? The ideal whould be
>> something like a template for this list, as the viewtemplate for pages...
>> 
>

This is not possible at the moment. It uses the header to enable column 
sorting.
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list