

def to_javascript(self):
    for (k, vv) in self.keymap.items():
        for (pos, v) in enumerate(vv.split('|')):
            if ((len(v) >= 4) and (v == 'PIPE')):
                v = '|'
            print(('<input type="button" id="btn_kw_%s_%d" value="%s" onClick="appendText(\'%s\');" />' % (k, pos, self, v)))
    print('/* -------------------------------- */')
    return

dataset/ETHPy150Open Ezhil-Language-Foundation/open-tamil/keyboard/layout.py Layout.to_javascript/VarMisuse@81/127 `v`->`self`