That works now as expected ; thank you Petko. I should have noted the different case.
for littré as interlink command word, set this in config : $LinkFunctions['littré:'] = 'LinkIMap'; $IMap['littré:'] = 'https://www.littre.org/definition/$1'; Le ven. 31 déc. 2021 à 05:26, Petko Yotov <5...@5ko.fr> a écrit : > > Pardon, ce que j'ai fait crée un préfixe "Littré:" avec "L" majuscule et > non "littré:" tout en minuscules. > > On peut faire > $LinkFunctions['littré:'] = 'LinkIMap'; > $IMap['littré:'] = 'https://www.littre.org/definition/$1'; > > Petko > > On 30/12/2021 21:04, ABClf wrote: > > Thank you Petko, > > No, it still doesn't work with accented letters (at least, me, my > > setup, I was not successfull) ; > > I use Cookbook/ISO8859MakePageNamePatterns which doesn't look faulty > > (same behaviour when code is deleted) > > and $DefaultPageCharset = array(''=>'ISO-8859-1'); is a commented line > > in my config. > > > > I test soon with pristine pmwiki last version. > > > > > > Le jeu. 30 déc. 2021 à 13:26, Petko Yotov <5...@5ko.fr> a écrit : > >> > >> Accented characters in Site.InterMap may or may not work. It may > >> depend > >> on your server locale and PHP version. Normally only "word"-characters > >> can be used, but in different languages different characters can > >> appear > >> in words. > >> > >> The following, added to config.php, appears to work regardless of the > >> server locale, from a UTF-8 enabled wiki, to a UTF-8 enabled target: > >> > >> $LinkFunctions['Littré:'] = 'LinkIMap'; > >> $IMap['Littré:'] = 'https://www.littre.org/definition/$1'; > >> > >> In your case, both your wiki and the target website are UTF-8 enabled. > >> > >> Also, config.php must be saved in the UTF-8 encoding (it probably is; > >> this is selected in the "File-Save As" dialogue box, or on some text > >> editors from "File-Save With Encoding", or "Tools-Encoding", or > >> "Tools-Charset"). > >> > >> Petko > >> > >> -- > >> If you upgrade : http://www.pmwiki.org/Upgrades > >> > >> > >> On 30/12/2021 12:58, ABClf wrote: > >> > Hello, > >> > > >> > I would like to know if intermap links do work if accented characters > >> > is used for the command word. In my case, it doesn't, but my config > >> > might be involved (can not test on pmwiki as my link has to be > >> > approved first) : > >> > > >> > intermap tested : > >> > littré: https://www.littre.org/definition/ > >> > > >> > command tested : > >> > littré:péquin > >> > > >> > Thank you. > >> > Gilles. _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users