-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text/plain to image/vnd.cups-ubrl conversion support? #7
Comments
To clarify, printing a text file to brl format works in Fedora 37, before braille-printer-app was made a separate application and uses pstotiff from hplip. It does not currently work in Fedora rawhide if pstotiff from hplip is installed. |
? I don't understand the relation between printing a text file and pstotiff. Does the cups chain happen to convert text to ps then to tiff then to ubrl? That won't be good at all :) To make things simpler, we can add a zero-cost brf2ubrl conversion that just translates from brf to unicode braille (basically what |
A low cost conversion would be helpful. Conversion is text to pdf, ps to tiff then image to ubrl. Sample log below:
|
But it works when pstotiff from hplip and braille-printer-app is installed... have you restarted cups after hplip installation? cupsd picks up available filters at the start of daemon. |
Yes, because there is no text/plain -> image/vnd.cups-ubrl rule in braille.convs :)
That sounds good - IIUC text/plain files will be converted to application/vnd.cups-brf and then to image/vnd.cups-ubrl. It should work, but we have to test it as well. |
Make absolutely sure that text gets directly converted do Braille, not rasterized and then the Raster image getting embossed in the low resolution of a Braille embosser, then the text is completely lost. Filter paths doing that need to get avoided under all circumstances. |
@tillkamppeter is there a way how to forbid it? I mean if cupsd is able construct a filter chain based on known rules, it will automatically construct the chain, which can convert text into ubrl via tiff. Or is there a way how to disable it without editing rules/removing filter? |
The cost of the chains will be enough to avoid the rasterization (which is already given a large cost) |
Hi,
reviewer during Fedora review found out that there is no conversion rule for text/plain document format to image/vnd.cups-ubrl format, but the printing works for the format if pstotiff from hplip is installed.
Should there be a direct conversion support in braille-printer-app as it is for text/plain -> application/vnd.cups-brf, or libcupsfilters+cups-filters will provide necessary conversions to an image document format?
The text was updated successfully, but these errors were encountered: