2023-06-17 02:44:21 +00:00
|
|
|
with open('CKJ_lib.lib') as fi, open('CKJ_wide.lib', 'w') as fo:
|
|
|
|
for line in fi:
|
2021-11-16 23:47:54 +00:00
|
|
|
tok = line.split()
|
2023-06-17 02:44:21 +00:00
|
|
|
if tok:
|
|
|
|
if tok[0] == 'P':
|
|
|
|
tok[3:-2:2] = [str(int(t) * 1.5) for t in tok[3:-2:2]]
|
|
|
|
elif tok[0] == 'X' and int(tok[3]) > 0:
|
|
|
|
tok[3] = '1450'
|
2021-11-16 23:47:54 +00:00
|
|
|
|
2023-06-17 02:44:21 +00:00
|
|
|
print(' '.join(tok), file=fo)
|