Units of measurement (Style Sheet View vs. Tooldrawer)

Everything related to our flagship word processor.
Post Reply
NisusUser
Posts: 335
Joined: 2011-01-12 05:32:38

Units of measurement (Style Sheet View vs. Tooldrawer)

Post by NisusUser »

(Using NWP 1.4.2) In the attached screenshot, if you look in the Tooldrawer under "Indents" you'll see it says ".42 cm", but the Style Sheet View shows "12 pts" for the First Line and Hanging indents. However, as soon as I change one of them in the Tooldrawer, both of them in the Style Sheet View go to centimeters. Why does it have points initially since my Prefs are set to centimeters?
Attachments
ScrnCapture Style Sheet View vs. Tooldrawer.jpg
ScrnCapture Style Sheet View vs. Tooldrawer.jpg (79.66 KiB) Viewed 3505 times
NisusUser
Posts: 335
Joined: 2011-01-12 05:32:38

Re: Units of measurement (Style Sheet View vs. Tooldrawer)

Post by NisusUser »

It actually gets weirder: when I change it to .40 cm in the Tooldrawer, it now shows it as .39 cm in the Style Sheet View! See attached file.
Attachments
ScrnCapture Style Sheet View vs. Tooldrawer2.png
ScrnCapture Style Sheet View vs. Tooldrawer2.png (73.37 KiB) Viewed 3501 times
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: Units of measurement (Style Sheet View vs. Tooldrawer)

Post by martin »

NisusUser wrote:In the attached screenshot, if you look in the Tooldrawer under "Indents" you'll see it says ".42 cm", but the Style Sheet View shows "12 pts" for the First Line and Hanging indents. However, as soon as I change one of them in the Tooldrawer, both of them in the Style Sheet View go to centimeters. Why does it have points initially since my Prefs are set to centimeters?
This looks like an intermittent bug. Sometimes the units used in the paragraph style attribute "bubbles" are not synchronized properly with the ruler. I'll file it as a bug to fix, thanks.
when I change it to .40 cm in the Tooldrawer, it now shows it as .39 cm in the Style Sheet View!
This is actually nothing to worry about, the difference is merely a quirk of rounding / display accuracy. Internally NWP stores all indents using points, so when it comes time to display indent values to the user, the units must be converted. It seems that the palette and attribute bubbles use slightly different ways of doing this, but it doesn't affect the actual distances. That ".39" is something like ".3976", which is effectively 0.4 cm.

All the same, we should have these displays synchronized so users don't worry. I'll file it as an issue too, thanks!
Post Reply