-char const * unit_name[num_units] = {
- "sp", "pt", "bp", "dd", "mm", "pc", "cc", "cm",
- "in", "ex", "em", "mu",
+
+// unit_name is for compatibility. Can be deleted when all works well.
+// means, when we have full language support for the lengths
+// in all gui's (Herbert 2002-11-01)
+char const * const unit_name[] = {
+ "sp", "pt", "bp", "dd", "mm", "pc",
+ "cc", "cm", "in", "ex", "em", "mu",
+ "text%", "col%", "page%", "line%",
+ "theight%", "pheight%", "" };
+
+int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0]) - 1);
+
+// the latex units
+char const * const unit_name_ltx[] = {
+ "sp", "pt", "bp", "dd", "mm", "pc",
+ "cc", "cm", "in", "ex", "em", "mu",
+ // in 1.4 the following names should be used. then no
+ // translation into the latex ones are needed
+// "textheight", "columnwidth", "pagewidth", "linewidth",
+// "textheight", "pageheight" };