Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2014, 04:18 PM   #1
antalj
Member
antalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of light
 
Posts: 10
Karma: 12048
Join Date: Feb 2014
Device: kobo aura hd
Sigil style and page break

Hi Guys!

I have just formatted my forst epub in Sigil, it is a great program I can say
1. I have a couple of things I dont get, where can I check the default style sheet (if I do not add a new one to styles) and modify it?
2. where could I get a full style css with all of the parameters which are necessary for a html section?
3. how could I insert page breaks inside chapters?


Thx
Cheers
antalj is offline   Reply With Quote
Old 02-19-2014, 12:23 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,723
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by antalj View Post
1. [...] where can I check the default style sheet (if I do not add a new one to styles) and modify it?
There is no default stylesheet. You'll have to add one yourself to the Styles folder and link it to the .html file(s).

Quote:
Originally Posted by antalj View Post
2. where could I get a full style css with all of the parameters which are necessary for a html section?
You can take it from any book whose layout you like. Just extract the stylesheet, add it to Sigil and link it to the .html file(s). (You'll also need to add class attributes to the elements that you want to apply the style to.)

Quote:
Originally Posted by antalj View Post
3. how could I insert page breaks inside chapters?
Since ebooks are dynamically displayed page breaks are usually not required. However, you can force page breaks by assigning a style that contains the page-break-before or page-break-after properties.
Doitsu is offline   Reply With Quote
Advert
Old 02-19-2014, 02:39 AM   #3
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by antalj View Post
3. how could I insert page breaks inside chapters?
The general consensus is that it would be better to have each chapter as a seperate XHTML file. You can easily split a file in Sigil.
Each XHTML file will start on a new page while reading and makes editing a lot easier. Also, older readers have a XHTML filesize limit of around 285k. Above that number the file will not load.
Toxaris is offline   Reply With Quote
Old 02-19-2014, 04:34 AM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Toxaris View Post
The general consensus is that it would be better to have each chapter as a seperate XHTML file. You can easily split a file in Sigil.
Here is the Sigil Manual on how to split a file:

http://web.sigil.googlecode.com/git/...d_merging.html
Tex2002ans is offline   Reply With Quote
Old 02-19-2014, 06:08 AM   #5
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Quote:
Originally Posted by antalj View Post
3. how could I insert page breaks inside chapters
Why inside a chapter?

You must forget the most things about paper printed texts. Ebooks are dynamik. You don't know the size of the chosen font, and not the sitze of the display. So you don't know how the text looks in the realitiy. (Your personal reader with the current configuration is not the whole world.)

Obligatory page brakes between paragraphs are in ebooks a no go.

(Wo don't speak about page breaks between chapters.)
faltradl is offline   Reply With Quote
Advert
Old 02-19-2014, 06:22 AM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
If you must have fixed layout and exact page breaks, then epubs are not for you. You need a different format.
mrmikel is offline   Reply With Quote
Old 02-19-2014, 06:27 AM   #7
antalj
Member
antalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of light
 
Posts: 10
Karma: 12048
Join Date: Feb 2014
Device: kobo aura hd
Thx guys, I will do css thing


The pages break is needed cause e.g. usually at the beggining of the book there is the title, several data like isbn etc, introduction, couple of recommendations from differetnt people and things like that.
I want to have this on different pages, currently they are just one after the other and this way the first couple of sides are a bit "crowded". Or shall I place these things also in different files?
antalj is offline   Reply With Quote
Old 02-19-2014, 06:38 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
I usually put that in different files, just be consistent.
Toxaris is offline   Reply With Quote
Old 02-19-2014, 11:54 AM   #9
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Quote:
Originally Posted by antalj View Post
The pages break is needed cause e.g. usually at the beggining of the book there is the title, several data like isbn etc, introduction, couple of recommendations from differetnt people and things like that.
Ah, that's nothing with paragraphs and chapters, we thought of.

This special pages (cover, titlepage etc.) at the beginning of a book are standard. It's the same as in printed books. And yes, most ebooks use extra files for them. It's easyer to handle, when you seperate the metainformations and the text part.

Hint:
Take an ebook you realy like (the layout) an open it with the editor. So you can see how it works.
faltradl is offline   Reply With Quote
Old 02-19-2014, 02:35 PM   #10
antalj
Member
antalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of light
 
Posts: 10
Karma: 12048
Join Date: Feb 2014
Device: kobo aura hd
Actually currently I do not understand something again.
I have the ebook's style like this for every html page:
Quote:
<p style="text-align: center; font-family: 'Times New Roman', serif; margin: 0pt; text-indent: 0pt; line-height: 12pt;"><br /></p>

<p style="font-family: 'Times New Roman', serif; margin: 0pt; text-indent: 0pt; padding-left: 31pt; text-align: center;">ISBN 978 963 254 413 7</p>

<p style="font-family: 'Times New Roman', serif; margin: 0pt; text-indent: 0pt; padding-top: 2pt; padding-left: 120pt;">Méltatások <i>A Megmentőről</i></p>

<p style="font-family: 'Times New Roman', serif; margin: 0pt; text-indent: 0pt; line-height: 12pt;"><br /></p>

<p style="font-family: 'Times New Roman', serif; margin: 0pt; padding-left: 5pt; text-indent: 14pt; text-align: justify;">„Frei Tamás klasszikus bestsellert írt. ahogy az a nagy könyvben meg van írva. A részben valós, részben fiktív tényeket és személyeket Frei úgy gyúrja össze, hogy az európai olajpolitikában kevésbé jártas olvasó abszolút valószerűnek gondolhatja a regény konspirációit.”</p>

<p class="s4" style="font-family: 'Times New Roman', serif; font-style: italic; margin: 0pt; text-indent: 0pt; padding-left: 195pt;">Varga Betti, [origo] Kötve-fűzve</p>

Is this okay or is it better if I have a style sheet? Cause this was it is really not needed.
antalj is offline   Reply With Quote
Old 02-19-2014, 03:37 PM   #11
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
There is nothing wrong with doing it that way, but it is easier to look at and type if you make a class in your stylesheet something like

.parastyle {font-family: 'Times New Roman', serif; font-style: italic; margin: 0pt; text-indent: 0pt; padding-left: 195pt;"}

and call up with <p class="parastyle">

If this is what you do for every paragraph, you can redefine paragraph in the stylesheet and then you just need <p>.

If this is for your private use, then specifying Times New Roman is fine. If it is not just for you, then Times New Roman is a proprietary font for which you could pay a lot of money to use, and which is not found on every e-reader.
mrmikel is offline   Reply With Quote
Old 02-19-2014, 03:47 PM   #12
antalj
Member
antalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of lightantalj is a glorious beacon of light
 
Posts: 10
Karma: 12048
Join Date: Feb 2014
Device: kobo aura hd
ah thx for the additional times new roman info
antalj is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Style poetry - line break on verse ramsaa Sigil 15 10-22-2013 04:28 PM
Chapter break in Sigil 0.6.0? Shortlass Sigil 7 11-03-2012 12:48 PM
Break Document at Paragraph Style BatGrfx Writers' Corner 2 09-10-2011 02:46 PM
Sigil Style Sheets crutledge Sigil 3 10-06-2010 08:48 AM
Sigil et la feuille de style roger64 Software 3 03-30-2010 09:23 PM


All times are GMT -4. The time now is 03:10 AM.


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