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-30-2022, 11:51 AM   #31
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: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I guess my questions are: 1) if only the custom_preview_style.css is present, will the button then act as a binary toggle (between custom preview and nothing)? Or will their essentially be two "no custom css" states?

2) same for the opposite: if only the custom_preview_style_invert.css is present (I know there shouldn't be), will the button act as a binary toggle (between custom inverted preview and nothing)?

3) will the button do nothing when no custom css files are present, or will the button be disabled?

There are no wrong answers that will be deal-breakers for me, I'd just like to know. Optimally, I would think there shouldn't be two states that were essentially identical (when only one custom preview css file is present). I'd also prefer that a user wouldn't potentially be flogging away at a button that does nothing (if none of the custom files are present).
DiapDealer is offline   Reply With Quote
Old 06-30-2022, 12:06 PM   #32
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,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DiapDealer View Post
I'd also prefer that a user wouldn't potentially be flogging away at a button that does nothing (if none of the custom files are present).
Maybe would it be possible for Becky to gray-out (or disable) the button if none of the .css files are present so the feature only would be available in the proper cases.
RbnJrg is offline   Reply With Quote
Old 06-30-2022, 12:34 PM   #33
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: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by RbnJrg View Post
Maybe would it be possible for Becky to gray-out (or disable) the button if none of the .css files are present so the feature only would be available in the proper cases.
Sure. And it wouldn't be difficult at all. But that's why I'm asking the other questions, too. Because I could see it being useful to some people even without the inverted css file (or dark mode) in play. It could be handy for some just to be able to toggle between the epub default and the custom_preview_style.css file.

It wouldn't technically need to be disabled when one or the other custom css files weren't present. Especially if it wouldn't take a ton of work to have it toggle between one, or both, custom css files (and the epub's default). The button would only need to be disabled if neither custom css file were present.

Last edited by DiapDealer; 06-30-2022 at 12:38 PM.
DiapDealer is offline   Reply With Quote
Old 07-05-2022, 11:45 AM   #34
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Sigil master now has my first shot at adapting BeckEbook's approach to allow cycling through custom css stylesheets for Preview.

A few notes, the actual implementation had to be changed slightly:

1. Because file access and especially QFileInfo is painfully slow and because Preview needs to reload automatically many many times (so loading speed is very important), the building of the alternative custom urls is done in MainWindow once when Sigil is first opened.

So if you manually create a

"custom_preview_style.css"

or

"custom_preview_style_alt.css";

file after Sigil is open (ie behind Sigil's back so to speak) you will have to open a new MainWindow in order to activate the new css file in Preview.

2. Right now if there are no custom css style files, the icon is greyed out (that action is not enabled) but visually I can not see that in my testing so we probably need to handle that in a different way so when it is disabled it is more visually detectable.

3. The second css file name is based on _alt_ and not _invert_ as technically it can be used for other purposes.

So please everyone thank BeckyEbook for her ingenious approach for implementing this requested feature and her wonderful svg icons!

Feedback and ideas for improvements especially on when the button is disabled welcome. We may need to either remove the button completely or change its icon is a more visible way when no custom css stylesheets are available.
KevinH is offline   Reply With Quote
Old 07-05-2022, 12:33 PM   #35
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Grayed icons are OK. Look here.
BeckyEbook is offline   Reply With Quote
Old 07-05-2022, 12:38 PM   #36
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Nice Catch! Merged your PR to master.

Thank You!


Quote:
Originally Posted by BeckyEbook View Post
Grayed icons are OK. Look here.
KevinH is offline   Reply With Quote
Old 07-05-2022, 02:03 PM   #37
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,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
Sigil master now has my first shot at adapting BeckEbook's approach to allow cycling through custom css stylesheets for Preview.

A few notes, the actual implementation had to be changed slightly:

1. Because file access and especially QFileInfo is painfully slow and because Preview needs to reload automatically many many times (so loading speed is very important), the building of the alternative custom urls is done in MainWindow once when Sigil is first opened.

So if you manually create a

"custom_preview_style.css"

or

"custom_preview_style_alt.css";

file after Sigil is open (ie behind Sigil's back so to speak) you will have to open a new MainWindow in order to activate the new css file in Preview.

2. Right now if there are no custom css style files, the icon is greyed out (that action is not enabled) but visually I can not see that in my testing so we probably need to handle that in a different way so when it is disabled it is more visually detectable.

3. The second css file name is based on _alt_ and not _invert_ as technically it can be used for other purposes.
Many thanks Kevin. If you can post a link for a beta version, I could start updating the Sigil User Guide with these new pieces.

Quote:
So please everyone thank BeckyEbook for her ingenious approach for implementing this requested feature and her wonderful svg icons!
Indeed! Thank you very much Becky for your hard work in order this feature is available.

Quote:
Feedback and ideas for improvements especially on when the button is disabled welcome.
I don't know if this is asking too much. Would it be possible that when the new icon is pressed (like one must press the icon for "Run Automate List"), a contextual menu appears so the associated .css stylesheet is open to edit it? If it take too much work, forget this, since as Becky said me, if I have open the .css before starting Sigil, the changes I make will be reflected in Preview Panel.
RbnJrg is offline   Reply With Quote
Old 07-05-2022, 02:17 PM   #38
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
I will wait in case others have feedback and create a CI build. Do you want Windows or macOS?

As for sub menus and editors for each custom preview css stylesheet, that is way way too much work for a feature many people will probably never use.

Since the file names and locations are known and fixed, editing them can be done with any editor at the os level by almost any script.
KevinH is offline   Reply With Quote
Old 07-05-2022, 02:41 PM   #39
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,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
I will wait in case others have feedback and create a CI build. Do you want Windows or macOS?
I will build Sigil for my ArchLinux.

Quote:
As for sub menus and editors for each custom preview css stylesheet, that is way way too much work for a feature many people will probably never use.
Ok., no problem
RbnJrg is offline   Reply With Quote
Old 07-05-2022, 02:59 PM   #40
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
That will work. But please use a light theme for clarity when making replacement screenshots. The light theme seems to help the readability of screenshots when placed in the epub.

And please start with the version of the user guide from master here:

https://github.com/Sigil-Ebook/sigil-user-guide

Thanks,

KevinH


Quote:
Originally Posted by RbnJrg View Post
I will build Sigil for my ArchLinux.



Ok., no problem

Last edited by KevinH; 07-05-2022 at 03:31 PM.
KevinH is offline   Reply With Quote
Old 07-05-2022, 05:06 PM   #41
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,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
That will work. But please use a light theme for clarity when making replacement screenshots. The light theme seems to help the readability of screenshots when placed in the epub.
Ok.

Quote:
And please start with the version of the user guide from master here:

https://github.com/Sigil-Ebook/sigil-user-guide
Ok too.

Quote:
Thanks
No problem
RbnJrg is offline   Reply With Quote
Old 09-04-2022, 01:36 PM   #42
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
@RbnJrg

Since Sigil-1.9.20 has now been released with your cycle css requested feature, would you please update the relevant sections of the Sigil User's guide with info on this new feature and of course update any images with Preview in them to be consistent.

Thanks!
KevinH is offline   Reply With Quote
Old 09-04-2022, 03:57 PM   #43
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,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
@RbnJrg

Since Sigil-1.9.20 has now been released with your cycle css requested feature, would you please update the relevant sections of the Sigil User's guide with info on this new feature and of course update any images with Preview in them to be consistent.

Thanks!
Yes Kevin, of course, I'll do that!
RbnJrg is offline   Reply With Quote
Old 09-07-2022, 10:22 AM   #44
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,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Hi Kevin, what name do we give this new feature?
RbnJrg is offline   Reply With Quote
Old 09-07-2022, 11:21 AM   #45
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Perhaps "Cycle CSS "? But really any name you deem appropriate.

In the Preview chapter, please add info on the new icon and explain what its purpose is, how it can be useful, the file names required, etc.
Sample css code for each would help.

The biggest job will be re-generating all the screenshots that include Preview in them someplace. Please make sure to use an out of copyright epub (now public domain) so that images and text are not an issue. Please use a light theme and png file formats as they are generally quite readable. I typically generate all the screen shots with identical filenames as the original first, and then use Add Existing and tell it to overwrite their namesakes. That way no need to play around with links.

Thanks for all your help with this!

Kevin



Quote:
Originally Posted by RbnJrg View Post
Hi Kevin, what name do we give this new feature?
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature requested for Sigil 1.7 RbnJrg Sigil 23 08-06-2021 08:44 AM
Need Feedback on UserDictionaries feature of Sigil KevinH Sigil 11 08-29-2020 02:19 PM
A few Sigil Feature Requests crankypants Sigil 6 11-03-2015 09:56 AM
Parity feature with Sigil roger64 Editor 8 03-17-2014 11:28 AM
Is auto-relinking a Sigil feature? dlw Sigil 2 06-27-2011 12:43 AM


All times are GMT -4. The time now is 09:13 PM.


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