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-31-2014, 05:30 PM   #16
SeaCanary
Enthusiast
SeaCanary began at the beginning.
 
SeaCanary's Avatar
 
Posts: 34
Karma: 10
Join Date: Jan 2014
Device: Nook
Quote:
Originally Posted by Jellby View Post
You may have set a default bottom/top margin for <p> elsewhere ...
Not possible. See #15, above.
Quote:
Originally Posted by Jellby View Post
... or the renderer you are using may have such a hidden deffinition.
Perhaps Sigil does. What are you using?
SeaCanary is offline   Reply With Quote
Old 01-31-2014, 05:39 PM   #17
theducks
Grand Sorcerer
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: 14,283
Karma: 5495472
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by SeaCanary View Post
Not possible. See #15, above.
Perhaps Sigil does. What are you using?
Devices have overrides
Sigil just uses the valid CSS (with the few known QT won't work exceptions)
Ignoring a CSS usually indicates a Link problem. Remember: everything is cAsE sensitive
theducks is offline   Reply With Quote
Old 01-31-2014, 07:48 PM   #18
SeaCanary
Enthusiast
SeaCanary began at the beginning.
 
SeaCanary's Avatar
 
Posts: 34
Karma: 10
Join Date: Jan 2014
Device: Nook
Thumbs up BINGO!!!

Quote:
Originally Posted by theducks View Post
Devices have overrides
Sigil just uses the valid CSS (with the few known QT won't work exceptions)
Ignoring a CSS usually indicates a Link problem. Remember: everything is cAsE sensitive
I hadn't properly linked my test XHTML to my CSS file. I fixed that and now it works!!

Thank you, everyone!
SeaCanary is offline   Reply With Quote
Old 02-01-2014, 10:10 AM   #19
SeaCanary
Enthusiast
SeaCanary began at the beginning.
 
SeaCanary's Avatar
 
Posts: 34
Karma: 10
Join Date: Jan 2014
Device: Nook
Quote:
Originally Posted by theducks View Post
Devices have overrides ... (with the few known QT won't work exceptions)...
Is there an editor like Sigil that tests for different devices?

QT?

Last edited by SeaCanary; 02-01-2014 at 10:13 AM.
SeaCanary is offline   Reply With Quote
Old 02-01-2014, 10:26 AM   #20
theducks
Grand Sorcerer
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: 14,283
Karma: 5495472
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by SeaCanary View Post
Is there an editor like Sigil that tests for different devices?

QT?
QT is a commonly used, open source building block (GUI library)


Editors, EDIT
Nothing tests/shows the exact behavior except the targeted DEVICE.
Go read some of the horror stories down in the EPUB forum
theducks is offline   Reply With Quote
Old 02-09-2014, 05:35 AM   #21
SeaCanary
Enthusiast
SeaCanary began at the beginning.
 
SeaCanary's Avatar
 
Posts: 34
Karma: 10
Join Date: Jan 2014
Device: Nook
For the record, when I did this ...
Code:
.verse {
    margin-bottom: 0.5em;
    }
.verse p {
    margin: 0;
    margin-left: 1em;
    text-indent:-1em;
    }
.chorus p {
    margin-left: 2em;
    }
... and put it on my Nook every line had a blank line after it.

I changed it to the following and the problem went away.
Code:
.verse {
    margin-bottom: 0.5em;
    }
.verse p {
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 0;
    margin-left: 1em;
    text-indent: -1em;
    }
.chorus p {
    margin-left: 2em;
    }
SeaCanary is offline   Reply With Quote
Old 02-09-2014, 10:42 PM   #22
GrannyGrump
Persnickity Nitpicker
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 554
Karma: 2587520
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
You found the Nook bug -- it doesn't like margin settings in the "short form". (discussed on this thread: http://www.mobileread.com/forums/sho...d.php?t=223586.)

I'm trying to remind myself to always use the long form, explicitly defining margin-top, margin-left, etc.
GrannyGrump is offline   Reply With Quote
Old 02-10-2014, 01:31 AM   #23
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,615
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Sony T2, Kindle Fire HDX 8.9 , Kindle for PC
so if I buy a nook, I could have to re-code dozens of books, where I've tweaked & used margin: ?
that's a MAJOR flaw
do all the nook range behave like that ?
cybmole is offline   Reply With Quote
Old 02-10-2014, 02:59 AM   #24
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,001
Karma: 4346921
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
that's a MAJOR flaw
Unfortunately, it seems to me all ebook readers have some major flaw or other
Jellby is offline   Reply With Quote
Old 02-10-2014, 03:48 AM   #25
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,615
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Sony T2, Kindle Fire HDX 8.9 , Kindle for PC
but that particular flaw looks very hard to fix via regex.

maybe appending a p {margin-bottom: value to the css, via the modify epub calibre plug in is sufficient to override what is in all single margin: lines ?
cybmole is offline   Reply With Quote
Old 02-10-2014, 09:48 AM   #26
BobC
Addict
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 329
Karma: 245756
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, Various Android Apps
Would changing

Code:
margin: 0;
to
Code:
 margin: 0 0 0 0;
not do the job ?

BobC
BobC is offline   Reply With Quote
Old 02-10-2014, 10:23 AM   #27
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,001
Karma: 4346921
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Would returning the Nook as a broken reader help?

Seriously, without some loud complaining from the users, they'll never improve the readers (and probably not with complaining either).
Jellby is offline   Reply With Quote
Old 02-10-2014, 10:37 AM   #28
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,615
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Sony T2, Kindle Fire HDX 8.9 , Kindle for PC
Quote:
Originally Posted by BobC View Post
Would changing

Code:
margin: 0;
to
Code:
 margin: 0 0 0 0;
not do the job ?

BobC
only someone with an actual nook could answer that, & I don't plan to buy one just to find out.

anyway, if books have short margin CSS, you'd have to find all the shorthand instances, not just zero.
e.g. I've used margin:1em; for a centered header
cybmole is offline   Reply With Quote
Old 02-10-2014, 11:22 AM   #29
theducks
Grand Sorcerer
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: 14,283
Karma: 5495472
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I consider both of those to be a 'short form'
I think REGEX done with 4 passes should catch all (not tested)
margin\: 1em 2em 3em 4em;

F: margin:\b(.+?)\b(.+?)\b(.+?)\b(.+?)\;*
R: margin-top:\1; margin-right:\2; margin-bottom: \3; margin-left:\4;

Note: the 'short form' is not limited to margin

I like Jellby's idea. Send it back as a 'defective EPUB reader'
theducks is offline   Reply With Quote
Old 02-22-2014, 08:41 PM   #30
SeaCanary
Enthusiast
SeaCanary began at the beginning.
 
SeaCanary's Avatar
 
Posts: 34
Karma: 10
Join Date: Jan 2014
Device: Nook
Quote:
Originally Posted by BobC View Post
Would changing

Code:
margin: 0;
to
Code:
 margin: 0 0 0 0;
not do the job ?

BobC
I suspect it would depend on what other code is in the CSS. Give me some more of your code and maybe I can test it on my Nook.
SeaCanary is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank Lines In Code SeaCanary Sigil 3 01-22-2014 08:51 PM
Streamlining Blank Lines in InDesign Pumpkin Soup ePub 14 09-01-2012 08:14 AM
Blank Lines jreidu Workshop 2 07-20-2011 05:11 AM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 12:19 AM
Blank Lines vivaldirules Upload Help 55 03-02-2009 03:17 PM


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


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