Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2025, 12:08 PM   #1
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
How to add a new File Type

I'm a little confused on how to add a new file type in Calibre to recognize it as a book, like epub, aws etc..
It should be for physical books.
msavazzi is offline   Reply With Quote
Old 10-18-2025, 12:27 PM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,949
Karma: 243829933
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
What do you mean? Physical books have no file type. You just create an empty book (right-click on Add Books -> Add empty book).
Sirtel is offline   Reply With Quote
Advert
Old 10-19-2025, 10:56 AM   #3
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
@sirtel
I do want to create a .pbook file as shown here https://www.davideaversa.it/blog/how...sical-library/
that uses TOML to describe book.
So I create a pbook file for each of my physical books and I'd like to have them behave like normal ebooks, so I can add them from folder and subfolder etc.
Also as it a plain text it would be great if with a double click the content is shown

here: https://github.com/msavazzi?tab=repositories
you can see the code I've developed to scan the books and create the pbook files.
I've also created a plugin to read them but it is not a full "ebook" support. It allows me to add them one by one

Last edited by msavazzi; 10-19-2025 at 10:59 AM.
msavazzi is offline   Reply With Quote
Old 10-19-2025, 11:00 AM   #4
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
Quote:
Originally Posted by Sirtel View Post
What do you mean? Physical books have no file type. You just create an empty book (right-click on Add Books -> Add empty book).
I'm following the idea of having a TOML file, .pbook, with some of the key data of the book there.
I can also add a location to find it
msavazzi is offline   Reply With Quote
Old 10-19-2025, 01:25 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,238
Karma: 61360164
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
An empty book creates everything that any other format does EXCEPT there is no format file.

This is how I documented my Paper Library (note the only ting missing from this view is Book Formats)

You can even calibre search for these
Code:
formats:false
FWIW I have not tried to attach other 'data' files to one of these, simply because I don't use that feature ANYWHERE.
Attached Thumbnails
Click image for larger version

Name:	emptyBook.JPG
Views:	11
Size:	13.5 KB
ID:	218712   Click image for larger version

Name:	EBcalibre meta.JPG
Views:	13
Size:	125.2 KB
ID:	218713  
theducks is offline   Reply With Quote
Advert
Old 10-19-2025, 05:56 PM   #6
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
Quote:
Originally Posted by theducks View Post
An empty book creates everything that any other format does EXCEPT there is no format file.

This is how I documented my Paper Library (note the only ting missing from this view is Book Formats)

You can even calibre search for these
Code:
formats:false
FWIW I have not tried to attach other 'data' files to one of these, simply because I don't use that feature ANYWHERE.
Sounds like what I want to do but I did not understood what im means "format:false" where you put it?
how you create the opf?

Thanks
msavazzi is offline   Reply With Quote
Old 10-19-2025, 06:15 PM   #7
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,949
Karma: 243829933
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by msavazzi View Post
Sounds like what I want to do but I did not understood what im means "format:false" where you put it?
how you create the opf?

Thanks
The opf is created automatically. Right-click on Add books -> Add empty book.

Format:false is what you enter in the search bar if you want to find your paper books (i.e. books without formats). You can save the search or create a virtual library based on it.
Sirtel is offline   Reply With Quote
Old 10-19-2025, 06:16 PM   #8
BetterRed
null operator (he/him)
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: 21,996
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by msavazzi View Post
. . .

So I create a pbook file for each of my physical books and I'd like to have them behave like normal ebooks, so I can add them from folder and subfolder etc.
Also as it a plain text it would be great if with a double click the content is shown
. . .
On Windows… not sure about MacOS and Linux.

Change the file type selector in the Add books->Add books from a single folder->Select Books dialogue to All files (*.*).

Click image for larger version

Name:	1.jpg
Views:	9
Size:	114.3 KB
ID:	218725

I have paperback and hardback file types (they're just text files), which I've set to open in Notepad (via Windows-File Explorer->Open with).

Click image for larger version

Name:	2.jpg
Views:	11
Size:	80.0 KB
ID:	218726

As can be seen I name the files with a <title> - <author> template

When View these books from calibre Notepad will pop:

Click image for larger version

Name:	3.jpg
Views:	13
Size:	578.2 KB
ID:	218727

Moderator Notice
I will move this thread to Library Management.


BR
BetterRed is offline   Reply With Quote
Old Yesterday, 04:43 AM   #9
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
Quote:
Originally Posted by BetterRed View Post
On Windows… not sure about MacOS and Linux.

Change the file type selector in the Add books->Add books from a single folder->Select Books dialogue to All files (*.*).

Attachment 218725

I have paperback and hardback file types (they're just text files), which I've set to open in Notepad (via Windows-File Explorer->Open with).

Attachment 218726

As can be seen I name the files with a <title> - <author> template

When View these books from calibre Notepad will pop:

Attachment 218727


I will move this thread to Library Management.

BR
This is very nice I was doing something similar with the .pbook files and it works.
I was trying to use the:
Add Books -> Add from folders and sub-folders

but I understood it works only if the file format is recognized by calibre as an official "ebook".
msavazzi is offline   Reply With Quote
Old Yesterday, 07:26 AM   #10
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
Quote:
Originally Posted by theducks View Post
An empty book creates everything that any other format does EXCEPT there is no format file.

This is how I documented my Paper Library (note the only ting missing from this view is Book Formats)

You can even calibre search for these
Code:
formats:false
FWIW I have not tried to attach other 'data' files to one of these, simply because I don't use that feature ANYWHERE.
I think I can create all the OPF from excel instead of pbook format and it will read all the info, so I will not need the .pbook plugin, is an easier option

Last edited by msavazzi; Yesterday at 07:30 AM.
msavazzi is offline   Reply With Quote
Old Yesterday, 07:33 AM   #11
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
the only weird thing is that when I import the OPF I end up in a folder with 2 opf files :O


it's weird
and if I double click it... in calibre... it does not open it

while with the pbook I have the pbook file and the metadata.opf
Attached Thumbnails
Click image for larger version

Name:	lydrNRD5Zjba.png
Views:	0
Size:	12.3 KB
ID:	218771  

Last edited by msavazzi; Today at 12:48 PM.
msavazzi is offline   Reply With Quote
Old Yesterday, 07:38 AM   #12
BetterRed
null operator (he/him)
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: 21,996
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Have you considered using the Import List plugin.

BR
BetterRed is offline   Reply With Quote
Old Yesterday, 11:29 AM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,238
Karma: 61360164
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by msavazzi View Post
This is very nice I was doing something similar with the .pbook files and it works.
I was trying to use the:
Add Books -> Add from folders and sub-folders

but I understood it works only if the file format is recognized by calibre as an official "ebook".
Is there anything IN that .pbook file? Or is it simply the file existence that represents you have that book?
If it is the former (empty file), do a (command prompt)
Code:
DIR *.pbook /S >foo.csv
then use the Import List plugin (using that foo.csv file)to make Calibre entries

use DIR /? to see what you can do with the DIR , I recursively scanned subdirs (/S) and redirected the normal screen output (>) to foo.csv in this case.
The Import List PI has a CSV tab and options.
theducks is offline   Reply With Quote
Old Yesterday, 11:33 AM   #14
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
Quote:
Originally Posted by BetterRed View Post
Have you considered using the Import List plugin.

BR
I was not aware of it amazing
msavazzi is offline   Reply With Quote
Old Yesterday, 11:38 AM   #15
msavazzi
Member
msavazzi began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2025
Device: Boox
Quote:
Originally Posted by theducks View Post
Is there anything IN that .pbook file? Or is it simply the file existence that represents you have that book?
If it is the former (empty file), do a (command prompt)
Code:
DIR *.pbook /S >foo.csv
then use the Import List plugin (using that foo.csv file)to make Calibre entries

use DIR /? to see what you can do with the DIR , I recursively scanned subdirs (/S) and redirected the normal screen output (>) to foo.csv in this case.
The Import List PI has a CSV tab and options.
In the file I usually put the metadata (name, isbn, author, tags, etc...) but I should be able to do it in excel

I did a test but it does not update the Sort Title correctly, I've updated the notes in the thread

Last edited by msavazzi; Yesterday at 11:48 AM.
msavazzi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Type of File Column and file location csmall Library Management 6 04-07-2023 05:11 PM
[File Type Plugin] Automatically Add Covers to .djvu Files on Import hazel.noelle Plugins 4 01-07-2023 07:33 AM
File Type Plugins and Add Format tools BetterRed Calibre 6 10-04-2019 07:35 AM
Automatic Adding Add file type to ignore list toomuchreading Calibre 5 01-14-2015 06:44 PM
Display File Type and Sort by Type pragmortal Calibre 7 09-21-2009 08:07 PM


All times are GMT -4. The time now is 05:48 PM.


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