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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2022, 09:39 AM   #1
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,768
Karma: 5446592
Join Date: Nov 2009
Device: many
Head's Up: Upcoming Find Replace User Interface Changes

Upcoming Sigil Find Replace User Interface Changes

To conserve screen real-estate for those users still using lower resolution monitors and laptops, we redesigned the Find Replace dialog to minimize its width as that in turn determines the minimum width of CodeView and the resulting width of the main window. This involved moving the advanced Regex options into their own menu, replacing the text based buttons with universal icons, and re-ordering rows. In many languages the old text based buttons and advanced options names took up considerable and precious space.

This change to use icons on buttons in turn freed up enough space to allow a new "Text" checkbox be added that when checked will limit the search to text outside of xhtml tags (one of our heavily requested features).

See Attached: FindReplace-Dialog.png

The screenshot above shows the new layout with the new Text checkbox. The next image shows how to access the Advanced Regex checkable menu options:

See Attached: FindReplace-Adv-Options.png

The meaning of each new icon is explained below. In addition, the way to launch two new additional FindReplace tools: "Dry-Run Replace All" and the "Filter Replacements" are also shown. Tooltips have been fully updated in case the user ever has any doubts.



Filter Replacements (Delete Unwanted Matches)
This tool helps users use Find and Replace All more effectively. It lists all of the matches found in context and shows their replacement in that same context. The amount of context both before and after a match (in characters) can be controlled by the user.

See Attached: Filter Replacements.png

If the user sees a match that is unwanted - i.e. they do not want that replacement to be made, they can select that match's row in the table and use the delete key or select delete on the pop-up menu to remove it. When all unwanted matches have been found and deleted, the user can then use the "Apply Changes" button to have just the changes remaining in the table made. This tool can by launched by Shift clicking on the Replace-All button.

Dry-Run Replace All
Often when crafting regular expression for Find and Replace, it is difficult to know if your find string will properly detect the cases you want while excluding the cases you do not want. This table shows the results of a trial dry-run of your current find and replace terms in context. No actual replacements/changes are ever made. Similar to the earlier dialog, the amount of context both before and after a match (in characters) can be controlled by the user. This tool can by launched by Shift clicking on the Count-All button.

See Attached: Dry-Run-Replace-Dialog.png

This allows the user to safely experiment with their search terms to see which if any would be most effective. Any row in the table can be double-clicked and the exact context for that particular match will be brought up in CodeView for the user to examine in more detail or to edit. This way a user can verify that a find replace all sequence will do exactly what they expect it to do. If the user makes changes to the underlying text that will impact the table, the user can click on the "Refresh" button at any time to force the table to be rebuilt.

Notes
Before anyone gets in an uproar over these changes, please note that these buttons are svg files that can be completely replaced and controlled by the user by using their own Sigil custom theme. This includes the ability to put back the buttons using text inside the svg for their chosen language. See Sigil IconThemes repo on GitHub for details on how to custom theme the icons used by Sigil. Versions of these icons suitable for those who prefer the fluent or material themes have already been made and included.

Special Thanks
A very special **Thank You** goes to our own BeckyEbook for designing and creating all of these new icons in versions suitable for main, fluent, and material themes and donating them to Sigil. Her many and varied contributions to Sigil has helped Sigil immensely and is greatly appreciated.

Also a big "Thank You" goes to our own Doitsu for all of his testing and feedback of these interface changes.
Attached Thumbnails
Click image for larger version

Name:	FindReplace-Dialog.png
Views:	295
Size:	55.7 KB
ID:	193620   Click image for larger version

Name:	FindReplace-Adv-Options.png
Views:	296
Size:	124.4 KB
ID:	193621   Click image for larger version

Name:	New-Buttons.png
Views:	2293
Size:	39.7 KB
ID:	193622   Click image for larger version

Name:	Filter-Replacements.png
Views:	279
Size:	140.3 KB
ID:	193623   Click image for larger version

Name:	Dry-Run-Replace-Dialog.png
Views:	281
Size:	204.4 KB
ID:	193624  

Last edited by KevinH; 05-05-2022 at 09:44 AM. Reason: minor fixups
KevinH is offline   Reply With Quote
Old 05-05-2022, 11:08 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,004
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Fantastic

Will there be balloon help if you hover over those buttons?
theducks is offline   Reply With Quote
Advert
Old 05-05-2022, 11:22 AM   #3
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,768
Karma: 5446592
Join Date: Nov 2009
Device: many
Yes the Qt equivalent, called Tooltips will pop-up if you hover the mouse over a button explaining what it is/does.

Last edited by KevinH; 05-05-2022 at 11:29 AM.
KevinH is offline   Reply With Quote
Old 05-05-2022, 12:30 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,004
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by KevinH View Post
Yes the Qt equivalent, called Tooltips will pop-up if you hover the mouse over a button explaining what it is/does.

(I keep forgetting that alternate name )
theducks is offline   Reply With Quote
Old 05-05-2022, 02:43 PM   #5
Sarmat89
Evangelist
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 484
Karma: 2267928
Join Date: Nov 2015
Device: none
While you're there, could you add the "Count All" function?
Sarmat89 is offline   Reply With Quote
Advert
Old 05-05-2022, 03:22 PM   #6
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: 37,008
Karma: 148321038
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sarmat89 View Post
While you're there, could you add the "Count All" function?
Is that the one with the # as the icon?

