03-10-2013, 05:21 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: Kindle
|
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" /> Thanks for any help you can provide! |
03-10-2013, 05:34 PM | #2 |
Wizard
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.
|
03-10-2013, 05:51 PM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: Kindle
|
Quote:
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? |
|
03-10-2013, 06:09 PM | #4 |
Color me gone
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. |
03-10-2013, 06:24 PM | #5 |
Grand Sorcerer
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> Code:
.page_break { page-break-before: always; } |
03-10-2013, 06:43 PM | #6 |
Enthusiast
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 |
03-10-2013, 08:25 PM | #7 | |
Well trained by Cats
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:
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> |
|
Tags |
css, epub bookmarks, markers, sigil, split |
Thread Tools | Search this Thread |
|
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 |