-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
implementing hashtags per UAX31 standard #40
Conversation
|
It turns out we have to extract from here: |
allowing only a subset and expanding later is better that allowing more and restricting later. It does not have to be 100% perfect on the first try |
Are you sure it's big? The binary size is only about 100 KB larger. |
Okay we've got two ways:
|
Okay. My new estimate is that if we implement our own solution, it'll be only about 10KB additional binary size. |
Okay I was wrong. See my latest commit. It's about 36KB :) Also @Simon-Laux, for some reason I can't tell, the tests are not passing :/ |
if you read the clip error it complains being run from a branch on your fork. But also |
Okay. In these final commits:
But still the tests for German umlauts fail. Even though the left and right of the assertions seem to be equal:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still want a unit test that checks all ranges, and more example tests with different "real" use cases. But other than that the code looks good I'd say (didn't test nor benchmark it yet)
So you want test cases for the range function separately? I will add more real use case tests. But I also need hint from you why these tests fail :/ |
yes, you can also test for the german umlaute there: |
@Simon-Laux Ready to merge :D |
add 2 more unit tests add space to early exit
…rencing to UCD and the script
closes #8, closes #32
Old
Hello. This is a draft. I am stuck with Rust stuff :)
I need some hints. Like how to pass the sets to
hashtag
and advice on implementingFrom<PropertiesError> for CustomError
. Furthermore, I've upgraded the rust toolchain to1.71.0
becauseicu_properties
requires it.