09-14-2021, 07:44 PM | #91 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
|
09-14-2021, 07:50 PM | #92 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Exactly. I just noticed this and edited my post.
|
Advert | |
|
09-14-2021, 07:52 PM | #93 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
It must be late your time. I will apply these changes and push to master.
|
09-14-2021, 08:22 PM | #94 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Okay pushed BeckyEbook's patches to master (with the restart changes and ui changes as well). I tested them on macOS with no issues.
I set [deploy] so that we will get test builds for Windows users with intl keyboards with altgr to play with. Thanks BeckyEbook! |
09-15-2021, 09:47 AM | #95 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
So all we need now is a few Windows users who have international keyboards with a real AltGr key to volunteer to help test if this works for their specific keyboard layouts.
If anyone is interested in helping us test this please pm DiapDealer or KevinH here on MR and we can pm you back with a link to the test build. Any takers? |
Advert | |
|
09-15-2021, 10:24 AM | #96 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Everything seems to be fine on Linux. I'll have to take others' word for it that it's working as intended on Windows (with international keyboards). I don't really understand what's expected to work where (and the right Alt key interferes with my Virtual box "Host" key shortcut whenever I enable the altgr setting on an international keyboard layout) on a VM.
The setting seems to have no effect on a standard English keyboard (with a standard English Windows keyboard profile), so that's good (I think). @Becky: Are you creating shortcuts using the AltGr key in Sigil with this setting? Or is the purpose of properly detecting the AltGr key so that it can still be used without triggering Sigil shortcuts? If I try to create a Sigil shortcut using the right Alt key (with a Windows international keyboard profile active and the altgr setting set to true), I get a non-working shortcut (and often unicode encoded stuff like \xac written to the Sigil.ini file) Last edited by DiapDealer; 09-15-2021 at 10:32 AM. |
09-15-2021, 11:26 AM | #97 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
DiapDealer: This is the purpose of properly detecting the AltGr key so that it can still be used without triggering Sigil shortcuts.
Users of international keyboards were disadvantaged in such a way that Sigil's hotkeys overwritten characters that are obtained from AltGr. For example, in the default layout of the German language, to get the @ sign press AltGr+q. If this shortcut had been "seized" by Sigil, the user would not be able to type "@". After enabling the checkbox and restarting it will be possible. As for the weird characters in sigil.ini, it's always been the case, but users should not select conflicting keyboard shortcuts. I have already mentioned in this thread that I personally do not like it, because after pressing Ctrl+Alt+E on my Polish keyboard layout, I would prefer to see just such a notation, and I see Ctrl+Alt+Ę and in sigil.ini it is written as Ctrl+Alt+\x118. In the German layout in the Shortcuts window, we will see Ctrl+Alt+€, and in sigil.ini it will be Ctrl+Alt+\x20ac Such shortcuts are completely useless because they don't work. If there was [input box "Shortcuts"], however, Ctrl+Alt+E appeared, it would all work on the Polish[*] system, German[**], and English. [*] AltGr+E=Ę (or rather ę, because Shortcuts displays uppercase, but normally it would be a diacritic in a minuscule) Ctrl+left Alt+E = keyboard shortcut assigned in Sigil [**] AltGr+E=€ Ctrl+left Alt+E = keyboard shortcut assigned in Sigil Maybe I think otherwise, but I have the impression that for standard keyboards it would not matter because AltGr is not used there, but for international keyboards layouts it would be concrete progress and no records /xNNN in sigil.ini But it may not be possible to do it, because since in the current thread the problem was related to the Shift key (and I have the impression that it has been resolved) then this problem is quite different. |
09-15-2021, 12:22 PM | #98 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Got it. I think I understand, now Thank you for explaining so thoroughly.
|
09-15-2021, 04:42 PM | #99 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
After downloading the last beta, I did some tests.
First at all, my keyboard layout it can be seen in this post: https://www.mobileread.com/forums/sh...6&postcount=26 I made tests with AltGr disabled and AltGr enabled. I also tested Ctrl + Shift combinations in both events. These are my results: With AltGr disabled:
With AltGr enabled:
Conclusions: with my keyboard, the Ctrl + Shift combinations work fine, except in the case of Ctrl + Shift + 6, Ctrl + Shift + 0 and Ctrl + Shift + ^. With AltGr disabled, the combinations are right detected, but don't work. With AltGr enabled, no combinations are detected, only the respective character obtained by AltGr + Key. |
09-15-2021, 04:53 PM | #100 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hmm, back to the drawing board I fear.
I will code up the approach BeckyEbook also found that uses a Windows call to get the base key and we can test that to see if it has the same issues. |
09-15-2021, 06:00 PM | #101 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
@RbnJrg
Would you please try this for me and post the output here: 1. Set the SIGIL_DEBUG_LOGFILE environment variable to a path to a log file on your Desktop someplace. Sigil will create the file when launched and write some debug output to it. 2. Fire up Sigil, and run your failing Ctrl+Shift combinations (with AltGR disabled) Please try: Ctrl + Shift + 6 Ctrl + Shift + ^ Ctrl + Shift + 0 in the KeyboardShortcutsWidgets Preferences Dialog then close out of Sigil. 3. The debug log file you specified should be created on your Desktop (if you set that path and name). It is just a text file. Please copy and paste its contents into a post in this thread surrounded by CODE square bracket tags. Thanks! |
09-15-2021, 06:24 PM | #102 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
I forgot to mention that with AltGr enabled, the combinations "Ctrl + AltGr + Key" don't work either; in the Shortcut field only appears the Key. |
|
09-15-2021, 06:40 PM | #103 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I googled how to do that for Windows and found this:
https://www.architectryan.com/2018/0...on-windows-10/ |
09-15-2021, 06:43 PM | #104 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Type 'env' in the Windows 10 search bar and then click on the "" Edit the system environment variables" link that should show up in the right-hand pane.
Click the "Environment Variables" button in the bottom right portion of the resulting System Properties dialog box. Click the "New" button in the top (User variables) section. Put SIGIL_DEBUG_LOGFILE in the top variable name text-box Put a full file path you have write permissions to in the bottom value text box. I suggest: C:\users\<your user name>\Desktop\sigil-log.txt Replace <your user name> appropriately, of course, and surround with quotes if your user name has spaces. Click the OK button Click the OK button on the environment variables dialog Click the OK button on the System Properties dialog Next time you Start Sigil, the sigil-log.txt file should be created on your desktop. It will accumulate, so feel free to delete the file (it will be recreated) if it get polluted with a lot of extra stuff. Delete (or slightly rename) the SIGIL_DEBUG_LOGFILE when done. I leave it there, spelled slightly incorrectly so I can easily turn logging back on/off. |
09-15-2021, 06:45 PM | #105 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Hey, It's good to know my method has proponents (who add screen shots).
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[BUG] - M96 out of memory - [BUG] | Alf77 | Onyx Boox | 5 | 02-05-2015 11:47 AM |
Another bug that I wonder if others have seen | PeterT | Kobo Reader | 16 | 06-08-2013 09:48 PM |
DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |