Arabic XML Tags

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Note, you could make a template {{something in arabic|content=content you want in ref tag}} and have the contents of that template be {{#tag:ref|{{{content|}}}}}. You can do this completely in the wiki, with no programming required.


I also tried just making a parserHook with the name 'مرجع' and it worked fine (You of course have to do stuff in php to do that). How exactly are you trying to make this arabic xml tags.

Bawolff21:23, 15 June 2011

Thank you Bawolff.

Such as great idea. I will try that if I couldn't.

About making parserHook I tried that, I had great resault with and <pre> and <math>

And I tried to make that with <ref> I think that work well . but the problem with the attribute , I can make it accept the arabic attribute but MW does not read it in the $argv I don't know why.

Second problem is where is the function which dealing with HTML tags e.g <s> , <big>


Thanks a lot.

أحمد ش الشيخ08:03, 16 June 2011

It uses the sanitizer to decide whats an attribute, which basically allows A-Z a-z 0-9 colons, and underscores, so there's really no way around that. Presumably this matches the xml spec.

Bawolff21:31, 16 June 2011

I think RegExp will work with arabic chr. Now I working on an idea is completely different. I hope that idea will work

Thank you very much ,Bawolff. You helped me alot.

أحمد ش الشيخ19:45, 17 June 2011