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 04-04-2022, 02:13 AM   #1
Orville Q. Song
Junior Member
Orville Q. Song began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2022
Device: none
Smile Feature request: Add an non-acsii-ized option to calibre.

Hello.

I'm a Calibre user from China using Chinese and Japanese, and I'm not sure where to submit Feature request so I end up here.

I saw a lots thread talking about store non-acsii filenames in library with Unicode, but the answer is always no. Still I want to try again cause this is actually a big deal for CJK user's experience (especially for those who use calibre-web like me), or we won't ask this feature for years.

The latest version of calibre-web(a web interface for calibre metadata.db) store books with Unicode by default, because unlike "Saving to disk" in Calibre, it can only serve the file as it in the library. I could open the metadata.db managed by Calibre-web, but if I did something like rename the book, or convert the book, everything will be mess-up. I have about 100 epub books in my server, and if I want to convert them to azw3 without a mess, I have to manually convert each book once a time thorough the Calibre-web.

I do understand this was designed to prevent bugs filenames when sent to devices are ascii-ized, but I also believe if someone use languages other than English, it's basically impossible for him to have an ascii only device. And also, give the user choice is always not a bad idea, right?

So would you please add unicode support to library and e-book convert in Calibre as an option (or a plugin?) to help us life get easier?

Thank you.

Last edited by Orville Q. Song; 04-04-2022 at 02:15 AM.
Orville Q. Song is offline   Reply With Quote
Old 04-04-2022, 02:38 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,041
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is absolutely no reason for calibre-web to use ascii filenames if it doesnt want to. It can use whatever filename it likes regardless of the filename in the calibre library.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-04-2022, 04:54 AM   #3
Orville Q. Song
Junior Member
Orville Q. Song began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2022
Device: none
Smile

Quote:
Originally Posted by kovidgoyal View Post
There is absolutely no reason for calibre-web to use ascii filenames if it doesnt want to. It can use whatever filename it likes regardless of the filename in the calibre library.
Yes, they are. But if someone use calibre-web with Language other than English like me and who wants to manage the library with calibre like alter hundreds metadata or convert hundreds books from EPUB to AZW3 at once will end up with a messed up library.

So, I'm wishing there could be an option (or a plugin) to disable the ascii-ize of the author and title. Which I remembered there was a solution before version 5, which just need to comment 4 lines of code in `/usr/lib/calibre/db/backend.py`

So, could you please give the user choice on this feature?

Thank you.
Orville Q. Song is offline   Reply With Quote
Old 04-04-2022, 04:57 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,041
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorry I dont follow. Regardless of how many books you convert or metadata your edit, the filenames inside calibre will not get messed up in any way. If that happens then it is a bug in calibre-web and I suggest you use calibre's builtin server instead.
kovidgoyal is offline   Reply With Quote
Old 04-04-2022, 05:16 AM   #5
Orville Q. Song
Junior Member
Orville Q. Song began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2022
Device: none
The filenames get messed up is because Calibre-web use unicode to store books as it is in the library, but Calibre convert unicode filenames to acsii first.

So if I create a blank library and store a CJK book with Calibre-web, the file structure will looks like this:

.
├ metadata.db
└ 水浒传 (1)
├ cover.jpg
└ 水浒传 - 施耐庵.epub

And if I want to convert this book to azw3, it will end up like this.

.
├ metadata.db
└ 水浒传 (1)
├ cover.jpg
├ 水浒传 - 施耐庵.epub
└ shui hu zhuan - shi nai an.azw3

Then, if I alter some metadata within this book, It will create another folder call "shui hu zhuan (1)" and leave the original folder there.

And since Calibre-web can only serve the book in the library "as it", this will create an absolute mess.
Orville Q. Song is offline   Reply With Quote
Advert
Old 04-04-2022, 08:00 AM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,681
Karma: 306652114
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
The file names used inside the calibre library are up to calibre. If Calibre-web does not follow the same rules as calibre, that is a bug in Calibre-web.
pdurrant is offline   Reply With Quote
Old 04-04-2022, 09:24 AM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Orville Q. Song View Post
The filenames get messed up is because Calibre-web use unicode to store books as it is in the library, but Calibre convert unicode filenames to acsii first.

So if I create a blank library and store a CJK book with Calibre-web, the file structure will looks like this:

.
├ metadata.db
└ 水浒传 (1)
├ cover.jpg
└ 水浒传 - 施耐庵.epub

And if I want to convert this book to azw3, it will end up like this.

.
├ metadata.db
└ 水浒传 (1)
├ cover.jpg
├ 水浒传 - 施耐庵.epub
└ shui hu zhuan - shi nai an.azw3

Then, if I alter some metadata within this book, It will create another folder call "shui hu zhuan (1)" and leave the original folder there.

And since Calibre-web can only serve the book in the library "as it", this will create an absolute mess.
Um no. Calibre-web is a web app that displays data from a calibre library. It will have an option to download books to your local storage to read. Or read them in the browser. What calibre-web send when does not have to have any real relationship to where the data is stored on the server. It is reading the metadata.db, so it know what the metadata is and hence the non-ASCII titles. And that is what the calibre-web should be displaying when you use it. Calibre-web also knows what the file name on the server is. When the file is requested, calibre-web can send it as any file name it wants to. Or it could add the appropriate header to the response to suggest the file name, such as unicode version of the title. You need to ask the calibre-web developer to do this.

Of course, calibre-web might already be doing this, but, it is also up to the browser and OS it is running on to support it.
davidfor is offline   Reply With Quote
Old 04-04-2022, 03:33 PM   #8
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,303
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Unfortunately calibre-web also allows editting of metadata, deletion and addition of books. I for one would be concerned about using it to manage my library.

Sent from my Pixel 4a using Tapatalk
PeterT is offline   Reply With Quote
Old 04-09-2022, 07:25 AM   #9
Orville Q. Song
Junior Member
Orville Q. Song began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2022
Device: none
Smile

I think we are getting into a dead loop here. Calibre-web is just a reason why I personally wish calibre could store and convert books in library without asciied their names, the real matter here is to give the user option, not whose fault on misuse the software.

I compiled myself an old version of Calibre with only 4 lines code in /src/calibre/db/backend.py commented and it works fine for my situation with zero errors, which I believe lots of people faced the same. I'm not a python programmer after all, I found tutorials online to help me with that.

So, sincerely. I really wish this could be a tweak option so we, the user can easily deal with the situation I faced without pain.

If you guys are not interest with this, I'll try to open a pull request myself which, at least I tried.

And finally, Thanks for your amazing works on this amazing software.
Orville Q. Song is offline   Reply With Quote
Old 04-09-2022, 02:40 PM   #10
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,681
Karma: 306652114
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
You should not be interested in the file names in the calibre database.

Without having tested it, I assume that the name remains in the unicode in the display in calibre, and in exported copies of the book.
pdurrant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: Option to display the filename at the top of the Viewer window lkstrummer Viewer 2 07-01-2021 11:39 PM
Feature Request: Option to disable creation of NCX ibu Sigil 9 03-15-2017 12:11 AM
Feature Request: Option to unmount/mount SD Card after sync RobFreundlich Calibre Companion 4 03-09-2014 09:12 PM
[Feature Request] Adding Books: Option to guess ISBN timtam Calibre 4 09-25-2013 06:09 AM
Feature Request - Edit File Option fcoulter Calibre 10 07-22-2010 12:56 AM


All times are GMT -4. The time now is 12:01 PM.


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