Is a test version be available for this release?
DNSB is online now   Reply With Quote
Old 05-05-2022, 03:51 PM   #7
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,768
Karma: 5446592
Join Date: Nov 2009
Device: many
Yes Count (#) is always Count All for whatever target files you specified.
There was already an earlier test version with pieces of all of this but without the gui changes so I won't probably make another test release given the new dialogs themselves have already been extensively tested.
KevinH is offline   Reply With Quote
Old 05-05-2022, 05:29 PM   #8
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 411
Karma: 145324
Join Date: Dec 2017
Device: Kobo
I recommend that the Replace All and Count All tooltips contain an indication of the quick shortcut (Shift+click) for alternative use with the new tool (although they will still be accessible via the "Search" menu and their custom shortcut which are a totally different system)

Notepad++ user, if I reworked the "Search and Replace" area, I would have liked a totally independent pop-up window that would have allowed a greater freedom of button placement, or even kept the text version of the button, but Oh well, too late for that and then detail.

In any case, this Filter Replacements will be very interesting, thanks you.

Last edited by un_pogaz; 05-05-2022 at 05:43 PM.
un_pogaz is offline   Reply With Quote
Old 05-05-2022, 05:50 PM   #9
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,768
Karma: 5446592
Join Date: Nov 2009
Device: many
The Sigil menubar Search menu supports these new tools and allows users to assign keyboard shortcuts for them as well. The Tooltips do indicate both the button function and any Shift+ variants that exist.

Embedding Find and Replace into the Main Window has advantages for easier automatic focus shifts to and from CodeView so that will not be changing, especially give how external windows can get lost easily on laptops.
KevinH is offline   Reply With Quote
Old 05-07-2022, 11:59 AM   #10
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
>freed up enough space to allow a new "Text" checkbox be added that when checked will limit the search to text outside of xhtml tags

That's a great benefit, thank you!
Notjohn is offline   Reply With Quote
Old 03-16-2023, 03:38 PM   #11
BKh
Zealot
BKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheese
 
BKh's Avatar
 
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
Am I understanding correctly that the only way to get the text back on the search buttons is to create svg icons with the text and then compile my own rcc file?

All the new changes are wonderful (especially the restrict to text within tags). But a good way to know that icons may not be the best solution is if you have to make a chart explaining what they are in addition to needing tool tips. That said, I understand the decision.

Perhaps the legacy group of icons should have svg text icons for the search.
BKh is offline   Reply With Quote
Old 03-16-2023, 03:50 PM   #12
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,768
Karma: 5446592
Join Date: Nov 2009
Device: many
You would need to create your own since they are language dependent if you want different text, or do what others have done.

Simply hovering over the new icons will give you a translated pop-up text.

I have used the icon versions for quite some time now (over a year) and have found they are quite mnemonic and became second nature quite easily.

Your choice.

Last edited by KevinH; 03-16-2023 at 04:05 PM.
KevinH is offline   Reply With Quote
Old 03-16-2023, 03:57 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: 27,629
Karma: 194783560
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BKh View Post
Am I understanding correctly that the only way to get the text back on the search buttons is to create svg icons with the text and then compile my own rcc file?
Almost. You have to compile your own rcc file, but there's no need to create svg icons with the text you want. Just compile an rcc file that doesn't contain any images for those buttons. Still probably a bit of PITA, but nearly so much as needing to make a bunch of SVGs on top of it.
DiapDealer is offline   Reply With Quote
Old 03-16-2023, 04:10 PM   #14
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: 705
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Playing with your own RCC file is not necessary.
Just create a qt_styles.qss file in the Sigil configuration folder and enter there:


* If you want only Text:

Code:
QFrame QToolButton#findNext, QFrame QToolButton#replaceCurrent, QFrame QToolButton#replaceFind, QFrame QToolButton#restart, QFrame QToolButton#replaceAll, QFrame QToolButton#count {
qproperty-toolButtonStyle: ToolButtonTextOnly;}
* If you want Text with Icons:

Code:
QFrame QToolButton#findNext, QFrame QToolButton#replaceCurrent, QFrame QToolButton#replaceFind, QFrame QToolButton#restart, QFrame QToolButton#replaceAll, QFrame QToolButton#count {
qproperty-toolButtonStyle: ToolButtonTextBesideIcon;}
Attached Thumbnails
Click image for larger version

Name:	sigil-findreplace-text-ui.png
Views:	799
Size:	2.3 KB
ID:	200373   Click image for larger version

Name:	sigil-ToolButtonTextBesideIcon.png
Views:	790
Size:	4.9 KB
ID:	200374  
BeckyEbook is offline   Reply With Quote
Old 03-16-2023, 04:19 PM   #15
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,629
Karma: 194783560
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Brilliant!
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changes in HTML user interface tfgtech Server 1 10-09-2018 11:56 PM
Rethinking the user interface fesja Calibre 98 02-10-2012 02:02 AM
Find/Replace Won't Find Rand Brittain Sigil 7 09-24-2011 04:35 AM
BUG in user interface Giuseppe Chillem Calibre 9 05-10-2010 10:32 PM
iLiad User interface programming eth777 iRex Developer's Corner 3 12-23-2007 05:58 AM


All times are GMT -4. The time now is 05:49 PM.


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