Project:
This program is for Windows and converts a plain text file into an eBook that can be read on the NSpire CX II.
Note: there must be a TTF font file called "font.ttf" in the same directory as the exe. By default, one is provided in this distribution.
You are free to use any TTF file that supports UTF-8, although you may have better results with the one provided. Feel free to experiment.

Instructions:
Run install.exe. The contents of the program will be extracted to your Public Documents folder (typically C:\Users\Public\Public Documents\NSpire Bookie). Choose the appropriate folder associated with your CPU architecture (x64, arm64). Feel free to move to C:\Program Files\. 

Run "NSpireBookie.exe".


When you boot up the command line program, it will ask you to enter a path to a plain text file...
Type the path: i.e. C:\Users\[your username\Documents\book.txt

It will ask you if you would like to preserve line-breaks? In a plain text file, there may be
pre-defined line endings to make the text less wide from left-to-right. This option should be chosen on a case-by-case basis, although the most typical option would likely be to preserve line-breaks by answering yes.

It will then ask you for a "computer-friendly name". This ends up being the Lua filename that gets generated. It should be English only letters and underscores.

Finally, it will prompt you for a name. This name shows at the top-left corner of the screen. It should be ascii only, as it uses Lua-native drawstring methods. Unlike the book contents itself, this name MUST BE ASCII.

After executing, a folder called "output" will be generated in the same directory as the .exe. The filename will be the one you provided in step 3.
If a book exceeds 1500 pages, they will be batched into multiple files containing up to 1500 pages. Rest assured, each chunked-program is self-contained and you will still enjoy the same experience regardless of book length.

Note: The file generated is Lua. You can copy/paste the file using the TI-Nspire CX CAS Student Software by creating a new Lua script and copy/pasting the files into the IDE editor. Note: For larger books, you may have better results with choosing the file in Windows Explorer and Drag-and-Dropping it into the IDE editor. Copy/Paste has limits, but luckily TI engineers added a way to support large files by just drag-and-dropping it into the IDE text-editing area.

Questions? Bug? Please email me:
RNIRNBER AT GMAIL.COM