![]() |
#16 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Also, thanks to KevinH I have a simple workaround/solution and I'm not asking any developer to recode anything. |
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This is one of the reasons I've given up on using Tk for Sigil plugin GUI interfaces. Too many platform-specific quirks (not to mention that macOS is the only one smart enough to automatically match Tk to the light/dark os theme). Pop-unders have been a problem on all platforms at different times.
I never did warm up to Tk. I was never able to get a good feel for it (programmatically speaking). It just never felt intuitive to me. But I'm glad you found a workaround for the issue! I wouldn't dream of suggesting that plugin devs overhaul their plugins to use PySide instead. "If it ain't broke," and all that. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 588278
Join Date: Apr 2016
Device: none
|
Hi, sorry for the delayed response, I read just today the notification for the updates in this thread.
Odamizu, did the workaround of KevinH solved the problem for good or do you need to click on the plugin's icon every time? I wrote a function that could possibly force the window to the top of the windows's stack, but I don't have a Mac so I cannot test it. If you're still experiencing the problem, can you test if one of the two betas that I attached to this post solves it? @DiapDealer: what do you mean, it's not intuitive? To show a scrollable list of checkbuttons I just had to create a text widget, attach manually to it a vertical scrollbar and bind the movement of each one to the other, then for every checkbutton I inserted a 'window' at the end of the text widget and set the checkbutton background color (which cannot be transparent) to match the one of the text widget, then set the 'wraplength' property of the checkbuttons's style to be equal to the window minus my guess about the width of the scrollbar and the margins and update this value every time the user resizes the window. After that I just needed to specify that I want the text widget to scroll when the mousewheel is used and add all the checkbuttons to the 'bindtags' of the text widget (or the mousewheel wouldn't work when the cursor is over a checkbutton or its label). If this is not intuitive to you, what is? ![]() |
![]() |
![]() |
![]() |
#19 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
I tried 0.2.3beta1 and 0.2.3beta2 — same result. Still need to click on plugin icon every time. But it's not a big deal. Thanks for trying. Interestingly, with the KindleImport plugin, I needed to click on the plugin icon the first time, after which it runs automatically. Interestingly, with KindleImport plugin, the icon bounced in the Dock, which caught my attention and prompted me to click on it. But with cssUndefinedClasses and cssRemoveUnusedSelectors the icon did not bounce (which is why I didn't click on it before KevinH suggested I do so). Not sure if that's relevant, but I offer that info to be thorough. |
|
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Last edited by DiapDealer; 02-15-2025 at 08:21 AM. |
|
![]() |
![]() |
![]() |
#22 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#23 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One oddity with this plugin is that when an ID is referenced by an aria-labelledby, the ID is seen as unused and removable. The next step is an error message from epubcheck.
Code:
<nav epub:type="toc" role="doc-toc" aria-labelledby="toc"> <h1 id="toc">Contents</h1> <section aria-labelledby="cont" epub:type="toc" role="doc-toc"> <hgroup> <h1 class="FMH" id="cont">Contents</h1> </hgroup> Code:
OEBPS/Text/contents.xhtml 11 474 Col: 64: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing) OEBPS/Text/nav.xhtml 10 368 Col: 59: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing) OEBPS/Text/nav.xhtml 77 2429 Col: 54: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing) OEBPS/Text/nav.xhtml 94 3004 Col: 78: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing)) Last edited by DNSB; 02-14-2025 at 09:25 PM. |
![]() |
![]() |
![]() |
#24 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 588278
Join Date: Apr 2016
Device: none
|
I was really convinced that I set immediate email notifications for this thread, while weekly notifications were set, that should now be fixed.
As for the issue at hand, the plugin by default uses the attributes href, epub:textref and src to search for fragment identifiers, and the users can visualize and edit this list in the preferences of the plugin. So, DNSB, for your specific problem, you should be able to add 'aria-labelledby' to that list by clicking on the "Preferences" button after launching the plugin. It would probably be better if the aria attributes were included in the search by default, I will look into it for a new release shortly. |
![]() |
![]() |
![]() |
#25 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Thanks for the tip. Seems to be happy now.
|
![]() |
![]() |
![]() |
#26 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 588278
Join Date: Apr 2016
Device: none
|
I just uploaded in the first post of this thread the version 0.2.3 of the plugin, with an expanded set of attributes that will be used to search for id references and an embedded tk theme for the Linux UI.
Let me know if there are any problems. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 08:07 PM |
[Plugin] QuickPrefsEdit - Edit plugin prefs json files. | slowsmile | Plugins | 3 | 07-25-2018 08:14 PM |
Goodread Perception Expander plugin not shown on plugin list (kobo h2o) | www | KOReader | 4 | 09-28-2017 10:34 AM |
Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 10:49 PM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |