On Thu, Oct 17, 2019 at 9:21 PM Rob <[email protected]> wrote:

My LaTeX processor choked on 2 instances of an unknown UTF8 character.
> Probably came into Leo when I copied from somewhere else (perhaps an MS
> Word document).
>

I'm not sure there is such a thing as an "unknown" UTF8 character.

Leo is quite careful when pasting text from a clipboard.  The relevant
methods are
LeoFrame.pasteText and its two helpers, qt_gui.getTextFromClipboard and
g.checkUnicode.  The latter does a thorough check of the incoming text, and
warns if there are conversion errors.

It would be a serious bug in Leo if g.checkUnicode was flawed.  By default,
which always applies when pasting, g.checkUnicode assumes utf-8 encoding.

> Question; is there a way to show the space characters and line feeds in
> Leo like I can in Notepad++?
>

show-invisibles (and hide-invisibles & toggle-invisibles).

With the Qt gui this does:

    option.setFlags(QtGui.QTextOption.ShowTabsAndSpaces)

so, Leo is at the mercy of what Qt thinks is a space or tab.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0%2B_e61hMhULTbCxQxzKtzWLkYN-OnJSZxU8vRfTh82Yw%40mail.gmail.com.

Reply via email to