English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 23 November 2023, 21:14   #1
Geordie-Jedi
Registered User
 
Geordie-Jedi's Avatar
 
Join Date: Sep 2023
Location: UK - North East England
Posts: 48
Question Arexx > Converting files > Multiple steps >

Hi there guys.

I was hoping I could pick ya brains and get some help and pointers for an obscure
issue that I'm trying to sort out.


Issue:
Recently I came across an old thread about trying to convert the articles in the Grapevine diskmags,
to plain ASCII. https://eab.abime.net/showthread.php?t=65149

It seemed to be a huge amount of work, as initially people were thinking of using OCR
to capture the files, then convert them to ASCII.

However H0ffman has created an awesome Windows script/CLI app that extracts the articles from
the Grapevine bin files into separate files.

These files can then be loaded into Powerpacker on an Amiga, un-packed, then converted
into plain ASCII.

This is a massive step in the right direction, and I've been converting some of these files
into plain ASCII using the method above.

However I was thinking that there must be an easier way to do this.
Namely: Arexx.


What I'd like to do:

1. Using H0ffmans script, extract the files.

(Then using Arexx)
2. Take a dir of these extracted files
3. Load them into Powerpacker
4. Get Powerpacker to un-pack the files
5. Get Powerpacker to save the files out as ASCII text
(Same name, but with a .txt suffix)

6. (Additional - If possible)
When the files have been converted to text, there is still some latent formatting
left in there - E.G. {, {1, {a, (curly braces with Nos or letters)
These are formatting / control codes to tell Grapevine to show different colours
or blinking text, etc.

6.1. Would there be a way to also strip these out ?

I've experimented with the converted ASCII files in Linux (using the Kate text editor)
and some basic find/replace and starting to look at some Reg-Ex, to try and
improve and speed up the process (for removing the formatting codes).


Questions:

1. How would I go about doing this (using Arexx) ?
2. Has anyone tried anything similar ? / How did you achieve it ?

TIA for any help or advice
Geordie-Jedi is offline  
Old 24 November 2023, 15:24   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
What format do have the files after de-packing? Generally I would say it is doable and a nice challenge for a beginner and boring for the advanced. Start it and ask if you get stuck.
daxb is offline  
Old 25 November 2023, 14:21   #3
Geordie-Jedi
Registered User
 
Geordie-Jedi's Avatar
 
Join Date: Sep 2023
Location: UK - North East England
Posts: 48
@daxb

The files contained on the Grapevine disks were 95+% text files
with some IFF image files in there too.

For now, all I am interested in in the text files.

What I'd like the Arexx script to do is:

1. Load the files into Powerpacker

2. Get Powerpacker to un-pack the files

3. Get Powerpacker to save the files out as ASCII text
(Same name, but with a .txt suffix)

4. (Additional - If possible)
When the files have been converted to text, there is still some latent formatting
left in there - E.G. {, {1, {a, (curly braces with Nos or letters)
These are formatting / control codes to tell Grapevine to show different colours
or blinking text, etc.
Geordie-Jedi is offline  
Old 25 November 2023, 17:07   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
As already said it is doable. Powerpacker has an ARexx port which is described in the docs. So 1. to 3. is easy (if you have ARexx knowledge). 4. is no problem but it depends a bit how unique the strings are you want to remove. If so, easy too (if you have ARexx knowledge).
daxb is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Space Hulk > TOSEC > No disk 3 > Poss x2 copies of disk 1 > Noob-tech-ninja support.Games 3 05 January 2023 21:01
A500 > atk > ciabta/b irq > fail! 8362r8 support.Hardware 5 05 April 2022 20:27
AF > Cloanto WB 3.1 > Installtion questions > Noob-tech-ninja support.Amiga Forever 18 27 July 2021 08:26
FS-UAE > Balancing speed Vs host CPU > & Saved States > Noob-tech-ninja support.FS-UAE 3 02 December 2020 00:40
Opus 5.91, MENU>Icons>New>Group... not working peceha support.Apps 3 16 September 2018 11:11

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:12.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10895 seconds with 13 queries