*** Textbook ***

_Overview_

Textbook is both a text viewer and an e-book reader, designed to look and 
operate like a classic book. You can use it to replace your default desktop 
text viewer, or read books in text format. It is compatible with Project 
Gutenberg collection of thousands of books.

Textbook reflows the content of a text file, but has certain rules to retain 
some aspects of the original formatting for a better presentation.


_Licencing_

Textbook is copyrighted  2011 by Claude Labelle. All rights are reserved. It 
is released as Donationware (Freeware with optional donation). You are allowed 
to use it for free. You are granted the following rights: You can distribute it 
for free, as long as the three files (TEXTBOOK.PRG, TEXTBOOK.RSC and this file, 
README.TXT) are kept together. You are allowed to translate the RSC file and 
this TXT file and distribute them with TEXTBOOK.PRG. Don't forget to send us a 
copy to include on our site.  Other software rights remain entirely with the 
author. In particular, you are not allowed to modify the program, reverse 
engineer it or make a similar version for another operating system or platform. 
The use of this program indicates that you accept all the terms of this licence.

If you feel you would like to support one of the last Atari developers, you can 
send any PayPal donation to clabelle@cyberus.ca. Other ways to show your
support is purchase our other Anodyne Software products, distribute Textbook on 
ftp/web sites, or translate the RSC file and documentation.


_System requirements_

- Any ST/STe/TT/Falcon with 1 MB RAM, more to load very large files.
- Hard disk drive.
- 640x400 minimum resolution.

Textbook was tested on the following systems: Atari 1040ST, Mega ST, Falcon, 
Falcon with CT63 and CTPCI, TT030. See the troubleshooting notes at the end of 
this document for known problems/issues.


_Where to get free e-books_

-   http://www.gutenberg.org
-   http://www.gutenberg.ca
-   http://www.ManyBooks.net

Always choose the plain text format, UTF-8 or ISO-8859-1.


_Opening and closing files_

The first time you run Textbook, a file selector will be displayed to allow you 
to load a file. The folder path is preserved, so the next time you open the 
file selector it will display the contents of the folder path you chose. For 
example, it could be a 'Books' folder where all your ebooks are stored.

When a file is opened, the left page is blank and text starts on the right 
page, to mimic a book and indicate that you are on the first page.

To close a file, close the window or choose 'Close' from the 'File' menu. To 
close a file and open a new one, choose 'Open...' from the 'File' menu.

You can only have one file open at a time. However, you can easily retrieve 
previously opened files from the list under the file menu. The most recently 
closed file will be at the top. A file in the list will open at the same page 
it was displaying when it was closed. This can take some time, depending on how 
far the page is in the book, your system speed, and whether the data file 
created by Textbook was used (see 'Data files' below). Normally it should not 
exceed 30 seconds on a standard 8 MHz ST and should be instantaneous on a 
CT63/CTPCI. While the file is loading, you will see a spinning disc (under TOS 
& MagiC) or busy bee (under MiNT).
To avoid cluttering the list with small files, only files greater than 20KB 
long are retained in the list [exception: see below under _Bookmark_]. You can 
remove files from the list by holding the CTRL key and clicking on the file. As 
long as there is at least one file in the list, the file selector is not shown 
at program startup.

Additionally, you can drag a file from the desktop to Textbooks icon or window 
(drag-and-drop and VASTART protocols are supported). If you install Textbook as 
your default desktop viewer, you can double-click on any text file from your 
desktop. Or you can associate Textbook with a file extension, so when you 
double-click on files with that extension, they will open in Textbook, closing 
any previously opened file in the process.


_Window size_

On standard monitors, the book opens at the full height and width of the 
screen. On widescreen monitors, the book opens in 4:3 format, centred on the 
screen.

If you would like a smaller window size, click the FULLER gadget (upper right 
corner of window) to toggle between a reduced size (3/4 height and width) and 
full size.


_Thickness_

The information line displays page numbers and acts as a view of the sides of 
an opened book. The vertical lines simulate the thickness of each side (left 
and right). When a file is first opened, all the lines are at the right. The 
number of lines is relative to the file size, one line per 20KB. So if you load 
a large file, the thickness is greater than a small one.

As you flip pages, thickness naturally increases on the left side, while it 
decreases on the right side, giving a visual indication of your location in the 
book.


_Changing pages_

Click on the right page to go forward through the book. Alternatively, use the 
keyboard down arrow, space or right arrow key.

To go backwards, click on the left page. Alternatively, use the keyboard up 
arrow or left arrow key.

To go to the beginning, use the keyboard HOME key. To go to the end, use the 
Shift-HOME key.

To move 20KB (one thickness line) at a time, hold the SHIFT key while clicking 
or pressing the arrow keys.

Click inside the thickness lines in the information line to go directly to that 
section of the book.

It can take a long time to paginate a large number of unread pages. A spinning 
disc (under TOS & MagiC) or busy bee (under MiNT) indicates that Textbook is 
paginating. You can press the ESC key to stop the pagination; in this case, 
Textbook will display the page it has reached so far.


