| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/inkscape/extensions/__pycache__/ |
Upload File : |
o
5�a~M � @ sJ d Z ddlZddlmZ dZi dd�dd�d d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(d)d*d+d,d-d.d/d0d1d2d3d4�
�Zd5d6� Zd7d8� Zd9d:� Zd;d<� Zd=d>� Z d?d@� Z
dAdB� ZdCdD� ZdEdF� Z
dGdH� ZdIdJ� ZdKdL� ZdMdN� ZdOdP� ZdQdR� ZG dSdT� dTej�ZedUkr�e� �� dS dS )Va
This extension renders a DataMatrix 2D barcode, as specified in
BS ISO/IEC 16022:2006. Only ECC200 codes are considered, as these are the only
ones recommended for an "open" system.
The size of the DataMatrix is variable between 10x10 to 144x144
The absolute size of the DataMatrix modules (the little squares) is also
variable.
If more data is given than can be contained in one DataMatrix,
more than one DataMatrices will be produced.
Text is encoded as ASCII (the standard provides for other options, but these are
not implemented). Consecutive digits are encoded in a compressed form, halving
the space required to store them.
The basis processing flow is;
* Convert input string to codewords (modified ASCII and compressed digits)
* Split codewords into blocks of the right size for Reed-Solomon coding
* Interleave the blocks if required
* Apply Reed-Solomon coding
* De-interleave the blocks if required
* Place the codewords into the matrix bit by bit
* Render the modules in the matrix as squares
� N)� Rectangle� �sq10) �
r � r � r � � r �sq12) � r r r r r r � r �sq14) � r r r r r r r r �sq16) � r r r r r r r r �sq18) � r r r r r r r r �sq20) � r r r r r � r r �sq22) r r r r r r � r r �sq24) � r r r r r �$ r r �sq26) � r r r r r �, � r �sq32) � r r r r r �>