Bug 1995728 - Enable braille printing
Summary: Enable braille printing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups-filters
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2036657
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-19 17:34 UTC by Samuel Thibault
Modified: 2022-01-26 23:39 UTC (History)
3 users (show)

Fixed In Version: cups-filters-1.28.10-2.fc35 cups-filters-1.28.11-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-14 01:26:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Samuel Thibault 2021-08-19 17:34:03 UTC
Description of problem:

When configuring a braille embosser, one has a very limited set of tables to choose from.

Version-Release number of selected component (if applicable): 1.28.7

How reproducible:  Always

Steps to Reproduce:
1. Add a printer, typing "brf" in the network address, that will create a printer called CUPS-BRF-Printer
2. In the printer information panel, change the driver by selecting in the driver database, for the Generic Manufacturer, the Generic Braille embosser driver
3. Go to the printer options, in the advanced part

Actual results:

In the Braille transcription listbox, one can only choose between half a dozen default items

Expected results:

The listbox should be showing various languages (like 200 of them)

Additional info:

That was the user-visible way to check this. The much easier way to check this is to check the /usr/share/cups/ppdc/liblouis1.defs file, it should contain around 200 lines, not just 14 lines.

This is because cups-filters was apparently built without the liblouis-dev dependency installed, and thus cups-filters could not build its list of available tables.

Please thus add the liblouis-dev dependency in the cups-filters build profile, and that will fix the issue.

Comment 1 Zdenek Dohnal 2021-08-24 06:07:44 UTC
Hi Samuel,

thank you for reporting the issue!

I'm able to reproduce the behavior via CUPS Web UI and adding liblouis-devel as a dependency offers more choices in the dialog as you've told.

Reproducing via CUPS Web UI:
localhost:631 -> Administration -> Add printer -> Local printers: CUPS-BRF (Virtual Braille BRF Printer) -> continue -> continue -> Make: Generic -> continue -> Model: Generic Braille embosser, 1.0 (en) -> Add Printer -> Braille transcription -> click on the scroll menu next to 'Braille transcription' label

Although Braille transcription now offers more transcriptions after adding liblouis-devel, the printing itself doesn't work because scripts from liblouis-utils are missing, and selinux is blocking cups-brf from creating BRF dir and files in it in home directory.

I have a working sample of selinux policy right now and I will submit it upstream.

I'll close this bug once all is in place and braille printing will work in the basic scenario.

Comment 2 Zdenek Dohnal 2021-08-25 12:20:03 UTC
Sent a PR to selinux-policy https://github.com/fedora-selinux/selinux-policy/pull/849 .

Comment 3 Zdenek Dohnal 2021-12-06 13:10:56 UTC
The cups-filters related fix lives on private-zdohnal-devel branch of cups-filters, still waiting for selinux...

Comment 4 Zdenek Dohnal 2022-01-03 14:10:39 UTC
The selinux-policy PR got into rawhide, so I can build a new cups-filters release there. But F34 and F35 don't have the selinux fix, so I've filed a bug to selinux-policy to coordinate the work (the bug is in 'depends on' field).

Comment 5 Zdenek Dohnal 2022-01-03 15:21:44 UTC
Built in rawhide for now https://koji.fedoraproject.org/koji/taskinfo?taskID=80792145 .

Comment 6 Fedora Update System 2022-01-10 11:26:54 UTC
FEDORA-2022-9e47920066 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9e47920066

Comment 7 Fedora Update System 2022-01-11 01:44:33 UTC
FEDORA-2022-9e47920066 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-9e47920066`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-9e47920066

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-01-11 10:57:06 UTC
FEDORA-2022-e8d86185ee has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e8d86185ee

Comment 9 Fedora Update System 2022-01-12 02:00:33 UTC
FEDORA-2022-e8d86185ee has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-e8d86185ee`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-e8d86185ee

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2022-01-14 01:26:43 UTC
FEDORA-2022-9e47920066 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Dominik 'Rathann' Mierzejewski 2022-01-14 09:52:12 UTC
This change adds 5 new dependent packages and 11MB on disk (3MB download):
antiword
liblouis
liblouis-utils
liblouisutdml
liblouisutdml-utils

Can it be made optional or a separate subpackage? While I wholeheartedly support enabling this feature, most users don't need Braille printing.

Comment 12 Samuel Thibault 2022-01-14 09:56:47 UTC
They are optional, the cups filters can cope with them missing and fault back to trivial rendering.

That being said, I am surprised: what is the package that is most contributing to the size? Is that liblouis itself (and its tables which weigh ~10MB). liblouis is already mandatory for all blind users using the Orca screen reader. Is that not available by default?

Comment 13 Zdenek Dohnal 2022-01-14 10:00:25 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #11)
> This change adds 5 new dependent packages and 11MB on disk (3MB download):
> antiword
> liblouis
> liblouis-utils
> liblouisutdml
> liblouisutdml-utils
> 
> Can it be made optional or a separate subpackage? While I wholeheartedly
> support enabling this feature, most users don't need Braille printing.

Hi Dominik,

I'll try to create a subpackage next week if needed - it will be recommended by the main package, providing you a have how to install cups-filters without it.

Comment 14 Zdenek Dohnal 2022-01-14 10:01:01 UTC
(In reply to Zdenek Dohnal from comment #13)
> (In reply to Dominik 'Rathann' Mierzejewski from comment #11)
> > This change adds 5 new dependent packages and 11MB on disk (3MB download):
> > antiword
> > liblouis
> > liblouis-utils
> > liblouisutdml
> > liblouisutdml-utils
> > 
> > Can it be made optional or a separate subpackage? While I wholeheartedly
> > support enabling this feature, most users don't need Braille printing.
> 
> Hi Dominik,
> 
> I'll try to create a subpackage next week if needed - it will be recommended
> by the main package, providing you a have how to install cups-filters
> without it.

But it would be great if you create a separate bugzilla to track this, thx!

Comment 15 Dominik 'Rathann' Mierzejewski 2022-01-14 23:43:39 UTC
(In reply to Zdenek Dohnal from comment #14)
> (In reply to Zdenek Dohnal from comment #13)
[...]
> > I'll try to create a subpackage next week if needed - it will be recommended
> > by the main package, providing you a have how to install cups-filters
> > without it.

That sounds perfect! Thank you.

> But it would be great if you create a separate bugzilla to track this, thx!

Bug 2040973 created.

Comment 16 Dominik 'Rathann' Mierzejewski 2022-01-14 23:50:06 UTC
(In reply to Samuel Thibault from comment #12)
> They are optional, the cups filters can cope with them missing and fault
> back to trivial rendering.
> 
> That being said, I am surprised: what is the package that is most
> contributing to the size? Is that liblouis itself (and its tables which
> weigh ~10MB).

Yes, it's liblouis.

> liblouis is already mandatory for all blind users using the
> Orca screen reader. Is that not available by default?

It is, but it can be uninstalled. On my machines, I always remove all packages
that I don't use and that are not strict dependencies. orca is one of those.
Uninstalling orca saves me 14 packages and 49MB on disk.

I'm pretty sure I'm not the only one to prune unnecessary software from their
machines. In my case, I do it primarily to limit the number of potential
vulnerabilities (not installed=not affected) on my machines as well as to
make updates faster (not installed=no need to update).

Comment 17 Fedora Update System 2022-01-17 16:30:03 UTC
FEDORA-2022-45f6452f64 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-45f6452f64

Comment 18 Fedora Update System 2022-01-18 01:23:17 UTC
FEDORA-2022-45f6452f64 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-45f6452f64`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-45f6452f64

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2022-01-18 10:41:38 UTC
FEDORA-2022-08be5d76dd has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-08be5d76dd

Comment 20 Fedora Update System 2022-01-19 02:41:43 UTC
FEDORA-2022-08be5d76dd has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-08be5d76dd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-08be5d76dd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2022-01-26 23:39:14 UTC
FEDORA-2022-08be5d76dd has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.