4
92
Fork
You've already forked zg
23

Add Emoji module and codegen/emoji #75

Closed
jacobsandlund wants to merge 0 commits from jacobsandlund/zg:emoji into master
pull from: jacobsandlund/zg:emoji
merge into: atman:master
atman:master
atman:no-allocation
Contributor
Copy link

This PR adds a new Emoji module which can be used to query for emoji properties such as isEmojiPresentation and isExtendedPictographic.

This also adds a new codegen/emoji.zig and constructs a separate compressed binary representation of the emoji data.

The motivation for this PR is to get zg to support some of the functionality that was present in ziglyph, in order to be able to replace ziglyph with zg in the Ghostty codebase, which makes use of these emoji methods: https://github.com/ghostty-org/ghostty/issues/5694

This PR adds a new `Emoji` module which can be used to query for emoji properties such as `isEmojiPresentation` and `isExtendedPictographic`. This also adds a new `codegen/emoji.zig` and constructs a separate compressed binary representation of the emoji data. The motivation for this PR is to get `zg` to support some of the functionality that was present in `ziglyph`, in order to be able to replace `ziglyph` with `zg` in the Ghostty codebase, which makes use of these `emoji` methods: https://github.com/ghostty-org/ghostty/issues/5694
Author
Contributor
Copy link

I also have some PRs that I'll be sending after this, stacked upon this but for now opened against my fork:

I also have some PRs that I'll be sending after this, stacked upon this but for now opened against my fork: * https://codeberg.org/jacobsandlund/zg/pulls/1 - Use Emoji in codegen/gbp and handle emoji modifier sequences better * https://codeberg.org/jacobsandlund/zg/pulls/2 - Remove stage 3 for Graphemes
Owner
Copy link

This seems reasonable, but it now has merge conflicts, so please rebase it on master, and I'll download it and take a look, thanks.

Please open issues for the other proposed changes. Thank you.

This seems reasonable, but it now has merge conflicts, so please rebase it on `master`, and I'll download it and take a look, thanks. Please open issues for the other proposed changes. Thank you.
Author
Contributor
Copy link

@atman done! merge conflicts resolved!

@atman done! merge conflicts resolved!
Owner
Copy link

Uh. Sorry Jacob. Once more, with feeling!

Uh. Sorry Jacob. Once more, with feeling!
Author
Contributor
Copy link

Hey @atman, sorry for the delay. I've been busy with life and other things, including spending some time on the uucode library I started a while back. Feel free to take over this and do whatever you like with it!

Hey @atman, sorry for the delay. I've been busy with life and other things, including spending some time on the uucode library I started a while back. Feel free to take over this and do whatever you like with it!
Owner
Copy link

Incorporated manually into v0.16.0. Thanks again Jacob.

Incorporated manually into [v0.16.0](https://codeberg.org/atman/zg/releases/tag/v0.16.0). Thanks again Jacob.
atman closed this pull request 2026年04月21日 18:35:34 +02:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
atman/zg!75
Reference in a new issue
atman/zg
No description provided.
Delete branch "jacobsandlund/zg:emoji"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?