Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2023, 07:58 PM   #856
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,042
Karma: 22381319
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
The regex for links I wrote will not match your file uri example. Easy fix. Tomorrow.
No worries.
BetterRed is online now   Reply With Quote
Old 03-17-2023, 11:22 PM   #857
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,042
Karma: 22381319
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
Whoops - when I invoke JS->NV it jumps top the top of the book list.

BR
But only in my Test library, which I admit is an absolute shambles, but that's the result of testing issues raised here before posting solutions.

Check Library was no errors

I'll try rebuilding it, after I save the database.

BR
BetterRed is online now   Reply With Quote
Old 03-17-2023, 11:44 PM   #858
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,160
Karma: 2010524
Join Date: Aug 2013
Location: Texas
Device: none
By design, it goes to row #0 in the last-used #column.

Should I make that an option only?
DaltonST is offline   Reply With Quote
Old 03-18-2023, 12:19 AM   #859
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,042
Karma: 22381319
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
By design, it goes to row #0 in the last-used #column.

Should I make that an option only?
Yes please

My usage will be ad-hoc, find my way to a book, decide I want to look at a long text column, press the NV shortcut (Ctrl+Alt+N) and then Alt+C to select the column.

Make it an opt-out if that is better for you, and/or other users.

BR
BetterRed is online now   Reply With Quote
Old 03-18-2023, 07:53 AM   #860
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,160
Karma: 2010524
Join Date: Aug 2013
Location: Texas
Device: none
<a href="file:/// Links in NV

So, re: file links in NV:

"External Links" that it knows about, such as https etc. are handled properly.

"Internal Links", like file:///, have the behavior described below.

<a href="file:///X:\MyPluginsPy3\_ris_import_dir\abstract.txt">NV Test File URI</a>

When clicked in NV, the .txt file in the link above is opened by NV directly within the NV qtextbrowser widget, and shown in it. In NV, directly. Clicking "refresh book" reloads the current Custom Column text.

If the file extension were, for example, .xyz, and there were no default file handler for .xyz files (in Qt), NV would do nothing but show an error message in DEBUG.

Example: "QTextBrowser: No document for file:///X:/MyPluginsPy3/_ris_import_dir/test4.ris"

Supposedly the errors is issued because .ris is a random extension that Qt has no standard file handler for. Unlike .txt files.

I will continue researching. Maybe I can allow a user to update on-the-fly what extensions are registered by QDesktopServices, which is what does the work for links. I don't know enough yet to know, and I don't know what I don't know.


DaltonST
DaltonST is offline   Reply With Quote
Old 03-18-2023, 07:57 AM   #861
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,160
Karma: 2010524
Join Date: Aug 2013
Location: Texas
Device: none
New version posted in OP.


DaltonST
Attached Files
File Type: zip job_spy_dev_20230318_7amCST.zip (682.1 KB, 2 views)

Last edited by DaltonST; 03-18-2023 at 01:35 PM. Reason: deleted
DaltonST is offline   Reply With Quote
Old 03-18-2023, 01:34 PM   #862
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,160
Karma: 2010524
Join Date: Aug 2013
Location: Texas
Device: none
Version 1.0.218 Notes Viewer Enhancements

Version 1.0.218 -2023-03-18 Notes Viewer: To support HTML Links, switched to a QTextBrowser widget instead of QTextEdit for HTML Only; Dark Mode; Others.

The ToolTips are required reading to use the NV.


DaltonST
DaltonST is offline   Reply With Quote
Old 03-18-2023, 05:41 PM   #863
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,042
Karma: 22381319
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I can't get any file:/// links to work in NV, but I might have a clue for you.

Thought I'd try a PDF, viz:

Click image for larger version

Name:	Screenshot 2023-03-19 081158.jpg
Views:	4
Size:	337.2 KB
ID:	200451

When I clicked PDF TEST in NV I got a spinning wheel for a couple of seconds then this:

