Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2022, 11:10 AM   #1
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
An issue with css stylesheets

When in a css stylesheet I execute the commands "Reformat CSS/Multiple Lines Per Style" in those styles where I have declared the property "!important", Sigil adds a blank space that, in some readers, it makes that the property "!important" does not work.

An example:

Before "Reformat CSS/Multiple Lines Per Style":

Code:
.topM {
   margin-top: 1em !important;
}
After "Reformat CSS/Multiple Lines Per Style":

Code:
.topM {
   margin-top: 1em  !important;
}
And that extra space is causing issues in some readers. Please Kevin and Diap, fix that in the next version of Sigil.
RbnJrg is offline   Reply With Quote
Old 09-29-2022, 11:15 AM   #2
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: 8,439
Karma: 5702578
Join Date: Nov 2009
Device: many
I will look into this. Which readers? Multiple whitespaces are allowed there according to the spec.
KevinH is offline   Reply With Quote
Advert
Old 09-29-2022, 11:19 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Fix the readers ignoring spec.

I kid.

Sort of.
DiapDealer is offline   Reply With Quote
Old 09-29-2022, 11:57 AM   #4
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
I will look into this. Which readers? Multiple whitespaces are allowed there according to the spec.
Yes, of course. But I have issues with Foliate, the web extension EpubReader and OverDrive (so far )
RbnJrg is offline   Reply With Quote
Old 09-29-2022, 12:40 PM   #5
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: 8,439
Karma: 5702578
Join Date: Nov 2009
Device: many
This should now be "fixed" in Sigil master but you might also want to file a bug report with Foliate about ignoring multiple spaces before !important in css.

It may be sometime until the next release, so feel free to build Sigil from current master (since that is the only change since the last release).

Last edited by KevinH; 09-29-2022 at 01:32 PM.
KevinH is offline   Reply With Quote
Advert
Old 09-29-2022, 02:05 PM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by RbnJrg View Post
Yes, of course. But I have issues with Foliate, the web extension EpubReader and OverDrive (so far )
EPUBReader? As in the ancient, unmaintained browser addon?

Upgrade to Thorium. At least it stays constantly up-to-date and actually follows the latest EPUB specs (it's maintained by Readium).

https://www.edrlab.org/software/thorium-reader/
https://github.com/edrlab/thorium-reader

Quote:
Originally Posted by KevinH View Post
This should now be "fixed" in Sigil master but you might also want to file a bug report with Foliate about ignoring multiple spaces before !important in css.
Tex2002ans is offline   Reply With Quote
Old 09-30-2022, 04:58 AM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Hi Tex;

Yes, that old browser extensión. I try my epubs (epub3) look consistently under:

Sigil (and its plugins Readium, Bibi anda EpubJS)
Calibre
ADE 4.x (Windows)
Thorium (Windows)
IceCream (Windows)
EpubReader (browser extension for Chrome and Firefox)
Foliate (Linux)
Gnome books (Linux)
PocketBook (Android)
Gitden Reader (Android)
Reasily (Android)
Aldiko Next (Android)
Lithium (Android)
OverDrive (Android)

And believe me, it is a challenge to write code in order that the epubs look almost equal (with complex layouts) in all those programs.

Last edited by RbnJrg; 09-30-2022 at 08:05 AM.
RbnJrg is offline   Reply With Quote
Old 09-30-2022, 05:01 AM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
This should now be "fixed" in Sigil master but you might also want to file a bug report with Foliate about ignoring multiple spaces before !important in css.

It may be sometime until the next release, so feel free to build Sigil from current master (since that is the only change since the last release).
Many thanks Kevin!!
RbnJrg is offline   Reply With Quote
Old 09-30-2022, 05:00 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,518
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
My primitive workaround was to run a search for 'ƀƀ!' and replace with 'ƀ!' on the CSS files until it returns no matches. Replace the ƀ with a space.
DNSB is offline   Reply With Quote
Old 09-30-2022, 05:42 PM   #10
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: 78,948
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I see in that list some garbage. Dump the garbage and things may work better.

Also test with ADE 2.0.1 as a lot of people still use it or some old version of ADE.
JSWolf is offline   Reply With Quote
Old 09-30-2022, 05:46 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
I see in that list some garbage. Dump the garbage and things may work better.

Also test with ADE 2.0.1 as a lot of people still use it or some old version of ADE.
Stop it, Jon. Worry about you're own process.
DiapDealer is offline   Reply With Quote
Old 09-30-2022, 05:49 PM   #12
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: 78,948
Karma: 144284074
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 DiapDealer View Post
Stop it, Jon. Worry about you're own process.
You can't complain about a problem with the CSS if a program you are using to test does not respect the CSS. A lot of ePub readers don't respect the CSS and that means you really cannot say the CSS has a problem when something does not work.
JSWolf is offline   Reply With Quote
Old 09-30-2022, 06:00 PM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
OK, then...

Moderator Notice
DROP IT JON
DiapDealer is offline   Reply With Quote
Old 10-01-2022, 08:04 AM   #14
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DNSB View Post
My primitive workaround was to run a search for 'ƀƀ!' and replace with 'ƀ!' on the CSS files until it returns no matches. Replace the ƀ with a space.
Yes, that was what I did. Fortunatelly now Kevin removed that extra space.
RbnJrg is offline   Reply With Quote
Old 10-01-2022, 08:39 AM   #15
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
I see in that list some garbage. Dump the garbage and things may work better.

Also test with ADE 2.0.1 as a lot of people still use it or some old version of ADE.
I see you didn't read CAREFULLY what I wrote... I said:

Quote:
I try my epubs (epub3)...
That list of programs and apps is for testing EPUB3, not epub2. And ADE 2.x only supports epub2. To test epub2, to that list, I add more programs and also reader devices.

And I don't agree with you, none of the programs included in the list is garbage; in fact, they are the programs and apps that better support the epub3 protocol (of course, some do it better than others). For example, with all of them I can get an almost perfect control (99%) of the fragmentation (that is, avoiding breaks into different boxes, avoiding a page break immediately after a heading, or avoiding blank spaces generated by images, tables, side notes, etc., and that even so, those images, tables continuate joined, not broken), so that hardly can be called garbage the programs that can offer such control.

And I will be very grateful if anyone knows of any other program or app (Windows, Linux, or Android) that decently supports the EPUB3 PROTOCOL and is not included in my list.
RbnJrg is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom CSS Stylesheets for Calibre's Viewer Ralob Viewer 389 11-24-2024 11:10 AM
[1.9.20] css template issue byword Sigil 16 09-06-2022 01:52 PM
How to View CSS Stylesheets of Kindle Books cssQuest Editor 17 09-20-2015 04:37 AM
Which one to apply: HTML tagging or CSS stylesheets? neyet ePub 12 01-03-2015 06:25 PM
eReader apps that do use embedded CSS 'stylesheets' jttraverse Android Devices 7 05-20-2011 12:28 AM


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


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