%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.26.0/input/regression/qr-code-version.ly"
\sourcefileline 0
\version "2.25.3"

\header {
  texidoc = "Test QR codes with different versions (i.e., matrix sizes)."
}

#(ly:set-option 'warning-as-error)

\markup \qr-code #10 "short" % version 1
\markup \qr-code #10 "This is a bit longer" % version 2
\markup \qr-code #10 "This is quite a bit longer as it contains
 some useless text" % version 4
\markup \qr-code #10 #"Lorem ipsum dolor sit amet, consectetur adipiscing elit. \
Donec ultricies elementum mi, in lacinia magna. Sed convallis bibendum dolor. \
Quisque id enim."
\markup \qr-code #10 #"Lorem ipsum dolor sit amet, consectetur adipiscing elit. \
Aliquam ullamcorper, quam at dignissim dictum, ex metus sollicitudin purus, ac \
congue nulla ex eu enim. Curabitur in sodales metus. Nam diam tortor, cursus \
non efficitur ut, tincidunt in quam. Sed vel dictum sem, eu commodo lacus. \
Sed luctus suscipit ligula id imperdiet." % version 12

% This is too large for a QR code.  It should cause a gentle warning.
#(ly:expect-warning
  (G_ "too many bytes (~a) to fit in a QR code with \
correction level ~a (max ~a)")
  3000 'low 2953)
\markup \qr-code #10 #(make-string 3000 #\a)



% ****************************************************************
% end ly snippet
% ****************************************************************
