Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2026, 05:26 PM   #61
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
Yes, this is a issue/feature of Qt in Windows.
I even checked it on version 0.9.13 in Windows XP, and it was the same there.

It must be clearly stated that the button should be:

Code:
setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint);
Hmm, that is something I never knew. Of course I only dabble on Windows and when Linux and Mac both worked, I just assumed it would work on Windows.

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; 01-15-2026 at 05:35 PM.
KevinH is offline   Reply With Quote
Old 01-15-2026, 05:34 PM   #62
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
I confirm that the force_titlecase function now works for all files.
Okay I just pushed to master the following addition to functionsearch.py


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
This function makes it much easier to use multiple replace_* functions in a single python function replace function.

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; 01-15-2026 at 06:27 PM.
KevinH is offline   Reply With Quote
Old 01-15-2026, 05:42 PM   #63
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: 928
Karma: 3501168
Join Date: Jan 2017
Location: Poland
Device: Various
Important note: add setWindowsFlags after
Code:
ui.setupUi(this);
Other windows to minimize? I really have no idea. I've lived without it for years, so I just don't miss that option. But maybe @philja will suggest something, maybe Spellcheck?
BeckyEbook is offline   Reply With Quote
Old 01-15-2026, 05:57 PM   #64
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
Important note: add setWindowsFlags after
Code:
ui.setupUi(this);
Other windows to minimize? I really have no idea. I've lived without it for years, so I just don't miss that option. But maybe @philja will suggest something, maybe Spellcheck?
Thanks for the important note! I will add that to Reports.cpp along with the maximizebuttonhint as well so both are available just like on Mac and Linux.

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.
KevinH is offline   Reply With Quote
Old 01-15-2026, 08:09 PM   #65
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: 49,593
Karma: 174632684
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; 01-15-2026 at 08:12 PM.
DNSB is offline   Reply With Quote
Old 01-15-2026, 09:25 PM   #66
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: 29,033
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; 01-15-2026 at 09:30 PM.
DiapDealer is offline   Reply With Quote
Old 01-15-2026, 10:21 PM   #67
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: 9,249
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.
KevinH is offline   Reply With Quote
Old 01-15-2026, 10:26 PM   #68
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
This is intentionally limited to commonly used Latin-based European characters (PL, CZ, SK, SI, HR, LT, LV, EE, DE, AT, CH, FR, ES, PT, IT, NO, SE, DK, FI, NL, HU, RO).
Non-Latin scripts (CJK, RTL, etc.) are deliberately excluded and will continue to fall back to Python on demand.

Code:
static const QString XHTML_CHARS =
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "1234567890!@#$%^&*()_-+={}[]:;\"'<>,.?/|\\…„”“’»«"
    "ąćęłńóśżźĄĆĘŁŃÓŚŻŹáàâäãåÁÀÂÄÃÅéèêëÉÈÊËíìîïÍÌÎÏ"
    "òôöõøÓÒÔÖÕØúùûüÚÙÛÜýÿÝŸçÇñÑšžŠŽđĐœæŒÆß";
P.S. I also added some punctuation marks.
Wonderful. I will modify CodepointNames.cpp to pre-cache those as well.

Update: I have pushed this change to master.

Last edited by KevinH; Yesterday at 12:30 PM.
KevinH is offline   Reply With Quote
Old Yesterday, 05:04 AM   #69
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: 928
Karma: 3501168
Join Date: Jan 2017
Location: Poland
Device: Various
I like this feature, but I think it could be even better if we added a bonus in parentheses.

Spoiler:

Code:
--- W:\Develop\Sigil\Sigil-master\src\MainUI\MainWindow.cpp-przed	2026-01-15 18:53:46.094111500 +0100
+++ W:\Develop\Sigil\Sigil-master\src\MainUI\MainWindow.cpp	2026-01-16 09:28:57.012213800 +0100
@@ -5083,9 +5083,10 @@
     QString name = "";
     if (line > 0 && column > 0) {
         name = CodepointNames::instance()->GetName(codepoint);
+        const QString cp = QString("U+%1").arg(codepoint, 4, 16, QLatin1Char('0')).toUpper();
         const QString l = QString::number(line);
         const QString c = QString::number(column);
-        m_lbCursorPosition->setText(tr("Line: %1, Col: %2 - %3").arg(l).arg(c).arg(name));
+        m_lbCursorPosition->setText(tr("Line: %1, Col: %2 - %3 (%4)").arg(l).arg(c).arg(name).arg(cp));
         m_lbCursorPosition->show();
     } else {
         m_lbCursorPosition->clear();
Attached Thumbnails
Click image for larger version

Name:	sigil-unicode-in-status-line.png
Views:	19
Size:	1.9 KB
ID:	220327  
BeckyEbook is offline   Reply With Quote
Old Yesterday, 08:03 AM   #70
jd1004
Junior Member
jd1004 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2025
Device: none
RegEx Rename

1) Just a thought: When selecting files and calling RegEx Rename, maybe the cursor should be placed in the "Regular Expression:" field.

