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 08-05-2013, 09:57 AM   #1
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
Post How to create 66 similar libraries?

Very sorry to ask this question. Perhaps it has already been discussed, but I have not found or did not understand.
There is a list of books in one folder. From it you need to create 66 similar libraries for conversion into a folder from number 1 to number 66. As noted in the search bar when creating a library to do that?

Thank you.
Asche is offline   Reply With Quote
Old 08-05-2013, 10:11 AM   #2
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: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Conversion alone does not require additional Libraries.
One of every possible output format can exist in a single library RECORD (line item)

The only case that comes to mind is you must have the SAME book format with significant style attribute(geometry) changes because of multiple device requirements . For most devices, reflow does this on a decently designed novel . Books with charts and Tables are the ones that need special TLC versions.
theducks is offline   Reply With Quote
Advert
Old 08-05-2013, 10:19 AM   #3
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
And one more question.
Is it possible to create a library, preserving the structure (the main folder \ subfolder level 1 \ sub-folder level 2)? For example: Conan \ Conan and Sword the Sorcerer \ Volume 1.

I need all of these 66 libraries made ​​from a list of books to convert at the same time but with different fonts. I hope this clarification will help to understand my need.

Last edited by Asche; 08-05-2013 at 10:22 AM.
Asche is offline   Reply With Quote
Old 08-05-2013, 10:35 AM   #4
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: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
First of all, that is NOT a normal Calibre Library structure you show
Calibre has it's own filing.

66 different fonts
Why not use 66 Stylesheets (with matching OPF files listing the current fonts)?

Or K.I.S.S.

Make 66 font sets and use a common file name so the OPF and CSS stay the same.
Font1.TTF
Font2.TTF
...
then use Tweak EPUB and switch out fontfiles


If you still want to do the Library way:
Calibre does have a 'Copy to Library'

You create additional Libraries (with the same structure) , then select books: right click: copy to library
theducks is offline   Reply With Quote
Old 08-05-2013, 10:39 AM   #5
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
And the output format - the only epub.
Asche is offline   Reply With Quote
Advert
Old 08-05-2013, 10:49 AM   #6
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: 30,939
Karma: 60358908
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 Asche View Post
And the output format - the only epub.
Not all other formats support embedded fonts, which is why I assumed EPUB
theducks is offline   Reply With Quote
Old 08-05-2013, 03:03 PM   #7
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
I understand your options. But as long as I do so that it is easier: to create 66 libraries (of 300 books each) and put them on the conversion, each on its own font. While there is this work I have been doing other things. Question - how to ensure that these libraries are not mixed in Calibre?
Asche is offline   Reply With Quote
Old 08-05-2013, 03:39 PM   #8
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
The easiest way to handle this would most likely be to use the command line tools and scripting.

Don't use calibre libraries. Instead use a folder with all the books that you prepare using calibre and save to disk. And perhaps another folder with the fonts.

For each font and book combination, convert and save the converted book to a new folder named after the font. Two loops. One loop over the fonts, the other over the books, inside the other.

See: http://manual.calibre-ebook.com/cli/ebook-convert.html

Test it with three fonts and three books until you get it working.

If you want to you can import the books to separate calibre libraries afterwards. Or change the metadata for the books to include the font name in the title, and import all to the same calibre library and use virtual libraries instead.

If you don't have the necessary programming/scripting skills, then hire someone that has. It is not very advanced.

Last edited by Adoby; 08-05-2013 at 06:44 PM.
Adoby is offline   Reply With Quote
Old 08-05-2013, 09:55 PM   #9
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Or you could make one library, do your conversions and copy that library to another location and rename it. If you have the tweak keep original file name set to on you would always be staring from the original file. Or you could convert the books and write them to disk in any way you chose with any file system you chose.

Seems like a lot of work though h however you do it.
speakingtohe is offline   Reply With Quote
Old 08-06-2013, 12:38 AM   #10
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
Here is a minimal script to do the job. Written for bash. Tested in Ubuntu 13.04 with calibre 0.9.38.

Assumptions:
  • The original epub books are all in the folder ./books when the script is started. No other files are there, except the epub books.
  • Names of all fonts are in the file ./fonts.txt. One line per font name.
  • The fonts are installed in your system.
  • The original books are all in good shape and no fonts are embedded in them.
  • You will most likely wish to add more options to the ebook-convert command.

You can have as many fonts and books as you like.

The script will create a output directory ./books-FontName for each font and store copies of all the converted books, with the same name as the original books, with the font embedded as the base font.

