Commit Graph

39 Commits

Author SHA1 Message Date
Vivianne 50f8bb891d
Add string->grapheme-list and char->grapheme
- string->grapheme-list gets only final graphemes without intermediate ones
- char->grapheme just works for single-chars that are valid graphemes.
2024-03-10 23:50:05 -04:00
Vivianne afa19676c5
Add new function to get the first grapheme from a string.
Not sure if I have a use-case yet but it seems like it could come in handy.
2024-03-10 20:09:25 -04:00
Vivianne b930cf2e5a
Add pre-inst-env 2024-03-06 12:58:37 -05:00
Vivianne c302065af2
Update guix to get rid of hall cruft 2024-03-06 12:48:57 -05:00
Vivianne 822c410964
Update doc stubs to remove hall and references to reflow 2024-03-06 12:43:47 -05:00
Vivianne b614613ea7
Delete hall and its nonsense 2024-03-06 12:42:03 -05:00
Vivianne 3e70454764
Update URLs 2024-03-06 12:25:47 -05:00
Vivianne 054bc193b6 Fixed bug with the grapheme-glyphs function 2024-03-05 22:28:48 -05:00
Vivianne ff9ec71a09 fix broken hall 2024-03-05 18:40:04 -05:00
Vivianne 31012d5b8f Yet another reorganization, and solve Christine's 'rude problem'
- We change the stream iterator to *always* return a grapheme
  (except for EOF). The grapheme then gets built up over time.
  - This way, trans flag for example is first white flag, then
  white flag + zwj, etc until it finally transforms into the
  trans flag.
  - Users of the stream library can then use the `modification?'
  flag to determine if the stream value is a modification of the
  prior grapheme instead of a new grapheme.
  - Abstracted iteration to an iterator object to support use cases
  where we don't have an input stream (reflow needs this!)
2024-03-05 11:46:32 -05:00
Vivianne 1c0c4634f9 Renaming vars [need to sort the output of hash table...] 2024-03-04 17:21:19 -05:00
Vivianne 5f684735df Further boilerplate improvements 2024-03-04 17:18:25 -05:00
Vivianne 94dd8e00e8 Cut out a LOT of duplicated boilerplate, very simple definitions now 2024-03-04 17:12:09 -05:00
Vivianne a03c6d2348 Cleanups and reducing duplicates 2024-03-04 14:27:12 -05:00
Vivianne 92dc5a8908 Fixing issues with the stream unit tests (#1)
Reviewed-on: #1
Co-authored-by: Vivianne Langdon <puttabutta@gmail.com>
Co-committed-by: Vivianne Langdon <puttabutta@gmail.com>
2024-03-04 19:04:27 +00:00
Vivianne e3c9ed9d8f Be more lazy and slack off 2024-03-04 09:38:48 -05:00
Vivianne fcc0f4b263 Add failing unit tests, seems stream is not 100% 2024-03-03 23:18:13 -05:00
Vivianne 59c9347bea Unit tests! 2024-03-03 21:17:15 -05:00
Vivianne ded13ff781 Rename func 2024-03-03 20:33:12 -05:00
Vivianne e53876be52 Holy shit it works 2024-03-03 20:25:47 -05:00
Vivianne 1692a9fc05 first pass untested state machine 2024-03-03 14:20:02 -05:00
Vivianne 47146c887f Comments and docs 2024-03-03 13:27:11 -05:00
Vivianne f1c03097f1 Renaming to uniseg 2024-03-03 13:13:22 -05:00
Vivianne 4a93c70b79 Significant refactors and cleanups, and add grapheme parse 2024-03-02 18:54:38 -05:00
Vivianne 8ea25ea23d readd runewidth as it will have widths 2024-03-02 17:20:16 -05:00
Vivianne ce19c560d8 Revert "Update hall deleting readme"
This reverts commit 97a3271c94.
2024-03-02 16:56:32 -05:00
Vivianne 0a6b19c689 Revert "Delete the symlink readme"
This reverts commit 2032b66090.
2024-03-02 16:52:42 -05:00
Vivianne 97a3271c94 Update hall deleting readme 2024-03-02 14:28:07 -05:00
Vivianne 2032b66090 Delete the symlink readme 2024-03-02 14:27:10 -05:00
Vivianne d5f8a64835 Update readme 2024-03-02 14:25:46 -05:00
Vivianne 4bab547c66 Oops wrong project lol here is a proper readme 2024-03-02 14:23:36 -05:00
Vivianne b4b7960b9f Update readme with basic intro 2024-03-02 14:12:31 -05:00
Vivianne 6670b98817 Remove empty file 2024-03-02 14:04:34 -05:00
Vivianne 1271d86782 remove the pks! 2024-03-02 14:02:32 -05:00
Vivianne 5b440bbb64 Reorganize, fix a bug with string shared 2024-03-02 14:00:05 -05:00
Vivianne 470b20a74c Add emoji and actually get east asian generator working 2024-03-02 13:37:54 -05:00
Vivianne 10c8421f29 WIP script 2024-03-01 08:09:22 -05:00
Vivianne eaaceb3c56 Adding check for east asian charset with tests 2024-02-29 15:17:43 -05:00
Vivianne a5bdb2e688 Initial commit 2024-02-29 13:03:58 -05:00