![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2010
Location: Ontario Canada
Device: Aluratek Libre ebook reader
|
Naming conventions
Most of the titles I add to Calibre start out as "author - subject - title".
When it imports to Calibre it adds the subject to the author instead of to the title. Could someone tell me how and where to fix this. I have had no success tweaking stuff so far. I hope this is clearer to read than it looks. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Is that the filename? If so, go to preferences->adding books.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2010
Location: Ontario Canada
Device: Aluratek Libre ebook reader
|
I have tried many ways of setting this up in preferences >adding books. Regular Expression Syntax is not my long suit, medium suit or even short suit. Would you know how to do the expression that would put both " - " dashes on the Title side of the name?
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
There's an introduction available for regular expressions, if you're interested. As for your problem, try the following:
Code:
(?P<authors>.*?) - (?P<title>.*? - .*?) |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2010
Location: Ontario Canada
Device: Aluratek Libre ebook reader
|
Thank you for the suggestion Manchean. I tried it and it didn't quite work out for me.
With one - after author I got Unkown Author - Title. On books with two - in title I get Unkown First part of title and the - . I think Regular Expressions are beyond me. The more I experiment with them the worse I get. It doesn't mean I am going to quit trying though. I have the willpower if not the brain for it. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Hm. I tested this one with the plain string on Python, so it should work in Calibre.
Code:
(?P<author>.*?) - (?P<title>.*) Last edited by Manichean; 03-20-2011 at 02:15 PM. Reason: Fixed regex, should've checked lookup names in the first place. |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2010
Location: Ontario Canada
Device: Aluratek Libre ebook reader
|
Thank you Manchean. The second one works perfectly. I tried a bunch of stuff I wrote very similar to this (but not the same) and they failed miserably. I have added your line and now I won't have to keep editing the file name as I put it in and out of Calibre.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Glad to help.
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 18
Karma: 10
Join Date: Oct 2010
Location: Ontario Canada
Device: Aluratek Libre ebook reader
|
I have re-read my messages and find it amazing that you could figure out what I was looking for from them. They are sketchy at best.
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
You get some experience after being a forum regular
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPad iPad UI Conventions in 53 Photos | kjk | Apple Devices | 0 | 02-07-2010 11:08 PM |
Government The Geneva Conventions. v1, 30 June 2008 | nrapallo | Kindle Books | 0 | 07-01-2008 07:33 PM |
Government The Geneva Conventions. v1, 30 June 2008 | nrapallo | IMP Books | 0 | 07-01-2008 07:30 PM |
Government The Geneva Conventions. v1, 30 June 2008 | TedPark | BBeB/LRF Books | 0 | 07-01-2008 12:34 AM |
iLiad iLiad Developing Conventions? | rudysplif | iRex Developer's Corner | 2 | 12-04-2007 10:52 AM |