07-28-2022, 09:28 PM | #16 |
Member
Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
|
07-28-2022, 10:33 PM | #17 | |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Code:
<p>The sky can be very pretty when it's moody which is the one good thing about a storm.</p> Code:
p {text-indent:1.2em} |
|
07-28-2022, 11:52 PM | #18 |
Member
Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
That code was already in the epub when I used an online pdf to epub convertor. I guess the online service did it. Cheers!
|
07-29-2022, 06:27 AM | #19 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Yes, online/automated converters often put some ugly coding when converting… especially if you are using a pdf as your source doc.
You can easily replace those spans in Sigil using the tag-mechanic plug-in. Also, if your paragraphs all have a basic <p> tag then all you need to do for your spacing is add the p {text-indent: 1.2em} to your attached style sheet. If it is not a basic paragraph tag and has something like <p class="calibre2"> Then you can do a simple find/replace to fix it: Find: <p class="calibre2"> Replace: <p> Should take about 30 seconds to do all that in Sigil. |
07-29-2022, 08:42 AM | #20 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
<p> is your basic paragraph style. Mine is this:
p { margin-top:0.0em; margin-bottom:0.0em; text-indent:1.5em; text-align:justify; } You don't need to add a "class" unless you're doing something different, as in <p class="first"> which for me is this: p.first { margin-top:0.5em; margin-bottom: 0.0em; text-indent:0.0em; text-align:justify; } My entire style sheet is at https://notjohnkdp.blogspot.com/ which you are welcome to borrow or adapt. |
07-29-2022, 08:55 AM | #21 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-29-2022, 09:58 AM | #22 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
IF you had used Word, or Pages, Open Office, Libre Office, etc and used STYLES and HEADINGS, your paragraph style would already exist and already have the desired indent. I take it that you didn't do that? Using spaces is, flatly, not going to work. It's not merely gaucherie, as observed by Hob--it's not going to work. There are intake mechanisms, at various retailers, that would strip those right the hell out. Hitch |
|
07-29-2022, 01:38 PM | #23 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-29-2022, 02:04 PM | #24 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
And having said all that... it's time to remind everyone that there is nothing in this conversation that's Sigil specific. This is all html/css/epub-centric. Last edited by DiapDealer; 07-30-2022 at 09:38 PM. |
|
07-29-2022, 08:48 PM | #25 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
But, but, but I mentioned the totally awesome Sigil plug-in Tag Mechanic… |
07-30-2022, 07:20 PM | #26 | |
Member
Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
Quote:
|
|
07-30-2022, 07:21 PM | #27 |
Member
Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
So much info and help. Greatly appreciated gentleman!
|
07-30-2022, 08:31 PM | #28 |
Addict
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
(Snip) apologies, veered off topic.
Last edited by phillipgessert; 07-30-2022 at 10:12 PM. |
07-31-2022, 02:32 PM | #29 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
And you have no excuse, you have the original DOCX source files. Why is Converting From PDF So Horrible? PDF is only good as a final (output) format. It is designed for Print, not ebooks. PDF converted into anything will be extremely problematic, because you have to redo:
When you go from something like DOCX->EPUB, all that information gets carried over automatically. If you want more information, see my post in: What Should You Do Instead? Go back to your DOCX / Word document and use Styles!!! I highly recommend watching these 2 videos: within ~20 minutes, you'll learn how to clean up your documents and save yourself HUNDREDS OF HOURS of needless pain/suffering. For more info, see my posts in: especially Posts #46, #50, and #52. |
|
08-01-2022, 11:30 PM | #30 |
Member
Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
Thank you. Yes I used PDF for print to LuLu service. Didn't know it was bad for ebooks. Learned. Thank you.
|
Tags |
indent, tabs |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving to... format | Mich06 | Library Management | 3 | 08-11-2020 05:21 AM |
How to Convert EPUB to PDF using Calibre without losing its format | yusheda | Conversion | 10 | 12-02-2017 10:02 PM |
Losing paragraph format in txt to epub with block and markdown | Tattvadarzin | Conversion | 4 | 10-25-2013 02:49 AM |
How to format pc without losing metadata Calibre? | retval | Library Management | 10 | 03-12-2011 01:31 PM |
Losing files when saving saving to disk | theaccountant | Library Management | 4 | 03-10-2011 02:38 PM |