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 10-28-2024, 10:55 AM   #31
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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
One last thing to check. Does the greyed out pre-composed characters issue in Korean show up when editing text in some other Qt widgets too (not just CodeView)?

Please try in the Find and Replace fields or in the MetaEditor text input fields and please let me know if the same problem still happens in those widget types.
KevinH is offline   Reply With Quote
Old 10-28-2024, 11:09 AM   #32
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: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
In other windows there is no problem.
The cursor changes to block and then it is OK.
Attached Thumbnails
Click image for larger version

Name:	sigil-hangul-find.gif
Views:	20
Size:	36.2 KB
ID:	211720   Click image for larger version

Name:	sigil-hangul-metadata.gif
Views:	20
Size:	24.5 KB
ID:	211721  
BeckyEbook is offline   Reply With Quote
Advert
Old 10-28-2024, 11:16 AM   #33
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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
So it is something specific to CodeView, then. Very strange.
CodeView is a QPlainTextEdit window that has QT::WA_InputMethodEnabled set by default inside Qt.

Calibre uses a QTextEdit and not a QPlainTextEdit for its CodeView editor equivalent (at least I think it does). So could you please try the same Korean Input Method test in Calibre's CodeView editor equivalent and let me know if it fails in the same way or is okay like Find and Replace?

Last edited by KevinH; 10-28-2024 at 11:19 AM.
KevinH is offline   Reply With Quote
Old 10-28-2024, 11:41 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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
@BeckyEbook,

I just wonder if the new Sigil Preference setting to double the cursor width might be impacting this issue, ie. somehow preventing CodeView from moving to block cursor too.

If and when you get a free moment, please make sure that Preference setting is off and Sigil has been restarted and retest.

Thanks!
KevinH is offline   Reply With Quote
Old 10-28-2024, 11:58 AM   #35
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: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
In my case, the double cursor width option is certainly disabled.
BeckyEbook is offline   Reply With Quote
Advert
Old 10-28-2024, 12:08 PM   #36
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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
In my case, the double cursor width option is certainly disabled.
Thanks.

It was worth a shot.

I just do not understand why QLineEdits (like Find and Replace) and as used in the Meta Editor nicely switch from insertion cursors to block cursors when using the Koran IME on Windows while our CodeView (QPlainTextEdit) does not.

I can see no setting that should impact that.
KevinH is offline   Reply With Quote
Old 10-28-2024, 12:09 PM   #37
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: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
Ad Calibre Editor.
It's a bit more complicated than that.
a) the problem with the strange marking of matching tags in calibre also occurs (one might suspect that this is related to the miscounting of characters when there is a "composing string" glyph between tags while typing).
b) the problem of greying does not exist, because both when typing and the finished mark are in one colour (white in dark mode and black in light mode).
c) outside the editor (e.g. the "Find" window) it behaves as Sigil does, i.e. correctly.
BeckyEbook is offline   Reply With Quote
Old 10-28-2024, 12:17 PM   #38
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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
Ad Calibre Editor.
It's a bit more complicated than that.
a) the problem with the strange marking of matching tags in calibre also occurs (one might suspect that this is related to the miscounting of characters when there is a "composing string" glyph between tags while typing).
b) the problem of greying does not exist, because both when typing and the finished mark are in one colour (white in dark mode and black in light mode).
c) outside the editor (e.g. the "Find" window) it behaves as Sigil does, i.e. correctly.
I am confused. So there are two issues?

A. When highlight matching tags the highlight of the ending tag is "off" because of the "composing string" glyph.

and

B. The "composing string" glyph is somehow rendered in a colour that does not show up against the black background, white background, or line highlight color.

Problem A can be made to go away by disabling the highlight matching tag pair. Right?

Why can't problem B be made to go away by just changing the line highlight colour?

I keep looking at the OP's video but he/she types so fast I can not see the Problem B happening at all just Problem A.

What am I missing?
KevinH is offline   Reply With Quote
Old 10-28-2024, 12:27 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: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
Yes, in Sigil, once the highlighting of matching pairs of tags is turned off, the A problem stops bothering.

However, it is not possible to specify a line highlight colour that does not interfere with reading the content and is neither white nor black nor grey, as this will in any case prevent the text being typed/typed from being read.
Attached Thumbnails
Click image for larger version

Name:	sigil-problem-a-b.png
Views:	22
Size:	55.6 KB
ID:	211724   Click image for larger version

Name:	calibre-problem-a-b.png
Views:	21
Size:	37.7 KB
ID:	211725  
BeckyEbook is offline   Reply With Quote
Old 10-28-2024, 12:30 PM   #40
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,055
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It looks like the virtualkeyboard module and plugin is non-starter, here. The plugin pulls in the module whenever windeployqt is run. But even with the Microsoft Korean IME installed and active, debug output shows that neither the plugin nor the module are in use. Seems use of QtVirtualKeyboard needs to be implemented through C++ or QML.
DiapDealer is offline   Reply With Quote
Old 10-28-2024, 12:37 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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
Yes, in Sigil, once the highlighting of matching pairs of tags is turned off, the A problem stops bothering.

However, it is not possible to specify a line highlight colour that does not interfere with reading the content and is neither white nor black nor grey, as this will in any case prevent the text being typed/typed from being read.
Hmm ... on my macOS in my normal dark mode the line highlight colour is a medium-light purple so it nicely shows either dark or light pixels well.

So what happens if we turn off the line highlight colour by setting it to match the background colour?

Is the lack of a line highlight colour and no matching tag highlighting the only reasons that Find and MetaEditor are okay?
KevinH is offline   Reply With Quote
Old 10-28-2024, 12:47 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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
@DiapDealer,
Can you recreate both problems A and B with your current setup?
KevinH is offline   Reply With Quote
Old 10-28-2024, 01:00 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: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by KevinH View Post
So what happens if we turn off the line highlight colour by setting it to match the background colour?

Is the lack of a line highlight colour and no matching tag highlighting the only reasons that Find and MetaEditor are okay?
Two images in dark mode.
Attached Thumbnails
Click image for larger version

Name:	sigil-highlight-color-black.png
Views:	18
Size:	10.3 KB
ID:	211726   Click image for larger version

Name:	sigil-highlight-color-background.png
Views:	21
Size:	11.1 KB
ID:	211727  
BeckyEbook is offline   Reply With Quote
Old 10-28-2024, 01:00 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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
The funny thing is that as far as I know, there is no way for CodeView to detect that someone is in the middle of a "composing string" and then they pause.

To map tag pairs, CodeView grabs the entire source of the CV as text and then parses it to create a list of tag beginning and end (matching) starting positions and ends so it knows where to highlight.

But when in the middle of composing a character, a placeholder for the "composing string" is not added because the total number of char16 (QChars) are not known fully until the actual character to be input has been fully formed.

Qt and the IME really should not be injecting parts of a incomplete character into the document until the actual fully formed character is ready.

So there really is nothing we can do about Problem A.

Last edited by KevinH; 10-28-2024 at 01:05 PM.
KevinH is offline   Reply With Quote
Old 10-28-2024, 01:04 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,188
Karma: 5450818
Join Date: Nov 2009
Device: many
Problem B is strange too. Why is it rendered so faintly? Is it because it is rendering an incomplete "composing string"? Is the colour meant to indicate it is incomplete? I wonder where in the Qt code the colour is determined? Is it taken from a Windows setting?

Last edited by KevinH; 10-28-2024 at 01:06 PM.
KevinH 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
Issue with metadata input and searching scarlettruin Calibre 4 03-26-2015 04:49 AM
M92 Korean Input missing, notes application misbehaving kie Onyx Boox 0 08-21-2012 12:39 PM
html to epub - input issue jwalk Conversion 4 06-07-2011 04:10 PM
convert PDF input issue Cid Calibre 2 01-08-2011 10:30 AM
Korean schools to get digital text books grimo1re News 2 01-26-2008 07:19 PM


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


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