Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slugify of german umlaute (ä, ö, ü) #2479

Open
trembel opened this issue Apr 21, 2024 · 3 comments
Open

Slugify of german umlaute (ä, ö, ü) #2479

trembel opened this issue Apr 21, 2024 · 3 comments

Comments

@trembel
Copy link

trembel commented Apr 21, 2024

Bug Report

When slugifying german umlaute, the results are not consistent:.

Environment

Zola version: 0.18.0

Expected Behavior

All should be slugified the same way. In general, the umlauts should be slugged to
ä -> ae
ö -> oe
ü -> ue

Current Behavior

Slugifying the german umlauts results in
ä -> ae
ö -> o
ü -> untested

@Keats
Copy link
Collaborator

Keats commented Apr 23, 2024

That would be an upstream issue: https://github.com/Stebalien/slug-rs

@float3
Copy link

float3 commented Apr 24, 2024

i'm confused about this, looking up a common definition for slugification it says "slugification turns a text into one long word containing nothing but lower case ASCII characters and hyphens" german umlauts are ASCII characters, is this definition wrong? could zola add more slugification strategies, like once that keeps CnJpKr chars for example?

@Raymi306
Copy link
Contributor

It looks like it is upstream of the upstream: kornelski/deunicode#15

The gist of it is, is that those characters are not unique to German, and are being handled in a more universal way.

@float3 you are thinking of one of the extended ASCIIs.

I imagine a custom mapping file could be made for slugification for Zola...specify the name of the file in the config, drop it in to static folder?

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

No branches or pull requests

4 participants