https://bugzilla.wikimedia.org/show_bug.cgi?id=12752





--- Comment #5 from [EMAIL PROTECTED]  2008-11-28 23:24:34 UTC ---
This should fix most occurences in French without breaking much elsewhere:

  s/((?:[\s(]|^)«) /$1 /
  s/ »(?=\.?\)|[.,]?(?:\s|<ref[\s>]|$))/&nbsp;»/

Should also work with raw UTF-8 bytes if « and » are written as \302\253 and
\302\273.

BTW, the current code seems to have a bug:
  '/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1&nbsp;\\2'
should be either
  '/(.) (\\?|:|;|!|%|\\302\\273)/' => '\\1&nbsp;\\2'
or
  '/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1&nbsp;'


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to