[NTLK] bookmaker-patch

From: Vladimir Alexiev (Vladimir_at_worklogic.com)
Date: Wed Nov 20 2002 - 13:36:34 EST


Newton Bookmaker makes only books for small screen size (MP110-130). Thanks
to Marcus Koppenburg who sent me the required information, I've made a perl
script that can patch Bookmaker for Win to any desired screen size.
www.worklogic.com/russian-newton/downloads/bookmaker-patch.pl
Requires Perl (eg from www.activestate.com) and Getopt::Declare (eg "ppm
install Getopt::Declare" after you install ActiveState Perl).

> bookmaker-patch.pl -h
Patch Newton Bookmaker to produce books for a bigger-size screen.
  <file> Patch <file>, default is BookMaker.exe.
  -r[ead[only]] Only report the current size, don't patch.
  -s[ize] <w> <h> Size to width x height.
  -c[lassic] <n> Size to MP110/120/130 (portrait orientation).
     n=0: 240, 318: default Newton Bookmaker size
     n=1: 240, 320: ??fullscreen
  -p[ortrait] <n> Size to MP2000/2100, portrait orientation.
     n=0: 298, 388: default Newton Press size
     n=1: 316, 417: fullscreen UniPress size (buttonbar on bottom)
     n=2: 320, 417: buttonbar on bottom (DEFAULT)
     n=3: 320, 480: ??fullscreen (buttonbar floating)
  -l[andscape] <n> Size to MP2000/2100, landscape orientation.
     n=0: 398, 276: default UniPress size (buttonbar on right)
     n=1: 434, 303: fullscreen UniPress size (buttonbar on right)
     n=2: 480, 320: ??fullscreen (buttonbar floating)

This script works only for Bookmaker 1.1 Developer Release 2 (DR2) on
Windows.
 If you need to patch DR1, send me bookmaker.exe and I'll fix this for DR1.
 Unfortunately I don't know the appropriate offsets for the Macintosh
version.
If you'd like me to fix, change or add some screen sizes, send me a message.
-- vladimir_at_worklogic.com, 20-Nov-2002

Anton, please describe this in books.htm. Also, please change the link at
the bottom of this file to
http://www.worklogic.com/russian-newton/downloads/libhtml2txt.pl

PS: just after making this, I found
http://www.worklogic.com/russian-newton/Downloads/NBM_Hacks.zip
which can do the same, and can also hack font metrics inside Bookmaker.
Perhaps my work isn't a complete waste of time, since my version can be run
from the commandline (thus reused in other programs) and checks file
signatures.

-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/



This archive was generated by hypermail 2.1.2 : Mon Dec 02 2002 - 22:03:11 EST