little fix for twink settings with umlauts

Combining the powers of AltMonitor and SortMembers in a sortable, alt collapsible, searchable members list
Includes an extensive API for use with other addons

little fix for twink settings with umlauts

Postby Maischter » Thu Jul 03, 2008 2:18 am

hey zanix i have also found an litte fix for twink settings(build)... with ([\w]+)/ the twinks from chars with umlauts and special chairs could not be transfered (updmainalt)... (w only stands for words with normal chars)

if you use this
([\w].+)/
it works fine... maybe something usefull for the regex wowroster wiki...?
Maischter
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Thu Jul 06, 2006 5:07 am

little fix for twink settings with umlauts

Postby PleegWat » Thu Jul 03, 2008 3:52 am

Nope, that's not what you want. That way, it'll match a single letter, followed by one or more random chars. So it will start matching at the first letter, and then match the rest of the note.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

little fix for twink settings with umlauts

Postby Maischter » Thu Jul 03, 2008 4:05 am

for me it works...
Maischter
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Thu Jul 06, 2006 5:07 am

little fix for twink settings with umlauts

Postby knarf » Sat Nov 08, 2008 3:57 am

For me changing it to /ALT-([^\s]+)/i worked fine for a while (not whitespace instead of standard-characters, \S should also work). But right now it is not working with 2.0.0 and the latest SVN 2.0.9.1891.

A problem seems to be in line 149 of
addons/memberslist/inc/install.def.php

$installer->add_config("6000,'getmain_regex','/ALT-([\\\\w]+)/i'
,'text{50|30','build'");

Mains do only match if they have no Umlauts in their name. After changing this regexp to \S, the mains start to appear in the Log:

# Bluébell - No main match - Alt of Blu�bell - Invalid main - Mainless alt

The Umlaut is not displayed correctly, it should be an é.

I don't know where to search further. Seems to be an UTF-8 related problem.

Knarf
knarf
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Sat Jun 09, 2007 11:15 pm
Location: Munich, Germany

little fix for twink settings with umlauts

Postby knarf » Sat Nov 08, 2008 6:28 am

Ok, removing

$main_name = ucfirst(strtolower($main_name));

from addons/memberslist/inc/update_hook.php did it.

Thanks,
Knarf
knarf
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Sat Jun 09, 2007 11:15 pm
Location: Munich, Germany


Return to MembersList

Who is online

Users browsing this forum: No registered users and 0 guests

cron