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 01-20-2010, 06:07 PM   #1
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
CSS Styling not showing up in digital editions

I have a few files that have been exported to epub using Indesign CS4. I finally got the font embedding working (hurray!). I then opened the file in digital editions and could see the formatting and embedded fonts. However, once I saved the file using Sigil (even if I did no editing on it at all, just opened and saved it), much of the formatting was lost, including the embedded fonts.

However, when I view the file in Firefox using either Bookworm or the Firefox epubreader extension, I can see my imported formatting and fonts. Has this happened to anyone else?
sjkramer is offline   Reply With Quote
Old 01-20-2010, 07:07 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by sjkramer View Post
I have a few files that have been exported to epub using Indesign CS4. I finally got the font embedding working (hurray!). I then opened the file in digital editions and could see the formatting and embedded fonts. However, once I saved the file using Sigil (even if I did no editing on it at all, just opened and saved it), much of the formatting was lost, including the embedded fonts.
If the XHTML flows in the epub have any flow-specific CSS (that is, included in a <style> element at the top), then those rules are currently discarded. Just move the CSS into a separate file.

This will be fixed in 0.2.0., and is one of the major reasons for the redesign.

Quote:
Originally Posted by sjkramer View Post
However, when I view the file in Firefox using either Bookworm or the Firefox epubreader extension, I can see my imported formatting and fonts. Has this happened to anyone else?
The original file or the one saved from Sigil?
Valloric is offline   Reply With Quote
Old 01-20-2010, 07:56 PM   #3
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
Quote:
Originally Posted by Valloric View Post
If the XHTML flows in the epub have any flow-specific CSS (that is, included in a <style> element at the top), then those rules are currently discarded. Just move the CSS into a separate file.
Sorry to sound like a dolt, I've looked around, and I can't figure out exactly how to do this.



Quote:
Originally Posted by Valloric View Post
The original file or the one saved from Sigil?
The ones saved from Sigil work swimmingly in these other readers.
sjkramer is offline   Reply With Quote
Old 01-20-2010, 08:11 PM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by sjkramer View Post
Sorry to sound like a dolt, I've looked around, and I can't figure out exactly how to do this.
Never mind that now, if the book works in the other Reading Systems it's not the flow-specific CSS issue since that would affect everything.

Quote:
Originally Posted by sjkramer View Post
The ones saved from Sigil work swimmingly in these other readers.
Create an issue on the tracker and attach both the original epub and the one Sigil created after saving.
Valloric is offline   Reply With Quote
Old 01-21-2010, 06:11 PM   #5
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
I've submitted the issue. Though now I think the problem is primarily embedded-font related. And since then I've read up on some of the issues having to do with embedded fonts. This may simply be part of that larger problem.

Otherwise, this issue made me realize just how persnickety ADE is about CSS errors. A single extra bracket seems to be able to cause ADE to ignore all CSS in a document, which is what I was experiencing. And since I'm doing a fair amount of CSS style-writing by hand, it seems likely that it wasn't perfectly clean to begin with.
sjkramer is offline   Reply With Quote
Old 01-22-2010, 11:22 AM   #6
KevinH
Wizard
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: 1,019
Karma: 444444
Join Date: Nov 2009
Device: many
ADE css parsing aborts at first hint of trouble

Quote:
Originally Posted by sjkramer View Post
Otherwise, this issue made me realize just how persnickety ADE is about CSS errors. A single extra bracket seems to be able to cause ADE to ignore all CSS in a document, which is what I was experiencing. And since I'm doing a fair amount of CSS style-writing by hand, it seems likely that it wasn't perfectly clean to begin with.
Hi,

I just wanted to confirm what you are said above. I have tested my Sony PRS-600 (ADE) and found that the ADE software is in no way robust to even the smallest error in css.

As you said, even an extra { or typo will cause the whole thing to abort and it basically then ignores the css.

Does anyone know of a standalone css validator that can detect errors / typos in a css file?

Thanks,

KevinH
KevinH is offline   Reply With Quote
Old 01-22-2010, 12:21 PM   #7
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by KevinH View Post
Does anyone know of a standalone css validator that can detect errors / typos in a css file?
How about this?
Valloric is offline   Reply With Quote
Old 01-22-2010, 01:30 PM   #8
KevinH
Wizard
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: 1,019
Karma: 444444
Join Date: Nov 2009
Device: many
css validator

Hi Valloric,


Thanks! That is the ticket. I nosed around that site and found a standalone jar archive (css-validator.jar) so that I can do these things locally (when I do not have access to the web).

Wonderful. Thank you.

KevinH
KevinH is offline   Reply With Quote
Old 01-27-2010, 02:04 AM   #9
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 254
Karma: 686
Join Date: Oct 2007
Device: SONY PRS 350!
Unfortunately(?), ADE is as close to a "standard" target as can be hoped for. Most of the viewers have issues, so one-size-fits-all output doesn't quite universally work yet.

Personally, I've pretty much abandoned Indesign for building epubs. The one thing (ok, maybe 2) that it can do "easily-er" than other workflows are a) embed fonts via a check box, and b) allow one to work in Word first.

But: you'd still have to have all your styles declared in Word first. And, you'd have to re-impose word quickstyles on a per-file basis (which, when you change your mind about something, is so close to starting over that you just might as well). Indesign typography tricks don't transfer, and opening the epub in other softwares tends to break the epub (because of the font encryption), and re-hacking the output file afterwards almost always breaks something in ways that I don't enjoy.

I'm finding a more satisfactory workflow to be like:
Word->Dreamweaver->Calibre->Epub/Mobi/Lit/Whatever.

I know, I know, it looks like more steps (as opposed to Word->Indesign->epub? yes, it is). And for sure, it doesn't give you the one-stop-shop approach of Indesign. If you're having to re-hack the file after indesign, you're already working harder than you need to.

css tidy, is useful for fixing up css, if you need it. But even that won't help you change post-indesign css very well.

-bjc
brewt is offline   Reply With Quote
Old 01-30-2010, 11:46 AM   #10
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
thanks brewt. I guess it's just personal preference, I'm most comfortable using InDesign. And, as you point out, I'd have to spend a lot of time using styles in Word, where the Style features aren't as robust (or familiar to me). I'm really finding InDesign quite handy for setting up epubs. I like that I don't have to mess around with manifests, etc.
sjkramer is offline   Reply With Quote
Reply

Tags
css, epub, fonts, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS not accepted by Adobe Digital Reader Lily123 ePub 7 08-13-2010 02:31 PM
Styling Elements in CSS - ADE and Sony toskpro Sony Reader 0 07-19-2010 02:55 PM
New verions of Adobe Digital Editions - Digital Editions 1.7.2 kennyc ePub 0 02-12-2010 07:21 AM
Waterstones showing some UK digital content markiehill Sony Reader 23 09-04-2008 01:25 PM
Top Publishers and Sony Support New Digital Publishing Experience (Digital Editions) NatCh Sony Reader 50 06-22-2007 09:02 PM


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


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