FS#77480 - [libpaper] new version is missing paperconf that libreoffice uses

Attached to Project: Arch Linux
Opened by Hussam Al-Tayeb (hussam) - Monday, 13 February 2023, 11:28 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 18 May 2023, 10:44 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Libreoffice uses paperconf that this new version doesn't have.
This breaks default papersize detection in libreoffice.

https://cgit.freedesktop.org/libreoffice/core/tree/i18nutil/source/utility/paper.cxx#n249

libpaper 1 had it.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 18 May 2023, 10:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.1.0-1
Comment by Antonio Rojas (arojas) - Monday, 13 February 2023, 12:10 GMT
Can you test if a symlink /usr/bin/paperconf->paper works fine? The paper executable replaces paperconf, but by default it outputs the paper dimensions along with the size and I'm not sure whether libreoffice can parse that.
Comment by Hussam Al-Tayeb (hussam) - Monday, 13 February 2023, 12:21 GMT
paperconf outputs only something like 'a4', while paper outputs an entire string such as: Letter: 8.5x11 in

libreoffice doesn't parse that correctly.
https://cgit.freedesktop.org/libreoffice/core/tree/i18nutil/source/utility/paper.cxx#n250
Comment by Antonio Rojas (arojas) - Monday, 13 February 2023, 12:47 GMT
Please test 2.0.8-2
Comment by Andreas Radke (AndyRTR) - Saturday, 18 February 2023, 09:58 GMT
Do we need to wait this report to be solved or can we move the libpaper rebuilds?

https://github.com/rrthomas/libpaper/issues/39
Comment by Hussam Al-Tayeb (hussam) - Saturday, 18 February 2023, 19:10 GMT
@andyrtr. It's up to you. For me, this new version is a loss in convenience. I want to keep my locale as en_US instead of ar_LB and still use A4 systemwide. Sure I can use PAPERSIZE environment variable but this renders /etc/papersize useless.

The second point is that the half-size in libreoffice expects a lowercase string.
So /usr/bin/paperconf script needs to convert the output to lowercase as well.

Loading...