Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 07-09-2009, 10:31 PM   #136
ziplizard
Enthusiast
ziplizard doesn't litterziplizard doesn't litter
 
Posts: 45
Karma: 142
Join Date: Feb 2009
Device: Kindle 2.0
Regular Expressions help!

All of my eBooks are 'Last Name, First Name - Title' (or 'Last Name, First Name - Series ## - Title').

My current regex is:
(?P<author>((?!\s-\s).)*)\s- (?P<title>.*)

This gives me:
Author = 'Last Name, First Name'
Title = 'Title' or 'Series ## - Title'

Title is what I want. Author is backwards. Is there any way to make <author> be something like <author-sort> or <author-last>,<author-first>. I know nothing of python or regex and everything I've done was with searching around mobileread and guess&check so feel free to talk to talk down to me.

Also, why isn't there a nice list of popular regex on the Calibre site? I would think that would be very FAQ-ish.
ziplizard is offline  
Old 07-10-2009, 12:15 AM   #137
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,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm afraid there's no way to get the author the way you want. But you can easily adjust the regex to work for files with and without the series, someone with more time than me will hopefully come and help you. As for making a FAQ, if you compile a list of regexs, I'll be happy to add them to the FAQ.
kovidgoyal is offline  
Advert
Old 07-10-2009, 09:06 AM   #138
ziplizard
Enthusiast
ziplizard doesn't litterziplizard doesn't litter
 
Posts: 45
Karma: 142
Join Date: Feb 2009
Device: Kindle 2.0
Thanks for replying.

And I don't want Calibre to remove the series name from the title since I read nearly all of my eBooks on my Kindle and having the series name in the title help keep my series together.
ziplizard is offline  
Old 07-25-2009, 04:22 AM   #139
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 198
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Quote:
Originally Posted by ziplizard View Post
Thanks for replying.

And I don't want Calibre to remove the series name from the title since I read nearly all of my eBooks on my Kindle and having the series name in the title help keep my series together.
Yeah that my main problem with Calibre... All my tittles had the Series Info and Vol # in the file name. (Last, First - Series # - Tittle.txt)

But if I want to read the book on another computer (or device) that does not have Calibre installed, Since Clibre has renamed the file, all that data is lost.
JohnnyBook is offline  
Old 07-27-2009, 06:20 PM   #140
ekaser
Opinion Artiste
ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.
 
ekaser's Avatar
 
Posts: 301
Karma: 61464
Join Date: Mar 2009
Location: Albany, OR
Device: Nexus 5, Nexus 7, Kindle Touch, Kindle Fire
"Produced by calibre" title page

Thanks for the great program!! (already made my contribution...)

I'm new to Calibre, so am probably missing something obvious but:

I converted a dozen books from a variety of formats to epub, and they're all getting a 'cover' page showing the title of the book, the date of the conversion, and "Produced by calibre 0.6.1", whether the book has a 'real' cover image or not. If it has a real cover image, then that's "page 2".

I don't mind having the "Produced by calibre" information in the file at some point, but I really don't want it to be the first page that shows when I open the book. Is there some way to change this?

Thanks!
ekaser is offline  
Advert
Old 07-27-2009, 06:28 PM   #141
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,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Choose an actual cover and it will replace the default cover
kovidgoyal is offline  
Old 07-27-2009, 07:14 PM   #142
Sydney's Mom
Wizard
Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.
 
Sydney's Mom's Avatar
 
Posts: 2,899
Karma: 6995721
Join Date: Dec 2008
Location: Idaho, on the side of a mountain
Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S
I can't wait to try the new version - I am getting a new computer and will download it there. Here is my question:

It looks so neat, I would like to put all my books in Calibre. Can I upload them from my kindle?
Sydney's Mom is offline  
Old 07-27-2009, 07:16 PM   #143
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,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not directly. You have to use the save to disk button to save the books from the kindle to your hard disk and them import them from your hard disk to calibre
kovidgoyal is offline  
Old 07-29-2009, 10:23 AM   #144
corroonb
Addict
corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.
 
corroonb's Avatar
 
Posts: 317
Karma: 1232685
Join Date: Nov 2008
Location: Ireland
Device: Kindle Voyage, Kobo Aura, Nexus 9
Is there any way to disable generation of a table of contents when converting with calibre?
corroonb is offline  
Old 07-29-2009, 12:07 PM   #145
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,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
what format are you converting to and from?
kovidgoyal is offline  
Old 07-29-2009, 12:47 PM   #146
corroonb
Addict
corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.
 
corroonb's Avatar
 
Posts: 317
Karma: 1232685
Join Date: Nov 2008
Location: Ireland
Device: Kindle Voyage, Kobo Aura, Nexus 9
Quote:
Originally Posted by kovidgoyal View Post
what format are you converting to and from?
rtf to lrf. I could easily convert the rtf to html but that sometimes leaves large gaps between paragraphs in the lrf.

I know I can remove any table of contents in the document but calibre sometimes gets stuck when it tries to autogenerate a TOC.

This is the code I see in the job detail tab:

Code:
Converting RTF to XML...
Parsing XML...
Converting XML to HTML...
Parsing all content...
Parsing index.xhtml ...
Referenced file 'styles.css' not in manifest
Parsing styles.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
And it keeps converting for ages without any progress.

Last edited by corroonb; 07-29-2009 at 12:53 PM.
corroonb is offline  
Old 07-29-2009, 12:56 PM   #147
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,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That means the TOC generation has completed. So that's not where it stops. open a ticket and attach one of these rtf files
kovidgoyal is offline  
Old 07-29-2009, 02:19 PM   #148
corroonb
Addict
corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.
 
corroonb's Avatar
 
Posts: 317
Karma: 1232685
Join Date: Nov 2008
Location: Ireland
Device: Kindle Voyage, Kobo Aura, Nexus 9
Quote:
Originally Posted by kovidgoyal View Post
That means the TOC generation has completed. So that's not where it stops. open a ticket and attach one of these rtf files
Done. There appears to be some problems converting some rtf files to lrf.
corroonb is offline  
Old 07-29-2009, 02:22 PM   #149
Kostas
Still wondering why
Kostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-books
 
Kostas's Avatar
 
Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
Quote:
Originally Posted by corroonb View Post
rtf to lrf. I could easily convert the rtf to html but that sometimes leaves large gaps between paragraphs in the lrf.
I got the same problem.
Disappeared when asking MS Word to save rtf as "html, filtered".
Kostas is offline  
Old 07-29-2009, 02:25 PM   #150
corroonb
Addict
corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.corroonb ought to be getting tired of karma fortunes by now.
 
corroonb's Avatar
 
Posts: 317
Karma: 1232685
Join Date: Nov 2008
Location: Ireland
Device: Kindle Voyage, Kobo Aura, Nexus 9
Quote:
Originally Posted by Kostas View Post
I got the same problem.
Disappeared when asking MS Word to save rtf as "html, filtered".
I'll try that. I tried renaming the file to txt but the formatting is destroyed.
corroonb is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions (and answers too!) Stinger Kobo Reader 112 05-12-2017 11:40 AM
PRS-300 Reader freezing frequently paddy77 Sony Reader 15 01-17-2011 02:33 AM
PRS-600 Do you frequently read PDFs on your PRS600? drmaxx Sony Reader 20 09-22-2009 07:15 PM
Questions we wish we had asked before buying a Reader Dr. Drib Sony Reader 15 05-22-2009 06:13 AM
Three not asked earlier questions about iLiad Malder1 iRex 9 08-14-2006 02:10 PM


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


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