Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2014, 06:53 AM   #16
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
Quote:
Originally Posted by Toxaris View Post
At least some models of the Nook have issues with the shorthand notation. So, it is better to write them out. Ignoring can be one thing, misinterpreting another. Not that bad when the value is 0, but still.
Then why, see your website (mijn standaard stylesheet), do you use the shorthand notation yourself?
JLius is offline   Reply With Quote
Old 06-18-2014, 09:29 AM   #17
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: 30,909
Karma: 60358908
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 JLius View Post
Then why, see your website (mijn standaard stylesheet), do you use the shorthand notation yourself?
It is a Nook issue, not an ADE issue.
I don't see Nook on either of your lists of personal devices. So if the edits are for personal use...

I tend use the simple short forms, but not the full versions.
eg.
Code:
border-width: thin;
border-style:solid;
border-color:  green green green green ;
and not the full short form:
Code:
border:thin solid green
(in the cases like border, there can be other reasons that the short form can not be used)
theducks is offline   Reply With Quote
Advert
Old 06-18-2014, 09:44 AM   #18
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
Quote:
Originally Posted by JLius View Post
Then why, see your website (mijn standaard stylesheet), do you use the shorthand notation yourself?
Because I don't use a Nook?
Toxaris is offline   Reply With Quote
Old 06-18-2014, 10:39 AM   #19
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
Sure, I get that, but maybe one day you'll decide to buy a nook and then you'll have to change everything? I don't have a nook, but still I'd like my code to work for every device since I might buy one some day, or maybe my wife buys one, or my son, or...
JLius is offline   Reply With Quote
Old 06-18-2014, 10:46 AM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,149
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Actually, try this...

Take your Word document, save it as a docx format file, run it through Calibre after turning off margin shorthand.

Margin shorthand turning off...
1. Preferences
2. Common options
3. Look and feel
4. Check Expand CSS
5. Apply
6. Close
7. Restart Calibre
JSWolf is online now   Reply With Quote
Advert
Old 06-18-2014, 12:38 PM   #21
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: 30,909
Karma: 60358908
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 JLius View Post
Sure, I get that, but maybe one day you'll decide to buy a nook and then you'll have to change everything? I don't have a nook, but still I'd like my code to work for every device since I might buy one some day, or maybe my wife buys one, or my son, or...
That is WHY you want to use a stylesheet;

one place to make (workaround) changes.
one place to /* disable */ misbehaving styles. This does assume the device will not barf on a missing style definition
theducks is offline   Reply With Quote
Old 06-18-2014, 02:50 PM   #22
jimb949
Member
jimb949 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2014
Device: none
My paragrafts start with <p class="MsoNormal"> and end with </p>. So should I put those margin codes in my MsoNormal stylesheet or should I make a p stylesheet and put them in there instead?
jimb949 is offline   Reply With Quote
Old 06-18-2014, 03:18 PM   #23
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: 30,909
Karma: 60358908
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 jimb949 View Post
My paragrafts start with <p class="MsoNormal"> and end with </p>. So should I put those margin codes in my MsoNormal stylesheet or should I make a p stylesheet and put them in there instead?
in msonormal


The class= will override the p attributes

p {color: red;}
p.msoNormal: color:black;}

<p>This will be Red
<p class="msoNormal">This will be black
theducks is offline   Reply With Quote
Old 06-21-2014, 07:33 AM   #24
Nebucad
Member
Nebucad began at the beginning.
 
Nebucad's Avatar
 
Posts: 14
Karma: 10
Join Date: Jun 2014
Location: Nürnberg - Germany
Device: Kindle 4 - Gen. 5
Arrow you have to use RegEX

Quote:
Originally Posted by jimb949 View Post
When I check my book on nook there is a blank space between each and every one of my paragraphs and it looks bad.
Hi, i assume it is not a StyleSheet problem because you write
Quote:
Originally Posted by jimb949 View Post
I can delete them one by one but that would take me forever because I have 28 chapters.
So i doubt it a stylesheet setting could help you with your problem at all.

It sounds for me you have problem which could nicely solved by RegEX.

First open your SiGIL-Editor and find the "blank" paragraphs you have to see how they`re entered in the .html File <p> isn't the same like <p class="idk" id="whoknows">!

2nd step
open find-and-replace (usually strg+f) you've to enter 2 thing
Search-Line: <p>\s*</p>
replace-Line: <empty no letter no char, nothing>

IMPORTANT
check the setting, just run it manually and run it once to see what happend
(this setting will erease all TAG (p-TAG) with whitespace between the TAG, this also erease p-TAG's who goes over several lines and have more than 1 whitespace, this order doesn't ereas p-TAG with whitespace and letters between the opening and ending-TAG)

Make sure the annoying paragraph match the <p> paragraph in the Search-line. i.e <p class="idk">\s*</p>

whitespace outside a TAG will be ignored anyway.
Nebucad is offline   Reply With Quote
Old 06-21-2014, 11:51 AM   #25
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
Quote:
Originally Posted by theducks View Post
That is WHY you want to use a stylesheet;

one place to make (workaround) changes.
one place to /* disable */ misbehaving styles. This does assume the device will not barf on a missing style definition
Of course, by changing everything I mean changing your style sheets. But my argument still stands, no? why not make your style sheet acceptable for all devices, as much as you can?
JLius is offline   Reply With Quote
Old 06-21-2014, 12:59 PM   #26
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: 30,909
Karma: 60358908
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 JLius View Post
Of course, by changing everything I mean changing your style sheets. But my argument still stands, no? why not make your style sheet acceptable for all devices, as much as you can?
Because you have the Apples's and the Nook's and the 40 bazillion models that all do EPUB different

There is no One style to rule them all , except an UGLY one
(plain, basic, one level above plain text )
theducks is offline   Reply With Quote
Old 06-21-2014, 05:18 PM   #27
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by theducks View Post
Because you have the Apples's and the Nook's and the 40 bazillion models that all do EPUB different

There is no One style to rule them all , except an UGLY one
(plain, basic, one level above plain text )
+1 and then some.

Hitch
Hitch is offline   Reply With Quote
Old 06-21-2014, 11:49 PM   #28
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,149
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
Because you have the Apples's and the Nook's and the 40 bazillion models that all do EPUB different

There is no One style to rule them all , except an UGLY one
(plain, basic, one level above plain text )
Let's just ignore iBooks for now.

You can make a CSS that works for most ePub readers and if it doesn't, the software is broken. You just have to take into account no shorthands like margins. Don't try to get fancy. Use an embedded font with a true embedded smallcap font if you use smallcaps. Just do it right and it works.
JSWolf is online now   Reply With Quote
Old 06-22-2014, 03:57 AM   #29
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: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
You can make a CSS that works for most ePub readers and if it doesn't, the software is broken.
I agree with that, but then the remarks below are extra. It's perfectly fine (spec-wise) to use shorthand margins and font-variant:small-caps, if they don't work it's the software's fault

Quote:
You just have to take into account no shorthands like margins. Don't try to get fancy. Use an embedded font with a true embedded smallcap font if you use smallcaps.
Jellby is offline   Reply With Quote
Old 06-22-2014, 05:27 AM   #30
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
Thanks guys, very enlightening!
JLius is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
alternative character for white space Jpax ePub 2 02-28-2014 03:28 AM
White space inserted between paragraphs TheBean Sigil 8 07-04-2013 08:04 AM
Sigil Adding White Space? beingnickb Sigil 20 07-31-2012 07:43 AM
Tabs or White Space? anamardoll General Discussions 57 06-13-2011 02:32 PM


All times are GMT -4. The time now is 04:19 PM.


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