06-12-2015, 04:42 PM | #1 |
Member
Posts: 22
Karma: 510
Join Date: Jul 2011
Device: kindle
|
Adding a new ebook format
Is there a way to make calibre to recognise a new extension as an ebook (eg recognize .nef as New Ebook Format)?
I know I can add files of any format by explicitly selecting them in the "Add books" dialog but if you have a lot of them in a directory tree calibre will not find them as it does not know that .nef is now an ebook. I am hoping there is a formats.xml or similar file somewhere which controls this behaviour but if there is I can't find it. Thanks, |
06-12-2015, 04:50 PM | #2 |
Resident Curmudgeon
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
.nef is not an eBook format. NEF is Nikon Electronic Format fir RAW image files. So nobody is going to be writing code for Calibre to support Nikon RAW images.
|
Advert | |
|
06-12-2015, 05:12 PM | #3 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Assuming you used .nef as an example you can check out the KePub plugins code at https://github.com/jgoguen/calibre-kobo-driver. I can't remember where exactly, but one of the files there defines the '.kepub' extension so calibre can recognize KePub books made through the conversion plugin.
|
06-12-2015, 05:24 PM | #4 | |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Moderator Notice @shentar - read the "PLEASE READ..." sticky at top of Development sub-forum. can you indicate in your next post whether you're prepared to any necessary development for this. AFAIK - there is no way to add support for new a format without changing the calibre code and/or developing a driver as per jgoguen's post. Convertible formats require Input and Output plugins. You can add non ebook files via the calibredb command using the 'add' option. So you could write a script/batch file to walk your directory tree and add the .nef files via that command. Quote:
BTW is this yours File extension WOLF BR |
|
06-12-2015, 05:51 PM | #5 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
@shentar -- use the Adding books dialog, sorted by filetype, and shift-click to select them all. You will need to set the filter to All files (*) in order to see them. Last edited by eschwartz; 06-12-2015 at 05:55 PM. |
|
Advert | |
|
06-12-2015, 06:26 PM | #6 | |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
AFAIK Windows Explorer and Finder don't have this feature. BR |
|
06-12-2015, 06:37 PM | #7 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Ah -- didn't notice that. Time to break out the bulk file renaming utilities.
Or to be honest a script to walk the tree and use `calibredb add` would be just annoying and more to the point. |
06-12-2015, 07:17 PM | #8 |
Member
Posts: 22
Karma: 510
Join Date: Jul 2011
Device: kindle
|
Thanks guys.
Development work : I affirm that I am willing to do any/all development work for this project, especially given the nature of what I want to do. I am investigating the possibility of misusing (repurposing?) calibre as a front end to my fairly extensive video library. I currently use a WD TV Live box which plays files directly from my NAS. The upside of this is that I don't need to have a PC running. The downside is that I can either use the media library functions on the WD box or simply browse a list of titles. The title list is much faster and more convenient ... until I forget the name. I have set up hard links on the NAS to provide some primitive indexing via lead actor, director, genre, series but it is soul destroying to do this manually. Unfortunately WD have given no indication of upgrading the TV Live to support the more recent video formats (10 bit colour, HEVC and the like) nor do they appear to have any successor products. My plan is to use a small linux computer (intel NUC or even a Raspberry Pi) running calibre and vlc, with the actual calibre library on the NAS. This leaves me with two problems - adding the video files to the library and populating a set of custom columns with director, cast, genre and similar info. If I can add custom "book" types (.mkv, .mp4, .avi etc) then I can use the calibre GUI bulk add to get the actual files into the library, after which I can use a python script to parse my DVD Profiler database and the calibre command line to insert the additional information. As you say, I can parse the file source tree myself but why write code if it is already there and tested I'm willing to write an import plugin if I have to. There will be no file conversion issues for obvious reasons but in fact it would be useful to take control of the file copy operation so that I can keep my existing master library and use links for the calibre library instead of doing a straight copy. The pointer to the KePub plugin may make life a lot easier. TBH, in many ways it would be easier to start with DVD Profiler as the front end but there is no natural way to play a film from within DVD Profiler (it expects them to be on disks) plus there is no native linux version and I can't be asked to write plugins for windows code running under wine. Besides, the typing, sorting, series identification etc is much better under calibre. If this works I will make any plugins and scripts available to anyone who wants them, although I suspect they will need tailoring as this is not intended as a fully general utility, just a one-shot conversion. Just to confirm, .nef was an example, I should have realised that almost all the three letter extensions are already taken. |
06-12-2015, 08:28 PM | #9 | ||
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
I tried using symlinks sometime back, but I got into trouble with renames (via changes to Title and Author) and functions like Copy to Library - the symlinks would become copies. I overcame those issues by using Windows .LNK (shortcut) files, but to sidestep Windows shortcut processing I had to add them via Windows Send to or the command line. Which was a bit of pain. I then used file:\\\blah blah URL's in a long text custom column that I displayed in the Book Details panel - the advantage was that I could have multiple files of the same format in the one 'book'. I now put the file inks etc into an Evernote note and link to it from calibre with an evernote:\\\blah blah link. Evernote has 'richer' editing facilities than calibre's comments editor - but the main reason is that I can get at them on the web or on my tablet where I can add dictated audio to notes. BR |
||
06-12-2015, 09:19 PM | #10 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
You want to take software based around and making assumptions about book files and make it work with videos?
That should be interesting, I look forward to seeing what you come up with! |
06-12-2015, 10:43 PM | #11 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Simply do a search for .nef in windows explorer in the tree you are interested in, and then drag and drop the results into calibre.
|
06-13-2015, 06:07 AM | #12 | ||
Member
Posts: 22
Karma: 510
Join Date: Jul 2011
Device: kindle
|
Quote:
The Evernote technique is an interesting idea, although I don't need it for this as all access will be from within the home. I don't use Evernote currently but several people have recommended it so I should probably revisit it. Quote:
Sigh. I could say "why didn't I think of that" but TBH it has never occurred to me that calibre supports drag'n'drop as an entry method. With a complex piece of software it is too easy to keep doing things the way you always have and not realise there are alternatives. Thanks! |
||
06-13-2015, 07:24 AM | #13 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
06-13-2015, 08:41 AM | #14 | |
Member
Posts: 22
Karma: 510
Join Date: Jul 2011
Device: kindle
|
Quote:
If there is a DVD Profiler plugin for CSV output, on the other hand ... |
|
06-13-2015, 09:20 AM | #15 | |||
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Which is why I referred to symlinks - which will stretch across file systems and partitions and networks. Quote:
Quote:
You could probably find a utility or a site that will transform XML into CSV suitable for use with the Import List PI - or you could have a look at the possibility of adding XML as as input source to the PI BR |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
adding a book in zip format | tsolignani | Library Management | 12 | 08-05-2013 09:44 AM |
Adding another format to an existing book | Len666 | Library Management | 11 | 04-15-2012 01:22 PM |
Manual adding Format | Compere | Library Management | 3 | 01-04-2012 09:44 AM |
Adding Empty Book No Format | onedot3 | Library Management | 3 | 10-26-2011 07:01 AM |
Adding Computer format to About Me | MsAstoria | Feedback | 15 | 03-07-2009 10:27 PM |