11-16-2011, 06:03 AM | #1 |
Member
Posts: 6
Karma: 10
Join Date: Nov 2011
Device: none
|
style sheets
I'm completely new to Sigil, so I read the manual. No where could I find any information for creating a style sheet. If I click or double click the styles folder on the book browser, nothing happens, not a bean. I was hoping that the main editing window would open, ideally with a set of headings for different elements of styles, eg paragraphs, emboldening, headings, captions etc so that I could easily select the options to create the look and feel of my book (ie without having to edit CSS tags). But even having an ability to edit the CSS tag file would be a useful first step (I'd have to learn how to use the tags though).
I thought that perhaps under the file menu there would be an import function for importing styles, but no indication even on how to get a style created somewhere else into Sigil. Can someone point me in the right direction? Thanks. |
11-16-2011, 06:50 AM | #2 |
Enthusiast
Posts: 48
Karma: 1916
Join Date: Sep 2010
Device: Cybook Opus
|
There's no specific CSS editor in Sigil, if not for the syntax highlighting.
You can import an external stylesheet file in the same way that you would import an external xhtml file: right click on the "Styles" section of the book browser (the pane on the left) and select "Add existing items...". |
Advert | |
|
11-16-2011, 08:00 AM | #3 |
Member
Posts: 6
Karma: 10
Join Date: Nov 2011
Device: none
|
Style sheets
Thanks.
Can you recommend a style sheet editor, preferably one that allows me to select style elements from drop down lists so that I don't have to learn a lot of tags? Are ePub styles the same as HTML CSS tags? Will Sigil display my writing using the style sheet, or does Sigil use the style sheet just to create the final ePub file? Thanks. |
11-16-2011, 08:28 AM | #4 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Short answer yes. Long answer, according to the spec EPUB 2 uses a CSS implementation based on CSS 2. Not all properties are supported and some EPUB specific ones have been added. You can see a list of required properties here. Required properties must be implemented by a conforming reading system. However, this is often ignored and reading systems implement pretty much what ever they feel like.
|
11-16-2011, 08:50 AM | #5 | |
Enthusiast
Posts: 48
Karma: 1916
Join Date: Sep 2010
Device: Cybook Opus
|
Quote:
Even with editors like the one you're describing (I know of bluefish and CSSed under linux), you still have to know what you're doing, at least approximately. |
|
Advert | |
|
11-16-2011, 12:21 PM | #6 |
Member
Posts: 6
Karma: 10
Join Date: Nov 2011
Device: none
|
Thanks. Okay I've started to create a style sheet. I've looked at the required properties, but the list does not tell me what the values mean. Where can I find a reference for epub style sheets that allows me to find all the tags that I need, and how to use them, ideally with examples, for the effects I'm looking for?
|
11-16-2011, 01:11 PM | #7 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I would recommend this for starters. You can also take a look at some books to see how the stylesheets look like. The epubs in this forum are usually of good quality.
|
11-16-2011, 01:16 PM | #8 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
IMHO the best way to decide, is to reverse engineer from EPUBS you like. I lean toward the older Baen (Webscription) model. Lean and mean. Set the <body>, Set the basic <p>, Maybe a tweak to the default <h#> (usually a chapter heading) style All the rest is custom per book (no bloated, kitchen sink stylesheet for me) |
|
11-16-2011, 01:47 PM | #9 |
Member
Posts: 6
Karma: 10
Join Date: Nov 2011
Device: none
|
How to learn ePubs (not web pages) CSS?
Thanks but I don't want to use CSS for webpages as it is different from CSS for ePub. I do want to control the appearance of the 'printed page'; my book is about design so I can hardly not design the look and feel of my own book!
Is there a reference for ePub style sheets, ideally with examples? |
11-16-2011, 02:07 PM | #10 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
as the ducks said - fastest way to learn is to reverse engineer from EPUBS ...
grab some free epubs, load them up in sigil, see how they work.... another way is to save some html articles, add them to calibre & have calibre convert to epub then inspect the stylesheet which calibre generates. if I get stuck, I google CSS + expression, or come here & ask ! |
11-16-2011, 02:37 PM | #11 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
11-16-2011, 03:05 PM | #12 |
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
This may or may not be of any help but this is the basic style sheet that I use. Many times it has everything I need, if not I add or modify.
I am attaching the text file of my basic css file. All I do is open up Sigil and right click on Styles in the Book Browser then select Add New Item. Click on Styles again and you will see the empty stylesheet (Style0001.css) that was just created. I then cut and paste my css file into Sigil. This will give you an idea of what a simple css stylesheet looks like and some of the forms it can take. There also a couple of free online tutorials that could be of help. As has been said, there are some pretty sharp guys on this forum. And many with a great deal of experience, patience and willingness to help. Being a newbie myself, with some of the shine worn off, I can attest to that fact. Regards - John Thought I'd add a test epub I use to "see what happens". Something to play with. Last edited by Jabby; 11-16-2011 at 03:27 PM. Reason: Adding a file to play with |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Style Sheets | crutledge | Sigil | 3 | 10-06-2010 08:48 AM |
Music sheets, chords etc? | Storklind | Which one should I buy? | 11 | 06-26-2010 05:23 AM |
Mobi TOC style vs ePub style? | phearlez | Kindle Formats | 3 | 04-11-2010 06:35 AM |
Reference Lie, Hakon & Bos, Bert: Cascading Style Sheets, level 1. IMP. v1.0 4 Sept 2007 | DaleDe | IMP Books (offline) | 0 | 09-04-2007 02:12 PM |