Swift File Format

The Swift File Format is entirely text based. It is designed so that equation can be easily written by hand.

This document explains the Swift File Format

First of all you should understand about the inherent nature of an equation. Every equation is an equation inside an equation inside an equation. Basically what this means is that suppose we have the equation . You can see below how it is internally saved and the actual equation file.

{
	brace
	type = 2
	{
		text "X+Y" 12
	}
	text "*" 12
	pbyq
	type = 1
	{
		text "a+b" 12
	}
	{
		text "d" 12
	}	
}

So the file format logically follows this pattern. Some simple rules of the Swift Equation Language (SEL) are:

The different markup tags with their syntax are given below and the name are self explanatory.

NOTE: For some tags, a type follows the tag. The type number is the number of the icon on the sub toolbar with numbers starting at 1. For example for braces, the type for square brace is 2.

In the index below, # stands for comment.



brace
type = [1, 9]
One equation

nthroot
Equation of contents
Equation of radix

squareroot
Equation of contents

pbyq
type=[1, 2]
Equation of numerator
Equation of denominator

integral
type = [1,9]
Equation of integrand
Equation of lowerlimit
Equation of upperlimit
supersub #This is the prefix, suffix
Equation of righthand bottom
Equation of righthand top
Equation of lefthand top
Equation of lefthand bottom
derivative
style=1, 2
#1 - d/dx(f), 2 - df/dx
type=[1,6]
Equation of Numerator without the corresponding derivative symbol
Equation of Denominator with the corresponding derivative symbol
matrix
rows, columns
align = [left, right, center]
rows * columns number of equations
sigma
Equation to be summed
Starting condition equation
Terminating condition equation
pi
Equation to be summed
Starting condition equation
Terminating condition equation
limit
Equation of function
Equation of limit
fnx
type = [1,19]
Contents including the brace ie the equation that is written must include the brace also.
abar
type = [1,8]
Equation of contents
NOTE: As of now, there is no provision to write the special math characters when writing equations by hand. You have to manually type in the ASCII codes.


Last updated on May 4, 1998.
This page hosted by Get your own Free Home Page

1