Sample fonts.txt:
Code:
Liberation Serif
Bitstream Charter
DejaVu Serif
FreeSerif
The script:
Code:
#!/bin/bash
cat fonts.txt | while read FONT     # loop over font names in fonts.txt
do
   mkdir """books-$FONT"""          # create output direcory
   cd """books-$FONT"""             # and make it current
   for BOOK in ../books/*           # loop over the books
   do
      ebook-convert """$BOOK""" .epub --embed-font-family """$FONT"""
   done
   cd ..
done
I believe free/opensource versions of bash are available to install and run in Windows. I have not tested to see if the script works in Windows.

Last edited by Adoby; 08-06-2013 at 01:09 AM.
Adoby is offline   Reply With Quote
Old 08-06-2013, 03:16 AM   #11
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
Programming ... I just wanted to make a book with different fonts ... Journey into the deep ass begins ... Tambourine is included in the script?

Last edited by Asche; 08-08-2013 at 07:42 AM.
Asche is offline   Reply With Quote
Old 08-06-2013, 05:54 AM   #12
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
Quote:
Originally Posted by Asche View Post
Programming ... I just wanted to make a book with different fonts ... Journey into the deep ass begins ... Tambourine is included in the script?
You wanted to make 19800 copies of books from 66 fonts and 300 original books.

So, yes. Both a tambourine and a harmonica are included. However bells and whistles are not. You'll have to add them yourself.

If you install Cygwin (free) you should be able to run the script in Windows.

http://www.cygwin.com/

Last edited by Adoby; 08-06-2013 at 09:29 AM.
Adoby is offline   Reply With Quote
Old 08-07-2013, 05:34 AM   #13
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
Thank you for your help. I'm a little know how to play the harmonica - I now probably almost a programmer. Have a tambourine knock - go get a diploma.
I was trying to sort out your advice, but apparently I'm Oak ... With libraries come up with is this: Create a library with the name "author - № 0-1 (2, 3 ...)", sort them by author and rating (0-5), and thus put on the conversion.

Last edited by Asche; 08-08-2013 at 07:42 AM.
Asche is offline   Reply With Quote
Old 08-07-2013, 07:15 AM   #14
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
OK, I think you are trying to do something very special. I'm not sure what.

Possibly some form of "fingerprinting" in a social experiment with sharing, designed to allow you to trace books back to the source?

First there were 66 identical sets of 300 books, but with different fonts. Now it is also sets based on author and ratings?

It would be fun if you could be more specific about what you are trying to do.
Adoby is offline   Reply With Quote
Old 08-07-2013, 02:43 PM   #15
Asche
Member
Asche began at the beginning.
 
Asche's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2013
Location: Marseille
Device: Sony Reader Daily Edition PRS-900
It's magic! The great secret!
I translate books by famous authors completely different genres (fiction, detective, school and college textbooks, training courses, etc.) selected by me on 66 fonts (was 100 - but this is too much and the volume of work, and on the similarity of fonts).
Here is the archive of fonts (only 47 pcs.), Use - http://yadi.sk/d/uHtAXjzd7fbxg, here is a sample of the book on my favorite font - http://yadi.sk/d/XLrgy_7I7fd9B (if there are problems with the download, write, fix it.)
Naturally all in the first place Cyrillic, and then to Latin, if they are able to support. (I recommend Beaumarchais (kir. and Latin.) - Is in my Windows, browser - anywhere in general. Ecstasy...) I'm sure you'll find yourself on niche sites like.

Feature fonts other than the standard sizes: regular font - empty, it lacks the emotional background. It's an emotional emptiness that fills the reader. Most often, when reading the background may appear negative emotions accumulated a man that is very difficult to prevent and learning.
The font has its own history, style and character - acts as a companion, a story through text. Thus, an establishment in the subconscious mind of the reader, it is perfectly comfortable for him a form of the text, which increases read performance and digestibility of reading material. Simply put, better memory remembers exactly the emotional color of the text, which is the closest mental \ personal atmosphere of the reader.

Last edited by Asche; 08-08-2013 at 07:42 AM.
Asche is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Calibre Ebooks list as Word doc or similar? book64 Calibre 8 02-12-2013 09:32 AM
Similar to I Am Legend geordietastic Reading Recommendations 21 11-02-2012 12:47 AM
New eReader with similar name Xennex1170 Kobo Reader 3 11-29-2011 08:36 AM
I know I am not supposed to create multiple libraries, but . . . Sydney's Mom Calibre 10 09-02-2010 10:42 AM
Do you use the Similar Threads feature? Alexander Turcic Feedback 23 05-22-2008 11:28 PM


All times are GMT -4. The time now is 11:37 PM.


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