View Single Post
Old 01-27-2017, 07:01 PM   #1682
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by helour View Post
Thanks, it works well . BTW, I prefer this (more readable) form:
Code:
groups = re.split(ur'(.*?[\.\!\?\:\u2026][\'"\u2019\u201C\u201D]?\s*)', 
                                  text,
                                  flags=re.UNICODE | re.MULTILINE)
Goo, and using the codes here is probably easier to understand.
Quote:
The book (in Czech language) with this end quotation mark u\201C wasn't downloaded from the Kobo store .
I wasn't expecting it to have come from Kobo. But, I was hoping you knew of a book in the store that used the same type of quotation. That way we could check that the way the plugin handles them is the same as the way Kobo does. Looking at free book or a preview should do. The problem is usually finding a suitable example.
davidfor is offline   Reply With Quote