![]() |
#1 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Jan 2024
Device: Sage / rm2
|
Truncated directory names from Send to Device template
I'm a kobo user, and I finally switched to Koreader 100% (not just PDFs anymore). So, the send-to-device template is something I'm only now looking at after 7 years of supporting Calibre. I'm using a Sage at the moment. My template is
Code:
Books/{#genre}/{author_sort}/{series:|| -} {series_index:re(^(\d)(\.|$),0\1\2)|| -} {title} - {authors} I sent a book to the device with the genre: Buddhism. It worked almost correctly. However, the top directory is 'Boks' instead of 'Books.' Nested beneath that, I have 'Budism' instead of 'Buddhism.' Likewise, the author's name was shortened. I have the same template stored in Calibre's device-send and Kobo utility plugin (I'm using the extended driver), because I don't know which setting is being respected. When I use this template for 'Save to Disk," it works fine. Am I doing something incorrectly? It's not a huge impact... I can find the book, and after 7 years of trying to tweak the "Perfect Reader Library," I'm now old and just want to read. While this one title is easy to find, I worry about pushing my other 300 titles to the device this way. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
That is done to comply with Path length limits for the lesser of all OS.
Your issue is a perfect example of why file by metadata is such a weak choice and why something like the Calibre Tag Browser is so great for selecting books. Pick an Author, and only 3 exact tags. Calibre can do that My native Kobo can do by Collection, Series or Author |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |||
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,592
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I've had this happen before.
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Jan 2024
Device: Sage / rm2
|
My books have many tags. For as seldom I use them, I do not want to give them up. That said I don't see myself ever using the tag search function in koreader to find any titles.
The books each belong to one distinct genre. And though I know why allowing custom user metadata in the koreader config can get hairy, and I've read the discussions on Git Hub on why it isn't easily allowed. If I could map my existing genre column to koreader's existing tag lookup, I could dispense altogether with my need for a FM based solution like my template and keep my many tags. Sorry to get off topic, but this is what prompted the template. Suggestions (other than jump on github where I'm going next)? |
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,600
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
How about:
Create a tag-like custom column called My Tags/#mytags, Copy what's in tags to #mytags, Fire up Manage Categories : Tags Remove all the tags you don't want to see in KOReader. Then devise a way of dealing with new books infested with tags you don't want in KOReader… perhaps via an Intake library. BR Last edited by BetterRed; 01-11-2024 at 03:14 AM. Reason: forgot the screenshot |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Jan 2024
Device: Sage / rm2
|
Creating the top-level #shelf (genre) directories didn't always work when the complete path and filename were still very long. I decided which information I needed to find titles as well as reconstruct them on another system (data recovery), and compromised.
Since my koreader filesystem view contains the metadata, I whittled down the file paths and names to have only this: Code:
books/{#shelf:||/}{series:||/}{author_sort:sublist(0,1,&)}-{series_index:re(^(\d)(\.|$),0\1\2)||-}{title:sublist(0,1,:)} PHP Code:
PHP Code:
The bit I'm working on is "personal" documents. I manage some documents with Calibre that I don't need to show beneath ~/books. I have a yes/no column to mark these as "personal." Currently, I give them the #shelf "personal," and they appear as PHP Code:
PHP Code:
|
![]() |
![]() |
![]() |
Tags |
kobo, template |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Send to device - Template help | Snow Sciles | Library Management | 12 | 05-26-2014 05:16 PM |
How To Configure Calibre Device/Target Directory with distinct names and settings? | gabby98 | Devices | 2 | 02-26-2014 01:50 PM |
Template Help - Send to device | Snow Sciles | Library Management | 4 | 10-08-2013 07:54 AM |
send book to device - ignores directory | jom | Calibre | 1 | 11-27-2010 05:56 PM |
Send to device template | rockeh | Calibre | 6 | 08-17-2010 05:28 PM |