Skip to content

[Feature]: Unicode normalization support #5936

Description

@throwaway-60789

Summary / problem statement

When opening text files concatenated from different sources, it is possible that there are mixed Unicode representations for diacritics, where some characters are precomposed and some are not.
See Unicode equivalence.
When left as is, it often cause parsing problems in other applications. Also, "low-power" systems (like e-readers) almost always expect NFC (if they support Unicode at all), otherwise they do not display the text correctly due to the limited font.

Proposed solution / UX

In Edit->Convert menu, add NFC/NFD/NFKC/NFKD options to apply the corresponding operation to the selected text.
If possible, detect whether there are mixed combining/precomposed text, and give option to convert to either (similar to the mixed CR/LF situation).

Alternatives considered

No response

Scope (best guess)

File I/O / encoding / paths

Confirmation

  • I searched existing issues and this is not a duplicate.
  • This isn't already configurable via an INI key or command-line switch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions