This file is indexed.

/usr/share/pyshared/plasTeX/Packages/CJK.py is in python-plastex 0.9.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
from plasTeX import Command, Environment, log

# Map of CJK encoding names to Python encoding names
encodings = {
    'Bg5': 'big5',
    'GB': '',
    'GBt': '',
    'JIS': 'euc_jp',
    'SJIS': 'shift_jis',
    'KS': '',
    'UTF8': 'utf_8',
}

class CJK(Environment):
    args = '* [ fontencoding ] encoding args'

class CJKchar(Command):
    args = '[ encoding:str ] char1:int char2:int'
    @property
    def unicode(self):
        a = self.attributes
        enc = encodings[a['encoding'].strip()]
        if not enc:
            log.warning('Unknown encoding: %s' % a['encoding'])
            raise AttributeError, 'unicode'
        return unicode(chr(a['char1'])+chr(a['char2']), enc)

class Unicode(Command):
    args = 'char1:int char2:int'
    @property
    def unicode(self):
        return unicode(chr(a['char1'])+chr(a['char2']), 'utf_8')

class CJKcaption(Command):
    args = 'caption:str'

class CKJenc(Command):
    args = 'encoding:str'

class CJKfamily(Command):
    args = 'family:str'

class CJKencfamily(Command):
    args = '[ fontencoding:str ] encoding:str family:str'

class CJKfontenc(Command):
    args = 'encoding:str fontencoding:str'

class CJKkern(Command):
    pass

class CJKglue(Command):
    pass

class CJKtilde(Command):
    pass

class nbs(Command):
    pass

class standardtilde(Command):
    pass

class CJKspace(Command):
    pass

class CJKnospace(Command):
    pass

class CJKhanja(Command):
    pass

class CJKhanjul(Command):
    pass

class CJKtolerance(Command):
    pass

class CJKuppercase(Command):
    pass

class Bg5text(Environment):
    pass

class SJIStext(Environment):
    pass

class CJKCJKchar(Command):
    pass

class CJKhangulchar(Command):
    pass

class CJKlatinchar(Command):
    pass

class CJKbold(Command):
    pass

class CJKnormal(Command):
    pass

class CJKsymbol(Command):
    pass

class CJKsymbols(Command):
    pass

class CJKboldshift(Command):
    pass

class CJKaddEncHook(Command):
    args = 'encoding:str body'