New option for sub/sup styles in docx input
This is a patch for a new option in docx input, it allows to use top/bottom values for CSS property vertical align.
Calibre 2.46 x64
Windows 7 x64
When working on docx documents, superscript/
When converting docx, for say, epub, the result is super/sub in CSS, leading to line-height changes when displaying document.
One of the solutions is to use top/bottom instead.
A usage scenario is this one :
- Docx input document with subscript/
- conversion to epub: as of today the generated document show line-height changes where superscripts/
Existing possible workarounds consist in setting additional CSS, or editing epub after the conversion, but for people that do not know CSS, it is difficult or impossible to do, whereas a simple checkbox may prove useful.
The patch contains 2 parts. The first one contains everything related to the change, the second one a small fix to end note code generation. Reversing the order of sup/a tags was required to keep the superscript.
This patch, if accepted, requires translations since it changes the user interface.