Skip to content

QuarticCat/detypify

Repository files navigation

logo

Detypify

Can't find some Typst symbol? Draw it!

Features

  • PWA: installable and works offline
  • Tiny model: fast to load and run
  • Decent symbol set: support 400+ symbols

You can also use it in Tinymist.

Development

File Structure

- python     # training scripts
- frontend
  - service  # inference lib
  - ui       # web UI
  - worker   # Cloudflare worker

Check corresponding folders for more information.

Before you build frontend projects, make sure you have the train folder in frontend/service by either:

  • Train your own one, or
  • Download from NPM.

Logo

Source: assets/manuscript.svg (requires NewComputerModernMath font)

To compile it for production:

$ cd assets
$ inkscape manuscript.svg --export-text-to-path --export-filename=logo.svg  # convert text to path
$ bunx svgo --multipass logo.svg  # optimize SVG

License

MIT

About

Typst symbol classifier

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors