|
|
#1 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2011
Device: kindle
|
Articles with apostrophes in title_sort
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? |
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,509
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
r"^(A\s+|The\s+|An\s+|L')"
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Member
![]() 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') |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
FWIW: this topic was discussed in the thread http://www.mobileread.com/forums/sho...d.php?t=144900
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |