08-10-2023, 06:32 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: kindle fire
|
Dot inserted on TOC Headings in EPUB doc with Calibre
I am converting an Open Office Doc into EPUB with Calibre and everything works great, except in front of every Chapter Heading in the body of the doc, Calibre adds a single dot. I am using the tag "Heading 1" in Open Office. In the image below you can see the dot to the left of the Chapter title. Is there a way to get rid of this? Thank you!
|
08-10-2023, 07:02 PM | #2 |
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If you are converting ODT format files, try saving as a DOCX and convert that.
The DOCX input plugin is actively maintained by the calibre creator, the ODT equivalents hasn't been updated for years. BR |
Advert | |
|
08-11-2023, 04:50 AM | #3 |
the rook, bossing Never.
Posts: 11,171
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I always Save As an extra docx and only ever edit the odt.
Also create your own named style with the same properties as Heading1, 2, 3 etc as mysteriously they can otherwise export in bulleted list style in the Save As docx. |
08-11-2023, 01:07 PM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: kindle fire
|
I am more than willing to create or modify an existing css file - I'm just not sure which one to modify and where to find it. Can you point me in the right direction? Thank you.
|
08-11-2023, 01:58 PM | #5 |
Bibliophagist
Posts: 35,499
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Try opening the epub in either calibre's editor or Sigil and take a look at the headers there. You can also copy/paste the header and any relevant CSS code in a message here to get more eyes on your issue if necessary.
|
Advert | |
|
08-11-2023, 02:06 PM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: kindle fire
|
This is the relevant code (I think). I know a smattering of HTML but I'm not sure how to proceed here. I am assuming that the dots are inserted in one of the classes. Can I override that here or do I need to go into the stylesheet? I'm not sure how to proceed. Thanks for the help!
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" class="calibre"> <head> <title>s Bread</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link rel="stylesheet" type="text/css" href="page_styles.css"/> </head> <body class="calibre1"> <ul class="outline_"><li class="calibre2"><h1 class="p-p" id="calibre_pb_7"><span id="anchor130" class="calibre3"></span><span id="anchor131" class="calibre3"></span>Two – Our Identity<a id="anchor132" class="calibre3"></a><a id="anchor133" class="calibre3"></a></h1> </li> </ul> |
08-11-2023, 02:13 PM | #7 | |
the rook, bossing Never.
Posts: 11,171
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Then no editing of HTML or CSS is needed. The <ul and <li are list HTML. The CSS will be saying put a bullet. If you do the styles correctly and only edit odt but EXTRA Save As for Calibre in docx you will get heading working properly. Don't waste time trying to fix a broken export/import! You MUST also make your own styles for headings. You can copy the Heading1 etc properties exactly. Last edited by Quoth; 08-11-2023 at 02:17 PM. |
|
08-11-2023, 02:17 PM | #8 |
Bibliophagist
Posts: 35,499
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
A quick look at the code you posted suggests that since your heading is being displayed as a list, what you are seeing is the list marker. You might want to take a look at the calibre2 and/or outline_ classes in the CSS stylesheet. If there is a list-style: disc; there, change it to list-style: none; otherwise just add the list-style: none; to it. The CSS might use list-style-type: whatever; which can be changed to list-style-type: none;
A quick and dirty fix if it works. |
08-11-2023, 03:20 PM | #9 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I agree: It is a UL (those get a mark, not a letter or number)
I suspect you tried to auto number your chapters in your source |
08-11-2023, 04:17 PM | #10 | |
the rook, bossing Never.
Posts: 11,171
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
You make a new identical style with ALL the same properties called anything (Mine is ChapterO) and then the Save As docx, import to Calibre and convert to an epub and its 100% fine. Using odt directly is poor. Using all my own names of header styles and no style based on another (inherited works for PDF Export, not well for docx Save As) then the epub is exactly like the LO Writer on screen or paper. I even use a Libra sized page (assuming 300dpi) so as to compare. Heading styles with page break before should have no style set for page and you need padding set for top margin for headings at start of a page on ereader. Last edited by Quoth; 08-11-2023 at 04:20 PM. |
|
08-12-2023, 07:29 AM | #11 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: kindle fire
|
Thanks to everyone for your help. I eventually just deleted all the li tags and now it looks great.
|
08-12-2023, 04:31 PM | #12 |
Bibliophagist
Posts: 35,499
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
08-12-2023, 05:06 PM | #13 |
the rook, bossing Never.
Posts: 11,171
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I prefer to fix the source and re-import (via Metadata Edit page). With up to 40 revisions per MSS and nearly as many MSS, life is too short to be fixing in the Editor.
I do edit imported 3rd party if a View exposes something stupid. As likely commercial random fishy birds as PD. I don't bother checking Joffe books now. |
Tags |
epub, header, odt, toc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to update a TOC that's inserted inline? | ownedbycats | Editor | 17 | 09-07-2020 12:19 AM |
Calibre PDF->EPUB - How to set up making gap only after dot? | regis221 | Conversion | 5 | 11-09-2014 12:52 AM |
NCX TOC section headings | eggheadbooks1 | ePub | 13 | 06-08-2013 05:57 PM |
Issue With Chapter Headings and TOC | yoss15 | Kindle Formats | 5 | 02-07-2012 01:54 PM |