Improve readability.
Improve readability.

* clarify with comments what the code intendes to do.
* more consistent variable naming.
* keep the direction of equality consistent (i.e. lhs always smaller than
  rhs). This helps the reader of the code intuitively see relative geometrical
  positions.

In doing so, I've also marked what appear to be bugs with TODO markers.

The logic of the original code is intentionally unchanged, in order to
spot any unintended behavior changes introduced by this commit.

Change-Id: I19c09a1f93017ab18c8fec0f1281899322b45053

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core