Hello,
Me again. ;o) In French there should be a non breaking space after « and before » ; : ! ?
The current parser replaces the space with  
Actually before ; it should be U+202F (NARROW NO-BREAK SPACE).
  for spaces in "1 000 000" (equivalent to "1,000,000").
That should be taken into account.
Regards,
Yann
On 11/27/07, Yann Forget yann@forget-me.net wrote:
Hello,
Me again. ;o) In French there should be a non breaking space after « and before » ; : ! ?
The current parser replaces the space with  
Actually before ; it should be U+202F (NARROW NO-BREAK SPACE).
  for spaces in "1 000 000" (equivalent to "1,000,000").
That should be taken into account.
This can be fixed in the current parser easily enough, if that's definitely the right thing to do? Drop a line to wikitech-l? This is the code:
$fixtags = array( # french spaces, last one Guillemet-left # only if there is something before the space '/(.) (?=\?|:|;|!|%|\302\273)/' => '\1 \2', # french spaces, Guillemet-right '/(\302\253) /' => '\1 ', );
Obviously all that has to chaneg is the " "
The 1 000 000 case is possibly more "litigeux". In general, non-breaking spaces (whether or the one you mention) aren't particularly harmful, but what other text would be inadvertently affected by that change?
Also, what would the rule be: non-letters followed by digits followed by space-to-be-converted followed by digits followed by non-letters?
i.e., this should be converted:
Some text (1 000)
but this shouldn't:
We took the A100 43 kilometres until the turn-off.
And this will get converted accidentally:
I drove my Mazda 323 2000 kilometres last year.
(this one is probably bad as the sentence would be easier to read with a linefeed, if one occurred)
Perhaps it will have to explicitly recognise well-formed groups of three digits?
Steve
On Tue, Nov 27, 2007 at 04:03:11PM +1100, Steve Bennett wrote:
Perhaps it will have to explicitly recognise well-formed groups of three digits?
Yes, it would.
Cheers, -- jra
On 11/27/07, Jay R. Ashworth jra@baylink.com wrote:
On Tue, Nov 27, 2007 at 04:03:11PM +1100, Steve Bennett wrote:
Perhaps it will have to explicitly recognise well-formed groups of three digits?
Yes, it would.
Which would still not be foolproof if I drove my 323 400 miles to the airport where I flew a 747 800 kilometres home before dialling 911 100 times...
Steve
On 27/11/2007, Steve Bennett stevagewp@gmail.com wrote:
On 11/27/07, Jay R. Ashworth jra@baylink.com wrote:
On Tue, Nov 27, 2007 at 04:03:11PM +1100, Steve Bennett wrote:
Perhaps it will have to explicitly recognise well-formed groups of three digits?
Yes, it would.
Which would still not be foolproof if I drove my 323 400 miles to the airport where I flew a 747 800 kilometres home before dialling 911 100 times...
This would indeed be new behaviour, not something to be thrown into the new parser without being in the old parser.
- d.
On 11/27/07, David Gerard dgerard@gmail.com wrote:
This would indeed be new behaviour, not something to be thrown into the new parser without being in the old parser.
Yup. But that's also a valid subject for this list. I think I wrote somewhere in the description for this list that it's for discussion both of alternative parsers for current wikitext, and possible future changes to wikitext, particularly big ones. Small changes that can be implemented in the current parser, and particularly bugs in the current parser, are better discussed on wikitech though.
This particular change strikes me as something that should be option for the installation in question. It would probably be a minor nuisance if anything on an English-speaking installation, but for French, German etc it would probably improve rendering a bit.
Steve
On 11/28/07, Thomas Dalton thomas.dalton@gmail.com wrote:
It's not the end of the world if those get replaced by non-breaking spaces.
No, it's not. But it's definitely worse than leaving them alone.
Steve
On Tue, Nov 27, 2007 at 04:35:21PM +1100, Steve Bennett wrote:
Yes, it would.
Which would still not be foolproof if I drove my 323 400 miles to the airport where I flew a 747 800 kilometres home before dialling 911 100 times...
Smartarse.
Cheers, -- jra
wikitext-l@lists.wikimedia.org