View Single Post
Old 01-27-2017, 01:09 PM   #1681
helour
Enthusiast
helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.helour got an A in P-Chem.
 
Posts: 48
Karma: 6489
Join Date: Dec 2014
Location: Slovakia
Device: Onyx M96, Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
The file you want is "container.py". It's probably enough to add the other "close quote" characters into the regex at line 215. And as an ellipse can be used at the end of a sentence, it probably should be in there as well. The statement is probably:
Code:
                groups = re.split(ur'(.*?[\.\!\?\:…][\'"\u201d\u2019“]?\s*)',
                                  text,
                                  flags=re.UNICODE | re.MULTILINE)
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)
Quote:
Originally Posted by davidfor View Post
And for confirmation, can you point to a book in the Kobo store that uses this style of quotes? We can then check that what we do agrees with Kobo does.
The book (in Czech language) with this end quotation mark u\201C wasn't downloaded from the Kobo store .
helour is offline   Reply With Quote