Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2021, 10:08 PM   #1
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 447
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
Chapter Titles as <ol> Styles in docx-->epub Conversion

System: Calibre 5.10.1, Ubuntu 20.04, LibreOffice 7.0.4.2

I've seen many suggestions to the effect that, if using Writer, a save as docx instead of odt before conversion to epub will give better results, so I have begun trying it. Yes, in general, there are no weird <span>s and so on.

But I find chapter titles, which were all plain "Heading 1" in Writer, come through as list styles. Example:

Code:
<ol class="list_">
    <li value="3" class="block_4" id="toc_id_3"><b class="calibre1">Chapter 3</b></li>
  </ol>
Is this normal? It seems a strange way to code chapter titles. And it makes it slightly more difficult to edit into the <h1 class="chapter"> sort of style I normally use. (Doesn't happen with odt conversion.)

Is there some way to avoid this behaviour?

Thanks...
retiredbiker is offline   Reply With Quote
Old 01-23-2021, 10:33 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
It is not normal for me.

Using Word: for Chapter One¶ styled as Heading 1, I get:

Code:
<h1 class="block_6" id="toc_id_1">Chapter One</h1>
Which equates to what you're expecting. I would check the specs of the Heading 1 style in Writer, and/or see what happens with the default template.
BetterRed is offline   Reply With Quote
Advert
Old 01-23-2021, 11:05 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you use auto-numbering for headings then they become lists.
kovidgoyal is offline   Reply With Quote
Old 01-24-2021, 12:06 AM   #4
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 447
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
Quote:
Originally Posted by kovidgoyal View Post
If you use auto-numbering for headings then they become lists.
That makes perfect sense.

Neither the odt nor the saved docx H1 styles seem to have any numbering turned on, but there is a message in outline level that it is turned off if I use a paragraph style for chapter numbering; same in both versions. (How does it know that? the word "Chapter"? With every update, Writer gets more "helpful", like Word. Darn!)

So this is something Writer is doing, not Calibre. I'll hunt it up there.

Thank you!
retiredbiker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Word Header Styles Conversion to EPUB FDPuthuff Conversion 4 11-27-2020 05:45 PM
Converting from EPUB to DOCX - styles tage fredheim Conversion 2 10-16-2019 11:21 AM
.docx --> epub - Heading styles not translating to <h1> <h2> Gary Friedman Conversion 6 06-20-2018 07:27 PM
HTML to EPUB conversion breaks styles iliakan Conversion 1 01-15-2015 02:36 PM
Strip specific styles from EPUB conversion? kurokaze Conversion 1 04-06-2011 07:04 AM


All times are GMT -4. The time now is 03:09 AM.


MobileRead.com is a privately owned, operated and funded community.