Giter Club home page Giter Club logo

convert_atascii_utf8's Introduction

convert_atascii_utf8

Toolset to convert ATASCII files with negative characters (as in Action!, where they do as comment) to/from UTF8 for editing with favourite text editor.

However, inversed chars cannot be entered from keyboard, only from char picker.

In addition a special font:

TrueType/EightBit Atari-Standard.ttf

is needed (and installed in the system) from repository:

https://github.com/a8bit/EightBit-Atari-Fonts/

(for convinience placed here)

Tools

convertatasciitoutf8

Usage: convertatasciitoutf8 [-7]

converts ATASCII files to UTF-8 encoded files, that look the same as on Atari 8-bit. Optional 7 bit mode (-7 option) strips eight bit, making inverse characters not inversed. The files can be edited then, and then backconverted with tool:

convertutf8toatascii

Usage: convertutf8toatascii

which converts UTF-8 files with inverse characters encoded - back to plain ATASCII 8-bit files. If eight bit was not stripped, this operation is reversible to previous.

change inverse filter

The chinv command changes inverse of ATASCII characters, when inversed characters are stored as unicode codes, and converting plain <128 characters to unicode inversed.

You may use it in vim as a block text filter, for example:

  • first select text to be changed and then press
  • shift-: and append !chinv, then press enter.

Under the hood it changes all characters from stdin, and when <128 (but 0xa) it outputs them to stdout as unicode inversed, and when in unicode inversed form - outputs back to plain ascii uninversed. Special font EightBit Atari-Standard.ttf must be used to properly display inversed ATASCII characters.

please use those tools as you wish :)

Jakub Husak (11.2023), Poland.

Building

type

make

(make tool and C compiler needed)

and copy them somewhere where the PATH can look into.

Example:

convert_atascii_utf8's People

Contributors

jhusak avatar

Stargazers

Tomasz Gieorgijewski avatar BartGo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.