Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2013, 12:25 PM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Splitting of multiple authors

While reviewing the translated strings I found this one:

Code:
By default, calibre splits a string containing multiple author names on
ampersands and the words "and" and "with". You can customize the splitting
by changing the regular expression below. Strings are split on whatever the
specified regular expression matches.
Default: r'(?i),?\s+(and|with)\s+'
Maybe I'm wrong, but it seems to me that the description doesn't match the default value, which matches only and/with, with an optional comma. Which is correct?
Jellby is offline   Reply With Quote
Old 04-01-2013, 12:34 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,639
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Splitting on ampersands happens always irrespective of the regex, the regex is really used to specify additional things to split on, I've updated the documentation to make that clearer.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Authors pdurrant Calibre 33 12-21-2017 01:37 PM
Multiple authors ntome Library Management 2 02-10-2012 06:53 PM
How to specify multiple authors? dotancohen Calibre 2 01-08-2011 02:33 PM
multiple authors in metadata tulsa Calibre 14 04-02-2010 08:46 AM
Splitting the Bible into Multiple Files SciFiGal777 Ectaco jetBook 3 03-27-2010 10:35 PM


All times are GMT -4. The time now is 09:25 AM.


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