mirror of
https://github.com/Artrios/pokecarde.git
synced 2026-03-22 01:34:10 -05:00
- Improvements to build, which should help find nevpk and rgbds a little easier. - Support for berry cards K007-K012 has been added (original Japanese) and they have received unofficial localizations. - Unofficial Localizations for cards B001 - B048 have now been included. - Cards P001-P004 have now been added (Official English and Japanese) - Cards P005-P008 have now been added (official Japanese) and have also received unofficial localizations. - Cards N001-N008 have now been added (official Japanese) and have also received unofficial localizations. - Unofficial localization for card O001 has been improved to be more in-line with official localizations of the time. tl;dr All Ruby/Sapphire e-Reader cards are now included and exist in their original English/Japanese, and have unofficial localizations if no official translation is available.
28 lines
581 B
Python
28 lines
581 B
Python
#!/usr/bin/env python2.7
|
|
asmProblemBytes = ['\x00', '\x09', '\x0A', '\x22']
|
|
def asmQuote(t):
|
|
result = ""
|
|
quoted = False
|
|
if t[0] in asmProblemBytes:
|
|
result = '{0}'.format(ord(t[0]))
|
|
else:
|
|
result = '"' + t[0]
|
|
quoted = True
|
|
t = t[1:]
|
|
|
|
while len(t):
|
|
if quoted and t[0] in asmProblemBytes:
|
|
result += '",{0}'.format(ord(t[0]))
|
|
quoted = False
|
|
elif quoted:
|
|
result += t[0]
|
|
elif t[0] in asmProblemBytes:
|
|
result += ',{0}'.format(ord(t[0]))
|
|
quoted = False
|
|
else:
|
|
result += ',"' + t[0]
|
|
quoted = True
|
|
t = t[1:]
|
|
if quoted:
|
|
result += '"'
|
|
return result |