Skip to content

style guide: Note on Unicode usage#820

Draft
adomasbaliuka wants to merge 1 commit intoleanprover-community:lean4from
adomasbaliuka:patch-1
Draft

style guide: Note on Unicode usage#820
adomasbaliuka wants to merge 1 commit intoleanprover-community:lean4from
adomasbaliuka:patch-1

Conversation

@adomasbaliuka
Copy link
Copy Markdown

There is a proposed text-based linter which compares all Unicode characters in Mathlib to an allow-list, see leanprover-community/mathlib4#36773

This addition in the style-guide should explain good usage of Unicode.

Content and phrasing are up to debate.

@adomasbaliuka adomasbaliuka changed the title Notes on unicode usage style guide: Note on Unicode usage Apr 10, 2026
- invisible characters (except spaces and newlines)
- characters which modify other characters

Mathlib has a linter which checks all characters against an allow-list, to which new characters may be added as required.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could link to that allow-list once it's merged (assuming it will be located at a fairly stable location?).

@adomasbaliuka
Copy link
Copy Markdown
Author

  • Do we want to add that Private Use Areas should not be used, or is that too technical and basically obvious?
  • Do we want to discourage adding diacritics (characters which modify other characters) to the allow-list, as the current draft does?

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 11, 2026

I think the current draft is good enough. Thanks for writing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants