Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-19-2011, 08:17 AM   #1
MichelK57
Junior Member
MichelK57 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: none
Help please for french articles

Hi,
I'm a french user and I'll set the list of words that are to be considered 'articles' when computing the title sort strings

I replace in "title_sort_articles"
'^(A|The|An)\s+'
with
'^(Les|Le|La|Un|Une)\\s+'

But there is a another one article " L' " and I don't know how to add because there is a " ' " inside

Thanks
MichelK57 is offline   Reply With Quote
Old 02-19-2011, 11:48 AM   #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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
r"'^(L'|Les|Le|La|Un|Une)\s+"
kovidgoyal is offline   Reply With Quote
Advert
Old 02-20-2011, 02:42 AM   #3
MichelK57
Junior Member
MichelK57 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: none
Thank for the answer, but it doesn't work.

I find while:
"L'Ami" is not "L'" + "Ami" but only one word.

So I modify :

1. title_sort_articles = "^(L'|Les|Le|La|Un|Une)\s+" (as you said)

2. the title "L'ami" with "L' ami" ...

and it work correctly.

Last edited by MichelK57; 02-20-2011 at 02:49 AM.
MichelK57 is offline   Reply With Quote
Old 02-20-2011, 12:21 PM   #4
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use

"(^L')|((Les|Le|La|Un|Une)\s+)"
kovidgoyal is offline   Reply With Quote
Old 05-10-2011, 07:18 PM   #5
Gnolive
Member
Gnolive began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2011
Location: Paris, France
Device: Pocketbook pro 602 - Touch 622
Hi.
As I'm reading in french and english, I've set the string to
"(^L')|((A|The|An|Le|La|Les|Un|Une|Des)\s+)"

But it doesn't work with Calibre 0.8.0. The "L'" empties the Categories menu on the left and disturbs the window position memory.

So I'm back an imperfect string:
title_sort_articles = "^(Le|La|Les|Un|Une|A|The|An)\\s+"
Gnolive is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cant seem to keep my articles! marbs Recipes 2 11-18-2010 12:56 PM
french literature in french peterbeecher General Discussions 3 08-25-2010 08:15 AM
PRS-600 Articles like this scottjl Sony Reader 31 12-30-2009 05:41 AM
A crop of articles from the UK Argel News 3 09-08-2008 10:13 AM


All times are GMT -4. The time now is 10:28 AM.


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