![]() |
#1 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Metadata plugboard problem
I use rating = 5 for books I have proofed and corrected. I'm trying to create a metadata plugboard which will flag this up in the filename, and tried this:
Code:
{rating:contains(5,✓ ,)}{title} Code:
{rating:contains(5,✓\ ,)}{title} Can anyone explain what is going on here, and how I can get both a space and the first character of the title to appear? |
![]() |
![]() |
![]() |
#2 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 176
Karma: 158116
Join Date: Oct 2015
Device: Kobo Glo HD (landscape), Kobo Aura One
|
Spaces will not be ignored when you use unbreakable spaces.
I did it this way: in word key alt together with 0160 on the number block Copy that from word into plugboard. Sounds stupid, but works. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Phssthpok: When I look at that I think: "Where are the quotes?" Are you sure you shouldn't have quotes around the replacement string? I would expect a trailing space to be stripped off in without them.
And in the last case, I wonder if the "t" hasn't actually been removed, but whatever you are viewing it with is seeing "\t" and substituting a tab character. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,219
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Use Code:
{rating:contains(5,✓,)|| }{title} |
|
![]() |
![]() |
![]() |
#5 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
I'm still puzzled about losing the first letter of the title with a backslash-escaped space though... Last edited by Phssthpok; 07-18-2018 at 07:23 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
But they are ignored. I tried it by pasting in an NBSP character, exactly as you described (except I copied mine from the Calibre editor's special characters panel). I presume all \s characters (which includes NBSP) are trimmed.
|
![]() |
![]() |
![]() |
#7 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
It's the first character of the book title, not the first character of the word "title". It was actually the letter R in the case of the book I was experimenting with.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,219
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
✓\Ringworld Code:
✓ ingworld FWIW: backslashes in Single Function Mode can have strange behavior. Sometimes they are really escapes and sometimes they aren't. You should avoid them or use one of the other modes instead. |
|
![]() |
![]() |
![]() |
#10 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Aha! Many thanks, now I finally understand...
Quote:
![]() |
|
![]() |
![]() |
![]() |
Tags |
metadata plugboard, templates |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata Plugboard - I don't get it... | _daclaus | Library Management | 3 | 08-25-2013 01:13 PM |
Metadata Plugboard Problem (mobi/kindle) | alanHd | Library Management | 5 | 08-20-2012 06:44 AM |
Metadata Plugboard problem - Bug? | Jimbo724 | Library Management | 4 | 08-03-2012 05:20 AM |
Metadata Plugboard | IxiaAurea | Calibre | 1 | 11-05-2011 02:13 PM |
Problem with Metadata Plugboard | cheveguerra | Calibre | 3 | 10-05-2010 01:00 PM |