| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | Merge pull request 'FoldData: Minimize Changes_When_Casefolded data' (#10) ↵ | 2024-06-27 | 2 | -8/+34 | ||
| |\ \ | |/ |/| | | | | | | | from squeek502/zg:folddata-min into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/10 | |||||
| | * | FoldData: Minimize Changes_When_Casefolded data | 2024-06-27 | 2 | -8/+34 | ||
| |/ | | | | | | | | | | | | | | | | | | Only a few codepoints have a mapping in CaseFolding.txt but do not have the Changes_When_Casefolded property set. So, FoldData can just store a list of those particular codepoints and then re-use the encoded CaseFolding.txt data alongside it in order to implement changesWhenCaseFolded. This reduces the size of fold.bin.z from 4,387 bytes (4.28KiB) to 1,165 bytes (1.13KiB). This also seemingly introduced a very slight performance regression in zg_caseless. Before: zg CaseFold.compatCaselessMatch: result: 626, took: 258ns zg CaseFold.canonCaselessMatch: result: 626, took: 129ns After: zg CaseFold.compatCaselessMatch: result: 626, took: 263ns zg CaseFold.canonCaselessMatch: result: 626, took: 131ns | |||||
| * | Implements new case fold data encoding by @sqeek502 #8 | 2024-06-26 | 1 | -5/+6 | ||
| | | ||||||
| * | Removed all inlines | 2024-06-26 | 11 | -33/+35 | ||
| | | ||||||
| * | Added changes when casefolded back | 2024-06-26 | 2 | -33/+55 | ||
| | | ||||||
| * | Implemented sqeek502s case fold | 2024-06-26 | 3 | -133/+245 | ||
| | | ||||||
| * | Merge pull request 'Normalize: Mark utf8Encode errors as unreachable, use ↵ | 2024-06-26 | 1 | -11/+11 | ||
| |\ | | | | | | | | | | | explicit error sets' (#7) from squeek502/zg:normalize-utf8encode-error into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/7 | |||||
| | * | Normalize: Mark utf8Encode errors as unreachable, use explicit error sets | 2024-06-25 | 1 | -11/+11 | ||
| |/ | | | | These utf8Encode calls are converting normalized codepoints back into UTF-8, so the codepoints can be assumed to be valid. | |||||
| * | Update README | 2024-06-15 | 1 | -1/+2 | ||
| | | ||||||
| * | Updated README for tag v0.13.1v0.13.1 | 2024-06-10 | 1 | -1/+1 | ||
| | | ||||||
| * | Merge pull request 'codepoint: prevent panic when last cp too short' (#6) ↵ | 2024-06-10 | 1 | -0/+11 | ||
| |\ | | | | | | | | | | | from rockorager/zg:master into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/6 | |||||
| | * | Merge branch 'master' into pr6 | 2024-06-10 | 4 | -8/+5 | ||
| | |\ | |/ |/| | ||||||
| * | | Updated README for v0.13.0v0.13.0 | 2024-06-08 | 1 | -2/+2 | ||
| | | | ||||||
| * | | Updated benchmark | 2024-06-07 | 2 | -3/+3 | ||
| | | | ||||||
| * | | Merge pull request 'build: use b.path everywhere' (#5) from ↵ | 2024-06-07 | 1 | -1/+1 | ||
| |\ \ | | | | | | | | | | | | | | | | rockorager/zg:master into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/5 | |||||
| * | | | Updated build.zig b.path | 2024-05-19 | 2 | -39/+36 | ||
| | | | | ||||||
| | | * | codepoint: prevent panic when last cp too short | 2024-06-10 | 1 | -0/+11 | ||
| | |/ | | | | | | | | | | | | | | | | | | | | | If the last codepoint in a byte slice is incomplete (IE has a length of 3 but there are only 2 bytes remaining), the iterator will panic. Instead of panicking, prefer to return a replacement character. This strategy is similar to that in the block just above which returns a replacement character if the first byte is not valid. In this latter block, we also consume only one byte and allow the iterator to continue. This allows for sections of text which may have a single byte incorrect near the end of the slice. | |||||
| | * | build: use b.path everywhere | 2024-06-07 | 2 | -37/+37 | ||
| |/ | | | | | | Use b.path everywhere in build.zig to make library compatible with zig 0.13.0. Also in 0.13.0, zig-cache was moved to .zig-cache. Update .gitignore accordingly. | |||||
| * | Removed emoji modifier display width = 0 case. | 2024-05-03 | 2 | -3/+3 | ||
| | | ||||||
| * | Merge pull request 'DisplayWidth: explicitly set width to 2 when VS16 is ↵ | 2024-04-11 | 1 | -0/+4 | ||
| |\ | | | | | | | | | | | found' (#3) from rockorager/zg:vs-16 into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/3 | |||||
| | * | DisplayWidth: explicitly set width to 2 when VS16 is found | 2024-04-11 | 1 | -0/+4 | ||
| | | | | | | | | | | | | | | | | | Explicitly set the width of an emoji to two when the next codepoint is a VS16 selector. Add unit test for this case. This is essentially the same PR as https://codeberg.org/dude_the_builder/ziglyph/pulls/11 | |||||
| * | | Merge pull request 'grapheme: export grapheme.State struct' (#2) from ↵ | 2024-04-11 | 1 | -1/+1 | ||
| |\ \ | |/ |/| | | | | | | | rockorager/zg:gb-state into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/2 | |||||
| | * | grapheme: export grapheme.State struct | 2024-04-11 | 1 | -1/+1 | ||
| |/ | | | | | | The public function `graphemeBreak` requires a reference to a State struct, however this type is not exported. Export the type to allow users of zg to use this type and call graphemeBreak. | |||||
| * | Updated benchmarksv0.1.0 | 2024-04-02 | 3 | -6/+5 | ||
| | | ||||||
| * | NormData init now takes pointer to uninitialized Self to avoid stack copy ↵ | 2024-04-02 | 4 | -16/+24 | ||
| | | | | | issues. | |||||
| * | Updated README with zig fetch | 2024-03-31 | 1 | -6/+4 | ||
| | | ||||||
| * | Added benchmarks; Unicode version; Removed Ziglyph dep | 2024-03-31 | 22 | -9/+78735 | ||
| | | ||||||
| * | Added Ghostty ref in README | 2024-03-31 | 1 | -4/+5 | ||
| | | ||||||
| * | Added LICENSE | 2024-03-31 | 1 | -0/+21 | ||
| | | ||||||
| * | Updated README | 2024-03-31 | 32 | -136/+606 | ||
| | | ||||||
| * | Split out Unicode tests to separate file | 2024-03-28 | 4 | -216/+209 | ||
| | | ||||||
| * | Merged NumericData into PropsData | 2024-03-28 | 3 | -77/+46 | ||
| | | ||||||
| * | PropsData and errdefers for init fns | 2024-03-28 | 16 | -24/+485 | ||
| | | ||||||
| * | ScriptsData and made all Datas const | 2024-03-27 | 19 | -62/+615 | ||
| | | ||||||
| * | Friendly general category methods | 2024-03-27 | 2 | -60/+146 | ||
| | | ||||||
| * | Export CaseData | 2024-03-27 | 1 | -1/+1 | ||
| | | ||||||
| * | Rename DisplayWidthData | 2024-03-27 | 1 | -7/+7 | ||
| | | ||||||
| * | rm src/main.zig | 2024-03-26 | 1 | -93/+0 | ||
| | | ||||||
| * | Removed main | 2024-03-26 | 1 | -26/+0 | ||
| | | ||||||
| * | GraphemeData and Normalize non-pub fns | 2024-03-26 | 2 | -13/+13 | ||
| | | ||||||
| * | Using diff for lowercase mapping | 2024-03-26 | 2 | -9/+10 | ||
| | | ||||||
| * | Using diff for uppercase mapping | 2024-03-26 | 2 | -9/+10 | ||
| | | ||||||
| * | Removed title case processing | 2024-03-26 | 3 | -105/+15 | ||
| | | ||||||
| * | CaseData | 2024-03-25 | 7 | -29/+613 | ||
| | | ||||||
| * | NumericData | 2024-03-24 | 4 | -19/+263 | ||
| | | ||||||
| * | Rename CaseFold and Normalize | 2024-03-23 | 4 | -26/+26 | ||
| | | ||||||
| * | Renamed Caser to Folder | 2024-03-23 | 2 | -7/+8 | ||
| | | ||||||
| * | Small format change in main | 2024-03-16 | 1 | -1/+5 | ||
| | | ||||||
| * | zon paths update; .gitattributes | 2024-03-02 | 2 | -2/+5 | ||
| | | ||||||
| * | Normalizer back to 300k in Safe | 2024-03-01 | 2 | -17/+17 | ||
| | | ||||||