1
0
mirror of https://github.com/pdewacht/brlaser synced 2024-12-26 15:38:20 +01:00
Commit Graph

74 Commits

Author SHA1 Message Date
Peter De Wachter
1b5990560c Version 6 2019-09-22 20:44:17 +02:00
QORTEC
504c00f68e Add Brother HL-2270DW 2019-09-22 20:09:59 +02:00
QORTEC
5d36382350 add gedit backup file to .gitignore (*~) 2019-09-22 20:07:52 +02:00
Peter De Wachter
c08bbc3193 Add a bunch of printers
Closes #33   Brother HL-5030
Closes #39   Brother HL-2140
Closes #44   Brother HL-2220
Closes #45   Brother DCP-L2540D
Closes #46   Brother HL-2030
2019-09-22 19:34:00 +02:00
Peter De Wachter
172c3bf87b Don't compress across bands (#39)
This essentially re-introduces 7ed0d6f, but with a simpler
implementation. Some printers needed it after all.
2019-09-10 23:13:15 +02:00
Peter De Wachter
ff68db0f93 Version 5 2019-05-18 22:56:02 +02:00
Peter De Wachter
dbc897787e Brother HL-1110 2019-05-18 22:38:27 +02:00
Peter De Wachter
17a24ef7a1 Add a bunch of printer stanzas
- Brother DCP-1602 (fixes #42)
- Brother DCP-7060D (fixes #43)
- Brother DCP-L2500D (fixes #35)
- Brother DCP-L2540DW (fixes #32)
- Brother HL-L2340D (fixes #37)
- Brother MFC-1910W (fixes #36)
- Brother MFC-7365DN (fixes #30)
- Brother MFC-7840W (fixes #41)
- Brother MFC-L2710DW (fixes #34)
- Lenovo M7605D (fixes #26)
2019-05-18 22:03:30 +02:00
Peter De Wachter
779f71e80f Reduce max block size to 64 lines (#40)
This fixes HL-1210W, maybe other HL printers as well?
2019-03-25 20:57:51 +01:00
Peter De Wachter
7b4bf383bd O_BINARY
Because it seems people still use OS/2
2019-03-25 20:46:20 +01:00
Peter De Wachter
aa5fb9e2f0 Don't build brdecode by default
It's just a dev tool
2019-03-25 20:24:43 +01:00
Peter De Wachter
7e1cc6911e Update compatibility list.
- Add DCP-7080 (#24)
- Add HL-L2320D (#25)
- Add HL-1200 series (#27)
- Mark HL-L2300D as buggy.
2018-07-04 00:14:44 +02:00
Peter De Wachter
4414717ed4 Avoid overlong encodings, improve compression ratio 2018-07-03 22:42:22 +02:00
Peter De Wachter
41c56264a8 Revert "Do not use delta-encoding across block boundaries"
This reverts commit 7ed0d6f2e8.

This was intended as a possible fix for problems with the HL-L2300D
(#4), but it didn't help. And it worsens compression.
2018-07-03 22:37:35 +02:00
Peter De Wachter
7ed0d6f2e8 Do not use delta-encoding across block boundaries
Possible a fix for issue #4

Also: in block.h, rename line_bytes_ to block_size_
2018-04-11 22:45:08 +02:00
Peter De Wachter
4f2f1d606e Add Brother HL-L2360DW (Closes #22) 2018-03-17 12:15:49 +01:00
Peter De Wachter
de26cc4bf0 Add Brother MFC-7240 (Closes #21) 2018-03-13 22:07:13 +01:00
Peter De Wachter
d80491b105 Version 4 2018-02-25 18:47:30 +01:00
Peter De Wachter
a521498233
Merge pull request #19 from StijnDW/master
Allow the user to define cups config variables
2018-02-17 19:04:27 +01:00
Stijn DW
bd7a6f3179 Allow the user to define cups config variables
This is needed when the paths reported by cups-config are read-only.
As is the case in the NixOS distribution.
2018-02-17 18:52:46 +01:00
Peter De Wachter
ba25b63af6 Add Brother DCP-7040 2018-01-29 08:06:48 +01:00
Peter De Wachter
3946f2e3d6 Add Brother HL-L2300D 2018-01-28 22:34:10 +01:00
Peter De Wachter
0536c6bcad Updated/expanded readme 2018-01-27 00:19:00 +01:00
Peter De Wachter
3008302bb5 Add OpenBSD pledge 2018-01-27 00:18:19 +01:00
Peter De Wachter
39ed3c5708 Cleanups 2018-01-27 00:18:19 +01:00
Peter De Wachter
4209526ef0 setlocale shouldn't be needed 2018-01-27 00:18:19 +01:00
Peter De Wachter
8007996fe7 Fix ppdc warning 2018-01-27 00:18:19 +01:00
Peter De Wachter
cf4fbc86ba CMake: enable assert() for all build types 2018-01-27 00:18:19 +01:00
Peter De Wachter
ab59a83caa Fix brlaser.drv for cmake conversion 2018-01-27 00:18:19 +01:00
Peter De Wachter
6e9793833f CMake conversion 2018-01-27 00:18:19 +01:00
Peter De Wachter
d25ba26132
Merge pull request #17 from blob79/install_ubuntu
Add documentation how to install under Ubuntu
2018-01-25 14:45:46 +01:00
blob79
fbcc6924e8 Add documentation how to install under Ubuntu 2017-12-09 08:04:29 +01:00
Peter De Wachter
f1e0b2df54 Reduce log level of cupsRasterOpen failure
If cupsRasterOpen fails, the most likely cause is that some earlier
filter didn't produce any output. If we output an error-level message
in this situation, we'll likely displace some earlier, more useful
message by the other filter.
2017-11-02 00:06:58 +01:00
Peter De Wachter
718053fa36 Add package name to all log messages 2017-10-30 20:07:27 +01:00
Peter De Wachter
931c677443 Get rid of iconv()
PJL has a job name field. I don't think this is used for anything, but
just in case I want to put something human-readable there. But it's
also probably a good idea to keep this pure ASCII text.

Previously I used iconv() to convert the CUPS job name to ASCII. But:
- on FreeBSD, an explicit "-liconv" seems to be necessary (#10),
- there's an autoconf macro to deal with this, but it's tangled up
  with gettext and it seems like a hassle,
- the //TRANSLIT//IGNORE feature I used seems to be a GNU extension
  and probably won't work on other systems anyway.

So instead, let's just concatenate some job information together,
dropping any non-ASCII component. That's probably good enough.
2017-10-23 22:09:29 +02:00
Peter De Wachter
853db9e5a2 Add Brother MFC-7360N
From Debian bug report #862750; thanks to Mark A. Hershberger.
2017-10-14 21:55:30 +02:00
Peter De Wachter
2fd541c046 Clean up brlaser.drv.in 2017-10-14 21:53:45 +02:00
Peter De Wachter
69cc0bfcc7 Merge remote-tracking branch 'xc-racer99/master' 2017-10-14 21:40:58 +02:00
Peter De Wachter
4fdd8c95a8 Merge pull request #7 from rkreis/dcp1510
Add Brother-DCP1510
2017-10-14 20:57:58 +02:00
Peter De Wachter
5d29d862c7 Merge pull request #5 from lnussel/master
mark DCP-7055W as supported
2017-10-14 20:57:34 +02:00
Peter De Wachter
c58a3b8edd Merge pull request #12 from hollobon/patch-1
Fix typo
2017-10-14 20:52:31 +02:00
Peter De Wachter
c656586451 Merge pull request #9 from cinemast/patch-2
Add missing #include <string>
2017-10-14 20:52:02 +02:00
Pete Hollobon
2859a8a7df Fix typo 2017-08-09 10:32:45 +01:00
xc-racer99
f8021024c4 DCP-7065DN: Don't advertise 300DPI printing
The DCP-7065DN only supports 600 and 1200 DPI
2017-05-01 12:26:23 -07:00
xc-racer99
7e59e6147e Add duplex code for DCP-7065DN
The official Brother driver treats Tumble and NoTumble differently, adding &l2S and &l1S respectively to the header.

Unfortunately, for me this resulted in missing lines in NoTumble.  By treating everything as Tumble and simply sending data rotated 180 for Tumble we get a good quality printout.
2017-05-01 12:26:22 -07:00
xc-racer99
5c5118edc1 Move num_copies to only the header
It's not needed to be at the beginning of every page and messes up duplex printing if it is
2017-05-01 12:26:17 -07:00
Ludwig Nussel
9ccc56e1bc mark DCP-7055W as supported 2016-06-17 10:37:08 +02:00
Peter Spiess-Knafl
93138fec87 Add missing #include <string> 2016-04-25 15:02:37 +02:00
Robin Kreis
d5aa1a55dd Add Brother-DCP1510 2016-03-26 13:24:59 +01:00
Peter De Wachter
03bb366e75 Refuse to build without a C++11 compiler
We had a buggy version of the AX_CXX_COMPILE_STDCXX macro: it didn't
abort the build if no suitable compiler was found. Upgrade to the
current version.

Relevant on OpenBSD, where the default compiler does not support C++11.
2016-03-02 20:34:50 +01:00