summaryrefslogtreecommitdiff
path: root/sys/man/1/qr
blob: 85c2333bf806e4e89be173611d5706c485d6c5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH QR 1
.SH NAME
qr \- generate QR code
.SH SYNOPSIS
.B qr
[
.B -LMQHna
]
[
.B -v
.I version
]
.SH DESCRIPTION
.I Qr
generates a QR code from the data it reads on standard input.
The QR code is generated as an
.IR image (6)
on standard output.
.PP
The
.B -LMQH
options set the level of error correction.
.B -L
is the lowest and
.B -H
is the highest level.
The default is
.BR -M .
.PP
The QR standard defines different sizes labeled version 1 to version 40.
By default the smallest possible is chosen automatically.
The
.B -v
option forces the use of a particular version.
.PP
By default bytes are encoded directly with no translation.
Coding efficiency can be increased by reducing the set of legitimate characters using the 
.B -an
options.
The 
.B -n
option supports only numbers and the
.B -a
option supports letters, numbers, spaces and the symbols 
.LR $%*+-./: .
Note that all letters are converted to upper case.
Both options ignore any characters they do not recognize.
.SH SOURCE
.B /sys/src/cmd/qr.c
.SH "SEE ALSO"
International Standard ISO/IEC 18004.
.SH BUGS
The standard specifies the use of JIS-8 encoding in the default mode, however rumour has it that readers recognize UTF-8.
.PP
The more advanced coding features (Kanji mode, extended modes, switching modes midstream) are not supported.