Education Project/Effort/Math baseline alignment/Mails
Hello Thomas,
I had been debugging starmath module. Using some test cases and checking the flow.
There are some very basic doubts:
1. In my view centre(0,0) of co-ordinate system from which all calculations are made (e.g calculation of Point, Alignment etc) is at top left corner. The +ve side of Y axis goes down the left corner towards bottom and +ve side of X axis goes horizontal towards top right corned. May you confirm this ?
2. Now as per discussion which has happened so far, every Node needs to have baseline calculated. To start with, I think I am ready to write code for simple cases like "over". My strategy for over is recursive calculation of baseline. After moving numerator to top and denominator to bottom we will find the average of both and assign this to baseline of whole fraction and all this will go on recursively automatically. Does it sound good ?
something like(just a pseudo code ) :
if (pNum->HasBaseline() && pDenom->HasBaseline())
{
SetHasBaseline(TRUE);
SetBaseline((pNum->GetBaseline() +
pDenom->GetBaseline()) / 2L);
}
That needs fraction to be a node. And is it really a node ? I think yes.
These calculations are in SmBinVerNode::Arrange method.
3. There are many messages and comments in French, and I would like to start converting important ones as and when they come into English. Would that be fine ? And can I do it in same CWS ?
4. Should I reassign issue to myself and create a CWS? It hasn't been created yet.
5. Can baseline be negative ? I don't think so, but there are test cases where baseline has value -<number>
Thanks
-- Cheers, rakesh