[Libreoffice-ux-advise] [Bug 72662] Be able to see different measurement units for line versus page properties (e.g. pt and in)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jan 23 12:21:16 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=72662

--- Comment #4 from Heiko Tietze <tietze.heiko at gmail.com> ---
Created attachment 130628
  --> https://bugs.documentfoundation.org/attachment.cgi?id=130628&action=edit
Mockup for unit selection at numerical inputs

(In reply to Yousuf Philips (jay) from comment #3)
> Would suggest we use a units drop down list next to the spinboxes like other
> apps do.

Definitely yes. This would replace Tools > Options > LibO X > General:
Settings, Measurement unit with Millimeter, Centimeter, Inch, Pica, Point for
Writer and Draw plus Meter, Kilometer, Foot, Miles, Char, Line in Draw/Impress.
I'd suggest to add the SI unit and to show the current value converted. The
attachment shows how it could work.

Ideally, we define a default unit per input, depending on the localization, and
allow the user to change it - and store what he or she selects. That means we
have centimeter for page settings when the system language is not EN otherwise
it would be inch. And we have points for the paragraph distances. If Benjamin
changes the unit for 'spacing above' to pica, he will still have points for
spacing below and indentations.

The conversion table can be found at
http://opengrok.libreoffice.org/xref/core/vcl/source/control/field.cxx#1114.
While it contains Char and Line for Draw/Impress those units are not known in
the ODF specs
(http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1419774_253892949)
neither I found any other reference. @Regina, Cor: Any thoughts?
If no one remembers why those units have been implemented I suggest to kick
them out. Likewise mile and kilometer as they clutter the list too much.

We could also consider to switch from the hard coded conversion list to the
more general UCUM (http://unitsofmeasure.org/trac) standard, which would
provide the conversion formula with the (extendable list of) unit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list