View Single Post
Old 06-20-2015, 11:53 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,482
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Thomas_AR View Post
1. To read? Making CC a epub/ebook reader?
No. I mean using CC as it was designed, as a library manager. You find the book in CC and launch the reader app from there.
Quote:
2. I do not think storing the downloaded book in the CC library is a good idea as for example everybody uses different ways to store the books in the library, when they got send from Calibre to the device with CC.
For example i store series "_series/_series-number - title" other books with no series "author/title - author". Solution would be to use/import the same template for that as in Calibre.
The entire point of CC Cloud is to put books into CC's library. That will not change.

The problem of filenames has been in the CC content server connection for years. It seems that most users do not care, but some do.

CC Cloud uses the same naming algorithm used by CC content server (title - author) or the book's UUID (if set in settings). If the user checks the setting "Use calibre file names" (an option added last year IIRC) then in many (but most assuredly not all) cases the content server can get access to the template. This is not possible for CC Cloud.

Implementing calibre's template language in CC is far too hard especially for the limited benefit, so the general solution of "copy calibre's template" is not available. I am willing to consider a small subset of the language, for example templates that contain constant text and the following substitution variables:
  • {series}
  • {series_index}
  • {authors}
  • {first_author} (what in calibre would be {authors:sublist(0,1,&)}
  • {title} (the real title complete with leading articles)
  • {title_sort}
  • {id}
I am also willing to handle the prefix and suffix stuff, but not the format qualifier. In other words, I think I can deal with templates containing {column:|text|text}.

Some notes:
  • This proposal will not allow you to duplicate your calibre template. It does not have enough "power" to generate such widely varying template results.
  • If the path must be shortened (for various reasons the result of the template is limited to 210 characters) then it is certain that calibre and CC will use different algorithms and generate different results.
  • Calibre does very complex things with non-ASCII letters, for example most accented letters, something that CC won't do, again generating different file names.
For these reasons I am not at all convinced that doing this work is worth the effort.

As an alternative to the above, I could add an option forcing CC Cloud to ask you where to put the book in CC's library. That would give you total control, but it would also mean that "Download all" would need to be permanently disabled because no user interaction is possible.
Quote:
Further I do not know if than Calibre recognizes the downloaded book on the device as "on device" when connecting them both.
It does.

Last edited by chaley; 06-20-2015 at 11:55 PM.
chaley is offline   Reply With Quote