Hello!
I think the code is these: http://svn.wikimedia.org/doc/LanguageConverter_8php-source.html#l00018 http://svn.wikimedia.org/doc/LanguageZh_8php-source.html#l00009
and a comment at http://svn.wikimedia.org/doc/LanguageConverter_8php-source.html#l00258 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: http://zh.wikipedia.org/wiki/Help:%E4%B8%AD%E6%96%87%E7%BB%B4%E5%9F%BA%E7%99...
Helder
2009/9/10 Aryeh Gregor Simetrical+wikilist@gmail.com
On Thu, Sep 10, 2009 at 6:44 PM, Roan Kattouw roan.kattouw@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l