![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
Tabs not saving. Losing all format.
I am a casual user. I don't know html coding. I am using sigil to edit an epub. When I press Shift + Enter then tab between two sentences to indent the next line, i find they are not saving. even if i save the file or go back and forth between html pages, my tab indents are all gone and not saving. What am i not understanding please?
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
|
In html, a tab is just another single whitespace char. To use Sigil you really must know basic html and css. A skill worth knowing.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
Ah ok. I thought I could get away without knowing HTML code as the Sigil UI gives me a WYSIWYG impression.
Does that mean I need to manually add an HTML indent code everytime I need it? Seems quite a long winded process for the 300 page epub I am fixing. Want to upload to my Google Play Books library. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
.indented {text-indent: 1.2em;} usage Code:
<p class="indented"> blah de blah </p> |
|
![]() |
![]() |
![]() |
#5 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Alternatively to what theducks said, if you want all paragraphs indented, in your stylesheet.css file you could use
Code:
p { text-indent: 1.2em; } Code:
<p>blah blah blah</p> Code:
p { text-indent: 1.2em; } .noindent { text-indent: 0em; } Code:
<h2>Chapter title</h2> <p class="noindent">blah blah blah</p> <p>blah blah blah</p> Last edited by hobnail; 07-28-2022 at 04:51 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
Forgive me friends but in code view i see this line:
<span style="font-size: 1em;">The sky can be very pretty when it's moody which is the one good thing about a storm. I want a tab indent of say 6 white spaces before the word The. What code do i need to add to the above line? Please bear with me and my novice knowledge of this type of coding. I know some examples are in the above replies but still not sure how to merge with existing code before the word. |
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 316
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
https://developer.mozilla.org/en-US/...eb/HTML_basics (The web and ebooks both use html.) Last edited by hobnail; 07-28-2022 at 06:53 PM. |
|
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
CSS for ebook should deal in relative dimensions. NEVER cm or in
1.2em means 1.2 * the width of an M in the current font (face and size) 6em is huge. (for normal paragraphs, I use 1.2 - 2em as an indent) If you want a List, the use <UL> <--unordered list and <LI> for each item Note ALL tags get closed </li> And finally </ul> to end list mode ![]() ![]() |
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
|
![]() |
![]() |
![]() |
#11 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 316
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Any class or style attributes? Or does it literally just look like “<p>”. Any files in the “Styles” folder in the sidebar, or anything mentioning style in the <head> at the beginning of that HTML document?
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
|
Ok I have solved the issue. I just add:
& # 160 ; & # 160 ; & # 160 ; (no spaces) directly before the word i want indented. Thank you everyone for your advice and patience with a new user. And no snarky replies too! ![]() Last edited by tboy2000; 07-28-2022 at 08:13 PM. Reason: censored code |
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
You might want to take a look at some very basic tutorials. One that might help is by Pablo. See https://wiki.mobileread.com/wiki/EPub_Tutorial
Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
![]() |
#15 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
![]() |
Tags |
indent, tabs |
|
![]() |
||||
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 |