Comments (9)
Thanks for your comment!
So this is my primary issue with bringing functionality like this in - I really do want to support it, I'm just scared to add some of the additional lwr/upr variants without adding them all!
You've identified the correct place in the code for where this needs to go - I'll go explore the utf8 codepoints and see if there is an easy way to do this transformation and get back to you.
from utf8.h.
Thanks for your fast reply. I understand your concern. FWIW I think utf8proc is a lib which is supposed to cover most cases.
from utf8.h.
Don't simplify this. It is a major issue.
Spanish will need ÁÉÍÓÚ and ÑÜ, romanian adds ĂÂÎȘȚ, hungarian adds ÖŐŰ, polish adds ĄĆĘŁŃŚŹŻ and so on (...) And yet they are all still latin languages.
from utf8.h.
Right - I can mostly follow the latin list here https://en.wikipedia.org/wiki/List_of_Unicode_characters#Latin_script to get at least the latin based languages working.
from utf8.h.
I've given this a first bash in #46 - it was more work than I expected to add the latin case support to all the utf8case functions!
Please check out the PR.
from utf8.h.
Sweet, I will check this tomorrow. Thanks a lot for working on this, I think it's a valuable improvement.
from utf8.h.
I've added the greek letters you requested in #47 - can you check it out?
from utf8.h.
@giampaolo stated that #47 handled his requirement (#47 (comment)) so I'm closing this issue!
If you have any requests in future please get in touch though!
from utf8.h.
I'm trying other languages by using (python) unit tests in which I copy articles from wikipedia.
Amongst others, Armenian, Bulgarian and Baskir languages have some issues.
from utf8.h.
Related Issues (20)
- Possibility of dual-licensing? HOT 5
- `utf8nvalid` reads out bounds HOT 2
- strn*/utf8n* functions HOT 5
- utf8upr/lwr size issues? HOT 3
- provide get codepoint visual width function HOT 1
- utf8ncpy incorrectly removes last valid codepoint HOT 7
- Add test similar to one used in issue 109
- support utf8 convert to utf16? HOT 1
- utf8rchr issue HOT 3
- utf8makevalid read out of bounds (+ other functions) HOT 1
- utf8makevalid : test to identify sequence length and possible values not sufficient HOT 1
- grapheme support HOT 1
- Not an issue HOT 1
- Allow programmer specified allocator HOT 2
- utf8valid with size HOT 1
- utf8tok and utf8tok_r HOT 2
- Support constexpr? HOT 3
- clang-format? HOT 1
- utf8ncat - size wraparound bug HOT 1
- Way of removing malloc completely HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utf8.h.