View Single Post
Old 09-18-2014, 03:49 AM   #563
crissman
Connoisseur
crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.
 
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
Maximizing "shorten" field when dealing with a single word series title?

Quick question, just a quirk of mine, but annoying just the same..

Code:
{#stripped_series:shorten(4,-,4)}{series_index:0>3s| [|] }{title}
(I also have the corresponding columns)

A series that has multiple words like A Song of Ice and Fire gets shortened down to its initials which is perfect, what is bothersome to me is when a series like "The Coincidence" gets stripped into Coincidence which again is okay, but its shortened form it becomes Coin-ence.

What would I need to change in order for it to show instead either "Coincidence" or "The Coincidence" for series that are either a single word or preceded by "The" or "A" etc. yet still retain the "initial" values for a longer series name such as A Song of Ice and Fire (ASoIaF) or Lord of the Rings (LotR)

[EDIT] Kinda figured it out, I changed the value: shorten(4,-,4) to shorten(12,-,6), but now I am wondering what is the allowable amount of characters on a title field on a Kindle PW1 and a Kobo Aura HD?

Thanks yet again in advance for any help with this.

Last edited by crissman; 09-18-2014 at 04:26 AM. Reason: Kinda Figured it out..
crissman is offline   Reply With Quote