2) Would it be possible to RegEx Rename files in different folders? I think in a previous Sigil version I could select files in different folders and call RegEx Rename, but then it would only process the files in one folder anyway. The current version of Sigil (2.7.0 on Windows 10) does not even bring up a popup menu when I select files in more than one folder and right-click.
This request is very low priority, so if it's any bother - don't bother :-)

3) I often use "Delete Unused Stylesheet Selectors...". This also pretty-prints the CSS, but _only_ if there are selectors to delete. It would be nice to be able to pretty-print the CSS even if there is nothing to delete.
jd1004 is offline   Reply With Quote
Old Yesterday, 09:34 AM   #71
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 317
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by BeckyEbook View Post
@philja: In Windows, all internal Sigil windows are displayed with only a close button. This has always been the case.
Ok - I hadn't noticed that because I don't use Sigil on Windows or Mac that often.

However, I made that post because it seemed that aspect of the internal Sigil windows on the Windows platform was what caused the grief for the OP (MickiTee).
philja is offline   Reply With Quote
Old Yesterday, 10:51 AM   #72
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by jd1004 View Post
1) Just a thought: When selecting files and calling RegEx Rename, maybe the cursor should be placed in the "Regular Expression:" field.

2) Would it be possible to RegEx Rename files in different folders? I think in a previous Sigil version I could select files in different folders and call RegEx Rename, but then it would only process the files in one folder anyway. The current version of Sigil (2.7.0 on Windows 10) does not even bring up a popup menu when I select files in more than one folder and right-click.
This request is very low priority, so if it's any bother - don't bother :-)

3) I often use "Delete Unused Stylesheet Selectors...". This also pretty-prints the CSS, but _only_ if there are selectors to delete. It would be nice to be able to pretty-print the CSS even if there is nothing to delete.
1. Typically only done once so saving a single keystroke will not help the majority of users or use cases. But if simple to do, I will look into it.

Update: I have pushed this change to master.

2. No, as mixing files from Virtual folders is purposely disabled in BookBrowser and xhtml naming typically differs from font, image, and other file renaming patterns. That selection limitation is by design.

3. You can reformat the CSS at any time. See the pop-up menus. No pretty printing is actually done, just one line vs multi line formatting.

Last edited by KevinH; Yesterday at 12:32 PM.
KevinH is offline   Reply With Quote
Old Yesterday, 10:52 AM   #73
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 317
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Display problem in Regex Rename

On my linux box, UbuntuStudio 24.04.3 LTS and KDE Plasma, with Sigil 2.7.0 QT6.9.3 (from the appimage), the text for the replacement string name is truncated.

See screenshot:

This could be a system issue, but I've never encountered it elsewhere in Sigil or in any other application on my linux box.

Doesn't affect the usage - just the appearance.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20260116_154108.png
Views:	12
Size:	24.5 KB
ID:	220341  
philja is offline   Reply With Quote
Old Yesterday, 10:55 AM   #74
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
I like this feature, but I think it could be even better if we added a bonus in parentheses.

Spoiler:

Code:
--- W:\Develop\Sigil\Sigil-master\src\MainUI\MainWindow.cpp-przed	2026-01-15 18:53:46.094111500 +0100
+++ W:\Develop\Sigil\Sigil-master\src\MainUI\MainWindow.cpp	2026-01-16 09:28:57.012213800 +0100
@@ -5083,9 +5083,10 @@
     QString name = "";
     if (line > 0 && column > 0) {
         name = CodepointNames::instance()->GetName(codepoint);
+        const QString cp = QString("U+%1").arg(codepoint, 4, 16, QLatin1Char('0')).toUpper();
         const QString l = QString::number(line);
         const QString c = QString::number(column);
-        m_lbCursorPosition->setText(tr("Line: %1, Col: %2 - %3").arg(l).arg(c).arg(name));
+        m_lbCursorPosition->setText(tr("Line: %1, Col: %2 - %3 (%4)").arg(l).arg(c).arg(name).arg(cp));
         m_lbCursorPosition->show();
     } else {
         m_lbCursorPosition->clear();
Yes that can be easily done at little expense. I will include it.

Update: I have pushed this change to master.

Last edited by KevinH; Yesterday at 12:31 PM.
KevinH is offline   Reply With Quote
Old Yesterday, 10:57 AM   #75
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: 9,249
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by philja View Post
On my linux box, UbuntuStudio 24.04.3 LTS and KDE Plasma, with Sigil 2.7.0 QT6.9.3 (from the appimage), the text for the replacement string name is truncated.

See screenshot:

This could be a system issue, but I've never encountered it elsewhere in Sigil or in any other application on my linux box.

Doesn't affect the usage - just the appearance.
I will look into it.

Could be theme or font scaling related?

Last edited by KevinH; Yesterday at 11:07 AM.
KevinH is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:08 PM.


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