def set_script(self, i):
if i in range(<NUM_LIT:1>, <NUM_LIT:10>):<EOL><INDENT>n = i - <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>raise IllegalInput("<STR_LIT>" % (hex(i)))<EOL><DEDENT>if n > -<NUM_LIT:1>: <EOL><INDENT>self.curr_script = n<EOL>self.delta = n * DELTA<EOL><DEDENT>return<EOL>
set the value of delta to reflect the current codepage