a command line tool for automating emoji exports from svg, including animation.
emoji crafter can be installed using cargo:
sh
cargo install emoji-crafter
to create a new emojiset project, just use the new
command and provide the path/name for your project:
sh
emoji new my-emojis
then change into the new project directory that the command created.
to export your emojiset run either:
sh
emoji build # to build once
emoji watch # to build on file change
the emojiset manifest file (emoji.toml
), used for defining what assets are used by the project, and what will be exported at build time.
```toml [emojiset]
name = "my emojis"
document = "emojiset.svg"
stylesheet = "emojiset.css"
[[theme]]
name = "my emojis"
prefix = ""
stylesheet = "themes/my emojis.css"
[[output]]
trim = false directory = "original"
[[output]]
trim = true directory = "trimmed" ```
in addition to what's defined on project creation, you can also define templates to render text files:
```toml [[template]]
input = "my template.tpl"
output = "my document.md" ```
you can use tinytemplate syntax to build your templates.
each emoji is a group that has a desc which contains some toml describing how that group should be exported. for a static image emoji, it looks like:
```toml type = "image"
name = "bunne" ```
animations are much the same:
toml
type = "animation"
name = "bunnehop"
however they also contain groups which make up the individual frames of the animation:
```toml type = "frame"
delay = 60
position = 1 ```
yes i am allergic to capital letters, no i will not spell bunne correctly