4461e45278
Fixing the bitrot in chapter 4 after moving it meant looking at the OCR'd text on archive.org, which is not good. Here's how not good it was: > A tiL. (be it APPLESOFT, INTEGER, BINARY. or TEXT type) con,i a t a of one > or more sectors containing data. Since the •• ctor i, the smallest unit of > allocatable space on a di s kette, a file will use up at least one sector even > if it i a Ie •• than 256 bytes long; the remainder of the sector is w • • ted. > ThuB , a file containing 400 characters (or bytes) of data will occupy one > entire sector and 144 bytes of another with 112 bytes wasted . Knowing these > facts, one would expect to be able to use up to 16 times 35 times 256 or > 143,360 bytes of space on a diskette for files. Actually, the largest file > that can be stored is about 126,000 bytes long. The reason for this is that > some of the sectors on the di a kette .uat be used for what is called > ·ove[head- . > > <Figure 4.1> > > Overhead sectors contain the iMage of DOS which is 10ad •• 1 when booting the > diskette, a list of the nallles and loes,lollll of the files on the diskette, > and an accounting of the sectors which are free for use with new files or > expon.lu". of existing files. An example of the way DOS uses lectDr. ,. > given in Pigure 4 . 1 . Yeah.... You see why I was so excited by the source text? :) |
||
---|---|---|
D1S1 | ||
D1S2 | ||
D2S1 | ||
.editorconfig | ||
.gitattributes | ||
ch01.txt | ||
ch02.txt | ||
ch03.txt | ||
ch04.txt | ||
README.md |
Don Worth's Beneath Apple DOS
Don Worth wrote a very cool book for the Apple II. Actually, he wrote several, but here is one of them that I happened to need. He found a bunch of his disks containing the original text in his garage, and he was happy to have his original disks be released into the hands of whomever might want to use them. Since the OCR versions of this book are ... less than great ... I've decided to try and convert his originals.
The Goal
I'd like to see a proper version of this book. Text, figures, all of it. To do that is not going to be trivial, but it starts with clean text. We don't have that on archive.org, yet, but perhaps we can fix that? Please feel free to join in--send patches, help add stuff, etc.
The method
- The DOS 3.3 disks were dumped using cppo
- Apply the following transformations to each document file:
- For characters 0xa0-0xfe, strip the high bit to get pure ASCII
- Convert 0x0d and 0x8d (return) characters ti 0x0a (newline)
- Escape all else in C-style
- Remove NUL at end of .txt files
- .pp dot command is paragraph break, replace with blank line.
- Remove trailing whitespace
- Normalize case and spacing of dot commands (lowercase here)
This has probably broken the .s files a bit, and I haven't bothered to decompile the five byte HELLO ... ;)