Lines Matching refs:alphabet
1424 def readPrefixCode(self, alphabet): argument
1430 mode, numberOfSymbols = self.verboseRead(PrefixCodeHeader(alphabet.name))
1433 self.readComplexCode(numberOfSymbols, alphabet)
1434 return alphabet
1444 alphabet.__class__.mnemonic(alphabet, index)
1446 alphabet.mnemonic = myMnemonic
1448 table.append(self.verboseRead(alphabet, skipExtra=True).index)
1450 del alphabet.mnemonic
1455 alphabet.setLength(dict(zip(table, lengths)))
1456 return alphabet
1458 def readComplexCode(self, hskip, alphabet): argument
1465 lol = LengthOfLengthAlphabet('##'+alphabet.name)
1468 lengthCode = LengthAlphabet('#'+alphabet.name)
1482 print("***** Lengths for {} will be coded as:".format(alphabet.name))
1488 alphabetIter = iter(alphabet)
1572 alphabet.setLength(symbolLengths)
1573 print('End of table. Prefix code '+alphabet.name+':')
1574 alphabet.showCode()
1617 def verboseRead(self, alphabet, context='', skipExtra=False): argument
1630 length, symbol = alphabet.readTuple(stream)
1633 length, symbol, extraBits, extra = alphabet.readTupleAndExtra(
1649 context+alphabet.name,
1736 alphabet = TreeAlphabet('CM'+kind[0].upper(), NTREES=NTREES, RLEMAX=RLEMAX)
1737 cmapCode = self.readPrefixCode(alphabet)
1784 if kind==L: alphabet = LiteralAlphabet(i)
1785 elif kind==I: alphabet = InsertAndCopyAlphabet(i)
1786 elif kind==D: alphabet = DistanceAlphabet(
1788 self.readPrefixCode(alphabet)
1789 prefixes.append(alphabet)