Quote:
Originally Posted by helour
Hi,
I've found problem with the spanning of the text which contains various quotation marks. I can fix it, but I need an info which *.py file handles such things.
Wrong:
Better (except the ellipsis problem):
The incorect spanning leads to ugly spaces between words when the hyphenation and the full justification are enabled.
|
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)
I can't test that at the moment. And I'm copying and pasting from places, so check that I have actually gotten the correct character.
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.