Live data from Hacker News

Show HN: Mojibake – A low-level Unicode library written in C

mojibake.zaerl.com

1–10 of 25 posts

Show HN: Mojibake – A low-level Unicode library written in C

#1
I've written Mojibake because I don't like the other Unicode libraries for Unicode support.

It consists of only two amalgamation files: mojibake.h and mojibake.c. I've added all the most important Unicode algorithms, such as normalization, case conversion, segmentation, bidirectional text, collation, confusable, and others.

I regularly test it in these OSes: Linux, macOS, FreeBSD, OpenBSD, NetBSD, and Windows 11.

You can find a WASM demo on that site of all the public API functions and the documentation. If you want to participate, feel free to do it. Any kind of help is welcome. Check the CONTRIBUTING.md and API.md files in the GitHub repository for instructions on how to do it.

Show HN: Mojibake – A low-level Unicode library written in C
mojibake.zaerl.com

Re: Show HN: Mojibake – A low-level Unicode library written in C

#6
post #3

I have come to the conclusion that the only Unicode support needed in C is supporting pointers to char and arrays but lightweight C libraries are always welcome.

I guess you never have to deal with text if you think that’s enough? What kind of software do you write in C?

Re: Show HN: Mojibake – A low-level Unicode library written in C

#9
post #7

Not to bikeshed, but isn't the word "mojibake" synonymous with "when character encoding breaks"?

I wouldn’t call it synonymous as much as I’d call it its literal meaning.

https://jisho.org/word/%E6%96%87%E5%AD%97%E5%8C%96%E3%81%91

Post reply on HN