![]() |
#91 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,454
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Fixed. |
|
![]() |
![]() |
![]() |
#92 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,454
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I see them everywhere, which is what it is supposed to do. The code doesn't ever look at the formats, so I can't see why the file wouldn't be created. There should be a file 'metadata.opf' in every book's folder. Could you confirm again that if you touch metadata (say, tags) for a book with only a PDF, no file metadata.opf is created? And no exceptions are raised? Charles |
|
![]() |
![]() |
Advert | |
|
![]() |
#93 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,097
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I just spot checked a number of folders, some with only PDF, all seem to have a "metadata.opf all dated 9/24/2010 and timestamped 17:35
|
![]() |
![]() |
![]() |
#94 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
No exception raised. I'll do some more searches and report back. |
|
![]() |
![]() |
![]() |
#95 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
Advert | |
|
![]() |
#96 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,454
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
That can take a while. On the serializer_trunk version, that is around 60 books per minute. The release code is (I think) around 100 books per minute. Charles Last edited by chaley; 09-26-2010 at 02:11 PM. Reason: Edit: change book rate to what should be the right value |
|
![]() |
![]() |
![]() |
#97 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Sorry for the false alarm. |
|
![]() |
![]() |
![]() |
#98 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,454
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The second is wrong because *nothing* should be displayed when the book has no series. The '00' shouldn't be there. I will fix this as well. Note: if you really want the 00, you use another field and the ifempty function. Create a composite field containing {series_index:0>2s}, lets call it AA. In the original you would use {Author} - {Series} {AA:ifempty(00)} - {Title} |
|
![]() |
![]() |
![]() |
#99 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
Quote:
![]() Edit: is there a list of "commands" (for lack of a better word) you can use inside the field? (such as the "ifempty" and "0>2s")? Last edited by Sweetpea; 09-26-2010 at 12:53 PM. |
|
![]() |
![]() |
![]() |
#100 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
|
|
![]() |
![]() |
![]() |
#101 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Charles,
This is really low priority, but would it be possible to have a field reference {id} to reference the book ID? I've had a few cases where I want to access the ID. If you're in that area of the code and feel like adding it, I'd use it. Thanks. |
![]() |
![]() |
![]() |
#102 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,454
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I submitted the (one line) change to Kovid to put id into the Metadata using {id}. Edit: code is in the serializer trunk, and will be in the next beta Last edited by chaley; 09-26-2010 at 02:25 PM. |
|
![]() |
![]() |
![]() |
#103 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
#104 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
These custom fields got my imagination working...
One problem I have, is that my various readers all use a different way of displaying books. On my WinCE/WinMobile devices, I use Mobipocket. I find using categories on Mobipocket is not easy if you've more categories than your screen is high (and on my PDA, that means no more than 10 categories!). So, I added my OPF files so that the "dc:title" is filled with (let's phrase it with Calibre names): {author_sort} - {series} {series_index} - {title} On my BBMini, I don't care what the metatags are filled with, it won't read them anyway (but show the filename instead). The Sony does categories a bit more friendly, so I'm looking into that. But, the long titles can become annoying in that case. So, I'd like to make my title more like {series} {series_index} - {title} But, I don't want two different source OPF files! Now, Calibre does make an OPF file next to my book file. Wouldn't it be nice, if I were able to say what fields would be used to fill in those basic OPF fields (author and title, mostly)? so, something like: <dc:title>{series} {series_index} - {title}</dc:title> <dc:creator opf:file-as="{author_sort}" opf:role="aut">{author}</dc:creator> |
![]() |
![]() |
![]() |
#105 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
I have installed 0.7.903
I have made backup of my library and tried some things. Let's see if I can break something [insert Mad scientist laughter here]. I tried to import some 3000 books with metadata in filenames. Format like "Jack London=the call of the wild.txt". I have created those files from a folder structure that had books like London_Jack/the_call_of_the_wild.txt" using shell script. I have clicked on import and then I realized I forgot to set Preferences -> Import/export -> Adding books -> Regular expression. So I started to click very furiously on the Abort button. Calibre did not stop importing. It displayed "Aborting" in the message and happily continued to import garbage for next hour or so. I had to delete books and import them again. The process seems to have finished successfully, but the program displayed curious message that the import process hanged. I have tried to make a custom column, built from other columns. When I sort this column, it does not sort by alphabet (ignoring case) but "the Unix way" with A, B, C, ... Z, then a, b, c, ... z Windows users are not used to this. They want to have it sorted regardless of case. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sony collections and custom fields: how to handle duplicates? | chaley | Calibre | 13 | 09-02-2010 04:11 PM |
Amazon integrates Video and Audio with Ebooks | luqmaninbmore | News | 22 | 06-28-2010 06:22 PM |
PRC file doesn't fully import into Calibre | MSJim | Kindle Formats | 1 | 06-01-2010 02:55 PM |
Calibre custom news feed and python help. | harrynewman | Calibre | 4 | 10-08-2009 09:26 AM |
Smashwords integrates with Stanza, optimized for iPhone | Smashwords | News | 1 | 11-29-2008 03:26 PM |