# tvraman/emacspeak

Fetching contributors…
Cannot retrieve contributors at this time
54 lines (40 sloc) 1.72 KB

# Maths Server In Node

math-server.js is a NodeJS script that implements a simple socket server. This server accepts LaTeX math expressions, and processes them using MathJax and the Speech-Rule-Engine to produce spoken math using Aural CSS.

Note that this is early, experimental code, i.e. there is no support, and if it breaks, you get to keep both pieces.

# Setup Instructions

## Install node, npm and nvm

1. Install node and npm. You need a newer node than the default node installed in Ubuntu, use nvm (Node Version Manager) to manage the node installation. See file nvm-setup in this directory for instructions.
2. Copy the nvm-setup file to your home directory as .nvm-setup, and make sure it runs correctly by executing:
. .nvm-setup

1. If the above runs without errors, add the line
. .nvm-setup


to your .bash_profile.

1. Make sure that your environment is set up to find the right node executable:
which node


## Test the server at the shell

node math-server.js


Then, from a different shell window, connect to the server.

nc localhost 5000
enter: \frac{a+b}{c+d}


If all goes well, you’ll see an S-expression printed out. Hit C-d to close client and server.