Permalink
Browse files

frontend completely removed

  • Loading branch information...
1 parent c3926b8 commit 1e68a21e6f0f9bea173731b88ec7a4bdc18b7617 @kirel committed Aug 3, 2009
Showing 915 changed files with 2 additions and 2,368 deletions.
View
@@ -1,5 +1,5 @@
-# Latex symbol classifier
+# Detexify
-This is proof of concept work. It is <strike>slow and</strike> inaccurate. This may change if I find time or interested people.
+LaTeX symbol classifier as a webservice.
Copyright (c) 2009 Daniel Kirsch, released under the MIT license, see MIT-LICENSE
View
10 app.rb
@@ -5,16 +5,6 @@
COUCH = ENV['COUCH'] || "http://127.0.0.1:5984/detexify"
CLASSIFIER = Detexify::Classifier.new(COUCH, Detexify::Extractors::Strokes::Features.new)
-%w(/en/classify /de/classify).each do |path|
- get path do
- redirect '/classify.html'
- end
-end
-
-get '/' do
- redirect '/classify.html'
-end
-
get '/status' do
JSON :loaded => CLASSIFIER.loaded?, :progress => CLASSIFIER.progress
end
View
@@ -1,133 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <title>Detexify LaTeX handwritten symbol recognition</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="description" content="An approach to simplify finding LaTeX symbols.">
- <meta name="keywords" content="math,LaTeX,productivity,typesetting,science,machine learning,PhD">
- <link rel="stylesheet" type="text/css" href="css/style.css">
- <link rel="stylesheet" type="text/css" href="css/gritter.css" />
- <script type='text/javascript' src="js/jquery-1.3.2.min.js"></script>
- <script type="text/javascript" src="js/jquery.gritter.js"></script>
- <script type='text/javascript' src="js/jquery-ui-1.7.2.custom.min.js"></script>
- <script type='text/javascript' src="js/tools.tooltip-1.0.2.js"></script>
- <script type='text/javascript' src="js/jquery.md5.js"></script>
- <script type='text/javascript' src="js/json2.js"></script>
- <script type='text/javascript' src="js/shared.js"></script>
- <script type='text/javascript' src="js/canvassify.js"></script>
- <script type='text/javascript' src="js/classify.js"></script>
- </head>
- <body class="classify">
- <div id="everything">
- <div id="status"></div>
- <h1>Detexify<sup>2</sup> - LaTeX symbol classifier</h1>
-
- <ul class="nav">
- <li class="classify"><a href="/classify.html">classify</a></li>
- <li class="symbols"><a href="/symbols.html">symbols</a></li>
- <li class="blog"><a href="http://detexifyblog.kirelabs.org" target="_blank">blog</a></li>
- </ul>
-
- <div id="canvasarea">
- <img id="drawhere" alt="Draw here!" src="http://detexify.kirelabs.org.s3.amazonaws.com/images/draw_here.png">
- <div id="canvascontainer">
- <canvas id="tafel" width="400" height="400">
- Your browser must support the &lt;canvas&gt; element in order
- to use this site.
- </canvas>
- <div id="canvasspinner" class="spinner">
- <img alt='Loading...' src='http://detexify.kirelabs.org.s3.amazonaws.com/images/spinner.gif'>
- </div>
- </div>
- <div id="canvascontrols">
- <a id="clear" href='#'>clear</a>
- </div>
- <div id="canvaserror">This canvas is fubar :(</div>
- </div>
-
- <div id="infoarea">
- <h2>What is this?</h2>
- <p>
- Anyone who works with LaTeX knows how time-consuming it can be
- to find a symbol in
- <a href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/">symbols-a4.pdf</a>
- that you just can't memorize. Detexify is an attempt to simplify this search.
- </p>
- <h2>How does it work?</h2>
- <p>
- Just draw the symbol you are looking for into the square area above and look what happens!
- </p>
- <h2>My symbol isn't found!</h2>
- <p>
- The symbol may not be trained enough
- or it is not yet in the list of supported symbols.
- In the first case you can do the training yourself.
- In the second case just drop me a line (danishkirel@gmail.com)!
- </p>
- <h2>I like this. How can I help?</h2>
- <p>
- You could spare some time training Detexify. You could also
- look at the source on <a href="http://github.com/kirel/detexify">GitHub</a>
- and if you want to contribute you're welcome. If you really, really like this
- you can also donate.
- </p>
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="6986639">
- <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
- <img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1">
- </form>
- <h2>This doesn't work at all!?</h2>
- <p>
- Detexify relies on HTML5 features so you need a fairly recent browser.
- Opera 9.6 / Firefox 3.5 / Safari 4 should do the trick.
- </p>
- <h2>Who created Detexify?</h2>
- <p>
- Philipp Kühl had the initial idea and
- <a href='http://kirelabs.org'>Daniel Kirsch</a> made it happen.
- </p>
- <h2>Where is the old Detexify?</h2>
- <p>
- I is still available at
- <a href='http://olddetexify.heroku.com'>http://olddetexify.heroku.com</a>
- but it is no longer updated and may disappear in the future.
- </p>
- </div>
-
- <div id="hitarea">
- <div id="adsense">
- <script type="text/javascript"><!--
- google_ad_client = "pub-7217292717360456";
- /* in den Ergebnissen */
- google_ad_slot = "0785038537";
- google_ad_width = 468;
- google_ad_height = 60;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- <ul id="symbols" class="symbols">
- </ul>
- <div id="morearea">
- The symbol is not in the list?
- <a id="more" href='#'>Select from the complete list!</a>
- </div>
- <div id="traintip" class="tooltip">
- Is this the right symbol? Please <strong>click</strong> to train!
- </div>
- </div>
- </div>
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("UA-8668142-3");
- pageTracker._trackPageview();
- } catch(err) {}</script>
- </body>
-</html>
View
@@ -1,88 +0,0 @@
-/* ie6 trash */
-* html #gritter-notice-wrapper {
- position:absolute;
-}
-* html .gritter-top {
- margin-bottom:-10px;
-}
-* html .gritter-item {
- padding-bottom:0;
-}
-* html .gritter-close {
- background:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-close-ie6.gif);
- width:22px;
- height:22px;
- top:7px;
- left:7px;
-}
-
-/* the norm */
-#gritter-notice-wrapper {
- position:fixed;
- top:20px;
- right:20px;
- width:301px;
- z-index:9999;
-}
-.gritter-item-wrapper {
- position:relative;
-}
-.gritter-top {
- background:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-top.png) no-repeat top left;
- height:10px;
-}
-.hover .gritter-top {
- background-image:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-top-hover.png);
-}
-.gritter-bottom {
- background:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-bottom.png) no-repeat bottom left;
- height:8px;
- margin: 0 0 12px 0;
-}
-.hover .gritter-bottom {
- background-image:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-bottom-hover.png);
-}
-.gritter-item {
- display:block;
- background:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-bg-tile.png);
- color:#eee;
- padding:2px 11px 8px 11px;
- font-size: 11px;
- font-family:verdana;
-}
-.gritter-item p {
- padding:0;
- margin:0;
-}
-.hover .gritter-item {
- background-image:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-bg-tile-hover.png);
-}
-.gritter-close {
- position:absolute;
- top:5px;
- left:3px;
- background:url(http://detexify.kirelabs.org.s3.amazonaws.com/images/gritter-close.png);
- cursor:pointer;
- width:30px;
- height:30px;
-}
-.gritter-title {
- font-size:14px;
- font-weight:bold;
- padding:0 0 7px 0;
- display:block;
- text-shadow:1px 1px #000; /* Not supported by IE :( */
-}
-.gritter-image {
- width:48px;
- height:48px;
- float:left;
-}
-.gritter-with-image,
-.gritter-without-image {
- padding:0 0 5px 0;
-}
-.gritter-with-image {
- width:220px;
- float:right;
-}
Oops, something went wrong.

0 comments on commit 1e68a21

Please sign in to comment.