Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2014, 09:11 AM   #1
marcl
Enthusiast
marcl began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2012
Device: Iriver Story HD (FW 1.13), Kobo Glo (FW 2.8.1), Kindle PW2 (FW 5.40)
Export - formatting filenames

I have some issues while exporting ebooks and formatting the filename.

I use the followig formatstring for export:

{author_sort} - {series}{series_index:0>2s| | - }{title}

In some cases if the title contains an article (the or german "der die das") the article will be placed at the end of the title with a comma separated. I want the title in normal order and not the sorted title.

In the title the ":" were replaced with "_". I would like to have " - ".

Last edited by marcl; 01-13-2014 at 09:19 AM.
marcl is offline   Reply With Quote
Old 01-13-2014, 11:08 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,292
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by marcl View Post
I have some issues while exporting ebooks and formatting the filename.

I use the followig formatstring for export:

{author_sort} - {series}{series_index:0>2s| | - }{title}

In some cases if the title contains an article (the or german "der die das") the article will be placed at the end of the title with a comma separated. I want the title in normal order and not the sorted title.

In the title the ":" were replaced with "_". I would like to have " - ".
The first case is controlled by a tweak: save_template_title_series
You want strictly Alphabetical.

IMHO the second is a a lot of work, if at all doable.
colons (and others) are illegal in file names, so calibre's core substitutes them
theducks is offline   Reply With Quote
Old 01-13-2014, 12:34 PM   #3
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,922
Karma: 1673776
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by marcl View Post
In the title the ":" were replaced with "_". I would like to have " - ".
Try
Code:
{title:re(:, - )}
or perhaps more readable
Code:
{title:'re($, ':', ' - ')'}
chaley is offline   Reply With Quote
Old 01-14-2014, 04:44 AM   #4
marcl
Enthusiast
marcl began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2012
Device: Iriver Story HD (FW 1.13), Kobo Glo (FW 2.8.1), Kindle PW2 (FW 5.40)
Thanks theducks and chaley! Both solutions worked fine.
marcl is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filenames to metadata, preserving filenames. nitrogun Calibre 5 09-13-2010 11:50 PM
Different export filenames for series / non-series books? HarryT Calibre 3 08-18-2010 01:30 PM
[KOBO] Strip existing formatting to apply my own default formatting to all books digital_steve Calibre 2 08-10-2010 07:34 PM
Calibre and FORMATTING how to stop it altering my formatting? nerys Calibre 0 02-28-2010 05:51 PM


All times are GMT -4. The time now is 10:22 PM.


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