summaryrefslogtreecommitdiff
path: root/wikitrans/wiki2text.py
diff options
context:
space:
mode:
Diffstat (limited to 'wikitrans/wiki2text.py')
-rw-r--r--wikitrans/wiki2text.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/wikitrans/wiki2text.py b/wikitrans/wiki2text.py
index 1fbc61b..88e7610 100644
--- a/wikitrans/wiki2text.py
+++ b/wikitrans/wiki2text.py
@@ -247,14 +247,13 @@ class TextWikiMarkup(WikiMarkup):
def __init__(self, *args, **keywords):
"""Create a TextWikiMarkup object.
- Arguments:
+ TextWikiMarkup([filename=FILE],[file=FD],[text=STRING],[lang=CODE],
+ [html_base=URL],[image_base=URL],[media_base=URL],
+ [width=N],[show_urls=False])
- filename=FILE
- Read Wiki material from the file named FILE.
- file=FD
- Read Wiki material from file object FD.
- text=STRING
- Read Wiki material from STRING.
+ Most arguments have the same meaning as in the WikiMarkup constructor.
+
+ Class-specific arguments:
width=N
Limit output width to N columns. Default is 78.
@@ -345,4 +344,5 @@ class TextWiktionaryMarkup(TextWikiMarkup):
Reserved for future use. Currently does the same as TextWikiMarkup.
"""
+ html_base='http://%(lang)s.wiktionary.org/wiki/'

Return to:

Send suggestions and report system problems to the System administrator.