Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 01-19-2018, 08:20 AM   #1
rashuf
Junior Member
rashuf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: TeXet 710HD
Smile Calibre content server

Hi!
I built Calibre with utf8 support - I added option "Do not use translit when adding book" on Preferences\Adding book. This option is important for me. I read this thread https://www.mobileread.com/forums/sh....php?p=3297688. I added russian (I'm from Russia) translation and correct the content server translations.
All work fine, but i don't add the same option for content server. I modified content.py\book_filename. Now I click download button, I get 404 error. Why?? What can read about content server?
PS: Are you interest utf8 support for files in calibre library?
rashuf is offline   Reply With Quote
Old 01-19-2018, 09:58 PM   #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: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No filenames in the calibre library will always be ascii only, for widest compatibility. Similarly the content server uses ascii encoding for the content-disposition header, because there is a lot of http middleware that mangles non-ascii headers.
kovidgoyal is offline   Reply With Quote
Old 01-20-2018, 03:43 AM   #3
rashuf
Junior Member
rashuf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: TeXet 710HD
Hi, Kovid!
Yes, I know that ascii-translit is for widest compatibility. But added option (do not use translit) is one of more options - by default, is disabled.
https://bitbucket.org/rashuf/calibre_improved
I want add path/filename template preferences for added books - it looks like metadata reading preferences. These features make calibre is catalog program. Processed (added to calibre) books will be easy to find without calibre. This is bad?

I also met that users want this feature for great program Calibre.

https://github.com/kovidgoyal/calibre/pull/80
https://www.mobileread.com/forums/sh...d.php?t=102686
https://www.mobileread.com/forums/sh...d.php?t=138215
https://bugs.launchpad.net/calibre/+bug/812321
https://bugs.launchpad.net/calibre/+bug/1035886
https://bugs.launchpad.net/calibre/+bug/1152811
https://bugs.launchpad.net/calibre/+bug/1222466

Last edited by rashuf; 01-20-2018 at 03:47 AM.
rashuf is offline   Reply With Quote
Old 01-20-2018, 09:55 PM   #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: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, it is bad, because it can lead to data loss and it means that I have to provide support for people using that option that run into problems.
kovidgoyal is offline   Reply With Quote
Old 01-20-2018, 10:56 PM   #5
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: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually, with the content server it may be possible to use RFC 6266 (which is not yet a standard but widely supported) to have non-ascii filenames in the content-disposition header. It would need testing on a wide variety of browsers/devices to ensure it does not break things.
kovidgoyal is offline   Reply With Quote
Old 01-21-2018, 03:06 AM   #6
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: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...ab8888d38e12f1
kovidgoyal is offline   Reply With Quote
Old 01-21-2018, 04:54 AM   #7
rashuf
Junior Member
rashuf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: TeXet 710HD
It's clear.. But strange, because utf8 - it's standard de-facto. I tested on Windows - all is work..
Ok! But I don't understand how book filename from temp folder (for example "C:\Users\ROR\AppData\Local\Temp\calibre_xgziak\sr v-deaebc\fcache\f\fmt-Calibre_Library-f.fb2") is transformed in "Gierbiert. Diuna. Piervaia triloghiia - Frenk Gierbiert_15.fb2". Please, help me understand this. I don't know python or js. I tried to debug through VS and Firefox, but understood nothing.
...
YES! Thank you!! I will try this.

Last edited by rashuf; 01-21-2018 at 04:59 AM.
rashuf is offline   Reply With Quote
Old 01-22-2018, 12:07 PM   #8
rashuf
Junior Member
rashuf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: TeXet 710HD
Thank you, Kovid, again! It works fine!
PS: i forgot about utf8 urls For example, https://ru.wikipedia.org/wiki/Calibr...BC%D0%BC%D0%B0) - ru.wikipedia.org/wiki/Calibre_(программа)
rashuf is offline   Reply With Quote
Old 01-22-2018, 12:43 PM   #9
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: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are welcome
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre-sync: Automatically download books from your Calibre Content Server onto Kobo mishagale Related Tools 14 05-13-2019 05:18 PM
installing Calibre content server 3 on ubuntu server 16_04 khyox Calibre 22 01-06-2018 11:34 PM
Calibre Content Server and Windows Home Server 2011 HughMcC Calibre 8 10-01-2014 07:26 AM
Calibre Content Server deamon_knight Devices 1 10-02-2013 10:23 AM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM


All times are GMT -4. The time now is 07:49 PM.


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