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
suggested changes for the collator based sort #2
Conversation
The proper use of data providers now make it much easier to add addtional languages to the test
Now the use of the intl extension can be turned off, allowing for easy testing of the fallback. The test now inherits from the collator test so we avoid too much duplicate code
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.
Well done! Only some missing details...
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.
Excellent job! Please keep the comments as indicated, they will guide anyone interested in providing new examples in other languages.
@splitbrain thanks for your suggestions. All in all, everything is OK except minor details. The most important thing missing is to substitute I have revised everything. This way, if you are busy with other things, I can accept the changes and make the appointed corrections later. By the way, it would be interesting to use the |
If you have all the changes ready to be applied, please go ahead. Thanks for double checking my stuff. Once this is done, we can merge it into code. |
@splitbrain I think you'll like to know about the Co-official statuses of German in Brazil. Just found that on Wikipedia. |
@splitbrain I tried the collation |
I have commented the test code so it is utterly clear:
|
https://de.wikipedia.org/wiki/Deutsches_Alphabet#Alphabetische_Sortierung has some Details (I didn't know about): According to DIN 5007:1991, there are two variants:
I guess variant 1 makes sense for us. In general Germans will not care at all and are fine even with the words sorted at the end. |
English Wikipedia says the same.
Yes,
The collator uses this variant. Actually, the default collator is used for German.
Yeah, but Spaniards would cry if their beloved "ñ" is treated like a normal "n" or put after "z" :-) |
OK, I've updated the comment and the collation.
|
Many minor details and use of Sort::xyz() instead of intl_xyz() in files outside the "inc" folder.
* master: (111 commits) Update translation translation update don't crush tables too narrow. fixes dokuwiki#3250 translation update Thorough tests for EO, DE, PT and ES translation update Optimized pageRestoreConfirm function Tests for Portuguese and Spanish Changes according to revisions in moisesbr-dw#2 adjust callstack depth for deprecation message further better deprecation messages for self required plugin base files don't test on old PHP releases anymore increase minimum PHP version to 7.2 fixed tests for cleanID and romanization for Greeklish Improved the transliteration from greek to latin. extension cli: do not try to upgrade bundled plugins Public access to patterns in external link parser test the collator fallback always cleanup for collator tests wrap sorting functions into their own class ...
second try, after I messed up the branch for #1