Click image for larger version

Name:	Screenshot 2023-03-19 081648.jpg
Views:	7
Size:	267.0 KB
ID:	200448

This is the Plain view of the html code:

Click image for larger version

Name:	Screenshot 2023-03-19 083051.jpg
Views:	6
Size:	79.1 KB
ID:	200450

I tried removing the div and color span tags to a barebones link, same result.

BR

Last edited by BetterRed; 03-18-2023 at 05:51 PM.
BetterRed is online now   Reply With Quote
Old 03-18-2023, 06:06 PM   #864
ownedbycats
Grand Sorcerer
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 6,061
Karma: 41077675
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Well this is weird. After seeing that plain mode was working fine in BR's screenshot, I installed Calibre portable with just Job Spy to check that it wasn't some config issue. But I'm still getting the grey text on a white background.

BR: Are you using explicit dark mode or System default? (I'm using the former.) I can't see how it would make a difference but thats the only thing I can think of.
ownedbycats is offline   Reply With Quote
Old 03-18-2023, 06:13 PM   #865
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,042
Karma: 22381319
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Color palette (needs restart): System default

BR
BetterRed is online now   Reply With Quote
Old 03-18-2023, 06:20 PM   #866
ownedbycats
Grand Sorcerer
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 6,061
Karma: 41077675
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Switching Windows to dark and Calibre to system default fixed it!

I wonder what the difference is
ownedbycats is offline   Reply With Quote
Old 03-18-2023, 06:34 PM   #867
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,160
Karma: 2010524
Join Date: Aug 2013
Location: Texas
Device: none
File:/// Test Version

I found a solution, which appears to be universally used with QTextBrowsers for opening file links. Had to override Qt, and either open a Windows subprocess for the clicked file in the link, or open the default webbrowser via Python.

See the attached version to test.


DaltonST

Last edited by BetterRed; Yesterday at 05:36 PM. Reason: removed defunct plugin zip
DaltonST is offline   Reply With Quote
Old 03-18-2023, 06:53 PM   #868
ownedbycats
Grand Sorcerer
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 6,061
Karma: 41077675
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Tested more: The background colour depends only on the "Choose your default app mode" in Personalize > Colours > Choose your Colour: Custom. Setting it to 'light' results in the white background, setting it to 'dark' results in normal.
ownedbycats is offline   Reply With Quote
Old 03-18-2023, 06:59 PM   #869
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,042
Karma: 22381319
Join Date: Mar 2012
Location: Sydney Australia
Device: none
File links are working

But Onenote links have stopped working. They're weird creatures, viz:

Code:
<div>
<p><a href="onenote:https://d.docs.live.net/cc6283b11474a776/Documents/Philip's%20Notebook/Quick%20Notes.one#Tale%20of%20Two%20Cities&amp;section-id=%7BD4B7ECE2-C681-4C2F-99CC-56565B06F898%7D&amp;page-id=%7B822953DD-ACFC-4058-8021-2D87472686B9%7D&amp;end"><span style="color: #ff4fff">Tale of Two Cities</span></a></p></div>
From Book Details I get this:

Click image for larger version

Name:	Screenshot 2023-03-19 095257.jpg
Views:	2
Size:	76.2 KB
ID:	200455

From NV I get this in Edge (ftr: my default browser is Firefox)?

Click image for larger version

Name:	Screenshot 2023-03-19 095537.jpg
Views:	4
Size:	372.9 KB
ID:	200456

BR
BetterRed is online now   Reply With Quote
Old 03-18-2023, 07:09 PM   #870
ownedbycats
Grand Sorcerer
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 6,061
Karma: 41077675
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Edge is kind of pushy. Try pressing F1 on a legacy application that still uses .hlp files and you'll see.
ownedbycats is offline   Reply With Quote
Reply

Tags
author aka, author pen name, colors, toolbag, toolbox, tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 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


All times are GMT -4. The time now is 03:36 AM.


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