W3C home > Mailing lists > Public > www-amaya-dev@w3.org > August 2002

Re: Question about Amaya and MathML

From: Irene Vatton <Irene.Vatton@inrialpes.fr>
Date: Tue, 13 Aug 2002 17:24:15 +0200
To: Chen Fe Pong <thefeping@yahoo.com>
Cc: www-amaya-dev@w3.org, Irene.Vatton@inrialpes.fr
Message-Id: <20020813152415.6BF3BC@maiaina.inrialpes.fr>

> 
> Dear sir/madam,
> 
> I'm a student currently working on my final project.
> it is about "How a Mathml script become a mathematical
> expression" by studying the source code of amaya 5.3.
> I have some question:
> 1. does Void StartXMLParser used only to parse the
> document? or it is used to parse and to display the
> expression on the screen?

It's used to parse the document and to parse expressions
generated by transform commands.
Edits on the screen work directly with the document tree
(DOM tree) and doesn't use the parser.

> 2. Which part/function that convert the script to
> become mathematical expression? i.e: from <mo>+</mo>
> become plus symbol on the screen.

The parser genetates a document tree (DOM tree) and
the thotlib generates the presentation (plus symbol)
according to the document tree. It uses S and P schemas
to associate that presentation.

> 3. how does amaya make a mathematical symbol like
> 'sqrt' showed on the screen? does amaya used image ?

It uses either a symbol font or draw lines (see the function
DisplaySymbol in Amaya/thotlib/view/displaybox.c)

> but how about if the root have an index?

It's a construction so it displays several boxes (one
for the symbol, one for the index).

> 3. when i study the code i think i found a function
> named 'processor' but when i trace the code, there are
> no function 'processor' but i found function
> initprocessor, doprocessor,etc. What id done by the
> these function?

There are no such functions 'processor', "initprocessor", "doprocessor"
within the Amaya code.

> Would you answermy question please ? because i really
> need it for my final project.
> 
> I'm waiting for your answer as soon as possible.
> 
> Thank you very much.
> 
> Kind regards,
> 
> The Fe Ping
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> 
Received on Tuesday, 13 August 2002 11:24:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:48 UTC