Register Guidelines E-Books Today's Posts Search

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: 17
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: 45,258
Karma: 27110894
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
Advert
Old 08-13-2011, 01:02 PM   #3
riki
Member
riki began at the beginning.
 
Posts: 17
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
Grand Sorcerer
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: 12,374
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
FWIW: this topic was discussed in the thread https://www.mobileread.com/forums/sho...d.php?t=144900
chaley is offline   Reply With Quote
Reply


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 09:14 PM.


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