summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/txc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-12 23:53:22 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-12 23:53:22 +0100
commitc22c6b513ee142c9d43c0880bc6d53cb34df078e (patch)
tree0b9616ecde45787855f19fcad44bed427aaf2bb8 /crawl-ref/source/util/txc
parent074feabf3f08b7dda0c5d33929d1efb817b51427 (diff)
downloadcrawl-ref-c22c6b513ee142c9d43c0880bc6d53cb34df078e.tar.gz
crawl-ref-c22c6b513ee142c9d43c0880bc6d53cb34df078e.zip
[txc] Polish quotation marks.
I guess »« shouldn't be used by default, they're very rare and used practically only when nested inside „”. If you want a good degree of completeness, there's: https://en.wikipedia.org/wiki/International_variation_in_quotation_marks
Diffstat (limited to 'crawl-ref/source/util/txc')
-rwxr-xr-xcrawl-ref/source/util/txc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/util/txc b/crawl-ref/source/util/txc
index 7ea0103993..d50815760d 100755
--- a/crawl-ref/source/util/txc
+++ b/crawl-ref/source/util/txc
@@ -245,6 +245,9 @@ def auto_fix(s, lang):
elif lang == 'de':
s = auto_fix.re_english_single_quotes.sub(u"‚\\1‘", s)
s = auto_fix.re_english_double_quotes.sub(u"„\\1“", s)
+ elif lang == 'pl':
+ s = auto_fix.re_english_single_quotes.sub(u"»\\1«", s)
+ s = auto_fix.re_english_double_quotes.sub(u"„\\1”", s)
return s
auto_fix.re_hyphen = re.compile("(\s)[-–](\s)") # Replace hyphens by em dashes