View Single Post
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,905
Karma: 47303824
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