mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 01:29:28 +00:00
codecs lib
This commit is contained in:
parent
68dd767be8
commit
1ea7c015c8
@ -78,7 +78,7 @@ def char_to_bytevalue(character: str, petscii: bool=True) -> int:
|
||||
# ASCII/UNICODE-to-PETSCII translation table
|
||||
# Unicode symbols supported that map to a PETSCII character: £ ↑ ← ♠ ♥ ♦ ♣ π ● ○ and various others
|
||||
|
||||
# @todo cbmcodecs pypi package? extend that with screencode codec?
|
||||
# @todo cbmcodecs pypi package?
|
||||
ascii_to_petscii_trans = str.maketrans({
|
||||
'\f': 147, # form feed becomes ClearScreen "{clear}"
|
||||
'\n': 13, # line feed becomes a RETURN "{cr}" (not a line feed)
|
||||
|
@ -6,6 +6,7 @@ eliminates statements that have no effect, optimizes calculations etc.
|
||||
Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||
"""
|
||||
|
||||
|
||||
from typing import List, no_type_check, Union
|
||||
from .datatypes import DataType, VarType
|
||||
from .plyparse import *
|
||||
|
@ -1,3 +1,4 @@
|
||||
attrs
|
||||
ply
|
||||
git+https://github.com/irmen/cbmcodecs.git@master
|
||||
cbmcodecs >= 0.2.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user