![]() |
#181 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Kindle
|
Does anyone have any idea why my custom column has broken somewhere between version 7.37 and 7.43. It was working fine but now says unknown id str_title1.
Problem appears to be in the switch statement code as follows:- program: stripped=re(field('series'), '^(A|The|An)\s+', ''); shortened=shorten(stripped, 4, '-' ,4); initials=re(stripped, '[^\w]*(\w?)[^\s]+(\s|$)', '\1'); s_index=template('{series_index:0>2.0f}'); abrv=strcat( switch( stripped, '.\s', initials, '.', shortened, field('series')), test(s_index, strcat(' ', s_index, ': '), ''), field('title')); str_title1=template('{series}{series_index:0>2.0f| |: }{title}'); str_title2 = template('{#alt_series_name}{series_index:0>2.0f| |: }{title}'); str_title3 = abrv; str_title4 = template('{series_index:0>2.0f| |: }{title}'); str_title5 = field('title'); str_default =test(field('#alt_series_name'),str_title2, str_title1); str_input = lowercase(field('#kindle_title_fmt')); switch(str_input, 'Series and num',str_title1, 'alt and num',str_title2, 'short and num',str_title3, 'num only',str_title4, 'no series info',str_title5, str_default); |
![]() |
![]() |
![]() |
#182 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're better off opening a ticket as chaley who maintains this code doesn't visit mobileread any more.
Last edited by kovidgoyal; 02-01-2011 at 07:25 PM. |
![]() |
![]() |
![]() |
#183 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Kindle
|
On a second issue is there anyway to evaluate the formats and put a Y in a column if the book has a MOBI format?
suspect it is {formats:switch(.......)} but not clever enough to get it working... thks stephen |
![]() |
![]() |
![]() |
#184 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
![]() Quote:
In the absolutely first post in this thread, with the heading "Common composite custom columns" There's an example of a custom column set to Yes if ebook format is like "*EPUB*". Display Yes if the book has an EPUB format. Template:{formats:contains(EPUB, Yes,)} So what you're looking for might be something like this: Code:
{formats:contains(MOBI, Y,)} BTW: Been here for approx. 6 months, so I also have to get used to the new layout, but it actually helps finding things faster. Last edited by pchrist7; 02-03-2011 at 11:53 AM. Reason: typos |
|
![]() |
![]() |
![]() |
#185 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Sorry this is the wrong spot and I d not see a delete button.
Last edited by nynaevelan; 02-04-2011 at 10:04 AM. |
![]() |
![]() |
![]() |
#186 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Hi All: I need a little assistance again with the composite column for the annotations, for some reason my annotations are not being updated each time. I do not know if it is something with my annotations or my system, but for some records they will not update although I know they have annotations. Is there a way to check the MBP file?
|
![]() |
![]() |
![]() |
#187 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
Quote:
The mbp files are "binary" meaning you can't just read them. You would a "hex editor" plus a description of the mbp file format to figure out what's actually in the files ( as far as I know ) What you could do is checking the time stamp to see if it's dated as you would expect. What info is not updated as expected ? The read % ? |
|
![]() |
![]() |
![]() |
#188 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
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:
![]() If you have not "submitted", just use your browser 'Back' button (or close it) without submitting... Gone. You did the other (post-Submitted) way ![]() |
|
![]() |
![]() |
![]() |
#189 | |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#190 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
Quote:
First of all you have to tell explorer to show timestamps to see them. What OS you using ? A bit confused here - the problem is that books read on the Kindle are not updated, OR are you reading with K4PC as well ? And that's not replicated to the Kindle ? |
|
![]() |
![]() |
![]() |
#191 | |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Quote:
I have ALOT of annotations on my Wheel of Time books and I would like to get them into Calibre so that I can have backups there. I can see them on the kindle website but they are old versions, so I am updating them all with the current notes, highlights and bookmarks so that Calibre will be updated. EDIT: Ok I think I was making problems for myself by using both the kindle and k4pc, I am back on track now. Sorry for the confusion. Last edited by nynaevelan; 02-04-2011 at 01:24 PM. Reason: update |
|
![]() |
![]() |
![]() |
#192 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
|
![]() |
![]() |
![]() |
#193 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Hi:
Has something changed with fetch annotations in 0.7.45, I tried to download the latest annotations from my kindle after upgrading to 0.7.45 and now none update in Calibre and all the mbp files change to an extension of asnx? |
![]() |
![]() |
![]() |
#194 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
Quote:
I havent upgraded calibre yet, but will soon. As far as I know, asnx is for the new K3 firmware, showing page no. as well as locations. Havent installed new K3 firmware yet, so .. Will get back to you once I have had a chance to upgrade/test calibre. Edit: Just upgraded Calibre to 0.7.45 and did Fetch Annotations. It works as expected/as usual from my K3. Note: Did NOT update my K3 firmware yet, and have NOT added any plugins etc. Yet ;-D Looking keenly at the collection creation pluging, but need time to experiment. Could you have done other changes to get this issue ? Last edited by pchrist7; 02-12-2011 at 07:44 AM. |
|
![]() |
![]() |
![]() |
#195 | |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
custom column, tag, tags |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 03:41 AM |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 06:06 AM |
Accessories Decalgirl Kindle 2 custom skin template | srmalloy | Amazon Kindle | 6 | 04-09-2010 09:55 PM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |