summaryrefslogtreecommitdiffabout
path: root/wikicvt.py
authorSergey Poznyakoff <gray@gnu.org.ua>2008-11-29 13:16:12 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2008-11-29 13:16:12 (GMT)
commite3710f6c32aa9a9e6b737c4ebc64af0df2ea872b (patch) (side-by-side diff)
tree441aa7476fd40685be4d8287bfa90d8a169a4b6c /wikicvt.py
parent88befee77fdaacc2e0dc92beffd1c6a68f86a8b7 (diff)
downloadwikitrans-e3710f6c32aa9a9e6b737c4ebc64af0df2ea872b.tar.gz
wikitrans-e3710f6c32aa9a9e6b737c4ebc64af0df2ea872b.tar.bz2
Improve text output generation
* wiki2html.py (mktgt): Add 3rd argument. All callers updated. * wiki2text.py (wiki_ns_name,mktgt): New functions (str_link,str_tmpl): Rewrite * wikicvt.py: New argument --input-text (not used yet)
Diffstat (limited to 'wikicvt.py') (more/less context) (ignore whitespace changes)
-rw-r--r--wikicvt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wikicvt.py b/wikicvt.py
index d45a61f..758bcb1 100644
--- a/wikicvt.py
+++ b/wikicvt.py
@@ -35,7 +35,7 @@ def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "hl:o:tv",
["help", "lang=", "option=",
- "text", "verbose" ])
+ "text", "input-text", "verbose" ])
except getopt.GetoptError:
usage(1)
@@ -52,6 +52,8 @@ def main():
(kw,sep,val) = a.partition('=')
if val != '':
kwdict[kw] = eval(val)
+ if o == "--input-text":
+ input_text = True
if len(args) == 1:
if args[0] == '-':

Return to:

Send suggestions and report system problems to the System administrator.