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-02-2014, 09:57 AM   #1
hnrsoftware
Junior Member
hnrsoftware began at the beginning.
 
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
hnrsoftware is offline   Reply With Quote
Old 08-02-2014, 10:07 AM   #2
hnrsoftware
Junior Member
hnrsoftware began at the beginning.
 
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.....
hnrsoftware is offline   Reply With Quote
Advert
Old 08-02-2014, 10:14 AM   #3
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: 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 ...
theducks is offline   Reply With Quote
Old 08-02-2014, 10:23 AM   #4
hnrsoftware
Junior Member
hnrsoftware began at the beginning.
 
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.
hnrsoftware is offline   Reply With Quote
Old 08-02-2014, 12:27 PM   #5
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: 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:
Originally Posted by hnrsoftware View Post
@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.
You need to force Title sort in those case. Another one 'A B C Murders' gets to be B C Murders, A

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)
theducks is offline   Reply With Quote
Advert
Old 08-02-2014, 01:30 PM   #6
hnrsoftware
Junior Member
hnrsoftware began at the beginning.
 
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....
hnrsoftware is offline   Reply With Quote
Old 08-02-2014, 01:59 PM   #7
MiniMouse
Groupie
MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.
 
MiniMouse's Avatar
 
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:
Originally Posted by hnrsoftware View Post
@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.
I'm not sure if this is what you are looking for BUT under 'Preferences/Change calibre behaviour/Advanced/Tweaks' you can adjust what calibre makes out of the title and series.

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.
MiniMouse is offline   Reply With Quote
Old 08-02-2014, 03:05 PM   #8
hnrsoftware
Junior Member
hnrsoftware began at the beginning.
 
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.
hnrsoftware is offline   Reply With Quote
Old 08-02-2014, 03:16 PM   #9
MiniMouse
Groupie
MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.
 
MiniMouse's Avatar
 
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:
Originally Posted by hnrsoftware View Post
@MiniMouse - Bingo! the second tweak was the one. That fixed both the title and the series for file saving.
Glad I could help.

Quote:
Originally Posted by hnrsoftware View Post
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.
I know that feeling! Mostly you can do everything with calibre that you want it to do, only you have to find out where first... what would we do without this forum to find our answers.

Mini
MiniMouse is offline   Reply With Quote
Old 08-02-2014, 05:56 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,732
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by hnrsoftware View Post
@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.
@hnrsoftware - for future reference, the Preferences->Tweaks list has a search capability, it's easy to overlook.

A search for 'title' would have found the tweak you needed.

BR
BetterRed is online now   Reply With Quote
Old 08-22-2014, 12:08 AM   #11
Ma'am-I-Am
Preferred pronouns: We/Us
Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.Ma'am-I-Am ought to be getting tired of karma fortunes by now.
 
Ma'am-I-Am's Avatar
 
Posts: 209
Karma: 533346
Join Date: Jun 2014
Location: <--- Over There, USA
Device: Kindle PW 2
Quote:
Originally Posted by hnrsoftware View Post
@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.
I'm so glad somebody said that. I feel like an idiot when I read the Calibre forum.
Ma'am-I-Am is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:08 PM.


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