-
Notifications
You must be signed in to change notification settings - Fork 113
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
SpatialMatch: Add AZERTY keyboard support #63
base: next
Are you sure you want to change the base?
Conversation
Our approach in general has been to maintain feature parity (and more importantly, scoring parity) with the upstream dropbox/zxcvbn library. dropbox/zxcvbn#93 is the feature request there about AZERTY support. See #51 for previous discussion. I think I might be OK with adding this in a feature flagged way, but as is it creates a score divergence between this library and the upstream JS library, which then creates UX problems when the frontend and backend of a website return different scores. My preferred approach here would be to say that instead of tracking dropbox/zxcvbn as an upstream, we instead track some dominant fork that we can point people to in the documentation. I don't know if such a thing exists. |
I totally understand your point of view and I think it's important to have a feature and scoring parity between However there is a great fork of
Since the dropbox version is not maintained anymore, I think it would be great to have a scoring parity with this great fork. What do you think? |
In principle, I think switching to feature/scoring parity with There's a few wrinkles we'd need to answer:
|
Thanks for your fast answer!
Once you have bumped the version to 2.0, I think you can: some BC breaks are not the same than in JS (for instance if you bump the PHP version).
Yes I think having multiple packages is more common in JS than in PHP (and there are more tools to manage multirepo like lerna or nx).
I think the first step would be to create a |
I just pushed up a |
- data-scripts/build_keyboard_adjacency_graphs.py: - switch to unicode to allow to handle not-ascii characters in keyboad layouts - make some assertion errors more explicit - add AZERTY keyboard layout - src/Matchers/SpatialMatch.php: add AZERTY keyboard layout - src/Matchers/adjacency_graphs.json: update it using new build_keyboard_adjacency_graphs.py script to add AZERTY keyboard layout
f55d8ae
to
9eab908
Compare
I rebased my commits on your next branch and switch this PR to the next branch. |
Hello,
I'm currently working on French support and this first PR add AZERTY keyboard layout support in SpatialMatch. My modifications: