![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Avoid Alphabetically sorted custom columns
Hi.
I have created the following custom column on advice from BetterRed (see attached image), but when I add stories I get more than just the names of the characters in that specific column (see second attached image). Have I done something wrong or is it the wrong way to put it. What I am trying to do, is avoid Calibre sorting it alphabetically, if I edit in the main column. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,356
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
There are three issues here.
First is the appearance if the [u' characters. This is a bug in the raw_field function. I have submitted a fix. Second is the assumption that you need to use raw_field. The only field (column) that is sorted alphabetically by default is tags. All custom multiple-value functions are sorted only when displayed (usually). When used in templates they are not sorted. Because of this, and because you are manipulating a custom column, you can use Code:
{#characters(0,1,\,)} Code:
program: sublist(field('#characters'), 0, 1, ',') Code:
{#characters:sublist(0,1,&)} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
But when I download, the Fanfiction, the characters are automatically separated by commas instead of &.
How would that affect it? |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,356
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Either:
|
|
![]() |
![]() |
![]() |
#5 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,876
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
In FanFicFare personal.ini in the appropriate section you can add: Code:
join_string_characters:\s&\s |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom columns question | Noughty | Library Management | 9 | 10-11-2011 08:46 AM |
Rooted Color --> Custom ROM --> Avoid the Update | anamardoll | Nook Color & Nook Tablet | 57 | 05-05-2011 04:14 AM |
Custom Columns - How are you using yours? | nynaevelan | Library Management | 19 | 04-18-2011 12:42 AM |
0.7.46 and custom columns | meme | Library Management | 4 | 02-21-2011 04:21 AM |
composite custom columns sorted numerically | Doug-W | Library Management | 2 | 02-18-2011 02:16 AM |