Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2013, 05:21 PM   #1
rceee
Junior Member
rceee began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: Kindle
Question sigil_split_marker and other CSS definitions; where are they?

First of all, thanks for producing Sigil; top-notch, *outstanding* piece of software that has SAVED my Pages-to-(epub to)-Kindle revision process.

Just wondering, when editing an already produced epub (e.g., exported from Pages or the like), I tried inserting a page split marker, and I get the line

Code:
<hr class="sigil_split_marker" />
Yet no CSS definition for it. No external file was created, no inline CSS was added to the xhtml file I added the line to, and no CSS was added to my externally linked stylesheet for this document (which happens to be ../Styles/book.css). As a side note, using the Create HTML Table of Contents command worked beautifully and *did* create a ../Styles/sgc-toc.css file with the appropriate styles.

Thanks for any help you can provide!
rceee is offline   Reply With Quote
Old 03-10-2013, 05:34 PM   #2
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
It is an internal class for Sigil. You can use it to split a file into separate files, where the split is at the marker. So, there is no style definition for it.
Toxaris is offline   Reply With Quote
Old 03-10-2013, 05:51 PM   #3
rceee
Junior Member
rceee began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: Kindle
Question

Quote:
Originally Posted by Toxaris View Post
It is an internal class for Sigil. You can use it to split a file into separate files, where the split is at the marker. So, there is no style definition for it.
Thanks for the tip.

When I saved the epub with that <hr> tag, it didn't split that file. Is this part of a larger series of steps? I guess what I was really looking for, was the answer to the "single page break definition" I've heard an epub can have, that is separate from a chapter break/new file. That is, a Page Break, in word processor terminology. Does this do anything along that line or is it completely different?
rceee is offline   Reply With Quote
Old 03-10-2013, 06:09 PM   #4
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
Use edit, split at markers.

Page breaks can be inserted as css or style commands. You can check out http://www.w3schools.com/cssref/pr_print_pageba.asp, for one. They don't always work as expected (like what else is new?) And if the page is resized, you end up with a break where you may not want it.

If you gotta have page breaks and are into formatting, you are probably more into PDFs, where everything is fixed, rather than epubs where darn little is fixed, and is designed to reflow based on resizing the page when the user presses the S, M, L button.

From what I understand, not being a Kindle guy, not all of the epub stuff translates especially for the earlier Kindles.
mrmikel is offline   Reply With Quote
Old 03-10-2013, 06:24 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,468
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
The CSS page-break-(before|after) attributes will be honored when converting an ePub using Kindle(gen|Previewer).

HTML
Code:
<div class="page_break"></div>
CSS
Code:
.page_break {
  page-break-before: always;
}
Most epub readers should honor it (no guarantees), but some readers may not honor the margin-top property assigned to such a page-break element. The technique is often used to give footnotes their own "page" even though all the footnotes are part of one html file.
DiapDealer is offline   Reply With Quote
Old 03-10-2013, 06:43 PM   #6
sellew
Enthusiast
sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.
 
Posts: 30
Karma: 300
Join Date: Oct 2011
Location: Barcelona
Device: Sony PRS-650, PRS-T2
@rceee, if you just want to split one HTML file into several files (which may coincide with different chapters, or not, that's up to you), after inserting the split markers you must use Edit→Split At Markers.

You can find detailed instructions for this (and all the other Sigil features) in the User guide:
http://web.sigil.googlecode.com/git/...d_merging.html
sellew is offline   Reply With Quote
Old 03-10-2013, 08:25 PM   #7
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: 29,689
Karma: 54369090
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 rceee View Post
First of all, thanks for producing Sigil; top-notch, *outstanding* piece of software that has SAVED my Pages-to-(epub to)-Kindle revision process.

Just wondering, when editing an already produced epub (e.g., exported from Pages or the like), I tried inserting a page split marker, and I get the line

Code:
<hr class="sigil_split_marker" />
Yet no CSS definition for it. No external file was created, no inline CSS was added to the xhtml file I added the line to, and no CSS was added to my externally linked stylesheet for this document (which happens to be ../Styles/book.css). As a side note, using the Create HTML Table of Contents command worked beautifully and *did* create a ../Styles/sgc-toc.css file with the appropriate styles.

Thanks for any help you can provide!
It is used as a Marker for a future Split (which manually launched when you are ready: F6 is the keystroke).

The split marker is also handy when you want to ADD it to the file(s) via a Search and replace for later use.

Typical S&R usage:
Code:
<p class="foo">CHAPTER (\d+)</p>

<hr class="sigil_split_marker" /><h3 class="chapno">CHAPTER \1</h3>
theducks is offline   Reply With Quote
Reply

Tags
css, epub bookmarks, markers, sigil, split

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Can't look up definitions in certain documents octium Barnes & Noble NOOK 0 05-12-2012 02:03 AM
302 Dictionary - word definitions Metal Mick PocketBook 17 02-28-2011 06:21 PM
Duplicate definitions in dictionary negris123 Nook Color & Nook Tablet 1 12-04-2010 03:23 PM
Looking up word definitions Vitel Amazon Kindle 5 10-11-2010 04:17 PM
Dictionary for definitions Donald Simmonds Reading and Management 8 08-29-2004 06:47 AM


All times are GMT -4. The time now is 07:12 PM.


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