Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2010, 09:14 AM   #16
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by hal9000 View Post
Oh. That's fine. Then the only thing needed would be that calibre were smart enough to not only remove leading spaces, but leading dash/hyphens too.
This has been discussed before. It's ceratainly possible, but not with the current design for the save template, which uses Python string templates and available string formatting operations. It would need a conditional inside the string template.

This little bugaboo has been around for a while. Feel free to add it as a request in the bug tracker (Search first, it may already be there and on the ToDo list). The problem is that it's a minor annoyance and may be too much work for too little reward. Personally, I just skip the hyphen, use spaces and put the series_index at the front (which is where I want it for sorting anyway.)
Starson17 is offline   Reply With Quote
Old 09-22-2010, 10:26 AM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does strip leading spaces from path components. So use spaces instead of hyphens
kovidgoyal is offline   Reply With Quote
Advert
Old 09-22-2010, 10:37 AM   #18
hal9000
Enthusiast
hal9000 doesn't litterhal9000 doesn't litterhal9000 doesn't litter
 
hal9000's Avatar
 
Posts: 35
Karma: 230
Join Date: Feb 2008
Device: Airis Dbook (with booq Classic OS 2.2)
Thanks Kovid and Starson17, I'll use spaces if there's no other way. It's just that hyphens result more clear as separators, visually I mean.

Regards.
hal9000 is offline   Reply With Quote
Old 10-08-2010, 03:56 PM   #19
hal9000
Enthusiast
hal9000 doesn't litterhal9000 doesn't litterhal9000 doesn't litter
 
hal9000's Avatar
 
Posts: 35
Karma: 230
Join Date: Feb 2008
Device: Airis Dbook (with booq Classic OS 2.2)
Quote:
Originally Posted by hal9000 View Post
That's what I thought, but then if the book has no series you get an ugly " - " before the title. Is there a way to do this so the "-" only appears if a series exists? If no, could it be added to calibre? I mean a way to condition a literal string to the existence of a field. Or even have two different name templates for books with or without series.
Glad to see that this feature of conditional text has been added to calibre. Thanks Kovid.
hal9000 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding non-Amazon content to K4iPhone bpwhistler Apple Devices 6 07-12-2010 05:12 PM
Adding non-Amazon content to Kindle for iPhone bpwhistler Apple Devices 4 04-27-2010 11:38 PM
Auto-adding content? and Thanks.... ApK Calibre 4 02-27-2010 09:09 PM
Adding K1 content to K2 desertgrandma Amazon Kindle 12 03-31-2009 12:35 PM
Liseuses à base de EB600 (Netronix) comme Bookeen. Randy11 Autres liseuses 3 03-26-2009 09:51 AM


All times are GMT -4. The time now is 05:52 PM.


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