cbmcodecs2


Namecbmcodecs2 JSON
Version 1.3 PyPI version JSON
download
home_pagehttps://github.com/irmen/cbmcodecs2
SummaryPython codecs for CBM PETSCII and Screencode encodings
upload_time2023-09-07 21:19:52
maintainer
docs_urlNone
authorIrmen de Jong
requires_python
licenseGPLv2
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===========================================================================
cbmcodecs2 - Python encodings for handling PETSCII and C64 Screencode text.
===========================================================================

Introduction
============

The cbmcodecs2 package provides a number of encodings for handling text from
Commodore 8-bit systems. Much of the credit for this package must go to
Linus Walleij of Triad, as these codecs were built from his PETSCII to Unicode
mappings which can be found at http://www.df.lth.se/~triad/krad/recode/petscii.html
The screencodes codec was created by hand later and borrows from them.

This package is an updated fork of the original cbmcodecs package, which now seems unmaintained.

Requires Python 3.x


Installation
============

Easiest is to install the latest version directly `from Pypi <https://pypi.org/project/cbmcodecs2/>`_ :

``pip install cbmcodecs2``


Usage
=====

Currently there are four codecs defined for variations of the PETSCII encoding:

petscii_c64en_lc
    The English version of the Commodore 64 mixed-case character set

petscii_c64en_uc
    The English version of the Commodore 64 upper-case/graphics character set

petscii_vic1001jp_gr
    The Japanese version of the VIC-1001 Latin upper-case/graphics character set

petscii_vic1001jp_kk
    The Japanese version of the VIC-1001 Latin upper-case/katakana character set

petscii_vic20en_lc
    The English version of the VIC-20 mixed-case character set

petscii_vic20en_uc
    The English version of the VIC-20 upper-case/graphics character set


There are two codecs defined to handle the Screencode (POKE) encoding:

screencode_c64_lc
    Mixed-case mapping to screencodes (POKE) used by the Commodore 64 and Vic20

screencode_c64_uc
    Upper-case/graphics mapping to screencodes (POKE) used by the Commodore 64 and Vic20


Simply import the cbmcodecs2 package and you will then be able to use them as
with any of the encodings from the standard library::

    import cbmcodecs2


    with open('file.seq', encoding='petscii_c64en_lc') as f:
        for line in f:
            print(line)


License
=======

As with the original PETSCII to Unicode mapping files, the cbmcodecs2 package
is Licensed under the GNU GPL Version 2, see the ``LICENSE.txt`` file for the
full text.


Unicode symbols used
====================
Aside from the regular alphanumerics and symbols, the unicode mapping uses the
following unicode block drawing and other symbols to mimic a bunch of PETSCII characters:

£ π ✓ ← ↑ ─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼ ╭ ╮ ╯ ╰
╱ ╲ ╳ ▁ ▂ ▃ ▄ ▌ ▍ ▎ ▏ ▒ ▔ ▕ ▖ ▗ ▘ ▚ ▝
○ ● ◤ ◥ ♠ ♣ ♥ ♦


Credits
=======

Linus Walleij - Original C64 and VIC-20 mappings

Dan Johnson - Translation of C64 & VIC-20 mappings to python codecs

Irmen de Jong - Screencode mappings, bug fixes and unit tests. Updated to cbmcodecs2 package.

Simon Rowe - box drawing character improvements and Japanese VIC-1001 codecs.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/irmen/cbmcodecs2",
    "name": "cbmcodecs2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Irmen de Jong",
    "author_email": "irmen@razorvine.net",
    "download_url": "https://files.pythonhosted.org/packages/56/00/9c612edc1931bf25eb17e169557bdc3773a568ba25b96563850ff4fea17a/cbmcodecs2-1.3.tar.gz",
    "platform": null,
    "description": "===========================================================================\ncbmcodecs2 - Python encodings for handling PETSCII and C64 Screencode text.\n===========================================================================\n\nIntroduction\n============\n\nThe cbmcodecs2 package provides a number of encodings for handling text from\nCommodore 8-bit systems. Much of the credit for this package must go to\nLinus Walleij of Triad, as these codecs were built from his PETSCII to Unicode\nmappings which can be found at http://www.df.lth.se/~triad/krad/recode/petscii.html\nThe screencodes codec was created by hand later and borrows from them.\n\nThis package is an updated fork of the original cbmcodecs package, which now seems unmaintained.\n\nRequires Python 3.x\n\n\nInstallation\n============\n\nEasiest is to install the latest version directly `from Pypi <https://pypi.org/project/cbmcodecs2/>`_ :\n\n``pip install cbmcodecs2``\n\n\nUsage\n=====\n\nCurrently there are four codecs defined for variations of the PETSCII encoding:\n\npetscii_c64en_lc\n    The English version of the Commodore 64 mixed-case character set\n\npetscii_c64en_uc\n    The English version of the Commodore 64 upper-case/graphics character set\n\npetscii_vic1001jp_gr\n    The Japanese version of the VIC-1001 Latin upper-case/graphics character set\n\npetscii_vic1001jp_kk\n    The Japanese version of the VIC-1001 Latin upper-case/katakana character set\n\npetscii_vic20en_lc\n    The English version of the VIC-20 mixed-case character set\n\npetscii_vic20en_uc\n    The English version of the VIC-20 upper-case/graphics character set\n\n\nThere are two codecs defined to handle the Screencode (POKE) encoding:\n\nscreencode_c64_lc\n    Mixed-case mapping to screencodes (POKE) used by the Commodore 64 and Vic20\n\nscreencode_c64_uc\n    Upper-case/graphics mapping to screencodes (POKE) used by the Commodore 64 and Vic20\n\n\nSimply import the cbmcodecs2 package and you will then be able to use them as\nwith any of the encodings from the standard library::\n\n    import cbmcodecs2\n\n\n    with open('file.seq', encoding='petscii_c64en_lc') as f:\n        for line in f:\n            print(line)\n\n\nLicense\n=======\n\nAs with the original PETSCII to Unicode mapping files, the cbmcodecs2 package\nis Licensed under the GNU GPL Version 2, see the ``LICENSE.txt`` file for the\nfull text.\n\n\nUnicode symbols used\n====================\nAside from the regular alphanumerics and symbols, the unicode mapping uses the\nfollowing unicode block drawing and other symbols to mimic a bunch of PETSCII characters:\n\n\u00a3 \u03c0 \u2713 \u2190 \u2191 \u2500 \u2502 \u250c \u2510 \u2514 \u2518 \u251c \u2524 \u252c \u2534 \u253c \u256d \u256e \u256f \u2570\n\u2571 \u2572 \u2573 \u2581 \u2582 \u2583 \u2584 \u258c \u258d \u258e \u258f \u2592 \u2594 \u2595 \u2596 \u2597 \u2598 \u259a \u259d\n\u25cb \u25cf \u25e4 \u25e5 \u2660 \u2663 \u2665 \u2666\n\n\nCredits\n=======\n\nLinus Walleij - Original C64 and VIC-20 mappings\n\nDan Johnson - Translation of C64 & VIC-20 mappings to python codecs\n\nIrmen de Jong - Screencode mappings, bug fixes and unit tests. Updated to cbmcodecs2 package.\n\nSimon Rowe - box drawing character improvements and Japanese VIC-1001 codecs.\n\n\n",
    "bugtrack_url": null,
    "license": "GPLv2",
    "summary": "Python codecs for CBM PETSCII and Screencode encodings",
    "version": "1.3",
    "project_urls": {
        "Homepage": "https://github.com/irmen/cbmcodecs2"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56009c612edc1931bf25eb17e169557bdc3773a568ba25b96563850ff4fea17a",
                "md5": "e7735eded2aaef81aa13b719a7af0da6",
                "sha256": "0a356782ce4478848467831b1344e8b00b9b5fefdfb796ab7411c12de0616a67"
            },
            "downloads": -1,
            "filename": "cbmcodecs2-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "e7735eded2aaef81aa13b719a7af0da6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28158,
            "upload_time": "2023-09-07T21:19:52",
            "upload_time_iso_8601": "2023-09-07T21:19:52.045541Z",
            "url": "https://files.pythonhosted.org/packages/56/00/9c612edc1931bf25eb17e169557bdc3773a568ba25b96563850ff4fea17a/cbmcodecs2-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-07 21:19:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "irmen",
    "github_project": "cbmcodecs2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cbmcodecs2"
}
        
Elapsed time: 0.11487s