08-10-2024, 01:38 AM | #16 | |
Zealot
Posts: 114
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
|
Quote:
Not only for my information, but for everyone's information, there are many ways to do something, if you also know about it. I have four sigil_v6.ini files in different places on my computer's disk. To which of them should I add this secret parameter? Or is it the file that I will see after clicking the "Settings Catalog" button on the "Settings" panel. And in general, where can I see a list of parameters + a description of their action that Sigil uses in its different settings files and which are not available through the "Settings" panel? |
|
08-10-2024, 02:46 AM | #17 | |
just an egg
Posts: 1,668
Karma: 5432100
Join Date: Mar 2015
Device: Kindle, iOS
|
Okay! I am hoping to get to this sometime next week ...
Quote:
|
|
Advert | |
|
08-10-2024, 09:36 AM | #18 | |
Sigil Developer
Posts: 8,115
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
As far as I know, that is the only setting that has no ui for it. I found it yesterday while looking at the FindReplace.cpp source code. I had forgotten it even existed. Other things are typically set with environment variables. These are now described in the new advanced_topics.zip chapter I just posted. |
|
08-10-2024, 11:27 AM | #19 |
Grand Sorcerer
Posts: 27,991
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I believe we were once experimenting with a user setting to turn off the F&R icons. Reading an ini pref from the SettingsStore is a much quicker/easier test than coding environment variable logic (not to mention coding UI integration). So it can probably more accurately be described as an abandoned/incomplete/vestigial/forgotten experiment, rather than a secret parameter. There are no secrets in open source code, after all.
I believe it was determined that the qss option was sufficient for the 8 people in the world who refused to accept/embrace the new F&R icons at the time. No full ui-configurable parameter required. By the way... is "Settings Catalog" really one of the translations of "Open Preferences Location"? Last edited by DiapDealer; 08-10-2024 at 11:32 AM. |
08-10-2024, 01:52 PM | #20 |
Zealot
Posts: 114
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
|
>You should only have one file exactly named "sigil_v6.ini" in your Sigil Preferences Location folder. Why do you have 4? Do you have 4 different installations of Sigil under different user names?
One computer, one user, one Sigil installation. I install new versions of the program over previous ones to save all settings. |
Advert | |
|
08-10-2024, 02:05 PM | #21 |
Sigil Developer
Posts: 8,115
Karma: 5450818
Join Date: Nov 2009
Device: many
|
So somehow your Sigil Preferences Location folder is in 4 different places or you have symlinks from 4 different folders pointing to it. Since they are all the exact same size with the exact same modification date, my guess is symlinks are involved somehow.
I do not know Windows well enough to distinguish paths using symlinks versus the true absolute path. Perhaps someone with knowledge of Windows could comment? |
08-10-2024, 04:09 PM | #22 | |
Grand Sorcerer
Posts: 12,662
Karma: 74532212
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I believe there is only a single INI file. From https://answers.microsoft.com/en-us/...2633b8b?page=2 it would appear that there are
Quote:
|
|
08-10-2024, 09:39 PM | #23 | |
null operator (he/him)
Posts: 20,962
Karma: 27620690
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I don't appear to have anything regarding F&R buttons in qt.qss, all I have is this: Code:
:focus {border: 1px solid yellow;} QMenu {border: 1px solid yellow;} QComboBox#cbSearchMode QAbstractItemView, QComboBox#cbLookWhere QAbstractItemView, QComboBox#cbSearchDirection QAbstractItemView {border: 1px solid yellow;} Code:
. . .
[find_replace]
visible=true
advanced_visible=true
regexoptiontextonly=true
frbuttonstextonly=true
regexoptionunicodeproperty=false
search_mode=0
look_where=0
search_direction=0
. . .
BR |
|
08-11-2024, 04:20 AM | #24 |
Guru
Posts: 772
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
Both solutions (by ini or by qss) are practically the same, although I must admit that the method by qss is more flexible (you can control each button separately).
Link: https://www.mobileread.com/forums/sh...5&postcount=14 |
08-11-2024, 06:33 AM | #25 | |
Grand Sorcerer
Posts: 27,991
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
08-11-2024, 11:12 AM | #26 |
Sigil Developer
Posts: 8,115
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Perhaps adding some of BeckyEbook's qss tweaks to the Advanced Topics might be useful:
Here is a short list I culled from some recent posting: Code:
Show Find Replace Buttons as Text Only QFrame QToolButton#findNext, QFrame QToolButton#replaceCurrent, QFrame QToolButton#replaceFind, QFrame QToolButton#restart, QFrame QToolButton#replaceAll, QFrame QToolButton#count { qproperty-toolButtonStyle: ToolButtonTextOnly;} Show Find Replace Buttons as icons and text QFrame QToolButton#findNext, QFrame QToolButton#replaceCurrent, QFrame QToolButton#replaceFind, QFrame QToolButton#restart, QFrame QToolButton#replaceAll, QFrame QToolButton#count { qproperty-toolButtonStyle: ToolButtonTextBesideIcon;} Use QSS to hide all tooltips. QToolTip {max-width:0; max-height:0; margin:0; padding:0;} Hide Previous Find Replace History QFrame QComboBox QAbstractItemView::item {max-height: 0;} #cbFind, #cbReplace {qproperty-maxCount:0;} Last edited by KevinH; 08-11-2024 at 11:14 AM. |
08-11-2024, 05:52 PM | #27 |
Guru
Posts: 772
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
My experiments don't always lend themselves to wider use, and then I'm the only person in the world who uses such non-standard settings, because, after all, it's mostly about individual taste.
I work in Sigil practically every day, so my preferences are simply due to the mode of this work, which is why, among other things, I have a validation results box above Code View, because I mostly analyze the results of validation plugins. It is also important to note that my changes are more about Windows in a Classic Sigil Dark Theme. Code:
/* Setting the monotype font in the Find and Replace fields */ /* Instead of "Consolas" use your favorite font, preferably the one you use in Code View. */ #cbFind, #cbReplace {font-family: "Consolas"; font-size: 12px;} /* Change the default selection color to a similar green color scheme for the new logo/icon. */ *, *::separator, *::handle, *::tab-bar, *::tab, *::section { selection-background-color: #00404a; selection-color: white; } /* Sigil version number in About box in different color */ QLabel#lbVersionDisplay {color: #FFA000;} /* Gray background in About box on Authors tab */ QTextEdit#creditsDisplay {background-color: #323232;} /* Gray background of the BookBrowser panel */ #bookbrowser {background-color: #323232;} /* No BookBrowser panel borders */ #bookbrowser {border: 1px solid #323232;} /* No Find&Replace panel borders */ QFrame {border: 1px solid #323232;} |
08-11-2024, 06:53 PM | #28 |
just an egg
Posts: 1,668
Karma: 5432100
Join Date: Mar 2015
Device: Kindle, iOS
|
Hi Kevin,
My knowledge of advanced Sigil features is already showing. In the current add_cover.xhtml chapter, it says: "To modify the template Sigil uses for the HTML cover file, create a file in your Preferences directory called cover.xhtml." Is this cover.xhtml file now deprecated in favor of the new cover-template*.xhtml file? I tried both, and only the cover-template*.xhtml file worked for me in the current beta; the cover.xhtml file did not appear to work. But before I delete the info about cover.xhtml and replace it with cover-template*.xhtml, I want to make sure this is correct. Last edited by odamizu; 08-11-2024 at 07:12 PM. |
08-11-2024, 07:10 PM | #29 |
Sigil Developer
Posts: 8,115
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes "cover.xhtml" it is no longer used for templates. Now cover-template2.xhtml (for epub2) and cover-template3.xhtml (for epub3) are what are used to hold the template information and they should be placed in the Sigil Preferences Location folder.
The file name created in BookBrowser will still default to be called "cover.xhtml" unless that name is already used. Thanks! Kevin |
08-11-2024, 07:13 PM | #30 |
just an egg
Posts: 1,668
Karma: 5432100
Join Date: Mar 2015
Device: Kindle, iOS
|
Okay. Also, I noticed that the default cover file text shown in the User Guide does not appear to be the same default text I get when don't add a template. Not sure if that's something I'm doing or misunderstanding or if I should update this in the User Guide.
What's in the User Guide: Spoiler:
What I get with the beta: Spoiler:
Should I update? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wanted: Volunteers to Update the Sigil User's Guide | KevinH | Sigil | 55 | 05-18-2018 02:52 AM |
Finding your most recent Users’ Guide | seanyyz | Amazon Kindle | 1 | 01-21-2018 01:26 PM |
Content New KindleWiFi Users' Guide | sirmaru | Amazon Kindle | 2 | 09-19-2010 12:27 AM |
K2 PDF Users Guide Sillyness | JSWolf | Amazon Kindle | 5 | 02-10-2009 04:11 PM |
Can I delete Kindle Users Guide? | KlondikeGeoff | Amazon Kindle | 4 | 12-15-2008 06:26 PM |