Bug 456092 - Scan area size unit should not be translated to inch since we do not have the conversion
Summary: Scan area size unit should not be translated to inch since we do not have the...
Status: CONFIRMED
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: 22.04.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-28 17:22 UTC by Jigé
Modified: 2022-06-29 11:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jigé 2022-06-28 17:22:37 UTC
Hi,

In the user interface I cannot change the unit for the width and height of the scanned zone. Currently it's : inches.

I suspect it *should* be millimeters (mm).

A4 is ISO and uses the metric system. `scanimage -L` reports these values in millimeters. In KSaneCore/option.h there's a UnitMilliMeter but no inch one in the enum OptionUnit. And all the rules on my desktop are engraved in centimeters and millimeters. Though I agree it would be very convenient for our friends in the US to optionaly be able to set this unit as inches. 

Thanks and best regards
Comment 1 Kåre Särs 2022-06-28 19:06:33 UTC
Thanks for the report.

When using the test backend I can only see imperial units in the scan resolution (DPI) but that unit is basically everywhere... For me the scan-area size is in mm...

What locale do you have? could it be a translation error?
What scanner/backend do you have could it be something from the backend?
Comment 2 Jigé 2022-06-29 09:15:36 UTC
Hi,
Scanner is Epson V370. Locale is us_US.UTF-8 (sorry). It does work with millimeters now... I need to launch it like this (e.g.) :

  $ LC_MEASUREMENT="fr_FR.UTF-8" skanlite &

I had thought the locale could be the issue… I keep it as us_US.UTF-8 to use the qwerty keyboard, to avoid bad or incomplete translations and so that I can share error messages with others, linux being mostly developed in the english language. Plus LC_MEASUREMENT seems to be seldom used. But, anyway, I suppose it should be used. In this regard, the software works as expected.

Thank you.
Comment 3 Kåre Särs 2022-06-29 11:49:09 UTC
Hmm... I guess there might be a translation error, because we do not have mm to inch conversion anywhere...