Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2024, 07:15 PM   #31
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: 21,012
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
Well that was a dead end. Under macOS using setCursorWidth in CodeView had absolutely no impact on either the blinking insertion point or the cursor itself.

So it appears the blinking insertion point is not controllable at all under Qt6 using setCursorWidth no matter what the docs say.
Curious - did it 'work' in single line text boxes, e.g. F&R Find?

BR
BetterRed is offline   Reply With Quote
Old 04-11-2024, 07:22 PM   #32
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
QLineEdit's like those used in Find and Replace do not have a setCursorWidth setting at all, so a QStyledProxy is needed to try something like that in things like that.

I did get setCursorWidth to work in a QPlainTextEdit (CodeView) finally. It is undocumented but it must be set every time a new QTextDocument is set. So I can get a double width insert point text cursor working in CodeView but no luck so far in QTreeViews, QComboBoxes, QLineEdits and other major widgets types.

I am still investigating.

Last edited by KevinH; 04-11-2024 at 07:30 PM.
KevinH is offline   Reply With Quote
Advert
Old 04-12-2024, 07:23 AM   #33
luka
Junior Member
luka began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2024
Device: none
Hello, I noticed that Article 8 has optimized the renaming efficiency when there are many files, and the speed has been greatly improved. Will the efficiency of adding/deleting files in batches when there are many files be optimized in the future? Also, it takes a long time to set up the Cover page when the file volume is large. The problem.
Many thanks
luka is offline   Reply With Quote
Old 04-12-2024, 09:16 AM   #34
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by luka View Post
Hello, I noticed that Article 8 has optimized the renaming efficiency when there are many files, and the speed has been greatly improved. Will the efficiency of adding/deleting files in batches when there are many files be optimized in the future? Also, it takes a long time to set up the Cover page when the file volume is large. The problem.
Many thanks
Bulk delete has previously existed for use by Merge but now will be used in more cases.

There is no easy way to speed up the "Add Existing" of huge numbers (thousands) of files as that requires creating thousands of internal Sigil resource objects and loading their contents into QTextDocuments for speed of editing, then constantly editing and reediting the opf thousands of times to create the proper opf manifest, not to mention file copying and reading times.

You would be better off using a standalone tool or python script to create a rough opf from those thousands of files and using the FolderIn plugin to load it or even use a create a simple epub from those files and start from that.

Obviously using a fast ssd based drive and staying far away from slower network drives helps too.

Literally epubs with thousands of images or thousands of files is an extreme use case.

Exactly which types of epubs have file counts like that?

Even a stats/math textbook that could have thousands of equations as separate images (because it does not properly use mathml) still typically only has less than 100 chapter files of text.

Last edited by KevinH; 04-12-2024 at 12:13 PM.
KevinH is offline   Reply With Quote
Old 04-12-2024, 11:59 AM   #35
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Okay, after some more experimenting, I now have a way to double the insertion point text cursor width from the default 1 pixel wide to 2 pixels wide which helps to make it easier to detect. This should work in all FindReplace and all QLineEdits too.

Remember the insertion point cursor has to fit between adjacent characters. So the wider it gets the worse it looks when fonts with kerning and tight letter spacing are employed. So going more than 2 pixels is not recommended.

It is reasonably painless and seems to work requiring only a few small changes in CodeViewEditor.cpp and main.cpp.

So I am thinking of creating a Sigil Main UI Preference Appearance to enable or disable it. Changing this setting would require a Sigil restart since it involves changing the main application style on the fly.

So something along the lines of:

Code:
    [] Make text cursor insertion point more visible
I would like to know if our users would find this useful or not before fighting with the Sigil Preferences again (or begging DiapDealer to do it!).

I have attached two screen shots. Since they are static, no blinking involved. But look at the end of the xhtml comment at the line in yellow to compare the text cursors before and after.

Note: these screencaps appear much larger on the screen when I open them here on Mobileread than the actual on my display so both appear reasonably easy to see but that is not quite how it seems to me. Not sure how to show the difference otherwise.
Attached Thumbnails
Click image for larger version

Name:	CodeView with Default Text Cursor.png
Views:	602
Size:	80.9 KB
ID:	207526   Click image for larger version

Name:	CodeView with Wider Cursor.png
Views:	559
Size:	100.9 KB
ID:	207527  

Last edited by KevinH; 04-12-2024 at 12:52 PM.
KevinH is offline   Reply With Quote
Advert
Old 04-12-2024, 01:35 PM   #36
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: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
I would like to know if our users would find this useful or not before fighting with the Sigil Preferences again (or begging DiapDealer to do it!).
Happy to contribute.

But I worry that vertical space on the Main UI tab of the Appearances Prefs might be getting tight for space. It would mostly affect laptop users with smaller screens, but still....

There's probably a couple of options to get around it. One would be to create a new Accessibility tab that I could put the new Show Widget Focus pref and this proposed larger insertion point cursor on. Another option would be to remove the Tweak Drag Distance preference. I consider it to be a veritable boat-anchor at this point anyway. I could drop it completely, or if someone can convince me it's being used (Qt5), I could replace it with an environment variable setting for the two people in the world who might find it useful.
DiapDealer is offline   Reply With Quote
Old 04-12-2024, 01:49 PM   #37
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
I like the idea of a new Accessibility tab. Maybe even move ui font sizing there, the icon sizing there, the red focus border, and the larger cursor setting. There might be others.

Just a thought to free up space from other already overcrowded preference tabs.
KevinH is offline   Reply With Quote
Old 04-12-2024, 02:55 PM   #38
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
Cursor insertion point more visible: I wold vote Yes (as would most of my age group, I'm sure.)

I did this in Writer quite a while ago, and it makes a huge difference, even when using big text on a huge screen. (The Writer solution is a gtk.css file trick, so it probably wouldn't wouldn't help in the Qt world, I got it from here: https://askubuntu.com/questions/1027...ter-appearance)
retiredbiker is offline   Reply With Quote
Old 04-12-2024, 03:53 PM   #39
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: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
My two cents on the option "Highlight Widgets with Focus" (applies to Windows, possibly others).
The simple QSS for showing focus has a certain unpleasant side-effect, which applies primarily to the two widgets: QSpinBox and QComboBox.

Well, the focus overwrites the default 'Fusion' style and ruins the aesthetics of these controls.
The problem has been known for years, but I have not found a simple solution.

Link

I am not in favor of removing this new option if users find it useful, but it is worth adding a note in the documentation that the aesthetics of the UI will suffer with this option enabled. The Accessibility tab is also a good idea.
Attached Thumbnails
Click image for larger version

Name:	sigil-focus-issue-combobox.png
Views:	656
Size:	22.0 KB
ID:	207530   Click image for larger version

Name:	sigil-focus-issue-spinbox.png
Views:	582
Size:	7.8 KB
ID:	207531  
BeckyEbook is offline   Reply With Quote
Old 04-12-2024, 04:23 PM   #40
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
The FindReplace arrow just shrunk a bit to allow the border. But the spinbox arrows change seems really bad.

I will check things on macOS to see what happens there.
KevinH is offline   Reply With Quote
Old 04-12-2024, 04:31 PM   #41
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
@BeckyEbook,

Couldn't we restrict that :focus qss to specific classes leaving out QComboBox and QSpinbox since one highlights the text before the up/down buttons, and the other has a blinking cursor or highlight when it has focus?
KevinH is offline   Reply With Quote
Old 04-12-2024, 05:15 PM   #42
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
The opposite problem exists in macOS, as the FindReplace pulldowns look horrible and the QSpinbox is just slightly smaller.

Interesting ...
KevinH is offline   Reply With Quote
Old 04-12-2024, 05:25 PM   #43
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: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by KevinH View Post
@BeckyEbook,

Couldn't we restrict that :focus qss to specific classes leaving out QComboBox and QSpinbox since one highlights the text before the up/down buttons, and the other has a blinking cursor or highlight when it has focus?
In theory, yes, because you only need to catch the main widget names and apply the change only to them.
Highlighting focus only on the main windows (BookBrowser, CodeView, Validation Results, TOC, Clips, Preview) will only be a substitute.
However, I acknowledge that this is not trivial if indeed this option is to be useful for people with disabilities or those using Tab/Shift+Tab to navigate the Sigil interface.

I also come across an interesting issue in Windows, when I switch windows via the Tab key, the focus also switches to the toolbar, but only to one – Automation Lists.
BeckyEbook is offline   Reply With Quote
Old 04-12-2024, 05:45 PM   #44
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
There are ways to use a paintEvent for each Widget to draw the focus box instead of a stylesheet. All the QDockWidgets already override the paint event now. Perhaps handling it that way might work better.

I will play around a bit just to see.
KevinH is offline   Reply With Quote
Old 04-12-2024, 05:47 PM   #45
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: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
We can supposedly set TabOrder on each Widget to limit where Tab goes according to the docs.

I will try playing around with that.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Icon Redesign for future 1.0 Release of Sigil shorshe Sigil 38 06-07-2016 12:29 AM
Kindle Software Preview Release and calibre 'Fetch News' items tomsem Devices 25 07-20-2011 09:02 AM
Will amazon release another cheaper version of DX in the near future CalvinL Amazon Kindle 6 07-31-2010 06:01 PM
Suggestion For Future Release Of Calibre clambert Calibre 5 07-10-2010 02:45 PM
dotReader alpha release next month with future iLiad support possible Alexander Turcic News 7 09-28-2006 01:24 PM


All times are GMT -4. The time now is 06:24 AM.


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