[Pywikipedia-l] SVN: [6264] trunk/pywikipedia/spellcheck.py
a_engels at svn.wikimedia.org
a_engels at svn.wikimedia.org
Thu Jan 15 23:28:55 UTC 2009
Revision: 6264
Author: a_engels
Date: 2009-01-15 23:28:54 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
My last edit accidentily changed the default from i to a; corrected this
Modified Paths:
--------------
trunk/pywikipedia/spellcheck.py
Modified: trunk/pywikipedia/spellcheck.py
===================================================================
--- trunk/pywikipedia/spellcheck.py 2009-01-15 22:39:04 UTC (rev 6263)
+++ trunk/pywikipedia/spellcheck.py 2009-01-15 23:28:54 UTC (rev 6264)
@@ -20,6 +20,7 @@
a: This word is correct; add it to the list of known words
c: The uncapitalized form of this word is correct; add it
i: Do not edit this word, but do also not add it to the list
+ p: Do not edit this word, and consider it correct for this page only
r: Replace the word, and add the replacement as a known alternative
s: Replace the word, but do not add the replacement
*: Edit the page using the gui
@@ -151,7 +152,7 @@
wikipedia.output(u"a: Add '%s' as correct"%word)
if word[0].isupper():
wikipedia.output(u"c: Add '%s' as correct"%(uncap(word)))
- wikipedia.output(u"i: Ignore once")
+ wikipedia.output(u"i: Ignore once (default)")
wikipedia.output(u"p: Ignore on this page")
wikipedia.output(u"r: Replace text")
wikipedia.output(u"s: Replace text, but do not save as alternative")
@@ -159,6 +160,7 @@
wikipedia.output(u"*: Edit by hand")
wikipedia.output(u"x: Do not check the rest of this page")
answer = wikipedia.input(u":")
+ if answer == "": answer = "i"
if answer in "aAiIpP":
correct = word
if answer in "aA":
More information about the Pywikipedia-l
mailing list