Name: print/cups/braille-printer-app Summary: OpenPrinting Braille Printer Application Publisher: solaris Version: 2.0.0 Build Release: 11.4 Branch: 11.4.90.0.0.212.0 Packaging Date: Wed Dec 17 21:06:05 2025 Size: 494.48 kB Compressed Size: 138.55 kB FMRI: pkg://solaris/print/cups/braille-printer-app@2.0.0,11.4-11.4.90.0.0.212.0:20251217T210605Z License: ## Files: LICENSE Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ## Files: COPYING Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cups-filters Upstream-Contact: OpenPrinting Source: http://www.openprinting.org/download/cups-filters/ Files: * Copyright: 2011-2022 OpenPrinting 1993-2007 Easy Software Products 2003-2015 Tim Waugh 2003-2006 Red Hat, Inc. 2006-2012 BBR Inc. 2007-2019 Apple Inc. 2008-2022 Till Kamppeter 2008-2012 Tobias Hoffmann 2008 Lars Karlitski (formerly Übernickel) 2010 Neil 'Superna' Armstrong 2011-2013 Richard Hughes 2012 Canonical Ltd. 2012 Franz Pförtsch 2012 Tomáš Chvátal 2013 ALT Linux, Andrew V. Stepanov 2014 Joseph Simon 2015-2022 Samuel Thibault 2016 Pranjal Bhor 2017-2018 Sahil Arora 2018-2019 Deepak Patankar 2019 Tanmay Anand 2020 Mohit Mohan 2021 Suraj Kulriya 2021 Pratyush Ranjan 2021 Pranshu Kharkwal 2022 Chandresh Soni 2022 Sachin Thakan Licence: Apache-2.0-with-GPL2-LGPL2-Exception Files: ltmain.sh Copyright: 1996-2001, 2003-2011 Free Software Foundation, Inc. License: GPL-2+ License: Apache-2.0-with-GPL2-LGPL2-Exception Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian systems, the complete text of the Apache License, Version 2.0 can be found in '/usr/share/common-licenses/Apache-2.0'. . As an exception, if, as a result of your compiling your source code, portions of this Software are embedded into an Object form of such source code, you may redistribute such embedded portions in such Object form without complying with the conditions of Sections 4(a), 4(b) and 4(d) of the License. . In addition, if you combine or link compiled forms of this Software with software that is licensed under the GPLv2 ("Combined Software") and if a court of competent jurisdiction determines that the patent provision (Section 3), the indemnity provision (Section 9) or other Section of the License conflicts with the conditions of the GPLv2, you may retroactively and prospectively choose to deem waived or otherwise exclude such Section(s) of the License, but only in their entirety and only with respect to the Combined Software. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'. ## Files: README.md # OpenPrinting Braille Printer Application v2.0b1 - 2020-11-18 Looking for compile instructions? Read the file "INSTALL" instead... ## INTRODUCTION CUPS is a standards-based, open-source printing system used by Apple's Mac OS® and other UNIX®-like operating systems, especially also Linux. CUPS uses the Internet Printing Protocol ("IPP") and provides System V and Berkeley command-line interfaces, a web interface, and a C API to manage printers and print jobs. This package contains backends, filters, and auxiliary files for Braille embosser support, currently only as a classic CUPS printer driver package. A conversion to a Printer Application is in the works and will get committed here soon. For compiling and using this package see INSTALL file. Report bugs to https://github.com/OpenPrinting/braille-printer-app/issues See the "COPYING", "LICENCE", and "NOTICE" files for legal information. The license is the same as for CUPS, for a maximum of compatibility. ## LINKS ### Converting the Braille Embosser Driver to a Printer Application * [Converting Braille embosser support into a printer application - GSoC 2022 project by Chandresh Soni](https://gist.github.com/Chandresh2702/73923b2c686039404cdd9b050edbe995) ### The New Architecture of Printing and Scanning * [The New Architecture - What is it?](https://openprinting.github.io/current/#the-new-architecture-for-printing-and-scanning) * [Ubuntu Desktop Team Indaba on YouTube](https://www.youtube.com/watch?v=P22DOu_ahBo) ### Printer Applications * [All free drivers in a PPD-less world - OR - All free drivers in Snaps](https://openprinting.github.io/achievements/#all-free-drivers-in-a-ppd-less-world---or---all-free-drivers-in-snaps) * [Current activity on Printer Applications](https://openprinting.github.io/current/#printer-applications) ## DOCUMENTATION FROM CUPS-FILTERS 1.x Most of this is still valid for the current cups-filters. ### BRAILLE EMBOSSING cups-filters also provides filters and drivers for braille embossers. It supports: - Text on all kinds of embossers with generic support - Text and graphics on the Index V3 embossers and above. This is configured in CUPS just like any printer. Options can then be configured in the standard printer panel, or passed as -o options to the lp command. #### Text support Text can be embossed either with no translation on the computer side (the embosser will translate), or with translation on the computer side (thanks to liblouis). It is a matter of running lp file.txt or even lp file.html lp file.odt lp file.doc lp file.rtf lp file.docx lp file.pdf Important: it is really preferrable to directly print the document files themselves, and not a pdf output, or printing from the application (which would first convert to pdf). That way, the braille conversion will have the proper document structure (paragraphs, titles, footnotes, etc.) to produce good quality. #### Vector Image support Vector images can be embossed by converting them to braille dots. This needs the inkscape package installed. Various input formats are then supported: .svg, .fig, .wmf, .emf, .cgm, .cmx The conversion assumes that the input is black-on-white. If it is white-on-black, the -o Negate option can be used. This image support is preferred over the generic image support described below, which has to reconstruct lines to be embossed. #### Image support Images can be embossed by converting them to braille dots. The orientation of the image can be controlled. By default it will be rotate to fit the image orientation, i.e. it will be rotate by 90 degree if it is wider than high and the paper is higher than wide, or if vice-versa. Other rotation modes are provided. By default, the image will be resized to fit the size of the paper. Disabling the resize (fitplot set to No) will crop the image to the paper size. This is useful for instance when a carefully-drawn image was designed especially for embossing, and thus its pixels should exactly match with braille dots. In such case, edge detection should very probably be disabled too. The image can be processed for edge detection. When no processing is done (edge detection is configured to "None"), the dark pixels are embossed if the Negate option is off, or the light pixels are embossed if the Negate option is on. When edge processing is done, only the edges of the images will be embossed. The Basic and the Canny algorithms bring differing results. The Basic algorithm can be tuned thanks to the edge factor only. The Canny algorithm can also be tuned: increasing the Upper value will reduce the amount of detected edges (and vice-versa), increasing the Lower value will reduce the lengths of the detected edges (and vice-versa). The Radius and Sigma parameter control the blurring performed before edge detection, to improve the result; the Radius parameter controls how large blurring should be performed, setting it to zero requests autodetection; the Sigma parameter determines how strongly blurring should be performed. A lot of images formats are support, so one can just run lp file.png lp file.gif lp file.jpg ... Here are complete examples for controlling the processing (all options can be omitted, the default values are shown here): Emboss the image without edge detection, as black on white or white on black: lp -o "Edge=None" file.png lp -o "Edge=None Negate" file.png Emboss the image with edge detection, the default tuning parameters are set here: lp -o "Edge=Edge EdgeFactor=1" file.png lp -o "Edge=Canny CannyRadius=0 CannySigma=1 CannyLower=10 CannyUpper=30" file.png Emboss the image as it is, without any resize or edge detection, as black on white or white on black: lp -o "nofitplot Edge=None" file.png lp -o "nofitplot Edge=None Negate" file.png #### Generic embosser support It should be possible to make all embossers use the generic driver. For this to work, one has to: - configure the embosser itself so that it uses an MIT/NABCC/BRF braille table - add in CUPS a printer with the "Generic" manufacturer and "Braille embosser" model - configure CUPS options according to the embosser settings, so that CUPS knows the page size, braille spacing, etc. The generic driver can emboss text, as well as images, but images will probably be distorted by the Braille interline spacing. #### Index embossers support Supported models: - Basic-S V3/4 - Basic-D V3/4 - Everest-D V3/4 - 4-Waves PRO V3 - 4X4 PRO V3 - Braille Box V4 Index V3 embosser support has been well tested. It supports both text and graphics mode. Embossers with firmware 10.30 and above can be easily configured from CUPS (paper dimension, braille spacing, etc.). Index V4 embosser support has not been tested, but is very close to V3 support, so it is probably working fine already. Feedback would be very welcome. To connect an Index embosser through Ethernet, gather its IP adress, select the "AppSocket/HP JetDirect" network printer protocol, and set socket://the.embosser.IP.address:9100 as Connection URL. The density of dots for images can easily be chosen from the command line, for instance: lp -o "GraphicDotDistance=160" file.png to select 1.6mm dots spacing Troubleshooting: if your embosser starts every document with spurious "TM0,BM0,IM0,OM0" or "TM0,BI0", your embosser is most probably still using an old 10.20 firmware. Please either reflash the embosser with a firmware version 10.30 or above, or select the 10.20 firmware version in the "index" panel of the cups printer options. #### Braille output options The output can be finely tuned from the standard printing panel, or from the command-line, the following example selects translation tables for French and Greek, with 2.5mm dot spacing and 5mm line spacing. All options can be omitted, the default values are shown here. lp -o "LibLouis=fr-fr-g1 LibLouis2=gr-gr-g1 TextDotDistance=250 LineSpacing=500" file.txt #### Reworking output before embossing One may want to check and modify the .brf or .ubrl output before sending it to the embosser. This can be achieved by first generating the .brf file: /usr/sbin/cupsfilter -m application/vnd.cups-brf -p /etc/cups/ppd/yourprinter.ppd yourdocument.txt > ~/test.brf One can choose a ppd file and additionally pass -o options to control the generated output. One can then modify the .brf file with a text editor. One can then emboss it: lp -o document-format=application/vnd.cups-brf ~/test.brf The same can be achieved for images: /usr/sbin/cupsfilter -m image/vnd.cups-ubrl -p /etc/cups/ppd/yourprinter.ppd yourimage.png > ~/test.ubrl lp -o document-format=image/vnd.cups-ubrl ~/test.ubrl #### BRF file output One can generate BRF files by adding a virtual BRF printer. When creating it in the cups interface, choose the CUPS-BRF local printer, select the Generic maker, and choose the Generic Braille embosser model. Printing to the resulting printer will generate a .brf file in a BRF subdirectory of the home directory. #### UBRL file output One can generate Unicode braille files, not useful for embossing, but which can be easily looked at by sighted people to check for the output. In the cups interface, create a printer with the CUPS-BRF local printer, the Generic maker, and choose the Generic UBRL generator model. Printing to the resulting printer will generate a .brf file in a BRF subdirectory of the home directory. #### Remark about the source code The file driver/index/ubrlto4dot.c is used to generate the translation table in driver/index/imageubrltoindexv[34]. It is included as "source code" for these two files, even if actually running the generation in the Makefile is more tedious than really useful. #### TODO - Test whether one wants to negate, e.g. to emboss as few dots as possible - textubrltoindex when liblouis tools will be able to emit 8dot braille ## Files: backend/cups-brf.c BRF (Braille-Ready Format) virtual backend Copyright (c) 2017 by Samuel Thibault Licensed under Apache License v2.0. See the file "LICENSE" for more information. ## Files: driver/common/fr-braille.po Copyright (c) 2015, 2017-2018 Samuel Thibault Licensed under Apache License v2.0. See the file "LICENSE" for more information. ## Files: driver/index/ubrlto4dot.c Character conversion table generator for imageubrltoindexv[34] Copyright (c) 2015 Samuel Thibault Licensed under Apache License v2.0. See the file "LICENSE" for more information.