![]() |
#901 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
But NV still doesn't work - and the debug is : Quote:
Going to try a third browser - maybe MS is playing silly buggers. You should get to bed. BR |
||
![]() |
![]() |
![]() |
#902 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#903 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
It's like it's not even seeing the …default_apps setting, 'cept I know it is because if I deliberately screw it up semantically I get an error: Code:
calibre, version 6.14.1 JS+ GUI Tool: Tweak job_spy_notes_viewer_protocol_default_apps: Error in the Tweak 'job_spy_notes_viewer_protocol_default_apps' in Your Preferences > Tweaks > Plugin Tweaks value is invalid. <br><br>You should recustomize Job Spy Tweaks and Preferences for this GUI Tool before proceeding. BR Last edited by BetterRed; 03-20-2023 at 12:16 AM. |
|
![]() |
![]() |
![]() |
#904 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,675
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
btw, the colour fix works! Thank you
![]() |
![]() |
![]() |
![]() |
#905 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.219 Notes Viewer
Version 1.0.219 -2023-03-20 Notes Viewer: Dark Mode & Overriding apps used with HTTP or HTTPS protocols for links in HTML text.
See the attached documentation images. If you use Calibre Portable, the "Overriding apps used with HTTP or HTTPS protocols for links in HTML text" functionality will not work properly because Calibre Portable does not work the same as Calibre Desktop in all regards. What makes it "portable" in Windows has its downsides due to the way that Windows works; it is not Calibre's fault. DaltonST |
![]() |
![]() |
![]() |
#906 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 13884
Join Date: Dec 2009
Location: Austria
Device: Kindle Oasis, Amazon Fire 7 Tablet, iPad mini 4, iPhone XS
|
Sorry for not getting back to you sooner. I was a week out of town.
WOW! I have seen you improved this part of your plugin tremendously ![]() I hope it is ok, that I give you some feedback.
Hopefully, some of my remarks are of value for you. |
![]() |
![]() |
![]() |
#907 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The good news is: Onenote Links are working as expected.
The bad news is: The protocol_default_apps = {'http:': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'} setting isn't working. FTR: Ordinarily I use the regular 64bit version of calibre that installs in c:\program files\calibre2. The reason I tried a freshly installed portable was to eliminate all customisations and plugins apart from JS and its js->nv->protocol_default_apps setting. I've also tried running calibre in Safe Mode to no avail. But, I have managed to invoke Edge, but not in the manner expected. In my testing yesterday I created a text file named "New Text Document" on my desktop, and a file:/// link to that file in my Blurb column which worked fine of course, so I deleted the file. But I didn't remove the link from Blurb. This morning I noticed the link on Book Details, but it wasn't clickable i.e. the mouse cursor didn't change to a 'hand'. So, I thought I'd see if it was the same in NV, it was clickable i.e. the mouse cursor did change to a 'hand', so I clicked on it, guess what…. et voila Edge pops up. BR |
![]() |
![]() |
![]() |
#908 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Mine works perfectly.
My plugin tweak is exactly (via copy & paste): Code:
job_spy_notes_viewer_protocol_default_apps = {'http:': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'} Try running at the command line: calibre-debug -g DaltonST |
![]() |
![]() |
![]() |
#909 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Code:
calibre 6.14.1 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: en_AU Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 219) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2) QPA platform: windows devicePixelRatio: 1.25 logicalDpi: 96.0 x 96.0 physicalDpi: 98.70815939278937 x 98.85405405405406 ApplicationPaletteChange event ignored Using calibre Qt style: True [0.00] Starting up... [0.00] Initializing db... [0.16] db initialized [0.16] Constructing main UI... qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: cHRM chunk does not match sRGB CalibreSpy: initialization_complete Job Spy has begun initialization... author_sort_copy_method >>> default tweaks.py method is: invert current tweaks['title_series_sorting']: library_order --->>>apply_title_series_sorting_by_library: libname IS tweaked; new value for: Books is: library_order title_series_sorting changed FROM: library_order TO: library_order Calibre, and hence Job Spy, was gracefully shut down last time? True Last time daemon started: never Last time daemon failed: never Total daemon starts inception_to_date: 0 Total daemon failures inception-to-date: 0 qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile JS: ===>>> change_gui_alternating_row_colors() Job Spy has finished initialization... [1.62] main UI initialized... [1.62] Started up in 1.62 seconds with 5 books Starting QuickView current_column per column_map: #blurb row_number of current book is: 0 new self.last_current_column: #blurb current_col: 13 lookup/search name: #blurb current_column: #blurb MD : regex match: (\_|\*){1} raw md_match_ratio: 0.038461538461538464 HTML : regex match: href= HTML : regex match: <a|</a|<a href= HTML : regex match: <div|</div HTML : regex match: <p|<p class="description"|</p> HTML : regex match: <span|</span raw html_match_ratio: 0.13513513513513514 guessing: MD: score & weighted ratio: 1 0.028932778932778933 HTML: score & weighted ratio: 5 0.13672326172326174 --->>> best guess: html #~ Calibre > Preferences > Plugin Tweaks > job_spy_notes_viewer_protocol_default_apps = {'http:': '"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"'} #~ Note that path to executable should be in Python path format (i.e., / not \), and Windows paths require double-quotes if there are any spaces in a path. #~ However, NV will automatically correct the application path for the above as necessary. event_anchorclicked: PyQt6.QtCore.QUrl('https://www.mobileread.com/forums/index.php') url to be opened: https://www.mobileread.com/forums/index.php webbrowser.open(url, new=0): https://www.mobileread.com/forums/index.php ui.py: return_from_notes_viewer_to_save_prefs: GUI_TOOLS_CONVERT_NOTES_VIEWER_LAST_CUSTOM_COLUMN_USED #blurb |
|
![]() |
![]() |
![]() |
#910 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
So, the link you clicked either specified https: instead of http:, or it specified nothing but the site.
If you override http:, it works only for http. |
![]() |
![]() |
![]() |
#911 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
And where's what happened when I click a 'dead' file:/// link
Code:
calibre 6.14.1 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: en_AU Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 219) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2) QPA platform: windows devicePixelRatio: 1.25 logicalDpi: 96.0 x 96.0 physicalDpi: 98.70815939278937 x 98.85405405405406 ApplicationPaletteChange event ignored Using calibre Qt style: True [0.00] Starting up... [0.00] Initializing db... [0.16] db initialized [0.16] Constructing main UI... qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: cHRM chunk does not match sRGB CalibreSpy: initialization_complete Job Spy has begun initialization... author_sort_copy_method >>> default tweaks.py method is: invert current tweaks['title_series_sorting']: library_order --->>>apply_title_series_sorting_by_library: libname IS tweaked; new value for: Books is: library_order title_series_sorting changed FROM: library_order TO: library_order Calibre, and hence Job Spy, was gracefully shut down last time? False Last time daemon started: never Last time daemon failed: never Total daemon starts inception_to_date: 0 Total daemon failures inception-to-date: 0 qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile JS: ===>>> change_gui_alternating_row_colors() Job Spy has finished initialization... [1.50] main UI initialized... [1.50] Started up in 1.50 seconds with 5 books Starting QuickView current_column per column_map: #blurb row_number of current book is: 0 new self.last_current_column: #blurb current_col: 13 lookup/search name: #blurb current_column: #blurb MD : regex match: (\_|\*){1} raw md_match_ratio: 0.038461538461538464 HTML : regex match: href= HTML : regex match: <a|</a|<a href= HTML : regex match: <div|</div HTML : regex match: <p|<p class="description"|</p> HTML : regex match: <span|</span raw html_match_ratio: 0.13513513513513514 guessing: MD: score & weighted ratio: 1 0.028932778932778933 HTML: score & weighted ratio: 5 0.13672326172326174 --->>> best guess: html #~ Calibre > Preferences > Plugin Tweaks > job_spy_notes_viewer_protocol_default_apps = {'http:': '"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"'} #~ Note that path to executable should be in Python path format (i.e., / not \), and Windows paths require double-quotes if there are any spaces in a path. #~ However, NV will automatically correct the application path for the above as necessary. event_anchorclicked: PyQt6.QtCore.QUrl('file:///C:/Users/Philip Daniels/Desktop/New Text Document.txt') url to be opened: file:///C:/Users/Philip Daniels/Desktop/New Text Document.txt webbrowser.open(url, new=0): file:///C:/Users/Philip Daniels/Desktop/New Text Document.txt Last edited by BetterRed; 03-20-2023 at 05:26 PM. Reason: add image of Edge |
![]() |
![]() |
![]() |
#912 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,675
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Suggestion, if feasible: The option to select a per-library 'default' note viewer column in the JS settings. This'll be automatically selected when opening the viewer.
|
![]() |
![]() |
![]() |
#913 | |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
And? What is your point? That causes the default .txt file handler app to open the file. The Python 'webbrowser' module does that automatically. Looks correct to me. |
|
![]() |
![]() |
![]() |
#914 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Somewhere along the way I got the impression that http would cover https. I assume I can have? Code:
job_spy_notes_viewer_protocol_default_apps = { 'https:': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe', 'http:': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe' } You might want to check what's happening with dead file links BR Last edited by BetterRed; 03-20-2023 at 06:14 PM. |
|
![]() |
![]() |
![]() |
#915 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,620
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Here's what happens when I click on the two file links: The file:/// link to the non existent C:\_Sandpit\dead test.txt file, opens a browser (Edge) - I would expect it to do nothing (a'la Book Details) or better yet pop a message - "File doesn't exist". BR |
|
![]() |
![]() |
![]() |
Tags |
author aka, author pen name, colors, toolbag, toolbox, tools |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 514 | 03-23-2025 10:26 AM |
[GUI Plugin] Ex Libris | AlPe | Plugins | 87 | 10-10-2020 03:10 PM |
[GUI Plugin] Marvin XD | Philantrop | Plugins | 126 | 01-29-2017 12:48 PM |
Ubuntu/Linux : Command to schedule a job with Calibre.( No GUI ) | DurgaPrasad | Calibre | 0 | 10-16-2013 06:50 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |