mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 20:06:34 +01:00
Fix #4411 (pmlz to epub conversion loses navigation point names) and various QSG tweaks
This commit is contained in:
commit
c14e8aeb0e
2 changed files with 8 additions and 4 deletions
Binary file not shown.
|
|
@ -182,12 +182,16 @@ def prepare_pml(self, pml):
|
|||
return pml
|
||||
|
||||
def strip_pml(self, pml):
|
||||
pml = re.sub(r'\\.\d=""', '', pml)
|
||||
pml = re.sub(r'\\.=""', '', pml)
|
||||
pml = re.sub(r'\\.\d', '', pml)
|
||||
pml = re.sub(r'\\.', '', pml)
|
||||
pml = re.sub(r'\\C\d=".+*"', '', pml)
|
||||
pml = re.sub(r'\\Fn=".+*"', '', pml)
|
||||
pml = re.sub(r'\\Sd=".+*"', '', pml)
|
||||
pml = re.sub(r'\\.=".+*"', '', pml)
|
||||
pml = re.sub(r'\\X\d', '', pml)
|
||||
pml = re.sub(r'\\S[pbd]', '', pml)
|
||||
pml = re.sub(r'\\Fn', '', pml)
|
||||
pml = re.sub(r'\\a\d\d\d', '', pml)
|
||||
pml = re.sub(r'\\U\d\d\d\d', '', pml)
|
||||
pml = re.sub(r'\\.', '', pml)
|
||||
pml.replace('\r\n', ' ')
|
||||
pml.replace('\n', ' ')
|
||||
pml.replace('\r', ' ')
|
||||
|
|
|
|||
Loading…
Reference in a new issue