The Unicode `codepoint` can now be of any length in the normalized NFC form.
Fixes (again) #15.
See: e4746c699d
2.4 KiB
Unicode Search: Development
These are my notes on the development of the plugin.
Release: How To
- From the
developbranch, create a release branchrelease/X.Y.Z - Go to package.json and overwrite
X.Y.Z-NEXTwith new version throughout the whole project (double check if save data version needs to be updated) - Update the package-lock file:
npm install - Export save data schema:
npm run export-schema - Run tests:
npm run test - Run build and test out the app:
npm run build - Commit as "Version
X.Y.Z" - Push, and fix if build fails, otherwise merge to the
mainbranch - Create a tag with the label
X.Y.Z - GitHub Actions will create a release
- Add release notes to the release
- Fast-forward the
developbranch - Go to package.json and overwrite
X.Y.Zwith next versionX.Y.Z-NEXTthroughout the whole project - Update the package-lock file:
npm install - Commit as "Set version as
X.Y.Z-NEXT" to thedevelopbranch
Development Diary
27. September 2025
Unicode characters can be defined by multiple parts, which makes the string length in JavaScript larger than 1.
I thought the "NFC" normalization limited the string to a length of 2, but that is not the case.
The character U+FB2C has a length of 3, see issue #15.
The "NFC" normalization is still applied, but I don't believe it will guarantee any maximum length of the string.
Fixed in part thanks to https://dietcode.io/p/unicode-normalization/.
22. April 2025
The save data rework is kind-of done. Still, there is overlap between fetching and initializing data which I want to look at later.
23. December 2024
Before releasing the new feature, I have to fix the user save data implementation. Now it deletes their data when a new version of the plugin is loaded. So, it would forget the favorite characters after an update.
19. December 2024
This small plugin became a bit too elaborately written. I added the "favorite characters," and I'm almost done with it. It works alright, but adding new settings is tedious, so I'm thinking of adding Svelte as the next step (to make the UI modifications easier.)
Also, I want to simplify the code after, because I believe the codebase exploded for no good reason.