says:
00271 /* we convert everything except:
00272 1. html markups (anything between < and >)
00273 2. html entities
00274 3. place holders created by the parser
00275 */
So, I don't think it will convert <span style="color:red">. But
I'm
not sure, because I'm still learning php...
By the way, I can't understand Chinese, but (after using an on-line
translator) I think the page they have for documenting the system is
this:
On Thu, Sep 10, 2009 at 6:44 PM, Roan Kattouw <roan.kattouw(a)gmail.com> wrote:
Seems I'm not the only one who had a
completely wrong idea about how
variants work. We definitely need more documentation and fame for this
system, so its potential doesn't go to waste.
I theoretically knew that it was just a string-replace system, but it
didn't occur to me that it would be useful for more than
transliteration. It makes sense now that Tim pointed that out. How
would it handle word breaks, though? It would just ignore them, so
color -> colour also changes uncolored -> uncoloured? What about
things like HTML id's or even attribute/property names (<span
style="color:red">)? I'm sure I could dig through the code to find
the answers to these, but actually I'm not even sure offhand where the
code *is*.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l