View Single Post
Old 07-17-2016, 06:58 PM   #43
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
In The Source: Thud!

I'm having my fun with Kevin's python quickparser.py and C++. He is using slice[i:i+1] where every other normal programing language would use [i]. Python? ...or missing something obvious, as usual?

But it's not the real problem.

I was avoiding this topic till now.

One of the main clients of HTMLSpellCheck class is XHTMLHighlighter class. It renders the content you see in code view.
It uses the function void highlightBlock(const QString &text) which
Code:
    // Overrides the function from QSyntaxHighlighter;
    // gets called by QTextEditor whenever
    // a block (line of text) needs to be repainted
it means that some QtGod((c)varlog) entity named QTextEditor decides what should be highlighted at the moment. It means you get a chunks of text you don't know the start and the end of, courtesy of QTextEditor.
The god-like status of QTextEditor is of course the matter of investigation... which is not the the aim of this exercise...

But what really happens is: it could be that your html tag is not finished yet but the chunk of text provided is!

The HTMLSpellCheck is called two times by Sigil start, my debugger tells me. This will need some investigation...


tbc...?
varlog is offline   Reply With Quote