![]() |
#16 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Then why, see your website (mijn standaard stylesheet), do you use the shorthand notation yourself?
|
![]() |
![]() |
![]() |
#17 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() 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 ; Code:
border:thin solid green |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
#19 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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...
|
![]() |
![]() |
![]() |
#20 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 ![]() |
|
![]() |
![]() |
![]() |
#22 |
Member
![]() 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?
|
![]() |
![]() |
![]() |
#23 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 |
|
![]() |
![]() |
![]() |
#24 | ||
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2014
Location: Nürnberg - Germany
Device: Kindle 4 - Gen. 5
|
![]() Quote:
Quote:
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. |
||
![]() |
![]() |
![]() |
#25 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
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?
|
![]() |
![]() |
![]() |
#26 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() There is no One style to rule them all , except an UGLY one ![]() (plain, basic, one level above plain text ) |
|
![]() |
![]() |
![]() |
#27 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#28 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
#29 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#30 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Thanks guys, very enlightening!
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |