10-28-2024, 10:55 AM | #31 |
Sigil Developer
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. |
10-28-2024, 11:09 AM | #32 |
Guru
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. |
Advert | |
|
10-28-2024, 11:16 AM | #33 |
Sigil Developer
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. |
10-28-2024, 11:41 AM | #34 |
Sigil Developer
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! |
10-28-2024, 11:58 AM | #35 |
Guru
Posts: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
In my case, the double cursor width option is certainly disabled.
|
Advert | |
|
10-28-2024, 12:08 PM | #36 | |
Sigil Developer
Posts: 8,188
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
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. |
|
10-28-2024, 12:09 PM | #37 |
Guru
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. |
10-28-2024, 12:17 PM | #38 | |
Sigil Developer
Posts: 8,188
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
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? |
|
10-28-2024, 12:27 PM | #39 |
Guru
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. |
10-28-2024, 12:30 PM | #40 |
Grand Sorcerer
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.
|
10-28-2024, 12:37 PM | #41 | |
Sigil Developer
Posts: 8,188
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
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? |
|
10-28-2024, 12:47 PM | #42 |
Sigil Developer
Posts: 8,188
Karma: 5450818
Join Date: Nov 2009
Device: many
|
@DiapDealer,
Can you recreate both problems A and B with your current setup? |
10-28-2024, 01:00 PM | #43 |
Guru
Posts: 784
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
Two images in dark mode.
|
10-28-2024, 01:00 PM | #44 |
Sigil Developer
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. |
10-28-2024, 01:04 PM | #45 |
Sigil Developer
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. |
Thread Tools | Search this Thread |
|
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 |