Skip to content
Latex Symbol Classifier Web Frontend
CSS JavaScript Ruby HTML CoffeeScript
Latest commit 3854b11 Jun 17, 2016 @kirel middleman build
Failed to load latest commit information.
bower_components/jquery Big rewrite Jul 11, 2014
lib
public
sample-tool
source
spec Update specs Jul 7, 2014
.autotest
.env
.gitignore
.ruby-version
.slugignore
BENCH.txt
Gemfile
Gemfile.lock
MIT-LICENSE license Jun 19, 2009
Procfile
README.md
Rakefile
bower.json
config.rb Big rewrite Jul 11, 2014
config.ru
init.rb

README.md

Detexify (Frontend)

LaTeX symbol classifier as a webservice. This is the frontend. Uses https://github.com/kirel/detexify-hs-backend as the backend.

Setup

  • Install Ruby 2.1.2 and Bundler
  • $ bundle
  • $ bundle exec dotenv middleman

Production setup

  • $ bundle exec middleman build
  • $ bundle exec dotenv rackup
  • open http://localhost:9292

This runs the frontend locally using the production backend. It is configured via environment variables. To setup the backend locally see https://github.com/kirel/detexify-hs-backend

Tests

Check if all symbols are compiling: $ rspec spec

Tasks

reminder for myself source ~/.aws

Adding symbols

You need Latex installed!

Symbols are configured in lib/latex/symbols.yml.

  1. Add the symbol
  2. run the tests $ rspec spec
  3. Create a Pull-Request

For me:

  1. generate the symbol sprite $ bundle exec rake symbols:sprite
  2. Redeploy git push heroku master

Populate the backend

$ bundle exec dotenv rake populate (uses TRAINCOUCH to populate CLASSIFIER - see .env for defaults)

License

Copyright (c) 2009 Daniel Kirsch, released under the MIT license, see MIT-LICENSE

Something went wrong with that request. Please try again.