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 02-24-2015, 02:25 PM   #1
khigh
Junior Member
khigh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2015
Device: PC & Multiple Kindles
Jumbled up export folder names?

Hi all - first time user.

I hope this hasn't been covered before. I did some searches, but I may not know the right thing to call it except per the title.

I know I can't change the Library structure, but that doesn't work for me as an end product, so I need to do an export pretty much grouped by subject, so I'm using tags.

I did a test on a small library and added some primary and secondary tags as a test. Literally test tags "Primary Tag 1" through "Primary Tag 4" and then two secondary tags.

In preferences, I set my export structure as {tags}/{title}/{title}

But when I export, it jumbles up the tag names.



It looks like it's just randomly screwing it up, but when I start all over again including reatarting Calibre, it makes the same exact list like there's a reason it's doing it that way.

Any ideas what's happening or what I'm doing wrong?

Or am I even trying to make a genre/subject sorted export library incorrectly?

Thanks for looking.
khigh is offline   Reply With Quote
Old 02-24-2015, 03:18 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If the title is very long, calibre will truncate the total filepath in order to prevent Windows Filename Too Long errors.
How long are the titles, and how long is the filename path to the containing folder?
eschwartz is offline   Reply With Quote
Advert
Old 02-24-2015, 04:08 PM   #3
khigh
Junior Member
khigh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2015
Device: PC & Multiple Kindles
Quote:
Originally Posted by eschwartz View Post
If the title is very long, calibre will truncate the total filepath in order to prevent Windows Filename Too Long errors.
How long are the titles, and how long is the filename path to the containing folder?
That's it! I don't really need the intermediate folder step for what I'm doing, if I uncheck covers and data (The people I'm distributing to can add them into Calibre if they like).

Thanks so much!

Now more experimenting with tags - looks like they're used alphabetically for export folders, so I need to preference all my tag names with A, B, C, etc. or 1, 2, 3, maybe. then if it looks funny, I can do a windows global renamer to strip off the folder name prefixes.

Or is there a better way?
khigh is offline   Reply With Quote
Old 02-24-2015, 04:28 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Tags are sorted internally within calibre in alphabetical order, if you want them to be in a specific order you need to use a text column I believe -- which comes with its own problems.
eschwartz is offline   Reply With Quote
Old 02-24-2015, 04:37 PM   #5
khigh
Junior Member
khigh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2015
Device: PC & Multiple Kindles
Thanks! I just tried it the way I was talking about - really not even using multiple numbers, though. I just put an "A" in front of of the Top level tag names, so I'll get "Gardening, Berries then "Gardening, Herbs" instead of "Berries, Gardening then Gardening, Herbs" after I use a simple little Windows utility to knock the prefixes off in post.

Thanks again!
khigh is offline   Reply With Quote
Advert
Old 02-24-2015, 05:18 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can use an advanced template to process column data with regex. See: http://manual.calibre-ebook.com/template_lang.html

In this case, a list_re()
Quote:
list_re(src_list, separator, include_re, opt_replace) – Construct a list by first separating src_list into items using the separator character. For each item in the list, check if it matches include_re. If it does, then add it to the list to be returned. If opt_replace is not the empty string, then apply the replacement before adding the item to the returned list.

This should work:

Code:
{tags:'list_re($,",","^[A-Z](.*)","\1")'}
to strip off the first capital letter of each tag.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder names question JMikeD Calibre 2 11-27-2012 01:35 PM
PRS-T1 Invisible Folder names etc? wjdzm Sony Reader Dev Corner 1 08-22-2012 07:18 PM
How to export to folder by file type? punknomad Library Management 5 05-12-2012 08:04 PM
Parens after folder/file names BrownSamurai Calibre 2 12-07-2011 02:45 AM
Using Folder Names as Metadata volkermord Calibre 7 08-24-2010 01:36 AM


All times are GMT -4. The time now is 06:56 PM.


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