05-01-2009, 12:57 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2009
Device: HTC Touch Pro
|
importing ebooks
I have some ebooks named as follows 'hello.i.am.an.ebook.pdf"
How do I write a search expression under the advanced configuration tab that will translate it into a title? Currently there is (?P<title>.+) - (?P<author>[^_]+) Thanks in advance! |
05-01-2009, 12:47 PM | #2 |
creator of calibre
Posts: 44,420
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
what parts are title and author in hello.i.am.an.ebook?
|
Advert | |
|
05-01-2009, 08:35 PM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2009
Device: HTC Touch Pro
|
Well, usually the author is the last two words in the list. But sometimes there isn't even an author...
|
05-02-2009, 05:49 PM | #4 |
Guru
Posts: 820
Karma: 11012
Join Date: Nov 2007
Location: Warsaw, Poland
Device: Bookeen Cybook
|
Until programs can understand actual language, I don't think there's a way for the search expression to recognize when there is an author, and when there isn't. At the very least, you'd have to divide your ebooks into two sets: one where two last words are author name and surname, and another with no author.
If sometimes author's name comes first, and sometimes surname comes first, I guess that will also have to be divided by hand into two sets - one with name first, one with surname first. Then, on each set, different search expression would apply. Not sure which exact expressions those would be though. |
05-05-2009, 03:35 AM | #5 |
Member
Posts: 13
Karma: 10
Join Date: Jun 2008
Device: PRS-505
|
I wonder if it would be possible to guess at which is the title, and which is the Author name by doing a dictionary search, based on the assumption that there are more proper nouns in the author name, and the title and author are separated bay a unique character (only one incidence in the title), that isn't a letter or number.
It wouldn't always work, but it would be great for those people who have large and rather random book collections. Hm... Interesting. |
Advert | |
|
Tags |
configuration, expression |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass-importing ebooks in multiple formats? | hakan42 | Calibre | 18 | 02-28-2010 08:06 PM |
Importing EPUBs | jimyboyle | Sony Reader | 5 | 01-17-2010 07:54 AM |
*incredibly* slow importing of Ebooks | snowwraith | Calibre | 7 | 05-23-2009 07:55 AM |
Importing Via Fusion | jerryleejr | Sony Reader | 3 | 07-01-2008 01:18 PM |
Importing | Importing121 | Lounge | 2 | 05-20-2008 11:24 AM |