Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2018, 10:23 AM   #1
Gergely
Member
Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'
 
Posts: 19
Karma: 42210
Join Date: May 2018
Device: Kobo Aura H2O
Saving a modified epub in Sigil correctly

Using Sigil 0.9.9 on my Windows box, I have edited some text in an epub. I have put span tags around some words and put CSS into its css file for grey background.

Sigil shows those words with grey background.

Now, when I save this file with Sigil and open it using Firefox's EPUB Reader, that part is not shown with grey background.

Did I miss anything to achieve the effect of saving my modifications?
Gergely is offline   Reply With Quote
Old 06-18-2018, 11:49 AM   #2
BobC
Guru
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: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
I don't think this is to do with Sigil not saving the changes you have made but whether the changes could achieve what you expect.

AIUI "background" is normally applied to block level elements such as p or h1 etc, not to spans which are inline.

Can you post an example of both the markup and the css.

BobC
BobC is offline   Reply With Quote
Old 06-18-2018, 01:23 PM   #3
Gergely
Member
Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'
 
Posts: 19
Karma: 42210
Join Date: May 2018
Device: Kobo Aura H2O
By clearly defining the purpose and goals of your business and how you want people to use your site, you will be more equipped to respond to design and development suggestions. <span class="highlight">Every issue that comes up</span> in the development process can then be evaluated against the primary goals of your marketing.

span.highlight { background: #ccc }

and in Sigil this does achieve the desired effect
Gergely is offline   Reply With Quote
Old 06-18-2018, 02:11 PM   #4
KevinH
Sigil Developer
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: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
It may be that the FireFox Epub reader does not support that mark-up. Or perhaps, there are errors (even minor ones) in your css file. Some readers/browser engines can completely ignore the css if parser errors exist.

To test the latter, try creating an inline style attribute on the span tag and remove the class. Does the Firefox reader now show the background or does it just ignore that mark-up?
KevinH is offline   Reply With Quote
Old 06-18-2018, 02:14 PM   #5
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
Perhaps FireFox gets a version from a cache of some kind?
Toxaris is offline   Reply With Quote
Old 06-18-2018, 02:15 PM   #6
KevinH
Sigil Developer
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: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
BTW: Loading this tiny test case in Safari and Firefox shows both browser engines support background color on a span.

Code:
<html>
<head>
<title>huh</title>
<style>span.highlight { background: #ccc };</style>
</head>
<body>
<p>By clearly defining the purpose and goals of your business and how you want people to use your site, you will be more equipped to respond to design and development suggestions. <span class="highlight">Every issue that comes up</span> in the development process can then be evaluated against the primary goals of your marketing.</p>
</body>
</html>
So I do not understand why a Firefox based Epub reader would not.
KevinH is offline   Reply With Quote
Old 06-18-2018, 05:42 PM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,059
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Does the Firefox ePub reader use a default CSS file? Like some devices, that would override the "publisher's layout" unless specifically selected.
Turtle91 is offline   Reply With Quote
Old 06-19-2018, 04:23 AM   #8
Gergely
Member
Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'
 
Posts: 19
Karma: 42210
Join Date: May 2018
Device: Kobo Aura H2O
Quote:
Originally Posted by Turtle91 View Post
Does the Firefox ePub reader use a default CSS file? Like some devices, that would override the "publisher's layout" unless specifically selected.
Today with a fresh mind I tried other ebook reader software.

Firefox EPUB Reader and SumatraPDF does not show my grey background, while Icecream ebook reader shows it.

For the time being this solution of using another ebook reader software suffices, but it would be interesting to know why Firefox EPUB Reader and SumatraPDF do not let through my custom CSS.
Gergely is offline   Reply With Quote
Old 06-19-2018, 07:04 AM   #9
elibrarian
Imperfect Perfectionist
elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.
 
elibrarian's Avatar
 
Posts: 447
Karma: 672038
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
Quote:
Originally Posted by Gergely View Post
Firefox EPUB Reader and SumatraPDF does not show my grey background, while Icecream ebook reader shows it.
I don't use the Firefox reader, but Sumatra in my experience doesn't honor any custom css, it only supplies its own formatting of a very small subset of standard HTML (headers, bold and italic, maybe some more).

FWIW,

regards,

Kim
elibrarian is offline   Reply With Quote
Reply

Tags
epub, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
opening and saving unzipped epub files in Sigil blackest Sigil 27 01-05-2018 04:00 PM
Sigil not saving media as part of EPUB JackTrade Sigil 26 07-03-2017 12:39 PM
Sigil is not saving Chiaro Sigil 15 02-09-2017 09:30 AM
Automatic date of modification after saving EPUB file in Sigil Chang Sigil 1 11-20-2015 05:00 AM
Sigil 0.7.4 will not install correctly on Mac Macsurfcat Sigil 2 01-08-2014 11:32 AM


All times are GMT -4. The time now is 12:05 AM.


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