source_conversion
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
source_conversion [2015-04-17 04:35] – external edit 127.0.0.1 | source_conversion [2016-08-24 03:30] (current) – michael_steil | ||
---|---|---|---|
Line 6: | Line 6: | ||
There is a tool called [[http:// | There is a tool called [[http:// | ||
+ | |||
+ | ===== VisAss & AssBlaster to ASCII conversion ===== | ||
+ | |||
+ | Use [[https:// | ||
+ | |||
+ | ===== Hypra-Ass to ASCII conversion ===== | ||
+ | |||
+ | The following bash script converts the encoded file to PETSCII using [[https:// | ||
+ | |||
+ | < | ||
+ | |||
+ | You can do this manually, by typing this into the cbmbasic shell: | ||
+ | |||
+ | < | ||
+ | LOAD" | ||
+ | LIST | ||
+ | </ | ||
+ | |||
+ | And redirecting or copy/ | ||
+ | |||
+ | As a second step, you need to convert the PETSCII output to ASCII (see below). | ||
+ | |||
+ | And as a final step, use the following Python script to fix up the Hypra-Ass-specific indentation: | ||
+ | |||
+ | < | ||
+ | lines = [line.rstrip(' | ||
+ | |||
+ | for line in lines: | ||
+ | if line[0] == ';': | ||
+ | print line | ||
+ | else: | ||
+ | index = line.find(' | ||
+ | if index == 0: | ||
+ | print ' | ||
+ | elif index == -1: | ||
+ | print line | ||
+ | else: | ||
+ | print line[: | ||
+ | </ | ||
===== PETSCII to ASCII conversion ===== | ===== PETSCII to ASCII conversion ===== |
source_conversion.1429238110.txt.gz · Last modified: 2016-08-24 03:30 (external edit)