GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - damieng-zx/legacy-to-utf8: Convert legacy (micro computer) text files to UTF8

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

legacy-to-utf8

This tool can batch convert text files from old legacy systems such as the ZX Spectrum, Commodore 64, Atari 8-bits and Atari ST into UTF-8 files.

This is a very quicky-and-dirty tool that reads Unicode-style tables to map the character transforms.

Please note that while this project is MIT licensed, some of the tables provided have their own licenses. See each table file for their licence terms.

Usage

node src/index.js *.TXT atarist converted/

The current formats are atarist (Atari ST), atascii (Atari 8-bit), petscii-c64 (Commodore 64) and zxspectrum (ZX Spectrum). If you want to add more find a unicode mapping table and drop it into the tables folder.

Options

  • --wrap n - Force a line wrap at column n
  • --trim - Trim whitespace from the end of each line

Examples

To convert Spectrum Tasword 2/3 files into regular PC text;

node src/index.js *.T zxspectrum converted/ --wrap 64 --trim

Limitations

  • It performs large in-memory string concats instead of streaming buffers so it's inefficient but then you're only going to run it once so 🤷
  • Unmapped characters are passed through as-is. This could cause problems. If you don't like that you can comment that line out in the source.

About

Convert legacy (micro computer) text files to UTF8

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.