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 08-13-2011, 12:24 PM   #1
riki
Member
riki began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2011
Device: kindle
Articles with apostrophes in title_sort

I searched the forums unsuccessfully before deciding to sign up and posting this question.

Problem - I have several ebooks where the title begins with an article ending with an apostrophe. Example: L'affaire Saint-Fiacre. I would like the title_sort value to be affaire Saint-Fiacre, L'.

My attempts at solving it - I have tried to change the setting in [Preferences -> Tweaks -> Set the list of words considered 'articles' when computing title_sort], so I edited the regexp adding |l' inside it, but it doesn't work. Next, I tried to add one and then two backslashes thinking I have to quote the apostrophe - which can be interpreted as a single quote, so I tried with l\' and l\\' but none of my attempts has had success.

Any advice?
riki is offline   Reply With Quote
Old 08-13-2011, 12:39 PM   #2
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: 24,801
Karma: 4369673
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Code:
r"^(A\s+|The\s+|An\s+|L')"
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Old 08-13-2011, 01:02 PM   #3
riki
Member
riki began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2011
Device: kindle
Wow, that was quick - thanks!
I had also tried to factor articles that are followed by a space, but that didn't work either
Code:
SOMETHING LIKE THIS DOESN'T WORK
^((A|An|The|Un|Une)\\s+)|L')
riki is offline   Reply With Quote
Old 08-13-2011, 01:56 PM   #4
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: 4,699
Karma: 800142
Join Date: Jan 2010
Location: France
Device: PRS-300, Galaxy Nexus, Nexus 7, HTC Sensation, Galaxy Tab 10.1
FWIW: this topic was discussed in the thread http://www.mobileread.com/forums/sho...d.php?t=144900
chaley 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
Quotes, apostrophes, what a pain. draconic Conversion 4 12-30-2011 10:23 AM
Using author_sort, title_sort names meme Development 6 02-23-2011 01:41 PM
title_sort in metadata edit dialogue phenomshel Calibre 9 12-27-2010 12:39 AM
Birmingham drops apostrophes HarryT Lounge 22 01-31-2009 06:44 AM
Help - Calibre stripping out apostrophes and quotes GingerTez Calibre 3 11-13-2008 04:31 PM


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


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