mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Input: Textile: Add escapes for specifying non chaning quotes.
This commit is contained in:
parent
15fa4f71c4
commit
ff160288b9
@ -206,6 +206,12 @@ class Textile(object):
|
||||
(re.compile(r'{clubs?}'), r'♣'), # club
|
||||
(re.compile(r'{hearts?}'), r'♥'), # heart
|
||||
(re.compile(r'{diam(onds?|s)}'), r'♦'), # diamond
|
||||
(re.compile(r'{"}'), r'"'), # double-quote
|
||||
(re.compile(r"{'}"), r'''), # single-quote
|
||||
(re.compile(r'{’}'), r'’'), # closing-single-quote - apostrophe
|
||||
(re.compile(r'{‘}'), r'‘'), # opening-single-quote
|
||||
(re.compile(r'{“}'), r'”'), # closing-double-quote
|
||||
(re.compile(r'{“}'), r'“'), # opening-double-quote
|
||||
]
|
||||
glyph_defaults = [
|
||||
(re.compile(r'(\d+\'?\"?)( ?)x( ?)(?=\d+)'), r'\1\2×\3'), # dimension sign
|
||||
|
Loading…
x
Reference in New Issue
Block a user