Home ยป Forum ยป Author Hangout

Forum: Author Hangout

ODT to HTML with LibreOffice

Justin Case ๐Ÿšซ

What is the effective way to convert ODT to HTML using LO ??

I have even converted to PDF and then HTML, but it shows up with double spacing between the different text blocks. And I cannot seem to eliminate this weird effect.

Like THIS ^^ โ€ฆ the above 'double space' between the this text block and the text block above.

Any help/advice would be appreciated.

Replies:   Dominions Son  mimauk
Dominions Son ๐Ÿšซ
Updated:

@Justin Case

What is the effective way to convert ODT to HTML using LO ??

File->Save As

Select HTML Document as that save as type.

Replies:   Gauthier
Gauthier ๐Ÿšซ
Updated:

@Dominions Son

That still leave an overabundance of inline style and crap,
it's not as bad as Microsoft Word, but still is far from perfect.
I prefer to use pandoc

$>pandoc -f odt -t html -s -o "mydoc.html" "mydoc.odt"

I don't think there is a clean way of doing it in LO.

Dominions Son ๐Ÿšซ
Updated:

@Gauthier

You asked for effective, not for "clean" HTML however you are defining that. Save as HTML will give you valid HTML.

I just looked at an HTML file I generated from LO using save as HTML.

The only tags I see inside of the body are start and end paragraph tags, no in-line formatting tags.

But then with the master ODT, I have some document level formatting set up and that's it. I don't do any manual formatting changes on subsets of the text.

If you are getting a lot of inline formatting in the HTML from save as, then you must have a lot of in-line formatting going on in the master ODT document.

Switch Blayde ๐Ÿšซ

@Gauthier

That still leave an overabundance of inline style and crap,

But who cares? Maybe the techie who knows it and knows he can do better. But the user of the webpage or reader of the ebook? As long as it displays properly and isn't noticeably slow, I don't think the typical user cares what the HTML looks like.

Lazeez Jiddan (Webmaster)

@Gauthier

I don't think there is a clean way of doing it in LO.

pandoc can be too clean. It omits stuff like horizontal rules.

Replies:   Gauthier
Gauthier ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

A long standing bug indeed.

mimauk ๐Ÿšซ

@Justin Case

If you save it as HTML with Libre Office, you can then use Calibre Edit to clean up the HTML into whatever style you want. I've done this when I've edited stories for writers - a bit of a pain but it gets done in the end.

Replies:   rustyken
rustyken ๐Ÿšซ

@mimauk

You are right it is a bit of a pain but would be less of one if I could figure out how to increase the font size in the editing window.

Replies:   Gauthier
Gauthier ๐Ÿšซ

@rustyken

Inside "The Calibre e-book Editor" program
Menu Edit -> Preferences (ctrl+p)
Editor Settings, Editor Font Size.

Replies:   rustyken  Paladin_HGWT
rustyken ๐Ÿšซ

@Gauthier

Much better.
Thanks!!

Paladin_HGWT ๐Ÿšซ

@Gauthier

"Genius!"

Back to Top

 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.


Log In