Read Me
Introduction
************
symbol.py is a compiler wrapper and a set of editor plugins allowing you to
easily use Greek letters, accents, and other Unicode symbols in any programming
language.
Website: http://usymbol.sf.net/
Example
*******
main.c:
#include <stdio.h>
int main(void) {
double π = 3.14159;
printf("%f\n",π);
return 0;
}
Compile:
$ symbol.py gcc main.c -o pi
Run:
$ ./pi
Installation
************
(1) Move the file src/symbol.py to a convenient location in your PATH.
(2) Make it executable:
$ chmod +x symbol.py
(3) You are done.
Emacs plugin (optional)
***********************
To install the emacs plugin:
(1) Put the file src/symbol.el in a convenient location (say "/mypath"), and add
(load "/mypath/symbol.el")
to your .emacs file.
(2) Open emacs, type a character (e.g. "p"), and then type the backquote
character (`) to cycle through alternatives (e.g. "π").
(3) To type a backquote character, use C-`. To change the key used to cycle
through alternatives (perhaps to F8), see the top of symbol.el.