Tree [bbd1b0] master /
History



File Date Author Commit
src 2012-05-25 Chris N. Gilbreth Chris N. Gilbreth [bbd1b0] Bump version number in symbol.el
.gitignore 2010-09-20 Chris Gilbreth Chris Gilbreth [8fc361] Initial commit
AUTHORS 2011-05-10 Chris N. Gilbreth Chris N. Gilbreth [f5ed75] Add AUTHORS and LICENSE files
LICENSE 2011-05-10 Chris N. Gilbreth Chris N. Gilbreth [f5ed75] Add AUTHORS and LICENSE files
README 2011-05-10 Chris N. Gilbreth Chris N. Gilbreth [8fc4a5] Added README

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.