home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!bgsuvax!uoft02.utoledo.edu!jupiter!mneylon
- Newsgroups: comp.sys.amiga.programmer
- Subject: Comments needed: Math Equation ed
- Message-ID: <1992Nov11.210051.11109@uoft02.utoledo.edu>
- From: mneylon@jupiter.cse.utoledo.edu (Michael Neylon)
- Date: 11 Nov 92 21:00:50 EST
- Nntp-Posting-Host: jupiter.cse.utoledo.edu
- Lines: 30
-
- I would like know what people think of the following possible data
- structure for a math equation editing program. Mind you, I am NOT
- working on this, mostly due to lack of skill in Amigaa programiing, but
- I would like to inspire others into writing one. I know there are attempts
- out there to make it, so hopefully, people would see these ideas and might
- use them....
-
- Anyway, the structure for each character in the equation would be..
- -ref to the character. This can include ascii #, font name, size, style..
- -relative position of character before it...(see below)
- -width and height of character
- -pointer to struct of the next char on the same line at the same size as
- this char.
- -pointers to 6 other structs, one for character above and to the left of
- the current, one for above, one for above and to the right, and
- three for below (front, directly, and right). NULL if no char
- there.
-
- Why this structure? This should speed up drawing routines emensely.
- With each character, you recursively scan the six latter pointers to
- determine what is around it, then you proceed to the next c character.
- Editing should only have to involve reassigning an old pointer and removing
- or adding a new structure.
-
-
- --
- Michael Neylon aka Masem the Great and Almighty Thermodynamics GOD!
- // | Senior, Chemical Engineering, Univ. of Toledo
- \\ // Only the | Summer Intern, NASA Lewis Research Center
- \ \X/ AMIGA! | mneylon@jupiter.cse.utoledo.edu /
-