Stream: General

Topic: No unicode symbols


view this post on Zulip Gergely Buday (Nov 29 2023 at 16:24):

This worked previously. Today I started Isabelle and when I type => then

\<Rightarrow>

appears but not the Unicode symbol. What should I tweak in some menu?

view this post on Zulip Gergely Buday (Nov 29 2023 at 16:27):

Interestingly, this happens only in my new theory, when I open an old one, the Unicode symbol appears.

view this post on Zulip Mathias Fleury (Nov 29 2023 at 16:49):

File > reload with encoding > utf-8-Isabelle

view this post on Zulip Mathias Fleury (Nov 29 2023 at 16:50):

happens from time to time when the file encoding is not properly identified. Usually when you opened the file with something else than Isabelle/jEdit

view this post on Zulip Manuel Eberl (Nov 29 2023 at 16:54):

When Isabelle/jEdit saves files, it replaces all the unicode symbols with these ASCII replacements. When it loads a file, it substitutes the ASCII replacements with the Unicode symbols again for display. If there are already unicode symbols present in the text file when you load it, this error happens, because it's not supposed to be that way.

view this post on Zulip Manuel Eberl (Nov 29 2023 at 16:54):

As Mathias said, that usually happens when you open an Isabelle file with a text editor and paste some unicode into it and save it.

view this post on Zulip Gergely Buday (Nov 29 2023 at 17:32):

Might it have happened because I imported

imports HOL.Option

but not Main ?

This was a brand new file and I did not touch it with other than Isabelle/jEdit.

view this post on Zulip Mathias Fleury (Nov 29 2023 at 17:44):

Imports have nothing to do with the encoding of the file.


Last updated: Dec 21 2024 at 12:33 UTC