<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
<document>
  <header>
    <title>EAN-13</title>
  </header>
  <body>
    <section id="example">
      <title>Example</title>
      <figure src="../images/example-ean-13.png" alt="Example EAN-13 symbol"/>
    </section>
    <section id="structure">
      <title>Structure</title>
      <p>The configuration for the default implementation is:</p>
      <source>&#60;barcode&#62;
  &#60;<strong>ean-13</strong>&#62;
      &#60;height&#62;{<link href="barcode-xml.html#length">length</link>:15mm}&#60;/height&#62;
      &#60;module-width&#62;{<link href="barcode-xml.html#length">length</link>:0.33mm}&#60;/module-width&#62;
      &#60;quiet-zone enabled="{<link href="barcode-xml.html#boolean">boolean</link>:true}"&#62;{<link href="barcode-xml.html#length">length</link>:10mw}&#60;/quiet-zone&#62;
      &#60;checksum&#62;{<link href="barcode-xml.html#checksum-mode">checksum-mode</link>:auto=add|check}&#60;/checksum&#62;
      &#60;human-readable&#62;
        &#60;placement&#62;{<link href="barcode-xml.html#human-readable-placement">human-readable-placement</link>:bottom}&#60;/placement&#62;
        &#60;font-name&#62;{<link href="barcode-xml.html#font-name">font-name</link>:Helvetica}&#60;/font-name&#62;
        &#60;font-size&#62;{<link href="barcode-xml.html#length">length</link>:8pt}&#60;/font-size&#62;
      &#60;/human-readable&#62;
  &#60;/<strong>ean-13</strong>&#62;
&#60;/barcode&#62;</source>
    </section>
    <section>
      <title>Message format</title>
      <ul>
        <li>Valid characters are 0-9</li>
        <li>Message length must be 12 or 13 characters depending on the checksum mode.</li>
        <li>
        	Behaviour when checksum-mode is set to auto: If a 12-character message is passed 
        	in, the check character is added. If a 13-character message is passed in, the 
        	check character is checked.
        </li>
        <li>
          Supplementals are supported (2 and 5 characters). You can add them by appending a "+" 
          along with the supplemental message to the barcode message. Example: 9783468111242+56789
        </li>
      </ul>
    </section>
  </body>
</document>

