Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 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,234
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; Today at 05:35 PM.
KevinH is online now   Reply With Quote
Old Today, 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,234
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; Today at 06:27 PM.
KevinH is online now   Reply With Quote
Advert
Old Today, 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: 925
Karma: 3501166
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 Today, 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,234
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 online now   Reply With Quote
Old Today, 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,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.
DNSB is offline   Reply With Quote
Advert
Old Today, 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,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.
DiapDealer is offline   Reply With Quote
Old Today, 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,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.
KevinH is online now   Reply With Quote
Old Today, 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,234
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.
KevinH is online now   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 11:13 PM.


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