![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab 7.0
|
Really basic template problem - "{title}"
I have read the pages in the help file covering templates (not understanding quite a bit of it) and am up to date with 1.47.0. I am trying to export/save my epubs in a format pretty much "Author - Title" - with series thrown in, but I can't get past the basic problem of "{title}". The metadata appears correct with title and title_sort "The Saint Bids Diamonds" and "Saint Bids Diamonds , The", but whether I use the default template or start modifying it using the template editor, the saved files show up with the "title_sort" rather than "title".
Since I can't find any references to this problem in the forum, I assume it is unique to me, rather than an actual bug, but I can't figure out where the problem might be. A variety of edited templates all produce similar results, and I can't find any variable named something like "{title_nosort}". "{authors}" is coming through correctly as the non-sort version, but "{title}" is stuck on putting the ", The" at the end. Puzzled.... Howard |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab 7.0
|
Continuing the oddness, "{series}" (="The Saint") wants to contribute "Saint, The" to the output file name. Both the title and series look fine in the metadata and the main tabular display.
As a somewhat accidental test, I didn't click the little arrow button after editing the title metadata, so the title_sort was now distinctly different than the title. The save file operation clearly used the title_sort rather than the title even though the template specified "{title}". Hmmmmmm..... |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Preferences: Tweaks
Search on: Library order (the defaults that you see) There are more than 1 setting Read the description carefully to decide which you want to change. Do you really want to file books under 'The, 'A ... |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab 7.0
|
@theducks - thanks for the quick reply, but I can't see relevance of your comments. The order and displays are just fine, it is the saving to disk that is giving me problems.
With most of my ebooks, title sort with "The" at the end is not distracting, but with "The Saint", the "The" is almost an honorific like "Mr." or "Sir", rather than a throw-away article that gets in the way. Since there is a piece of data called "{title}", which is what I want, I just want to be able to use it. |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,064
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:
As you have found: {title} is really {title_sort} There will always be exceptions that trip things up. You might resort to the Template Program Mode to get this. (I vaguely remember someone else recently had this issue. you might do some searches and see what turns up) |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab 7.0
|
@theducks "As you have found: {title} is really {title_sort} There will always be exceptions that trip things up."
Oh.... that clears it up. As a programmer, I will just work with the file names externally to Calibre - I just assumed I was doing something stupid, and Calibre does so much right that I assumed it was my fault. Oh well.... |
![]() |
![]() |
![]() |
#7 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 318144
Join Date: Jul 2013
Location: Well, there will always be a big time delay because I'm not living in the US! And there could be some communication difficulties too because I'm not a native speaker!
Device: Sony PRS-T3S
|
Quote:
Change 'Control sorting of title and series the library display' The help-window explains that point as followed: If set to 'library_order', the title sort field will be used instead of the title. Unless you have manually edited the title sort field, leading articles such as The and A will be ignored. If set to 'strictly_alphabetic', the titles will be sorted as-is (sort by title instead of title sort). For example, with library_order, The Client will sort under 'C'. With strictly_alphabetic, the book will sort under 'T'. And you also can change the point 'Control formatting of title and series when used in templates' The help-window explains that point as followed: Control how title and series names are formatted when saving to disk/sending to device. The behavior depends on the field being processed. If processing title, then if this tweak is set to 'library_order', the title will be replaced with title_sort. If it is set to 'strictly_alphabetic', then the title will not be changed. If processing series, then if set to 'library_order', articles such as 'The' and 'An' will be moved to the end. If set to 'strictly_alphabetic', the series will be sent without change. For example, if the tweak is set to library_order, "The Lord of the Rings" will become "Lord of the Rings, The". If the tweak is set to strictly_alphabetic, it would remain "The Lord of the Rings". Note that the formatter function raw_field will return the base value for title and series regardless of the setting of this tweak. I have changed the first point for my library to: title_series_sorting = 'strictly_alphabetic' because I like it more when the title is not changed from what I enter. With this, when I save to disk, the title is saved like my library (even with not changing the second point). If you don't want to change the first point, well then maybe try only the second. Hope that is what you are looking for. Mini Last edited by MiniMouse; 08-02-2014 at 02:45 PM. |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab 7.0
|
@MiniMouse - Bingo! the second tweak was the one. That fixed both the title and the series for file saving. As usual, Calibre handled my problems before I knew I had problems, but it is so darned complicated, that the difficulty is finding the answer.
|
![]() |
![]() |
![]() |
#9 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 318144
Join Date: Jul 2013
Location: Well, there will always be a big time delay because I'm not living in the US! And there could be some communication difficulties too because I'm not a native speaker!
Device: Sony PRS-T3S
|
Quote:
![]() Quote:
![]() Mini |
||
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,732
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
A search for 'title' would have found the tweak you needed. BR |
|
![]() |
![]() |
![]() |
#11 | |
Preferred pronouns: We/Us
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 533346
Join Date: Jun 2014
Location: <--- Over There, USA
Device: Kindle PW 2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
Problem "installing" "Kindle library extractor" | dhdurgee | Kindle Developer's Corner | 7 | 11-24-2012 07:09 PM |
Kindle newbie needs "template" HTML & CSS | Rich_H | Kindle Developer's Corner | 12 | 09-10-2012 11:16 PM |
Kindle Newbie needs "template" HTML & CSS | Rich_H | Workshop | 4 | 09-10-2012 08:33 PM |
Kindle DX optimal "page" size - PDF or Word template | guiyoforward | Amazon Kindle | 12 | 09-28-2010 07:05 PM |