Skip to content

Add ignore accents - #3778

Open
RepoCorsi wants to merge 14 commits into
WinMerge:masterfrom
RepoCorsi:add-ignore-accents
Open

RepoCorsi wants to merge 14 commits into
WinMerge:masterfrom
RepoCorsi:add-ignore-accents

Conversation

@RepoCorsi

Copy link
Copy Markdown

Adds the Ignore Accents prediffer plugin, allowing WinMerge to compare text files while ignoring Unicode diacritics (accents and other combining marks), without affecting case sensitivity.

The plugin supports UTF-8 (with or without BOM) and UTF-16 LE/BE encoded files. It also includes the Visual C++ project and solution configuration entries for the supported architectures.

@sdottaka

Copy link
Copy Markdown
Member

Thanks for the PR!

Native DLL plugins are slow to load, so I'd like to try implementing this as a plugin defined in Plugins.xml using the recently added filter-expression support in plugin pipelines, with an expression like:

le:normalizeUnicode(regexReplace(normalizeUnicode(Line, "NFD"), "[\x{0300}-\x{036F}]", ""), "NFC")

I haven't tested it yet. Please give me some time to look into it, and I'll let you know how it goes.

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.

2 participants