···2323- `--subset`: Subset output font to contain only annotation characters
2424- `--split`: When input is a TTC, write each font as a separate TTF file instead of rebuilding a TTC
2525- `--woff2`: Convert outputs to WOFF2
2626+- `--position <top|bottom|leftdown|leftup|rightdown|rightup>`: Where to place ruby annotations relative to the base glyph. Valid values:
2727+ - `top` (default): place annotation above the base glyph
2828+ - `bottom`: place annotation below the base glyph
2929+ - `leftdown`: place annotation to the left, stacking downwards
3030+ - `leftup`: place annotation to the left, stacking upwards
3131+ - `rightdown`: place annotation to the right, stacking downwards
3232+ - `rightup`: place annotation to the right, stacking upwards
26332727-### Example
3434+### Examples
28352929-Process a single TTC, split into TTFs, subset and output WOFF2:
3636+```sh
3737+rubify Sarasa-Regular.ttc -o dist --ruby pinyin
3838+```
30393140```sh
3232-rubify Sarasa-Regular.ttc -o dist --font iosevka/IosevkaSlim-Regular.ttf --subset --ruby romaji --position bottom --split --woff2
4141+rubify *.ttc -o dist --font iosevka/IosevkaSlim-Regular.ttf --ruby romaji --position bottom --split --woff2
3342```
4343+4444+
34453546## License
3647
example.png
This is a binary file and will not be displayed.
-4
taplo.toml
···11-# Sorts `Cargo.toml` dependencies. All other `.toml` files are formatted with the default config.
22-#
33-# https://taplo.tamasfe.dev/configuration/file.html#configuration-file
44-51[formatting]
62reorder_keys = false
73reorder_arrays = false