https://bugs.documentfoundation.org/show_bug.cgi?id=147392
Bug ID: 147392
Summary: eBooks: improve html output (e.g. minimize numer of
tags and style declarations)
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 178240
--> https://bugs.documentfoundation.org/attachment.cgi?id=178240&action=edit
Writer file used to generate an epub doc.
Version: 7.1.5.2 / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded
ISSUE
Although LO Writer is capable of producing epub books, the html code seems to
be inefficient, with multiple classes used for the same type of paragraph;
headings changed to paragraphs; and span tags used to indicate italics or
emphasis in text (rather than the appropriate <i></i> or <em></em> tags.
TO DEMONSTRATE
1. Open the attached Writer file. Create an epub.
2. Open the epub with the CALIBRE Editor and inspect the html / css.
Points to note:
1. Headings are translated to paragraph styles. Why not simply translate a
heading into the html equivalent: h1, h2, h3 etc.?
2. The text is littered with unnecessary span tags. Why not simply use <i></i>
and <em></em> tags?
3. There is an empty span style in the style sheet!
4. There are two paragraph styles in the css where only one exists in the
Writer file.
Could the html be simplified?
--
You are receiving this mail because:
You are the assignee for the bug.