From 8f14d6dd1293e0f1e2d3f65b596f0fa6f162a383 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 18 Nov 2025 01:36:46 -0500 Subject: Better text file detection for -aa; convert tabs with -a or -aa. --- src/unalf.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/unalf.rst') diff --git a/src/unalf.rst b/src/unalf.rst index e23debd..4c3a658 100644 --- a/src/unalf.rst +++ b/src/unalf.rst @@ -44,20 +44,22 @@ OPTIONS ======= -a - Convert text file line endings from Atari EOL to UNIX newline. Text - files are detected by name: **\*.txt**, **\*.doc**, **\*.lst** files - are considered text. + Convert text file line endings and tabs from ATASCII to ASCII. Text + files are detected by looking at the first 2 bytes of the extracted + file. If both are printable ASCII (or ATASCII EOL, aka **$9B**), the + file is considered text. - Note that *only* line-endings are converted. Other ATASCII characters - are left alone. If you need anything more in-depth, use **a8cat**\(1). + Note that *only* line-endings and tabs are converted. Other ATASCII + characters are left alone. If you need anything more in-depth, use + **a8cat**\(1). -.. convert EOLs in text files. +.. convert EOLs and tabs in text files. --aa +**-aa** Convert line endings in all extracted files. This will corrupt any executables or non-text data files, so use with caution. -.. convert EOLs in ALL files. +.. convert EOLs and tabs in ALL files. -d output-dir Write extracted files to this directory, which will be created if it -- cgit v1.2.3