Skip to content

Commit

Permalink
folia2html: Fix conflicting options (previous release was premature)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Mar 3, 2021
1 parent 28f4864 commit 8095f62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion foliatools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""FoLiA-tools contains various Python-based command line tools for working with FoLiA XML (Format for Linguistic Annotation)"""

VERSION = "2.4.8"
VERSION = "2.4.9"
5 changes: 3 additions & 2 deletions foliatools/xslt.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def usage():
print(" -E [extension] Set extension (default: xml)",file=sys.stderr)
print(" -q Ignore errors",file=sys.stderr)
print(" -s [url] Associate a CSS Stylesheet (URL, may be relative)",file=sys.stderr)
print(" -T Retain tokenisation",file=sys.stderr)
print(" -t [textclass] Text class to output",file=sys.stderr)


Expand Down Expand Up @@ -81,7 +82,7 @@ def process(inputfilename, outputfilename=None):

def main(xsltfilename, outputextension, usagetext):
try:
opts, args = getopt.getopt(sys.argv[1:], "o:E:hrqs:t:", ["help"])
opts, args = getopt.getopt(sys.argv[1:], "o:E:hrqs:Tt:", ["help"])
except getopt.GetoptError as err:
print(str(err), file=sys.stderr)
usage()
Expand All @@ -98,7 +99,7 @@ def main(xsltfilename, outputextension, usagetext):
if o == '-h' or o == '--help':
usage()
sys.exit(0)
elif o == '-t':
elif o == '-T':
settings.retaintokenisation = True
elif o == '-e':
settings.encoding = a
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read(fname):

setup(
name = "FoLiA-tools",
version = "2.4.8", #also change in __init__.py
version = "2.4.9", #also change in __init__.py
author = "Maarten van Gompel",
author_email = "proycon@anaproy.nl",
description = ("FoLiA-tools contains various Python-based command line tools for working with FoLiA XML (Format for Linguistic Annotation)"),
Expand Down

0 comments on commit 8095f62

Please sign in to comment.