Unofficial bindings from typst/hypher
to native Typst.
Full documentation here.
Versions
hy-dro-gen |
hypher |
---|---|
0.1.0 | 0.1.5 |
Basic usage
#import "@preview/hy-dro-gen:0.1.0" as hy
// `exists` checks if a language is supported
#assert(hy.exists("fr"))
#assert(not hy.exists("xz"))
// `syllables` splits words according to the language provided (default "en")
#assert.eq(hy.syllables("hydrogen"), ("hy", "dro", "gen"))
#assert.eq(hy.syllables("hydrogène", lang: "fr"), ("hy", "dro", "gène"))
#assert.eq(hy.syllables("υδρογόνο", lang: "el"), ("υ", "δρο", "γό", "νο"))