Support Requests item #3428321, was opened at 2011-10-25 09:33
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=342832…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: add_text.py has problems in windows CMD
Initial Comment:
add_text.py arguments (-text -exception -summary -newimages ) doesn't support
percentage characters specially for CMD in windows.
for example this example doesn't work correctly in windows CMD
python add_text.py -links%3A%22%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%22
-text%3A%7B%7B%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%7D%7D
is it possible to change their Unicode setting like pagegenerator.py arguments?
p.s. for percentage characters i use
http://meyerweb.com/eric/tools/dencoder/
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 09:19
Message:
First of all, sorry for the slow response. Yes, you are right, you cannot
do that with -text. I'm also not quite sure whether the 'correct' behaviour
is to allow urlencoded text for -text:.
Is creating a page with an ascii name (i.e. user:reza/template) and
subst-ing that (i.e. -text:{{subst:user:reza/template}} ) a workable
solution for you?
Last, but not least, what happens if you just paste arabic text into the
console? i.e. -text:"{{فلان}}"? This should work on windows, but I'm
not sure what will be placed on the page...
----------------------------------------------------------------------
Comment By: reza (reza1615)
Date: 2011-10-26 04:28
Message:
-text: argument doesn't encode to Unicode text so it puts this percentage
text to pages! instead of {{فلان}}
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-10-25 10:36
Message:
You shouldn't encode the :, only the page title. So the correct command
would be:
python add_text.py
-links:%22%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%22
-text:%7B%7B%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%7D%7D
which should work.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=342832…