Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 01:38 AM   #16
User_Z
Zealot
User_Z began at the beginning.
 
Posts: 113
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Quote:
Originally Posted by KevinH View Post
FYI, there is a simpler way to handle the Find and Replace buttons in case you are at all interested that does not require qss changes at all:

Simply edit your sigil_v6.ini file and add the following line to it under [find_replace]

frbuttonstextonly=true

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?
User_Z is offline   Reply With Quote
Old Yesterday, 02:46 AM   #17
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,615
Karma: 5041066
Join Date: Mar 2015
Device: Kindle, iOS
Okay! I am hoping to get to this sometime next week ...

Quote:
Originally Posted by KevinH View Post
@odamisu,

I forgot that the cover template uses PLACEHOLDERS that are not used elsewhere in the template files.

This is pretty obscure so I have added a new chapter to the sigil-user-guide called advanced_topics.xhtml that has a section on this cover-template*.xhtml and its PLACEHOLDERS and many other things.

So the best way for you to deal with this is in add_cover.xhtml might be to just mentions that using your own cover template file is possible and putting a link to the "advanced_topics.xhtml" chapter.


(ps I posted a preview of this advanced_topics chapter in one of the earlier posts)

Thanks!

Kevin
odamizu is offline   Reply With Quote
Old Yesterday, 09:36 AM   #18
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,910
Karma: 5449552
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by User_Z View Post
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?
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?

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.
KevinH is online now   Reply With Quote
Old Yesterday, 11:27 AM   #19
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,747
Karma: 197700000
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; Yesterday at 11:32 AM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 01:52 PM   #20
User_Z
Zealot
User_Z began at the beginning.
 
Posts: 113
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.
Attached Thumbnails
Click image for larger version

Name:	Find_ sigil_v6.ini.png
Views:	24
Size:	22.5 KB
ID:	210087  
User_Z is offline   Reply With Quote
Old Yesterday, 02:05 PM   #21
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,910
Karma: 5449552
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?
KevinH is online now   Reply With Quote
Old Yesterday, 04:09 PM   #22
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,510
Karma: 74358018
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:
What you are seeing is junctions and symbolic links, that are present in order to maintain support for legacy applications.

C:\Documents and Settings - junction - points to C:\Users
C:\Users\All Users - symbolic link - points to C:\Program Data
C:\Documents and Settings\All Users - same as C:\Users\All Users
C:\ProgramData\Application Data - junction - points back to C:\ProgramData

If you want to list all them all, open command prompt and enter: dir /a:l /s C:\
PeterT is offline   Reply With Quote
Old Yesterday, 09:39 PM   #23
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,795
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
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"?
I'm 1 of the 8

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;}
However I do have the setting in sigil_v6.ini, viz:
Code:
. . .
[find_replace]
visible=true
advanced_visible=true
regexoptiontextonly=true
frbuttonstextonly=true
regexoptionunicodeproperty=false
search_mode=0
look_where=0
search_direction=0
. . .
Should I replace the .ini setting with qt.qss code, and if so can someone provide the code I need to add?

BR
BetterRed is offline   Reply With Quote
Old Today, 04:20 AM   #24
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: 725
Karma: 2296998
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
BeckyEbook is offline   Reply With Quote
Old Today, 06:33 AM   #25
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,747
Karma: 197700000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
I'm 1 of the 8

I don't appear to have anything regarding F&R buttons in qt.qss, all I have is this:

However I do have the setting in sigil_v6.ini, viz:
Code:
. . .
[find_replace]
visible=true
advanced_visible=true
regexoptiontextonly=true
frbuttonstextonly=true
regexoptionunicodeproperty=false
search_mode=0
look_where=0
search_direction=0
. . .
Should I replace the .ini setting with qt.qss code, and if so can someone provide the code I need to add?

BR
It's your choice. It makes no difference (except for the extra granularity of the qss method Becky mentioned). We're not going to remove the manual settings parameter now that it's made it into several releases -- and been adopted by at least a few of the eight.
DiapDealer is offline   Reply With Quote
Old Today, 11:12 AM   #26
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,910
Karma: 5449552
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;}
@BeckyEbook, do you have any others you might be able to share for use in the Sigil-User-Guide Advanced Topics chapter?

Last edited by KevinH; Today at 11:14 AM.
KevinH is online now   Reply With Quote
Old Today, 05:52 PM   #27
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: 725
Karma: 2296998
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;}
BeckyEbook is offline   Reply With Quote
Old Today, 06:53 PM   #28
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,615
Karma: 5041066
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; Today at 07:12 PM.
odamizu is offline   Reply With Quote
Old Today, 07:10 PM   #29
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,910
Karma: 5449552
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
KevinH is online now   Reply With Quote
Old Today, 07:13 PM   #30
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,615
Karma: 5041066
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:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cover</title>
</head>

<body>
<div style="text-align: center; padding: 0pt; margin: 0pt;">

[...etc.]


What I get with the beta:

Spoiler:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>Cover</title>
</head>
<body>
<div style="height: 100vh; text-align: center; padding: 0pt; margin: 0pt;">

[... etc]


Should I update?
odamizu is offline   Reply With Quote
Reply


Forum Jump

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


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


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