Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 # bG&Z@sddlmZddlmZddlmZddlmZmZm Z ddddddddddddddddddddddddddddddddddddddddddddd\,Z e ed]Z d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dddddddddddddddddddddddddddddddddddddddddddddddddddddddddYZ e edddZddZGdddeZGdddeZGdd„deZdSS))inch)asNative)Barcode)ascii_uppercaseascii_lowercasedigits bsbSBsBsb BsbSbsbsB bsBSbsbsB BsBSbsbsb bsbSBsbsB BsbSBsbsb bsBSBsbsb bsbSbsBsB BsbSbsBsb bsBSbsBsb BsbsbSbsB bsBsbSbsB BsBsbSbsb bsbsBSbsB BsbsBSbsb bsBsBSbsb bsbsbSBsB BsbsbSBsb bsBsbSBsb bsbsBSBsb BsbsbsbSB bsBsbsbSB BsBsbsbSb bsbsBsbSB BsbsBsbSb bsBsBsbSb bsbsbsBSB BsbsbsBSb bsBsbsBSb bsbsBsBSb BSbsbsbsB bSBsbsbsB BSBsbsbsb bSbsBsbsB! BSbsBsbsb" bSBsBsbsb# bSbsbsBsB$ BSbsbsBsb% bSBsbsBsb& bSbsBsBsbN bSbSbSbsb' bSbSbsbSb( bSbsbSbSb) bsbSbSbSb*),0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. *$/+%z-. $/+%z%Uz$Az$Bz$Cz$Dz$Ez$Fz$Gz$Hz$Iz$Jz$Kz$Lz$Mz$Nz$Oz$Pz$Qz$Rz$Sz$Tz$Uz$Vz$Wz$Xz$Yz$Zz%Az%Bz%Cz%Dz%Ez/Az/Bz/Cz/Dz/Ez/Fz/Gz/Hz/Iz/Jz/Kz/Lz/Oz/Zz%Fz%Gz%Hz%Iz%Jz%Vz%Kz%Lz%Mz%Nz%Oz%Wz+Az+Bz+Cz+Dz+Ez+Fz+Gz+Hz+Iz+Jz+Kz+Lz+Mz+Nz+Oz+Pz+Qz+Rz+Sz+Tz+Uz+Vz+Wz+Xz+Yz+Zz%Pz%Qz%Rz%Sz%T)Y     !"#rr&'()rr,r:;<=>?@[\]^_`abcdefghijklmnopqrstuvwxyz{|}~z zz*!'#&"(),:;<=>?@[\]^_`{|}~cCs:tdd|Dd}|r&|t|7}|r6d|d}|S)NcSsg|]}t|dqS)r ) _patterns).0rrB/tmp/tmp4i9tl1d3/lib64/python/reportlab/graphics/barcode/code39.py bsz_encode39..+r)sum_stdchrs)valueZcksumstoprrrr _encode39as   rc@sReZdZedZdZdZdZdZdZ dZ dZ dZ dZ d ddZd d Zd d ZdS) _Code39BasegQ~?Nr g@gcKst|}x |jD]\}}t|||qW|jrh|jdkrtttd|jd|_ttd|jd|_n d|_|_t j ||dS)Ng?g$@g) ritemssetattrquietlquietmaxrbarWidthrquietr__init__)selfrargsrrrrrrss  z_Code39Base.__init__cCs<d}x"|jD]}|t|dd}q W|dd|_|jS)Nrrrr )encodedrZ decomposed)rZdvalrrrr decomposes  z_Code39Base.decomposecCs|jr|jddp|jS)Nr r)rr)rrrr _humanTextsz_Code39Base._humanText)r)__name__ __module__ __qualname__rrrrrZgapZ barHeightZratiochecksumZbearersrrrrrrrrrhs rc@s eZdZdZddZddZdS) Standard39a Options that may be passed to constructor: value (int, or numeric string required.): The value to encode. barWidth (float, default .0075): X-Dimension, or width of the smallest element Minumum is .0075 inch (7.5 mils). ratio (float, default 2.2): The ratio of wide elements to narrow elements. Must be between 2.0 and 3.0 (or 2.2 and 3.0 if the barWidth is greater than 20 mils (.02 inch)) gap (float or None, default None): width of intercharacter gap. None means "use barWidth". barHeight (float, see default below): Height of the symbol. Default is the height of the two bearer bars (if they exist) plus the greater of .25 inch or .15 times the symbol's length. checksum (bool, default 1): Wether to compute and include the check digit bearers (float, in units of barWidth. default 0): Height of bearer bars (horizontal bars along the top and bottom of the barcode). Default is 0 (no bearers). quiet (bool, default 1): Wether to include quiet zones in the symbol. lquiet (float, see default below): Quiet zone size to left of code, if quiet is true. Default is the greater of .25 inch, or .15 times the symbol's length. rquiet (float, defaults as above): Quiet zone size to right left of code, if quiet is true. stop (bool, default 1): Whether to include start/stop symbols. Sources of Information on Code 39: http://www.semiconductor.agilent.com/barcode/sg/Misc/code_39.html http://www.adams1.com/pub/russadam/39code.html http://www.barcodeman.com/c39_1.html Official Spec, "ANSI/AIM BC1-1995, USS" is available for US$45 from http://www.aimglobal.org/aimstore/ cCsXgj}d|_x6|jD],}|tkr(|j}|tkr8d|_q||qWdj|j|_|jS)Nr rr) appendvalidrrupperrjoin__self__ validated)rvvalrrrrvalidates  zStandard39.validatecCst|j|j|j|_|jS)N)rrrrr)rrrrencodeszStandard39.encodeN)rrr__doc__rrrrrrrs5 rc@s eZdZdZddZddZdS) Extended39a Extended Code 39 is a convention for encoding additional characters not present in stanmdard Code 39 by using pairs of characters to represent the characters missing in Standard Code 39. See Standard39 for arguments. Sources of Information on Extended Code 39: http://www.semiconductor.agilent.com/barcode/sg/Misc/xcode_39.html http://www.barcodeman.com/c39_ext.html cCs<d}d|_x&|jD]}|tkr&d|_q||}qW||_|S)Nrr r)rr_extchrsr)rrrrrrrs  zExtended39.validatecCsdd|_xB|jD]8}|tkr,|jt||_q|tkrB|j||_qtqWt|j|j|j|_|jS)Nr)rr _extendedr ValueErrorrrr)rrrrrrs zExtended39.encodeN)rrrrrrrrrrrs  r)rr)r r )r r )r r)rr)rr)rr)rr)rr)rr)rr)rr)rr )r!r")r#r$)r%r&)r'r()r)r*)r+r,)r-r.)r/r0)r1r2)r3r4)r5r6)r7r8)r9r:)r;r<)r=r>)r?r@)rArB)rCrD)rErF)rGrH)rIrJ)rKrL)rMrN)rOrP)rQrR)rSrT)rUN)rVrW)rXrY)rZr[)r\r])Zreportlab.lib.unitsrZreportlab.lib.utilsrZ!reportlab.graphics.barcode.commonrstringrrrZ string_digitsrrr r rrrrrrrr!sn     #G