mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-10 11:35:50 +01:00
41 lines
921 B
Python
41 lines
921 B
Python
__license__ = 'GPL 3'
|
||
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
|
||
__docformat__ = 'restructuredtext en'
|
||
|
||
from ebook_converter.utils.mreplace import MReplace
|
||
|
||
_mreplace = MReplace({
|
||
'–': '--',
|
||
'–': '--',
|
||
'–': '--',
|
||
'—': '---',
|
||
'—': '---',
|
||
'—': '---',
|
||
'…': '...',
|
||
'…': '...',
|
||
'…': '...',
|
||
'“': '"',
|
||
'”': '"',
|
||
'„': '"',
|
||
'″': '"',
|
||
'“': '"',
|
||
'”': '"',
|
||
'„': '"',
|
||
'″': '"',
|
||
'“':'"',
|
||
'”':'"',
|
||
'„':'"',
|
||
'″':'"',
|
||
'‘':"'",
|
||
'’':"'",
|
||
'′':"'",
|
||
'‘':"'",
|
||
'’':"'",
|
||
'′':"'",
|
||
'‘':"'",
|
||
'’':"'",
|
||
'′':"'",
|
||
})
|
||
|
||
unsmarten_text = _mreplace.mreplace
|