Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2022, 02:49 PM   #1
tboy2000
Member
tboy2000 began at the beginning.
 
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?
tboy2000 is offline   Reply With Quote
Old 07-28-2022, 03:03 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Advert
Old 07-28-2022, 04:20 PM   #3
tboy2000
Member
tboy2000 began at the beginning.
 
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.
tboy2000 is offline   Reply With Quote
Old 07-28-2022, 04:32 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by tboy2000 View Post
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.
That is what CSS is for. You have a separate style for .indented (your choice of name)

.indented {text-indent: 1.2em;}
usage

Code:
<p class="indented"> blah de blah </p>
theducks is offline   Reply With Quote
Old 07-28-2022, 04:35 PM   #5
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
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; }
Then it's just
Code:
<p>blah blah blah</p>
If you wanted a paragraph not indented, e.g., after a chapter title, you could use
Code:
p { text-indent: 1.2em; }
.noindent { text-indent: 0em; }
And the html is
Code:
<h2>Chapter title</h2>
<p class="noindent">blah blah blah</p>
<p>blah blah blah</p>
In the stylesheet.css the thing with a dot is specifying a class and without a dot it's specifying an html tag.

Last edited by hobnail; 07-28-2022 at 04:51 PM.
hobnail is offline   Reply With Quote
Advert
Old 07-28-2022, 05:47 PM   #6
tboy2000
Member
tboy2000 began at the beginning.
 
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.
tboy2000 is offline   Reply With Quote
Old 07-28-2022, 06:26 PM   #7
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 316
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Quote:
Originally Posted by tboy2000 View Post
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.
What comes before that <span>? A <p>?
phillipgessert is offline   Reply With Quote
Old 07-28-2022, 06:48 PM   #8
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by tboy2000 View Post
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.
Every paragraph should begin with a <p> and end with a </p>. Blank lines around (above and/or below) paragraphs don't do anything. Nor do blank lines within paragraphs wrapped in <p> and </p>.

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.
hobnail is offline   Reply With Quote
Old 07-28-2022, 08:00 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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

Find some books close to the type you are doing in the MR Library, and look at how the are coded
theducks is offline   Reply With Quote
Old 07-28-2022, 08:00 PM   #10
tboy2000
Member
tboy2000 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2022
Device: Google Play Books ePub
Quote:
Originally Posted by phillipgessert View Post
What comes before that <span>? A <p>?
Correct.
tboy2000 is offline   Reply With Quote
Old 07-28-2022, 08:02 PM   #11
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
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?
phillipgessert is offline   Reply With Quote
Old 07-28-2022, 08:10 PM   #12
tboy2000
Member
tboy2000 began at the beginning.
 
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! Friendly!

Last edited by tboy2000; 07-28-2022 at 08:13 PM. Reason: censored code
tboy2000 is offline   Reply With Quote
Old 07-28-2022, 08:13 PM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by tboy2000 View Post
Correct.
You can't 'indent' a span, only on block level tags (p, div,h )
Think of span, b, i as temporary modification of the current BLOCK.
Make this bigger. make this italic, make this bold
theducks is offline   Reply With Quote
Old 07-28-2022, 08:33 PM   #14
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
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
PeterT is offline   Reply With Quote
Old 07-28-2022, 08:47 PM   #15
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by tboy2000 View Post
Ok I have solved the issue. I just add:

& # 160 ; & # 160 ; & # 160 ; (no spaces)


... And no snarky replies too! Friendly!

Sorry, but I can't resist. Friendly advice: using spaces like that is the true sign of gaucherie.
hobnail is offline   Reply With Quote
Reply

Tags
indent, tabs


Forum Jump

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


All times are GMT -4. The time now is 06:22 AM.


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