Topic on Project:Support desk

أحمد ش الشيخ (talkcontribs)


As you know, working with RTL & LTR text on same line is very uncomfortable !, So, I tried to make arabic XML tags.

For Example <ref>...</ref> will be </مرجع><مرجع> without removing <ref>...</ref>

I got greate resault with new XML english tags, but with Arabic I didn't.

Can I do that?! , and how ?!


Bawolff (talkcontribs)

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.

أحمد ش الشيخ (talkcontribs)

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.

Bawolff (talkcontribs)

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.

أحمد ش الشيخ (talkcontribs)

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.

أحمد ش الشيخ (talkcontribs)
Reply to "Arabic XML Tags"