![]() |
#436 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,730
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#437 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,989
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Alternately, it could just use the same lower right-corner popup as when it finds a new ISBN, as that's less intrusive.
EDIT: Specifically, this is the problem I have: while it's working fine here, once in a while other dialogs get stuck behind an inactive 'scan failed.' Thankfully all the times it's happened to me there was enough of the title bar peeking out so I could click on it to switch. Last edited by ownedbycats; 10-12-2022 at 08:53 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#438 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,730
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Extract ISBN v1.6.0 Released
Release Notes:
https://github.com/kiwidude68/calibr...ct_isbn-v1.6.0 |
![]() |
![]() |
![]() |
#439 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,989
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quick question about ISBN detection:
While adding a new book, at the same time I check the number of chapters I also double-check ISBNs for accuracy. Noticed this in my latest book: Code:
ISBN: 0-7434-3572-9 eISBN: 9781618242228 ![]() Last edited by ownedbycats; 10-27-2022 at 12:50 AM. |
![]() |
![]() |
![]() |
#440 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,730
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@ownedByCats - Impossible for me to say unless you send me the book, did you look at the log file?
|
![]() |
![]() |
Advert | |
|
![]() |
#441 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,989
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Code:
Starting job: Extract ISBN for 1 books =================================================== Title: The Honor of the Queen Format: EPUB Path: D:\Documents\My Books\David Weber\The Honor of the Queen (7517)\The Honor of the Queen - David Weber.epub --------------------------------------------------- Scanning first 10, then last 5, then remaining 25 files Valid ISBN10: 0743435729 Valid ISBN13: 9781618242228 Valid ISBN10: 0743435729 Invalid ISBN match: 21 99-87041 Scan time: 4.52 secs The isbn was found in 4.52 secs New ISBN extracted of: 9781618242228 =================================================== Scan complete, with 0 failures |
|
![]() |
![]() |
![]() |
#442 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,730
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Yes the plugin will prefer ISBN 13 values over ISBN 10 values if it has both.
|
![]() |
![]() |
![]() |
#443 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,989
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Another "how does this work?" question.
Quote:
Code:
Scanning first 10, then last 5, then remaining 25 files Valid ISBN13: 9781416980452 Invalid ISBN match: 2009018404 Valid ISBN13: 9781416971702 Invalid ISBN match: 1-866-248-3049 Scan time: 0.98 secs The isbn was found in 0.98 secs New ISBN extracted of: 9781416980452 Last edited by ownedbycats; 11-08-2022 at 06:11 PM. |
|
![]() |
![]() |
![]() |
#444 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,730
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Im afraid that sort of question has been asked and answered many times in this thread. There is no “standard” for what ISBN position is in a book, it is at the whim of the publishers. Add in ISBNs for “related” books that they throw in there and there is no rule that can ever be defined to provide a guaranteed particular ISBN. Reverse will give terrible results for as many cases as it will give good ones. Just like looking for particular words being before are just as likely to be after or not present at all.
|
![]() |
![]() |
![]() |
#445 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,989
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, I was mostly just curious why the numbers were in the opposite order as listed in the excerpt. I found a mention of 'the last pages are searched in reverse' when I searched the thread an hour after posting so that answers it.
|
![]() |
![]() |
![]() |
#446 | |
Enthusiast
![]() Posts: 38
Karma: 98
Join Date: May 2022
Device: Kindle Paperwhite 11th Gen (2021)
|
Quote:
To try and get an idea of the various ways I've seen publishers display the eISBN, below is a collage of screenshots from 15 different eBooks in my Calibre library. https://i.imgur.com/SLgu71w.png I feel like if the plugin could possibly use some sort of regex that matches all those variations, it might catch the eISBN 99% of the time. Thoughts? Last edited by Magic815; 11-16-2022 at 08:05 AM. |
|
![]() |
![]() |
![]() |
#447 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,989
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
What if the user could input a custom regex?
|
![]() |
![]() |
![]() |
#448 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,071
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Kiwidude ORIGINATED the plugin. He later went on to other things until the last maintainer passed away (unexpectedly) and he stepped in to keep things running for now. |
|
![]() |
![]() |
![]() |
#449 |
Enthusiast
![]() Posts: 38
Karma: 98
Join Date: May 2022
Device: Kindle Paperwhite 11th Gen (2021)
|
I was able to get some regex help, and someone came up with the following, which seems to work nicely with a lot of the corner cases I've seen in my eBooks.
https://regex101.com/r/UomIXo/2 Thoughts? Edit: Although, I just realized that above regex uses the PCRE2 flavor. But am I understanding correctly that Calibre uses this? https://bitbucket.org/mrabarnett/mrab-regex/src/hg/ (Per this page: https://manual.calibre-ebook.com/regexp.html) Last edited by Magic815; 11-16-2022 at 12:13 PM. |
![]() |
![]() |
![]() |
#450 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2022
Device: PC
|
Quote:
On my windows 11 pro (japanese), I found a difference. the pdfinfo.exe comes with Calibre returns "CreationDate" and "ModDate" with some location info and time zone info written in Japanese characters. While xpdfreader version of pdfinfo.exe doesn't include location and time zone info. The pdfinfo.exe comes with Calibre has a commandline option "-isodates" which prevents japanese character. So I added this option to get_page_count function in pdf.py >raw = subprocess.check_output([pdfinfo, '-enc', 'UTF-8', pdf_name, '-isodates']) This worked for me. But I'm not sure if this modification will cause problem on other platforms. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extract ISBN from PDF? | mdroberts | Calibre | 14 | 12-16-2016 07:32 AM |
[Old Thread] Extract ISBN from file name | ChristianQ | Calibre | 59 | 12-09-2015 05:08 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |
[Old Thread] Auto Extract ISBN-Feature request | UnraisedArc | Calibre | 60 | 03-23-2011 09:31 AM |
Displaying ISBN column in the main GUI | tilleydog | Library Management | 26 | 02-25-2011 04:08 AM |