From a492fd44a6af2b1306561f979f13be247c9bf9a2 Mon Sep 17 00:00:00 2001 From: Hanaasagi Date: Tue, 6 Jun 2023 23:23:42 +0900 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index f255e29..5014f1b 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,22 @@ Return the converted string. The caller is should free the memory. Use buffer instead of allocator. Return a slice of the buffer. +## slugify implementations in different languages + +It is important to note that there is no universal standard for converting a Unicode character to an ASCII string. +The same Han character may have different transliterations in different languages. +For example, in Japanese, "世界" is transliterated as "sekai," while in Chinese, it is transliterated as "shijie". +This complexity also applies to emojis. For instance, the ♥ emoji can represent "love" or "heart" depending on the context. + +Different implementations may use different mapping table, and I cannot guarantee that their results will be the same. +Here are slugify implementations in other languages: + +- Java: [slugify/slugify](https://github.com/slugify/slugify) +- Rust: [Stebalien/slug-rs](https://github.com/Stebalien/slug-rs) +- Python: [un33k/python-slugify](https://github.com/un33k/python-slugify) +- JavaScript: [simov/slugify](https://github.com/simov/slugify) +- JavaScript: [sindresorhus/slugify](https://github.com/sindresorhus/slugify) + ## LICENSE MIT License Copyright (c) 2023, Hanaasagi