View Single Post
Old 01-14-2017, 01:45 PM   #49
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Just for a little change of pace, here's a problem I'm having.

I started with a LibreOffice .odt file containing a novel I'm working on. It has several custom styles, which all "inherit from" Text Body.

LO version is 5.1.4.2 on Kubuntu 16.04.1
plugin version is 0.2.7
Sigil version is 0.9.7

The writer HTML file was created via "save as" and selecting HTML document (writer) as the format.

The plugin runs without error, and correctly imports the cover image, builds a correct toc.ncx and a correct HTML contents file, but no text files are created after the frontmatter. That is to say the frontmatter (title, copyright, and dedication) is included, but nothing is included from the first h1 tag on. The TOC refers to flies like "../Text/chapter_one.xhtml" and so on, but those files are not present.

Must be something I'm doing wrong, or someone surely would have mentioned it before now.

Here's the import log, in case it is helpful:
Spoiler:

Status: success

Python version: 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]

Running OpenDocHTMLImport...

-- User input validation checks...
-- Main html file found...PASS
-- eBook cover file found...PASS

-- Input file validation checks...
-- Input html file is in OpenDoc HTML format...PASS
-- "Heading 1" style is used in the input html file....PASS

-- Start conversion to epub...

-- Gathering metadata...
-- Input file name = /home/u838190/tmp/scratch-epub/GalacticFrontiers_HTMLtest.html
-- Author name = Darrel Bain
-- Title = Galactic Frontiers
-- Cover file name = 9781606193709.jpg
-- Found 1 ebook images in your local dir
>>> html enc...utf-8
>>> chardet enc...ascii
-- Input file encoding is: UTF-8
-- Convert input file to utf-8 if required
-- Reformat and remove garbage from html styles...

-- Clean, fix and sanitize html garbage code...
-- Fix mixed encoding errors
-- Remove adhoc garbage code...
-- Remove all extraneous text spaces
-- Remove all hard line breaks(<br/>)
-- Remove all tab spaces
-- Remove all "dir", "lang", "name", "id", "align" and "link" attributes
-- Remove all anchors, bookmarks and page links

-- Remove all proprietary garbage code from the html file
-- Preserve and keep all external internet links
-- Remove all internal page links
-- Remove all line-height and font family declarations
-- Remove all isolated </p> tags and </span> tags
-- Remove div tags
-- Remove all page-break refs in styles

-- Cleanup punctuation...
-- Change dumb quotes to curly quotes
-- Convert triple periods to ellipsis
-- Remove the doc TOC if present

-- Create the stylesheet...
-- Creating the CSS file
-- Reformat the CSS File
-- Reformat and insert ebook images
-- Move HTML inline styles to CSS
-- Split all chapters/headers into separate xhtml files
-- Add meta headers to all the new html header files

-- Normalize the CSS file...
-- Remove unwanted attributes from the CSS
-- Remove adhoc garbage from the CSS
-- Add useful and helpful globals and presets to CSS
-- Adjust CSS body attributes
-- Convert absolute to relative values in the CSS

-- Build the zip archive...
-- Creating the cover image file
-- Create the TOC file
-- Create the container XML file
-- Create the toc.ncx XML file
-- Build the content.opf file

-- Add the Go To guides for toc, cover and begin read.
-- Tidy up and indent all XML layouts

-- Create the zip file archive...
-- Adding files to the new zip file...
-- Add mimetype file
-- Add container.xml file
-- Add toc.ncx file
-- Add content.opf file
-- Add ebook cover file
-- Add content.xhtml file
-- Add stylesheet file
-- Add cover image file

-- Add all ebook image files to the zip Images directory
-- Add all HTML text header files to the zip Text directory
-- Converting the zip archive to epub format...

-- An epub was SUCCESSFULLY created



Thanks for any pointers.

Albert

Edited to add: Just tried it on another machine with LO 5.2.3.3, and other software versions same as stated above, and got the same result.

Last edited by st_albert; 01-14-2017 at 05:36 PM. Reason: additional test
st_albert is offline   Reply With Quote