View Single Post
Old 03-31-2019, 07:25 AM   #85
Gorcsev
Enthusiast
Gorcsev began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
Quote:
Originally Posted by jackie_w View Post

Inside the KoboTouchExtended.zip file find the container.py file, change lines 540-544 from
Code:
                groups = re.split(
                    r'(.*?[\.\!\?\:][\'"\u201d\u2019“…]?\s*)',
                    text,
                    flags=re.UNICODE | re.MULTILINE,
                )
to
Code:
                groups = [text]
Thank you i was made lots of trials until now. What I realized:
this method above is ok, until the text do not have any direct formatting tag inside the sentence. for example: <i>, or <b> or even a <br/> what is newline, and so on. Somehow the procedure is handling those tags separated, and puts spans around them.

I think this is a "calibre" behavior. It makes class from any single <i>... tags a <i span class="calibrexx"... and that generates the above mentioned code

Do you know any bypass code for that to insert into the kte somewhere?

For example change the <i> to a @lti@gt , process the "spanning" and change back to the original.

So the sentence would be kept, and not split with spans.

the best would be bypass any "calibre-ish" convert, just let the epub as it is, and send it to the device "kepub-ized"...

thank you

Last edited by Gorcsev; 03-31-2019 at 11:20 AM.
Gorcsev is offline   Reply With Quote