_Bookmark_

Right-click on a page to bookmark it, or choose 'Put' from the Bookmark menu.

You can go to the bookmarked page by clicking on the part of the bookmark that 
shows in the information line, or choose 'Go' from the Bookmark menu. Or you 
can bookmark another page, in which case a confirmation message will be 
displayed, since this action will move the bookmark from the old page to the 
new page.

To remove the bookmark, right-click on the page that has the bookmark, or 
choose 'Remove' from the Bookmark menu.

Its not necessary to bookmark the current page before closing your book or 
quitting Textbook. If you close a book, the file will be available in the list 
under the File menu, and will re-open at the same position. If you quit 
Textbook, the book will re-open at the same position the next time you load 
Textbook. There is one exception to this rule: small files (under 20KB) 
normally dont show under the File menu and thus dont re-open automatically. 
However, they will if you bookmark them before closing them.


_Font_

You can change fonts from the 'Text' menu. Since Textbook will use an italic 
font where required, it tries to automatically determine the name of the italic 
font by adding " Italic" to the font name that you first selected. If this 
doesnt provide a valid font name, you will be asked for an Italic font as well.

After selecting a font, the file is re-displayed at approximately the same 
position.

Also under the 'Text' menu, there are 'Smaller' and 'Bigger' options. This 
changes the font size accordingly (with NVDI, it changes to the next available 
size; without NVDI, it changes by 2 points).

With NVDI, kerning pairs are supported to provide high quality text.


_Justification_

You can justify the text, so that lines of text extend to the right margin, 
using the 'Justify' option in the 'Text' menu. Some lines may not justify, 
because they would be stretched too much.


_Italic_

In Project Gutenberg books (and this documentation), an underscore signals the 
start of italic text and the next underscore signals the end. You can turn on 
this option under the 'Text' menu, to display italic text and hide the 
underscores.


_List Mode_

Some text files, especially lists, do not display well in Textbook. Turning on 
this option ensures a line change at each end-of-line character. For books or 
regular text files, leave this option off, otherwise the book will not display 
properly.


_Character set_

Textbook supports Atari, ISO-8859-1 and UTF-8. If your text file has accents or 
characters that do not display correctly, try changing the character set. When 
you close a file, its character set is saved. When you open a file from the 
list under the File menu, the character set may change to the one saved.

For Project Gutenberg books, Textbook will try to determine the character set 
from the filename.


_Paper colour_

Use the Winconf program to change the window background colour. If available, 
we recommend colour number 229. Winconf can be downloaded at 
http://windom.free.fr/winconf/ . Run and close Textbook before running Winconf. 
Textbook creates a windom.cnf file, normally at the root of C:\ or in the 
Textbook folder. If Winconf displays a message saying it can't find windom.cnf, 
 quit then move manually windom.cnf from the Textbook folder to the root of the 
 C:\ drive. Then run again Winconf.


_Saved settings_

All the options, window position, etc. that you set are saved when quitting.


_Data files_

When closing a book, where more than 32KB has been read, a data file is created 
in a DATA folder in the same location as TEXTBOOK.PRG. Its name will be 
file_n_.dat, where _n_ is 0 to 9 inclusive, and corresponds to the position of 
the file in the list under the File menu.

The data file dramatically speeds up the opening of a file at the position 
where you left off. It contains the starting positions of each page that was 
read.

The data file is only used by Textbook if the font, font size, window size, 
italic and list mode settings are identical to those when the book was closed. 
(The character set can be different, as can the justification setting). If the 
settings dont match, the book will still open at the correct page, but it will 
take longer.


_Troubleshooting_

If you have trouble opening a text file from the list under the File menu, it 
may be because the corresponding file_n_.dat file is corrupted. Should this 
happen, hold the SHIFT key down while picking the file from the menu. This will 
delete the .dat file. Similarly, you can hold the SHIFT key down at program 
startup if you have trouble running Textbook.

The font selector is known to crash under the following circumstance:

- CT63/CTPCI, if you choose 8-pt system font

Very large books may not display all the thickness lines, since they would 
exceed the space allocated for them in the status bar. This is only a display 
issue, it doesn't affect the functionality.

Under MiNT/XaAES, the iconfied window's icon is missing.

If you move the reduced size window, then switch to full size, the window can 
become partly off-screen.


_Contact_

Email clabelle@anodynesoftware.com for bug reports, suggestions, etc. Check for 
latest updates at our web site, http://www.anodynesoftware.com .


_Disclaimer_

We have tested this product as thoroughly as possible and have not found it to 
cause problems of any kind, with the exception of the known problems described 
in the troubleshooting section of this documentation. Nevertheless, Anodyne 
Software cannot guarantee that Textbook will function with all software and 
machine configurations, and hereby disclaims any implied warranty with respect 
to fitness for any particular purpose.
