|
|
#31 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,139
Karma: 30317706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
See ==>> calibre user guide: E-book conversion - in particular the Format Tips section.
If you want something that will (with effort) map the MS Word/Libre Office style definitions to CSS have a look at the Sigil DOCX Import plugin There's also the Toxaris's eBook Tools MS Word add-in - I use some of its features regularly, but not it's HTML or EPUB creation features. BR |
|
|
|
|
|
#32 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,890
Karma: 106187745
Join Date: Apr 2011
Device: pb360
|
|
|
|
|
|
|
#33 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,544
Karma: 150265873
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Vellum also needs to go away forever because it creates the some of the worst code ever. Sure it's valid, but if you need to make changes to the ePub, it's may not be easy especially if the person doing the changes is not knowledgeable enough in HTML/CSS. I'm guessing Atticus could also be bad given it's lumped in with to other awful programs. The best solution is to make sure you create the Word Document properly using styles and only styles. Never highlight and click a button on the toolbar. Last edited by JSWolf; 01-09-2026 at 05:15 PM. |
|
|
|
|
|
|
#34 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,511
Karma: 174632680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
And really, do you think someone who is using Vellum is also going to be manually editing the ePub? For the authors I know, that is generally where I have the offending ePub sent in my direction for fixup instead of the author wasting valuable writing time on learning CSS/XHTML. |
|
|
|
|
|
|
#35 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,021
Karma: 210162574
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Give it a rest, Jon. You don't get to decide for everyone what's acceptable to use. Your objection to everything except that which you choose to use is duly noted. Now please go away.
|
|
|
|
|
|
#36 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Quote:
|
|
|
|
|
|
|
#37 |
|
Enthusiast
![]() Posts: 41
Karma: 10
Join Date: May 2009
Device: BeBook (2009), Kobo Clara HD (2018), Kobo Libra 2 (2022)
|
|
|
|
|
|
|
#38 |
|
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Nov 2025
Device: none
|
I have tried both convertion in Calibre and Sigil.
Calibre will try to preserve every style in the original file and cause every paragraph have a class, even blank ones.Even use settings to remove some style still leaves class in every paragraph. The Sigil Docx2epub would ditch most style, but just leave p and h, so no point to waste time to fine formatting in MSword anyway. Considering the actual need and future maintenance, barebone epub from scratch seems more logical. |
|
|
|
|
|
#39 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,021
Karma: 210162574
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I think you might have missed a big part of the plugin. Namely the ability to create custom mapping matrices to map Word styles to css.
|
|
|
|
|
|
#40 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,544
Karma: 150265873
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In the Word document, each paragraph has a style. So calibre is keeping that.
However, if most paragraphs use the same style, you don't need a class for those paragraphs in the ePub as you can style p for the most used paragraph style. For example, this is the CSS I use for most paragraphs. Code:
p {
margin-top: 0;
margin-bottom: 0;
widows: 1;
orphans: 1;
text-indent: 1.2em;
}
|
|
|
|
|
|
#41 |
|
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Nov 2025
Device: none
|
|
|
|
|
|
|
#42 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Yeah, the DOCX2EPUB plugin is fantastic, you might look up mammoth documentation to work out the mapping stuff, which is tremendously useful. You can have as much or as little style retention as you want, and can nest elements together (e.g. div.class > p.whatever > span.etc). Very useful if you’re structuring all your Word files the same way, and re-using any CSS.
|
|
|
|
|
|
#43 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,775
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
There are also countless online WYSIWYG Markdown editors. You could then easily convert the Markdown files to HTML with Calibre or cmark-gfm and add them to your book. Last edited by Doitsu; 01-10-2026 at 08:32 AM. |
|
|
|
|
|
|
#44 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 339
Karma: 2581190
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
epub and pdf creation via calibre
I have been using the editor in calibre exclusively for many years for original writing. That is to say, I do not use any kind of word processor at all. To create the necessary code is trivial: just wrap each paragraph in <p> and </p>. Add <h1> and </h1> around the single line tile. At this point you are done. More complicated things you can learn as you go. Actually adding these tags is via calibre also: the snippet feature can pop in these tags quickly without fuss. My snippet for the P tag is pp followed by ctrl-j. Later, you can learn to modify the tags internally by adding style ("s, ctrl-j" = "style=""). Many people disdain collections of styles called "class" but I like them very much ("c, ctrl-j" = "class="") My classes are like "tac" = "text-align:center", "df" = "display:flex", "aic" = "align-items: center". Over the years all this has become automatic <ol>, <li>, "bia" = "break-inside-avoid", "jcse" = "justify-content:space-evenly". Depending on if the book has lots of images with top, bottom, side captions and so forth this method creates absolute precision of placement for size, left or right, etc. The epub is finished completely in calbre's editor. You can open it in with "v" in calibre's main screen to read it as an epub with the built in viewer. While in the viewer you can click "c" to convert it into PDF for sending to amazon for printing. Calibre does not have its own PDF viewer but you can set a keypress from calbre's main screen to open a PDF to read it that way after conversion. I have ctrl-e for evince and ctrl-o for okular. You really don't need two. Yes, to be fair, you can spend months and even years to teach yourself how to enhance via tags. But it takes the same amount of time and effort to learn how to use all the details of an ultracomplex word processor. The conversion process from word processor file to epub is sometimes not precise and it is very hard to tweak. I do not recommend my method for everyone; it is personal.
|
|
|
|
|
|
#45 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 143336
Join Date: Sep 2010
Device: Kindle Keyboard 3G
|
Two other suggestions for creating or preparing epub documents:
1. OnlyOffice Desktop (free): It offers directly the creation of an epub document (File | Save as). This is a free office program like LibreOffice. https://www.onlyoffice.com/download-desktop 2. LibreOffice has some extensions to create epub, e. g. https://extensions.libreoffice.org/e...ow/epublishing |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iPad What's a good ipad text editor? | Rizla | Apple Devices | 22 | 11-15-2013 02:11 PM |
| Is It Possible To Use Calibre As A Converter-Editor Without Creating A Library? | LouieChuckyMerry | Library Management | 18 | 10-24-2013 08:56 PM |
| What is a good recorder for creating an audiobook | John Carroll | Writers' Corner | 25 | 12-26-2010 06:33 PM |
| Good HTML Editor | Dave Berk | Workshop | 27 | 04-16-2008 12:19 PM |
| looking for good freeware programmer text editor | ignatz | Lounge | 4 | 04-08-2004 04:55 PM |