home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15719 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.9 KB

  1. 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
  2. Newsgroups: comp.sys.amiga.programmer
  3. Subject: Comments needed: Math Equation ed
  4. Message-ID: <1992Nov11.210051.11109@uoft02.utoledo.edu>
  5. From: mneylon@jupiter.cse.utoledo.edu (Michael Neylon)
  6. Date: 11 Nov 92 21:00:50 EST
  7. Nntp-Posting-Host: jupiter.cse.utoledo.edu
  8. Lines: 30
  9.  
  10. I would like know what people think of the following possible data
  11. structure  for a math equation editing program.  Mind you, I am NOT
  12. working on this, mostly due to lack of skill in Amigaa programiing, but
  13. I would like to inspire others into writing one.  I know there are attempts
  14. out there to make it, so hopefully, people would see these ideas and might
  15. use them....
  16.  
  17. Anyway, the structure for each character in the equation would be..
  18. -ref to the character.  This can include ascii #, font name, size, style..
  19. -relative position of character before it...(see below)
  20. -width and height of character
  21. -pointer to struct of the next char on the same line at the same size as
  22.     this char.
  23. -pointers to 6 other structs, one for character above and to the left of
  24.     the current, one for above, one for above and to the right, and
  25.     three for below (front, directly, and right).  NULL if no char
  26.     there.
  27.  
  28. Why this structure?  This should speed up drawing routines emensely.
  29. With each character, you recursively scan the six latter pointers to 
  30. determine what is around it, then you proceed to the next c character.
  31. Editing should only have to involve reassigning an old pointer and removing
  32. or adding a new structure.  
  33.  
  34.  
  35. -- 
  36. Michael Neylon   aka Masem the Great and Almighty Thermodynamics GOD!
  37.       //         | Senior, Chemical Engineering, Univ. of Toledo
  38.   \\ // Only the |   Summer Intern, NASA Lewis Research Center
  39. \  \X/   AMIGA!  |         mneylon@jupiter.cse.utoledo.edu           /
  40.