|
|
#61 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,234
Karma: 6565382
Join Date: Nov 2009
Device: many
|
Quote:
I will see about adding that to the Reports code. Are there any other particular windows in Sigil that would benefit from such a treatment? Last edited by KevinH; Today at 05:35 PM. |
|
|
|
|
|
|
#62 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,234
Karma: 6565382
Join Date: Nov 2009
Device: many
|
Quote:
Code:
def create_sigilmatch_copy(m):
grouplist = []
n = len(m.groups())
if n > 0: n = n + 1
s = m.start()
for i in range(n):
grouplist.append([m.span(i)[0] - s, m.span(i)[1] - s])
nm = SigilMatch(m.group(0), grouplist)
return nm
With this change the force_titlecase function now simplifies to the following: Code:
def replace(match, number, file_name, metadata, data):
if match:
new_match = create_sigilmatch_copy(match)
new_match.string = replace_lowercase(match, number, file_name, metadata, data)
return replace_titlecase(new_match, number, file_name, metadata, data)
Last edited by KevinH; Today at 06:27 PM. |
|
|
|
|
| Advert | |
|
|
|
|
#63 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 925
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
|
Important note: add setWindowsFlags after
Code:
ui.setupUi(this); |
|
|
|
|
|
#64 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,234
Karma: 6565382
Join Date: Nov 2009
Device: many
|
Quote:
So far the list of where to make these changes is: Reports Spellcheck But there are a number of other informational windows that it may be useful for, such as GetInfo, some of the RepoManager windows, and etc. I had no idea about this difference between platforms. |
|
|
|
|
|
|
#65 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,558
Karma: 174632680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
So far the changes look good here. I was able to see a slowdown in the character report but that involved preloading an ~16K block of data which was then "typed" into Code View. The delay was about 2 seconds between the two versions of Sigil.
As for the minimize/full screen, much like @BeckyEbook, I don't remember ever seeing them so I never missed them. It is nice to have them now. Last edited by DNSB; Today at 08:12 PM. |
|
|
|
| Advert | |
|
|
|
|
#66 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,027
Karma: 210162574
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I never needed to minimize anything other than the main window on any OS. So I never noticed there being (or not being) a minimize button.
EDIT: It's not just Windows by the way. The 'x' (close) button is the only button visible on any Sigil dialog on my Arch Linux machine using the Cinnamon desktop. I just checked. Last edited by DiapDealer; Today at 09:30 PM. |
|
|
|
|
|
#67 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,234
Karma: 6565382
Join Date: Nov 2009
Device: many
|
Whereas on Manjaro under KDE Plasma 6, I get both the min and max buttons on the Reports window title bar.
|
|
|
|
|
|
#68 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,234
Karma: 6565382
Join Date: Nov 2009
Device: many
|
Quote:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suggestions for Sigil Improvements or New Features | KevinH | Sigil | 168 | 11-18-2025 01:23 PM |
| Suggestions for New Plugins and Plugin Improvements | KevinH | Plugins | 0 | 09-22-2025 11:53 AM |
| Ideas for New Improvements or Features | KevinH | Sigil | 97 | 04-09-2025 10:45 AM |
| Improvements/bugs/features | dontcrash | KOReader | 10 | 10-23-2019 11:05 AM |
| Onyx M92: Suggestions for possible improvements | Lode | Onyx Boox | 3 | 02-11-2013 08:40 AM |