ChangeLog for "rbmake"
2006-04-27 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, configure.in:
- Upped the version to 1.2.
- samples/usatoday.opt:
- Improved this option file to work with their most recent site,
wap.usatoday.com, instead of the old www.usatoday.com/palm site.
- lib/graburl.c:
- Make sure that GrabUrl_getHttpHeaders() will always return all
the cached headers.
- lib/str.c:
- Used the new uc() inline function and dropped the Uchar typedef.
- lib/wild.c:
- Got rid of unused Uchar typedef.
2006-04-23 Wayne Davison <wayned@users.sourceforge.net>
- lib/graburl.c, lib/rbmake/rbmake.h:
- Added GrabUrl_setHttpHeader(), which provides a way for the caller
to add/override HTTP headers. Replaced GrabUrl_getAuthInfo() with
GrabUrl_guessAuthHeader(), which now interacts directly with the
new custom-header code. Also replaced GrabUrl_combineProxyAuth()
with GrabUrl_getHttpHeaders(), which returns all of the HTTP
headers (including any proxy and/or basic authorization headers).
- lib/rbfetch.c:
- Tweaked the GrabUrl-using code to use the new authorization header
idioms. Also dropped support for really old libxml versions.
- rbmake.c, doc/rbmake.pod:
- Added a new option-file parameter: HTTP-Header.
- lib/rbinfohash.c:
- Fixed the default return value from mergeinfo().
2006-04-22 Wayne Davison <wayned@users.sourceforge.net>
- lib/graburl.c, lib/rbfetch.c, lib/rbmake/rbmake.h:
- Added a User-Agent string to the HTTP headers we send.
- lib/gifimage.c:
- Fixed a bug in the LM_to_uint() inline function.
- lib/rbmake/rbfile.h:
- Tweaked the uc() inline function.
- lib/jpgimage.c:
- Got rid of the use of // as a comment delimiter.
2006-04-20 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake/rbfile.h:
- Added a new function uc() that lets us fetch an unsigned char from
a signed char string. The inline function version preserves type
checking (unlike the former use of forced casts sprinkled through-
out the code).
- lib/rbinfohash.c, lib/rbmake.c, lib/rburls.c:
- Use the new uc() inline-function in place of a forced cast.
- lib/pngimage.c, lib/rbimage.c, lib/rburls2.c:
- Got rid of some pointer-targets-differ-in-signedness compiler
warnings.
- lib/gifimage.c, lib/rbfile.c, lib/rbhtml.c, lib/wild.c:
- Use the new uc() inline-function and fixed some of those pesky
pointer-targets-differ-in-signedness compiler warnings.
- lib/rbimage.h:
- Changed the row_pointers variable in a "struct RbImage" to use
"png_bytep".
- config.guess, config.sub:
- Now using an even newer version from 2006-02-23.
2004-03-05 Wayne Davison <wayned@users.sourceforge.net>
- config.guess, config.sub:
- Updated to version from autoconf 2.59.
2004-02-17 Wayne Davison <wayned@users.sourceforge.net>
- configure.in:
- Included all the stuff from acconfig.h (which was deprecated).
- acconfig.h:
- Makefile.in:
- Got rid of acconfig.h from the rules.
2004-01-01 Wayne Davison <wayned@users.sourceforge.net>
- acconfig.h:
- Added auto-definition of the DOS_FILENAMES functionality when
WIN32 if defined (can be optionally disabled).
- win32/README.txt:
- Document latest MinGW/MSYS build steps.
- win32/Makefile, win32/lib-Makefile:
- Updated to work with the latest MinGW.
- win32/config.h:
- Updated to be built from a more recent autoheader. Defines
updated to match the latest MinGW release.
2003-10-17 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in, lib/Makefile.in, doc/Makefile.in:
- Improvements to the various "clean" targets.
2003-07-01 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbpage.c:
- Fixed a problem when dropping a page with a type of
RB_PAGETYPE_MAYBE_HTML when page-joinging is enabled.
2003-02-28 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, configure.in:
- Upped the version to 1.1.
2003-02-18 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in, doc/Makefile.in, lib/Makefile.in, win32/Makefile,
win32/lib-Makefile:
- Replaced BUILDROOT with DESTDIR since this is the name automake
uses, and it makes writing a gentoo ebuild easier.
- Use mkinstalldirs to ensure that the destination directory of the
install exists.
2003-01-24 Wayne Davison <wayned@users.sourceforge.net>
- rbdump.c:
- A paragraph offset in the hidx file can point to the end of the
file, so don't complain about it.
- config.guess, config.sub:
- Updated to most recent versions to support more systems.
- configure.in:
- Require at least autoconf version 2.52.
- Define RBMAKE_VERSION for our config.h file.
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c, lib/rbmake.c:
- Use RBMAKE_VERSION instead of RB_VERSION.
- doc/Makefile.in:
- Grab the version number out of the config.h file.
- Made the man pages depend on ../config.h.
- lib/rbmake/rbfile.h:
- Got rid of RB_VERSION (the version is in the config.h file now).
2002-11-17 Wayne Davison <wayned@users.sourceforge.net>
- rbinfo.c:
- Guard against a crash if the .info data is inexplicably empty.
- lib/rbfile.c:
- Fixed a readLine() call to check the return value correctly.
- lib/rbhtml.c:
- Don't allow a corrupt "menu=" META tag to crash us.
- Check for (and ignore) an empty NAME field on A tags.
- Make sure we handle an empty HREF field on A tags.
- Tweaked a couple other MBuf_dataPtr* calls to check for a NULL
return.
- lib/rbimage.c:
- If the image buffer is empty, just ignore it.
- lib/rbmake.c:
- If the substitution-rule buffer is empty, just ignore it.
- doc/Makefile.in:
- Added a call to the new "mkinstalldirs" script.
2002-10-26 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Fixed crash-bug when <meta> tag has a 0-length content field.
2002-10-17 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Fixed the -R option to get the name of the new .rb file right.
- samples/ws.opt:
- Baen books can start with 07 now in addition to 06.
2002-08-04 Wayne Davison <wayned@users.sourceforge.net>
- config.guess, config.sub:
- Added to make newer autoconf setups work right.
2002-07-20 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- We don't have a pcre RPM available anymore, so point them at the (no
longer out-of-date) rpms at rpmfind.net.
2002-07-17 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 1.0.
2002-05-02 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Got rid of a compiler warning with newer libxml2 header files.
- Checked in a dangling double-quote-enhancement fix.
2002-02-12 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Rewrote the punctuation-enhancing code so that its parsing of multi-
character sequences works even when the chars are split across
multiple buffer-put calls. Also put all the buffer-parsing state
vars into the page struct (previously there was one global being
used -- yikes).
- Try to intuit nested double quotes when enhancing them into curly
quotes.
- Turn " " into " " (since the Rocket doesn't understand
it).
- Use new TOLOWER() instead of tolower().
- lib/rbhtml.h:
- Got rid of a few flag defines.
- lib/rbpage.h:
- Added some RBP_* flag defines for the new parseFlags page-var.
- Added pre_ellipsis_len, parseFlags, and dquote_level to the page
struct. Removed spaceOK from the page struct.
- lib/rburls.c:
- Changed rbUrlUnescape() to not touch '%' chars that are not legal
hex-encoded escapes.
- rbburst.subst.in:
- Have rbburst transform a entity back into a   entity.
- lib/mbuf.c:
- Fixed a typo in a comment.
2002-02-10 Wayne Davison <wayned@users.sourceforge.net>
- lib/graburl.c, lib/rbfetch.c:
- Updated the call to xmlNanoHTTPMethod() to include the new ilen
value.
- doc/index.html:
- Updated some outdated information.
- doc/rbmake.pod:
- Fixed some unwanted pod side-effects and some typos.
- samples/ws.opt:
- Tweaked the Enhance-Punctuation setting to not twiddle ellipses.
- Better scene-break cleanup.
- Fix some broken & entities.
- More typos fixed.
2001-03-31 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake/rbfile.h:
- Added TOLOWER() and TOUPPER().
2001-03-27 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- We need to call rbUrlUnescape() on the implied URL-matching rules.
2001-03-07 Wayne Davison <wayned@users.sourceforge.net>
- samples/foxnews.opt:
- Removed -- site is no longer valid.
- samples/usatoday.opt:
- Added -- grab USA Today's palm-oriented news.
- doc/tools.html:
- Refer to the usatoday.opt file instead of the defunct foxnews.opt
file.
2001-03-07 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Document that we want at least version 2.3.1 of libxml2 for the
build process to now work (since we need to run xml2-config these
days, not xml-config).
- lib/rbhtml.c:
- We don't use htmlTagLookup() anymore, since the returned struct
pointer proved to be unreliable across versions. Instead, we set
our own RB_NO_CLOSE_TAG flag in the appropriate elements, and check
that.
- lib/rbhtml.h:
- Added RB_NO_CLOSE_TAG.
- Removed the info pointer from the TagInfo struct.
2001-03-07 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Fixed the text of the out-of-sync warning in rbEndElement().
- configure.in:
- Run xml2-config, not xml-config.
- doc/Makefile.in:
- Corrected the current version number.
2001-03-04 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Turn " " or " " into " ".
- rbburst.subst.in:
- Translate " " back into " ".
2001-02-24 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.subst.in:
- Handle unbookifying P tags that have an alignment.
- samples/ws.opt:
- Tweaked the scene-break code some more.
- Fixed the scene-breaks in The Legend That Was Earth.
- Handle the maps getting moved in Ashes of Victory.
- Improved some comments.
2001-02-24 Wayne Davison <wayned@users.sourceforge.net>
- lib/subst.c:
- Allow matches/substitutions that use different open/close letters to
contain nested open/close letters (just like in perl).
- samples/ws.opt:
- Get rid of more useless <A NAME...> tags (since they get in the way
of the scene-break processing).
- Changed the ellipses to stay '.'s and use unbreakable spaces.
- Handle oddball <CENTER> and <DIV> scene-break tags.
- Fixed some bugs in Change of Command.
- samples/yahoo.opt:
- Enhanced the comments and removed some useless options.
2001-02-21 Wayne Davison <wayned@users.sourceforge.net>
- lib/mbuf.c:
- Fixed a potential buffer-overrun bug in MBuf_memcpy().
2001-02-04 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Made some of the sourceforge links use https instead of http.
- doc/tools.html:
- Improved the "What's new" section.
2001-02-04 Wayne Davison <wayned@users.sourceforge.net>
- configure.in:
- lib/Makefile.in:
- Added use of (configure-set) RANLIB when creating the library.
2001-02-03 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 0.99f.
2001-02-03 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Fixed a bug in unbookify_paragraph().
2001-02-03 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 0.99e.
2001-02-03 Wayne Davison <wayned@users.sourceforge.net>
- doc/rbburst.pod:
- Mention the new -R option.
- doc/rbmake.pod:
- Mention ellipses in the punctuation-enhancement sections.
- doc/tools.html:
- Mention the latest enhancements.
- lib/rbhtml.c:
- Fixed a glitch in the dictionary-key generation when the -b option
is not enabled.
- win32/Makefile:
- Updated to use the new rbburst.subst file.
- Added a couple missing (normally-unused) rules.
2001-02-01 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in:
- Echo what we're doing when we filter the rbburst.subt file.
2001-01-30 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbpage.c:
- Fixed a bug in RbPage_delLastHidxPara().
- samples/ws.opt:
- Fixed a couple more typos, add some missing author info, improved
the author-matching regex, and fixed a just-introduced "whoops" in
the code that strips the per-chapter copyright text.
2001-01-30 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Make sure that we don't merge P-tags with different alignments.
- Put the tag-noting code into a subroutine.
- Tweaked the unbookify_paragraph() routine.
- samples/ws.opt:
- Get rid of useless, empty, right-aligned paragraphs.
- Change scene-breaks into <HR SCENE-BREAK> tags.
2001-01-27 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Added the -R (raw-HTML) option.
- lib/rbhtml.c:
- Enhanced the HR tag to allow <HR SCENE-BREAK> to inject a
scene-break HR tag that formats better on the Rocket than
fully-compliant HTML is able to do.
- Use the new args for RbPage_delLastHidxPara().
- rbburst.subst.in:
- Handle the restoration of scene-break HR tags to their original
form.
- lib/rbpage.c:
- Extended RbPage_noteHidxPara() to allow the paragraph items to be
added slightly out-of-order (but only by one item).
- Extended the RbPage_delLastHidxPara() function to allow the user to
specify what tag should be removed (by element number) and any
offset that should be subtracted from any trailing tags that get
bumped up.
- lib/rbmake/rbmake.h:
- Updated the RbPage_delLastHidxPara() prototype.
2001-01-26 Wayne Davison <wayned@users.sourceforge.net>
- unjoin.subst.in, rbburst.subst.in:
- Renamed unjoin.subst.in to rbburst.subst.in and extended it to
include the normal regex substitutions as well as the unjoin ones.
Added an extra "normal" rule to undo the optional bookification of
paragraphs.
- Makefile.in:
- Build the rbburst.subst file now instead of the unjoin.subst file.
- rbburst.c:
- Include rbburst.subst instead of unjoin.subst.
- rbmake.c:
- Added missing RB_ENHANCE_ELLIPSES code.
- lib/rbhtml.c:
- Finished up the piece-meal punctuation-enhancement code.
- When bookifying paragraphs, make the tags unique so they can be
undone by rbburst.
- Properly handle the non-bookification of paragraphs containing BR or
IMG tags.
- lib/rbmake/rbmake.h:
- Added RB_ENHANCE_ELLIPSES.
2001-01-23 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbpage.c:
- Fixed a potential buffer overflow in the writing of the hkey file.
2001-01-21 Wayne Davison <wayned@users.sourceforge.net>
- lib/mbuf.c:
- Fixed an infrequent infinite loop in MBuf_memcpy().
- lib/rbhtml.c:
- Added code to un-bookify an indented paragraph that turns out to be
a dictionary-entry paragraph.
2001-01-20 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Improved dictionary key parsing, allowing multiple words to be
generated for each entry, supporting adding extra words via
suffix-references to the previous whole word, supporting the parsing
of words in both BIG and SMALL tags, and turning newlines to spaces
inside a definition (to avoid rendering problems on the Rocket
eBook). Other minor improvements to the parsing, including turning
curly single quotes back into apostrophes, and generating a more
memory-efficient StringWithPosition object.
- lib/rbpage.c:
- Remove duplicates from the hkey file.
- Handle the new StringWithPosition object's memory-freeing style.
- lib/rbpage.h:
- Added the HKEY_* defines.
- Changed the StringWithPosition object to allocate the string as a
part of the object rather than a separate pointer to a string.
- Added several items to the RbPage object: hkeyPrevWord,
hkeyWordPos, hkeyScanMode (formerly sawPBigB), and hkeySufPos[].
- lib/rbhtml.h:
- Added definition for CONVERT_NL2SP.
2001-01-15 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Support the REB 1100's markup idiosyncracies/bugs.
- lib/marray.c:
- Added MArray_storeAt() and MArray_storePtrAt().
- lib/rbfile.c:
- Parse the new, XML-based annotation (.an) file.
- Don't use a fixed-length line buffer for reading the markup files.
- Added RbMarkup_fixMarkups().
- lib/rbmake/rbfile.h:
- Added RB_MARKUP_UNDERLINE2 and RB_MARKUP_NOTE2.
- Added prototypes for RbMarkup_fixMarkups(), MArray_storeAt(), and
MArray_storePtrAt().
2000-12-28 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Use the new RbMake_{get,set}BookParagraphDepth() accessors rather
than the RbMake_{get,set}UseBookParagraphs() ones.
- Repeating the -b option now increments the depth of where book
paragraphs occur.
- Enhanced the Use-Book-Paragraphs and Enhance-Punctuation options to
accept and output their new expanded option syntax.
- doc/index.html:
- Added a row of "buttons" at the top of the page.
- Added some missing <P> tags.
- Added a destination anchor for the install notes.
- Improved the rbmake doc-in-.rb-format anchor.
- doc/rbmake.pod:
- Improved -b, -e, Use-Book-Paragraphs, and Enhance-Punctuation.
- Some minor twiddles for -f, -x, Cover-Image, Follow-Links, and
Page-Joining.
- lib/rbhtml.c:
- Improved the paragraph-enhancing code, using the new depth option.
- Made the vcacheXmlError() function more efficient when no
vsnsprintf() function is available.
- Tweaked the arg names in the *XmlError() routines.
- lib/rbmake.c:
- Added RbMake_{get,set}BookParagraphDepth().
- Tweaked RbMake_{get,set}EnhancePunctuation() and
RbMake_{get,set}UseBookParagraphs().
- lib/rbmake.h:
- Made enhancePunctuation an int, added bookParagraphDepth int, and
removed the useBookParagraphs bool.
- lib/rbmake/rbmake.h:
- Added RB_ENHANCE_* defines and RbMake_{get,set}BookParagraphDepth().
- Tweaked RbMake_{get,set}EnhancePunctuation() and
RbMake_{get,set}UseBookParagraphs().
- samples/ws.opt:
- Added a commented-out paragraph-justification tweak.
- Remove the CENTER tags from the copyright page.
2000-11-13 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- We now require libxml2-2.2.8.
2000-11-13 Wayne Davison <wayned@users.sourceforge.net>
- doc/rbmake.pod:
- Fixed the HTML version of the feature list.
- rbmake.c:
- Quiet a bogus compiler warning.
2000-11-13 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-rberror.html:
- doc/lib-mem.html:
- Use the correct function names for the fatal-error routines.
- doc/lib-rbmake.html:
- Added a link to lib-rberror.html.
- doc/library.html:
- Mention the error routines.
2000-11-13 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Redirect verbose error messages from stderr to our string-caching
function, and then call RbError_warn() once with the entire result.
- lib/mbuf.c:
- Made MBuf_extend() work on an empty MBuf.
- lib/graburl.c:
- Got rid of libxml version check.
- lib/rbmake.h, lib/rburls2.c:
- Got rid of callXmlFree() kludge.
- configure.in:
2000-11-13 Wayne Davison <wayned@users.sourceforge.net>
- samples/dict.opt:
- An option file to convert a tab-delimited file into a dictionary.
2000-11-12 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 0.99d.
2000-11-12 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added the -P option to prompt for a username & password and output
it base-64 encoded.
- lib/rbutil.c, lib/rbmake/rbfile.h:
- Tweaked the name of the RB_BASE64_LENGTH() macro.
- doc/lib-graburl.html:
- Document the latest GrabUrl_setAuthInfo() syntax.
- doc/rbmake.pod:
- Added some feature highlights.
- Document the new -P option.
- Document the Auth-Info option-file option.
- doc/tools.html:
- Mention the enhanced -E option, the new Auth-Info option, and the
new -P option in "What's New?".
- Point at the new utility manpages instead of including usage
messages here.
- doc/lib-match.html:
- Renamed to be lib-wild.html.
- doc/lib-wild.html:
- Renamed from lib-match.html.
- doc/library.html:
- Changed link from lib-match.html to lib-wild.html.
- configure.in:
- Build the Makefile in the doc dir.
2000-11-12 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added an Auth-Info option-file setting.
- Changed askForAuthInfo() to pass a base64-encoded string to
GrabUrl_setAuthInfo().
- lib/graburl.c:
- Moved the base64-encoding function to rbutil.c.
- Spell Realm properly.
- GrabUrl_setAuthInfo() now taks a base64-encoded string of the
username:password info.
- Put the realm-array adding code into appendRealmInfo().
- lib/rbutil.c:
- Moved rbBase64Encode() here from rbutil.c.
- lib/rbmake/rbfile.h:
- Added a prototype for rbBase64Encode() and a define for
RB_BASE64_STRLEN.
- lib/rbmake/rbmake.h:
- Tweaked the prototype for GrabUrl_setAuthInfo().
- Makefile.in:
- The "clean" target now cleans the doc dir.
2000-11-12 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- When wildcard-matching URLs, un-URL-escape the URL beforehand.
- Un-URL-escape match strings that come from the user.
- Use the new Wild_* function names.
- lib/rburls.c:
- Fixed a signed-character buf in rbUrlEscape().
- lib/subst.c:
- Use the new Wild_* function names.
- lib/match.c, lib/wild.c:
- Renamed match.c to wild.c.
- lib/rbmake/rbfile.h:
- Updated the Wild_* function names.
- lib/Makefile.in, win32/lib-Makefile:
- Renamed match.[co] to wild.[co].
2000-11-12 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, rbinfo.c:
- Changed the -D option to be -d.
- Tweaked the usage message.
- rbmake.c:
- Changed the -d option to be -D.
- Tweaked the usage message.
- rbdump.c:
- Tweaked the usage message.
- doc/tools.html:
- Updated the various commandline options/usage messages.
- doc/rbdump.pod:
- Improved the SYNOPSIS section.
- doc/rbinfo.pod, doc/rbburst.pod:
- Changed the -D option to be -d.
- doc/rbmake.pod:
- Changed the -d option to be -D.
2000-11-11 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-subst.html:
- doc/rbmake.pod:
- Describe the substitution-rules syntax.
2000-11-11 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Fixed the spelling of Enhancement.
- Enhanced the -E/Image-Edge-Enhancement option to allow different
levels to be specified for different names.
- samples/ws.opt:
- Fixed the spelling of Enhancement.
- Added a level-9 Image-Enhancement for maps images.
- samples/tij2.opt, doc/rbmake.pod, doc/tools.html:
- Fixed the spelling of Enhancement.
2000-11-10 Wayne Davison <wayned@users.sourceforge.net>
- doc/.cvsignore, doc/Makefile.in, doc/rbburst.pod, doc/rbdump.pod,
doc/rbinfo.pod, doc/rbmake.pod:
- Makefile.in:
- Handle the doc dir now having a Makefile.
- rbmake.c:
- Fixed some glitches in the usage message.
- doc/tools.html:
- Added a "What's New?" item.
- lib/graburl.c:
- Prevent an endless loop if a web password changes while we're using
it.
- lib/marray.c:
- Three functions have a return type of int instead of void.
- lib/rbfetch.c:
- Handle the slight change in the use of GrabUrl_combineProxyAuth().
- lib/rbmake/rbfile.h:
- Updated the return type of 3 MArray functions.
- samples/ws.opt:
- Added a couple more comments.
- ChangeLog:
- Tweaked a couple sentences.
2000-11-06 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 0.99c.
2000-11-06 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- We now allow unjoining and markup extraction at the same time.
- lib/mbuf.c:
- Made MBuf_setReadPos() work properly if we set the position to EOF.
- lib/rbfile.c:
- Added RbFile_findWithPos(), which finds an unjoined fragment by
referencing the joined page name and an offset within the page.
- The markup code now properly transforms the markup information into
unjoined fragment pieces when the file is being unjoined.
- lib/marray.c:
- MArray_setFetchPos() now returns an int.
- lib/rbmake/rbfile.h:
- Added prototype for RbFile_findWithPos()
- Changed MArray_setFetchPos() to return an int.
2000-11-06 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-graburl.html:
- Updated the password interface.
- lib/graburl.c:
- Fixed a potential memory leak.
- Don't try to free a NULL pointer.
2000-11-05 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 0.99b.
2000-11-05 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Fixed a crash bug when an underline overlapped another markup.
- lib/rbfile.c:
- We now store the start-position of a note with a value one-greater
that what is in the markup file. This is because the ReB displays
notes after the indicated position, but it displays all other markup
before the indicated position. Making the position consistent
ensures that all markup gets sorted properly in the list of markup
items.
- Got rid of a bogus compiler warning.
- lib/graburl.c:
- Made the new realm code conditional based on libxml version.
2000-11-04 Wayne Davison <wayned@users.sourceforge.net>
- lib/graburl.c:
- We now keep a list of authorized paths and a list of authorized
realms. This allows us to do a better job of handling multiple
password realms per site. To handle this, several functions now
have different calling parameters and return values.
- The code now handles a proxy's request for authorization, and
combines the proxy-authorization header with the regular auth
header, as needed.
- lib/rbfetch.c:
- Use the latest http-authorization interface.
- lib/rbmake/rbmake.h:
- Replaced GrabUrlGetAuthInfoFunc typedef with the new
GrabUrlAskForAuthInfoFunc typedef.
- Revised the prototypes for GrabUrl_init(), GrabUrl_askForAuthInfo(),
and GrabUrl_setAuthInfo().
- Added a prototype for GrabUrl_combineProxyAuth().
- rbmake.c:
- Renamed getAuthInfo() askForAuthInfo().
- Function askForAuthInfo() now takes a relm pointer (in addition to
the URL) and returns the authorization header pointer or NULL.
2000-11-03 Wayne Davison <wayned@users.sourceforge.net>
- rbinfo.c, lib/graburl.c, lib/rbfetch.c:
- Cast the arg to Mem_free().
- lib/mem.c:
- Added Mem_free() function.
- lib/rbmake/rbfile.h:
- Turned Mem_free() into a function, not a define.
2000-11-03 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbfile.c:
- Improved the parsing of note markup files.
- Warn about corrupted markup files.
- Call MBuf_setUpcomingLength() in RbFile_readPage() if the user is
putting the page's data into an MBuf.
- Changed a variable name.
- lib/mbuf.c:
- Use Mem_calloc() in the new routine.
- Added MBuf_setUpcomingLength() to set the upcomingLen member.
- Use upcomingLen to make memory allocation more optimal.
- lib/mbuf.h:
- Added upcomingLen member variable.
- lib/rbmake/rbfile.h:
- Added prototype for MBuf_setUpcomingLength().
- lib/subst.c:
- Tweaked the setting of the allocated length in
Subst_applyChangeset().
- rbburst.c:
- Reflowed some wrapped lines.
- A couple minor syntax tweaks.
- Changed a variable name.
2000-10-28 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Mention the new RbmakeDocumentation.rb file.
- doc/tools.html:
- Tweaked a bit of indentation to be smaller.
- lib/rbhtml.c:
- Work around a ReB glitch in PRE-handling by removing all whitespace
prior to the close of a PRE section.
2000-10-28 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-graburl.html:
- doc/library.html:
- Reference the new lib-graburl.html page.
- doc/lib-rbfetch.html:
- Updated the callback function typedef names and improved things a
bit.
- doc/lib-rbfile.html:
- doc/lib-rbhtml.html, doc/lib-rbimage.html:
- Updated the callback function typedef names.
- doc/lib-rbmake.html:
- Updated the callback function typedef names.
- Added the missing accessor functions.
- Updated RbMake_{get,set}FollowLinks().
- doc/lib-rbpage.html:
- Changed the structure element references to accessor functions.
- Mention the missing accessor functions.
- doc/lib-utils.html:
- Mention the missing functions.
2000-10-28 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Updated where the PCRE RPMs are located.
2000-10-28 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbmake/rbfile.h:
- Upped the version to 0.99.
2000-10-28 Wayne Davison <wayned@users.sourceforge.net>
- doc/license.html:
- doc/index.html:
- Mention the new license.html info.
- lib/hashtable.c:
- Tweaked the copyright comment.
- doc/tools.html:
- Updated the rbmake usage message, the default options, and changed
the -f option to its new syntax in the examples.
2000-10-28 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, rbinfo.c:
- Output the usage message to stdout.
- rbdump.c:
- Output the warnings consistently to stdout.
- Output the usage message to stdout.
- rbmake.c:
- Prompt for the title/author info on stderr, and read from /dev/tty.
- Output the warnings consistently to stdout.
- Output the usage message to stdout.
- doc/index.html:
- Added an author META tag.
2000-10-27 Wayne Davison <wayned@users.sourceforge.net>
- lib/rberror.c:
- Switched the error functions over to RbError_exit() and
RbError_warn(). Added RbError_init() to set things up.
- rbmake.c:
- Use RbError_exit() and RbError_warn().
- Define my own error and warning functions and set them via
RbError_init().
- rbburst.c, rbdump.c, rbinfo.c, lib/hashtable.c, lib/rbinfohash2.c,
lib/mem.c, lib/rbfile.c, lib/rbpage.c:
- Use RbError_exit() and RbError_warn().
- lib/graburl.c, lib/rbimage.c:
- Made the name of the callback-function typedef more unique.
- lib/rbfetch.c:
- Made the name of the callback-function typedef more unique.
- Use RbError_exit() and RbError_init().
- lib/rbmake.c, lib/rbmake.h, lib/rbmake/rbmake.h:
- Made the name of the callback-function typedefs more unique.
- lib/mbuf.c:
- lib/rbmake/rbfile.h:
- Include stdarg.h.
- Added the RbErrorFunc function typedef.
- Added a prototype for MBuf_extend().
- Changed the error functions.
2000-10-27 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Made -f take an arg that specifies the allowed page depth.
- Added -N# to specify the maximum number of pages to fetch.
- Added an extra arg to the scheduleURL() callback function.
- Call RbMake_create() with a maximum ToC size argument.
- Call RbFetch_getURL() with the RbPage arg we now get passed.
- Summarize the number of dropped pages/images if there were too many
to fit in the max ToC size.
- The todo/done counts are now RbMake_* calls, not RbFetch_*.
- lib/rbfetch.c:
- Made RbFetch_getURL() take a page pointer to the current page that
we now pass to RbPage_new().
- If RbPage_new() returns null, don't crash.
- If RbMake_addPageName() returns false in a loop, break out.
- Moved the todo/done count functions over to rbmake.c.
- lib/rbhtml.c:
- Call shouldAllowURL() with the RbPage pointer.
- Don't try to follow a link if it is too deep.
- lib/rbmake.c:
- Keep a hash and a count of dropped URLs.
- RbMake_create() now takes a maxTocCnt int.
- Call scheduleURL() and RbPage_new() with the current RbPage.
- In RbMake_addPageName(), notice if this item would overflow the
maxTocCnt and refuse to add it (also count those that do).
- Added RbMake_getPageCount(), RbMake_getBinaryCount(),
RbMake_getDoneCount(), RbMake_getHtmlDropCount(), and
RbMake_getBinaryDropCount().
- RbMake_{get,set}FollowLinks() now takes/returns an int.
- lib/rbmake.h:
- Added the dropUrlHash, htmlDropCnt, and binaryDropCnt.
- Made followLinks an int.
- Made includeImages and includeAudio a char.
- lib/rbpage.c:
- RbPage_new() now takes an old RbPage pointer and sets the current
depth based on it.
- lib/rbpage.h:
- Added the "depth" member variable.
- lib/rbmake/rbmake.h:
- The ScheduleFunc typedef now takes an RbPage pointer.
- RbMake_create() now takes a maxTocCnt int.
- Added prototypes for RbMake_getPageCount(), RbMake_getBinaryCount(),
RbMake_getDoneCount(), RbMake_getHtmlDropCount(), and
RbMake_getBinaryDropCount().
- RbMake_{get,set}FollowLinks() now takes/returns an int.
- RbPage_new() now takes an old RbPage pointer, as does
RbFetch_getURL().
- Got rid of RbFetch_getDoneCount() and RbFetch_getTodoCount().
- samples/foxnews.opt, samples/tij2.opt, samples/yahoo.opt:
- Added a comment to the end of the Follow-Links setting.
2000-10-27 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c, lib/rbfetch.c,
lib/rbhtml.c, lib/rbimage.c, lib/rbinfohash.c, lib/rbpage.c:
- Use the new define names.
- doc/lib-rbfile.html:
- Talk about the new accessor functions.
- Updated the define names.
- doc/lib-rbmake.html, doc/lib-rbpage.html, doc/lib-utils.html:
- Updated the define names.
- lib/rbfile.c:
- Use the new define names.
- Added some extra accessors for RbFile.
- lib/rbmake.c, lib/rbutil.c:
- Use the new define names.
- Spell FileName consistently in our functions.
- lib/rbmake/rbfile.h:
- Made the names of the defines clearer and more consistent.
- Added some RbFile-accessor prototypes.
- Moved STATICLEN() and PTRSIZE to lib/mbuf.h
- Spell FileName consistently in our functions.
- Made some defines conditional, so the user can eliminate them (if
they conflict with something).
- lib/rbmake/rbmake.h:
- Made the names of the defines clearer and more consistent.
- Spell FileName consistently in our functions.
- lib/mbuf.h:
- Put the STATICLEN() and PTRSIZE defines here.
- lib/graburl.c:
- Need to include mbuf.h now.
- lib/Makefile.in, win32/lib-Makefile:
- Updated the dependencies.
2000-10-27 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Made putTagAttrValue() strip trailing spaces if urlEscape is set.
- Strip trailing spaces from HREF tags and href CONTENT of a
rocket-item META tag.
- Strip newlines from URLs we get out of an HTML file.
- lib/rburls.c:
- Make rbUrlUnescape() null-terminate its work.
- Moved the DOS_FILENAME backslash translation into rbUrlEscape().
- Have rbUrlEscape() leave more characters alone.
2000-10-26 Wayne Davison <wayned@users.sourceforge.net>
- win32/lib-Makefile:
- Removed the rules to create and clean the rbmake symlink.
2000-10-26 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake.h:
- We now need to include libxml/xmlmemory.h all the time.
2000-10-26 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake/rbfile.h, lib/rbmake/rbmake.h:
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c, lib/marray.c, lib/mbuf.c,
lib/rbfile.c, lib/rbinfohash.c, lib/rbmake.c, lib/rbpage.c:
- Changes to use the new library interface.
- lib/gifimage.c, lib/graburl.c, lib/hashtable.c, lib/imgutils.c,
lib/jpgimage.c, lib/match.c, lib/mem.c, lib/pngimage.c,
lib/rberror.c, lib/rbfetch.c, lib/rbhtml.c, lib/rbimage.c,
lib/rbinfohash2.c, lib/rburls.c, lib/rbutil.c, lib/subst.c:
- Use the new, simplified include files.
- lib/hashtable.h, lib/mbuf.h, lib/rbfile.h:
- Moved the external info into lib/rbmake/rbfile.h.
- lib/rbhtml.h, lib/rbimage.h, lib/rbmake.h, lib/rbpage.h:
- Moved the external info into lib/rbmake/rbmake.h.
- lib/rburls2.c:
- Use the new, simplified include files.
- Always use the libxml URL parser.
- lib/str.c:
- Use the new, simplified include files.
- Always use our own case-ignoring string-comparison routines.
- lib/bool.h, lib/graburl.h, lib/marray.h, lib/match.h, lib/mem.h,
lib/rberror.h, lib/rbfetch.h, lib/rbinfohash.h, lib/rburls.h,
lib/rbutil.h, lib/str.h, lib/subst.h:
- Makefile.in, win32/Makefile:
- Updated the dependencies.
- lib/Makefile.in, win32/lib-Makefile:
- No need to create the rbmake symlink anymore.
- No need to weed out the tags.h file when installing.
- Updated the dependencies.
- doc/lib-rbmake.html:
- Updated to reflect the latest library interface.
2000-10-25 Wayne Davison <wayned@users.sourceforge.net>
- configure.in:
- rbmake.c:
- Modified getAuthInfo() to prompt on stderr, read from /dev/tty (if
it will open), and use getpass() (if available). It also nulls-out
the password in the buffer right after using it.
2000-10-25 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Put < and > into URLs using % escapes.
- samples/foxnews.opt:
- Improved the opening comment.
- Updated the Prompt-For-Information option to its new name.
- Got rid of the comment-stripping code (which is no longer needed).
- samples/tij2.opt, samples/yahoo.opt:
- Updated the Prompt-For-Information option to its new name.
2000-10-24 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Added a missing P tag after a BLOCKQUOTE.
- lib/graburl.c:
- Put a \r before the \n in our authorization header.
- samples/ws.opt:
2000-10-24 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c, lib/rbfile.h, lib/rbmake.c:
- Use RB_VERSION rather than VERSION.
- lib/imgutils.c:
- Provide empty functions when HAVE_LIBPNG isn't defined.
2000-10-23 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added getAuthInfo() callback, which is now setup by calling
GrabUrl_init().
- Added the -n commandline option and the Non-Interactive option-file
option. This avoids prompting for a username/password.
- Changed Prompt-For-Information to be Prompt-For-Book-Info.
- lib/graburl.c:
- Added GrabUrl_init() to setup the auth-prompting callback function.
- Added GrabUrl_getAuthInfo(), GrabUrl_askForAuthInfo(), and
GrabUrl_setAuthInfo().
- Use xmlNanoHTTPMethod() instead of xmlNanoHTTPOpen().
- The GrabUrl_read() function will now use the auth-prompting callback
function if we get an authorization error and the function is
non-NULL.
- lib/graburl.h:
- Added prototypes for GrabUrl_init(), GrabUrl_getAuthInfo(),
GrabUrl_askForAuthInfo(), and GrabUrl_setAuthInfo().
- lib/rbfetch.c:
- Use xmlNanoHTTPMethod() instead of xmlNanoHTTPOpen().
- If we get an authorization error, call GrabUrl_askForAuthInfo().
- Yet another revision to the positioning of the RbPage_drop() call.
This one is in the middle of the status updates, rather than before
or after.
- lib/rbhtml.c:
- Fixed the including of '&'s in URLs taken from libxml.
- Fixed URLs that contain spaces.
- lib/rbpage.c:
- Removed useless extra definition of "mb".
- doc/tools.html:
- Updated the rbmake usage info.
- lib/Makefile.in:
2000-10-22 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Fixed the marking of P-BIG-B sections when creating a hkey file.
- lib/rbpage.c:
- Seek the "keys" MArray to zero before reading it.
- Makefile.in:
- The "mydistclean" target now removes config.h.in.
2000-10-21 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Allow "none" to be specified for the -E option.
- Added Image-Edge-Enhancement to the option-file support.
- Fixed some potential crash bugs in the option-file parsing.
- samples/foxnews.opt, samples/tij2.opt, samples/ws.opt,
samples/yahoo.opt:
- Updated to the latest option-file syntax.
2000-10-21 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added comment support to outputStrOpt().
- Added the function outputListOpt() and used it in several places.
- Removed "-Mode" from the Text-Conversion and Page-Joining options
(though it is still accepted when reading options).
- The Page-Joining option now outputs 0 as "none" and 1 as "all".
- doc/tools.html:
- Updated the default option file output.
2000-10-21 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Updated the usage messages.
- doc/library.html:
- Updated the RbImage section.
2000-10-20 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, doc/index.html, lib/rbfile.h:
- Upped the version to 0.98.
2000-10-20 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Warn if we discard an arg.
- lib/rbmake.c:
- Use PT_MAYBE_HTML for a name without a suffix.
- lib/rbhtml.c:
- Don't call shouldAllowURL() for an HREF is followLinks isn't set.
- lib/rbfile.c:
- Needed to call unjoinPushFunc(mb,NULL,0) at the end of each unjoined
file.
- doc/lib-rbmake.html:
- Improved the discussion of RbMake_addPageName().
2000-10-20 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbfile.c:
- Complain and abort if we overflowed the ToC section.
- lib/gifimage.c:
- Fixed the bit_depth setting.
- lib/imgutils.c:
- Tweaked the maxval setting.
- lib/pngimage.c:
- Call png_get_IHDR() after png_read_update_info() so that we get the
updated bit_depth/color_type settings.
- lib/rbhtml.c:
- Turn CR or CR+LF into LF even in a PRE section.
2000-10-20 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Use rbPageTypeIsBinary() to know which pages to write binarily.
- lib/imgutils.c:
- Use srand() and rand() instead of srandom() and random().
- Fixed a bogus variable use in a little-used loop.
- lib/rbutil.c:
- Added rbPageTypeIsBinary().
- lib/rbutil.h:
- Added prototype for rbPageTypeIsBinary().
- lib/Makefile.in:
- win32/Makefile:
- Got rid of MAGICK_* variables.
- win32/lib-Makefile:
- Got rid of MAGICK_LIBS.
- Added the latest object files and required libraries.
- Updated the dependencies.
2000-10-20 Wayne Davison <wayned@users.sourceforge.net>
- lib/gifimage.c, lib/imgutils.c, lib/jpgimage.c, lib/pngimage.c:
- lib/rbimage.c:
- Got rid of the ImageMagick and Nconvert support.
- Added RbImage_init().
- Call the new user-supplied callback function (if supplied).
- Call the new image manipulation functions.
- lib/rbimage.h:
- Added the RbImage object, the ImageFunc callback typedef, and
prototypes for RbImage_init(), RbImage_toGray(), RbImage_toMono(),
RbImage_resize(), RbImage_enhanceGray(), & RbImage_rotate().
- rbmake.c:
- Added the -E option to set the edge-enhancement level.
- Call RbImage_init() with our "manipulateImage()" pointer.
- In manipulateImage(), we call RbImage_enhanceGray().
- lib/subst.c:
- Don't call free on a NULL string pointer.
- doc/lib-rbimage.html:
- Documented all the new image-manipulation functions.
- doc/tools.html:
- Mention the image enhancements.
- doc/index.html:
- Document the new libpng and libjpeg requirements instead of the (now
replaced) ImageMagick requirement.
- samples/ws.opt:
- We no longer substitute .gif images for .jpg.
- Makefile.in:
- Got rid of the MAGICK_* variables.
- lib/Makefile.in:
- Added the new image-manipulation object files.
- Updated the dependencies.
- acconfig.h:
- Got rid of USE_IMAGE_MAGICK.
- configure.in:
- We don't check for ImageMagick anymore, but we do check for libpng
and libjpeg.
- win32/config.h:
- Got rid of USE_IMAGE_MAGICK and USE_NCONVERT.
- Added HAVE_LIBJPEG and HAVE_LIBPNG.
2000-10-17 Wayne Davison <wayned@users.sourceforge.net>
- samples/ws.opt:
- Fix a couple misspelled nbsp entities.
- Improved the end-of-page handling to avoid empty space prior to the
page-break.
- doc/lib-rbmake.html, doc/lib-rbfetch.html, doc/lib-rbhtml.html:
- Miscellaneous improvements.
2000-10-17 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-mbuf.html:
- Improved several sections, and updated some outdated info.
- doc/library.html, doc/lib-rbfile.html:
- doc/tools.html, doc/rb_format.html:
- lib/mbuf.c:
- The MBuf_toBuffer() function returns the actual allocated length (if
requested), not one less.
- The MBuf_appendBuffer() function expects the allocated length to
include all bytes in the buffer.
- lib/subst.c:
- The Subst_applyChangeset() function expects the allocated length
parameter to include all bytes in the buffer (rather than not
counting the spot reserved for a terminating null-char).
2000-10-17 Wayne Davison <wayned@users.sourceforge.net>
- doc/authoring.html:
- Newly improved and expanded.
- doc/lib-rbfile.html:
- Refer to "pages" consistently.
- samples/ws.opt:
- The latest Webscription-parsing options.
2000-10-17 Wayne Davison <wayned@users.sourceforge.net>
- samples/tij2.opt:
- Improved to work better with the upcoming font-size code.
- Fixed a non-working rewriting rule.
- Got rid of some really funky weirdness.
- Improved the <P><IMG> to <BR><IMG> rewriting rule.
2000-10-17 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, rbdump.c, rbinfo.c:
- Added the -V (version) option.
- rbmake.c:
- Set the new "generator" variable in our rb_out object.
- Use the RbMake_getGenerator() function to output our version.
- lib/rbfile.h:
- Put the VERSION define here.
- lib/rbhtml.c:
- Use the RbMake_getGenerator() function instead of GENSTR.
- lib/rbmake.c:
- Added RbMake_getGenerator().
- lib/rbmake.h:
- Got rid of the GENSTR define.
- Added a "generator" member variable.
- Added a prototype for RbMake_getGenerator().
- lib/rbpage.c:
- Set the GENERATOR info item using RbMake_getGenerator().
2000-10-17 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Parse FONT tags to turn size changes into BIG and SMALL tags.
- Allow the GENRE to be specified via META tag.
- lib/rbpage.c:
- Use Mem_calloc() to allocate the RbPage object.
- Allocate a new fontSize MArray member variable.
- lib/rbpage.h:
- Added the fontSize MArray member variable.
- doc/authoring.html:
- Mention the BIG/SMALL tag generation.
2000-10-16 Wayne Davison <wayned@users.sourceforge.net>
- doc/authoring.html:
- doc/index.html:
- mention the new authoring.html page.
2000-10-16 Wayne Davison <wayned@users.sourceforge.net>
- win32/Makefile, win32/lib-Makefile:
- rbburst.c, rbmake.c, lib/rbmake.c, lib/rburls.c, lib/rburls2.c:
- Use new DOS_FILENAMES define as basis for DOS-filename mangling
code.
- lib/rbfile.c:
- If DEFAULT_LIB_DIR is defined, use that for the default path,
otherwise set something that might be a little better than before.
- Use new DOS_FILENAMES define as basis for DOS-filename mangling
code.
2000-10-16 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Updated the libxml2-2.2.5 release information.
- doc/tools.html:
- Improved the "What's New?" section.
- Corrected a thinko in the rbburst usage message.
- Ran the file through ispell, and changed a few things.
2000-10-15 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, lib/rbmake.h, doc/index.html:
- Upped the version to 0.97.
2000-10-15 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Updated the "What's New?" section.
- Makefile.in:
- Fixed a literal .o suffix.
- win32/Makefile:
- Updated the dependencies.
- win32/lib-Makefile:
- Moved rburls.$(o) and added rburls2.$(o).
- Updated the dependencies.
2000-10-15 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Added the -M option and enhance the usage message.
- rbinfo.c:
- Added the -m, -M, -D, and -r options so we can summarize markup.
- Delete the RbInfoHash after we're done with it.
- lib/rbfile.c:
- Don't complain about a libDir that points to a .rb file.
- The markup files should default to the URL name that is stored in
the .info file.
- doc/tools.html:
- Improved the rbmake-markup documentation, and mention -M.
- lib/Makefile.in:
- Updated the dependencies.
2000-10-15 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Added a few more items to the "What's New?" list.
- doc/index.html:
- Upgraded PCRE from suggested to required.
- rbburst.c:
- Fixed a couple thinkos in the usage messages.
2000-10-14 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Improved the rbburst -m section.
- rbburst.c:
- Have the -r option imply -m.
- lib/rbfile.c:
- Complain if: the rocket-ID doesn't look right, the libDir isn't a
dir, or if the combination of libDir and rocketID isn't a dir.
- lib/rbhtml.c:
- Put [Image] tags into the text if image-inclusion is off.
- Parse HTML files using a slightly larger chunk size.
- rbmake.c:
- Changed parseFileArg() to deal with URL-escaping issues.
- lib/graburl.c, lib/rbfetch.c:
- Free the memory we get from rbGetUrlFn().
- lib/rbmake.c:
- Make sure that the ToC names don't have strange characters in them.
- lib/rburls.c:
- Moved the libxml-using functions into lib/rburls2.c.
- Added rbUrlEscape() and rbUrlUnescape().
- Call rbUrlEscape() on the CWD value.
- lib/rburls2.c:
- Moved the libxml-using functions here from lib/rburls.c.
- lib/rburls.h:
- Added prototypes for rbUrlEscape() and rbUrlUnescape().
- Tweaked a comment.
- lib/rbutil.c:
- Moved the inclusion of rbfile.h here from lib/rbutil.h.
- lib/rbutil.h:
- Moved the inclusion of rbfile.h to lib/rbutil.c.
- Makefile.in:
- Updated the dependencies.
- lib/Makefile.in:
- Added rburls2.*.
- Updated the dependencies.
- lib/rbinfohash.h:
2000-10-14 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbfetch.c:
- Set the TF_HR_SIZE_0_OK flag on content that comes from a .rb file.
- lib/rbfile.h:
- Added the TF_HR_SIZE_0_OK flag.
- lib/rbhtml.c:
- If TF_HR_SIZE_0_OK is set, allow <HR SIZE=0>.
2000-10-14 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbfetch.c:
- Set the TF_DEMANGLE flag on pages that come from a .rb file that is
being burst into separate pages.
- lib/rbhtml.c:
- Only demangle joined names if the TF_DEMANGLE flag is set.
- lib/rbfile.c:
- Use Mem_calloc() to allocate the RbFile object.
- lib/rbmake.c:
- Use Mem_calloc() to allocate the RbMake object.
- lib/rbfile.h:
2000-10-14 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, lib/rbinfohash2.c, lib/rburls.c:
- Use the new vFatalError() function.
- lib/rbfetch.c, lib/rbfile.c:
- Use the new vFatalError() and vWarning() functions.
- rbmake.c:
- Fixed the -I option's reading of local files.
- Register our own fatal-error-callback function rather than defining
our own fatal-error routines.
- Use the new vFatalError() function.
- lib/rberror.c:
- Added registerFatalErrorFunc() and call it just before exiting.
- lib/rberror.h:
- Added prototype for registerFatalErrorFunc().
2000-10-14 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Added some "normal" rewriting rules that turn <HR SIZE=0> into <HR
NEW-PAGE> on extraction.
- lib/subst.c:
- Got rid of the optional compilation since rbburst requires PCRE now.
- acconfig.h, configure.in, win32/config.h:
- Got rid of USE_PCRE (since it's no longer optional).
- lib/rbhtml.c:
- Fixed a bug in the name-unmunging when unjoining a .rb file that has
a menumark.html page.
- lib/rberror.c:
- Added vFatalError() and vWarning().
- lib/rberror.h:
- Added prototypes for vFatalError() and vWarning().
2000-10-13 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Comment on the rbburst -m option's presence and setup.
- Updated the usage messages.
- doc/index.html:
- Improved the "What's New" intro text.
- rbburst.c:
- Improved the description of the -m option.
2000-10-13 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, lib/rbmake.h, doc/index.html:
- Upped the version to 0.96.
2000-10-13 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Put some of the code into separate functions.
- Made the new note-bursting code work as well as can be expected with
encrytped ebooks.
- Added DIV to significant tags in the markup-context-output
functions.
- lib/rbfile.c:
- Allow a 0-length libdir to specify "use the .rb file's dir".
- Handle a 0-length rocket-ID right.
- Improved the lib-dir code when running under MS Windows.
- Shifted a couple chunks of code.
2000-10-13 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Got rid of a bogus compiler warning.
- Bumped the offset of a note forward by 1.
2000-10-13 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Added option -m to extract the markup along with the book's data.
- Added the -D option to set the library dir for finding markup data.
- Added the -r option to set the rocket-ID for finding markup data.
- lib/rbfile.c:
- Added new markup-file functions: RbFile_getLibDir(),
RbFile_readMarkup(), RbFile_writeMarkup().
- lib/rbfile.h:
- Added the RbFileMarkup structure.
- Added "markupHead" (an RbFileMarkup struct pointer) to ToC.
- Added some markup counts to ToC and RbFile.
- Added prototypes for RbFile_getLibDir(), RbFile_readMarkup() and
RbFile_writeMarkup().
- lib/subst.c:
- Split some of the Subst_runRules() code out into separate functions
so that other code can apply their own "changeset"s. The new
functions are: Subst_initChangeset(), Subst_addChange(), and
Subst_applyChangeset().
- lib/subst.h:
- Added prototypes for Subst_initChangeset(), Subst_addChange(), and
Subst_applyChangeset().
- doc/lib-subst.html:
- Document the new change-set substitution routines.
- lib/mem.c, lib/mem.h:
2000-10-12 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Updated the libxml requirements and mentioned the Win32 release.
2000-10-12 Wayne Davison <wayned@users.sourceforge.net>
- rbinfo.c:
- The custom menu is the Go-To menu, not the Find menu.
2000-10-11 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, lib/rbmake.h:
- Upped the version to 0.95.
2000-10-11 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- The xml-error.h file got renamed to xmlerror.h.
- lib/rbimage.c:
- Added the missing resize code for NCONVERT.
- lib/rburls.c:
- Fixed a couple oversights in the MINGW32 code.
2000-10-11 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Make sure parseFileArg() always gets its mem from rbBuildURL().
- Don't treat a name that starts with a slash as a web-URL, even if -w
was specified.
- lib/rbimage.c:
- Made the ExceptionInfo structure static.
- Added USE_NCONVERT support since IMAGE_MAGICK is not working
properly in mingw-compiled Win32 binaries.
- lib/rbmake.c:
- The MINGW32 build now translate backslashes into slashes in
RbMake_mungeBookName().
- lib/rburls.c:
- Made rbBuildURL() and rbGetCwdURL() translate names like C:\ into
URLs like /mnt_C/. All backslashes get turned into slashes too
(MINGW32 build only).
- Made rbGetUrlFn() translate URL-style names back into DOS-style
names (MINGW32 build only).
- samples/ws.opt:
- Put "An" at the end of a title, just like "A" and "The".
- win32/Makefile, win32/README.txt, win32/config.h, win32/getopt.c,
win32/getopt.h, win32/lib-Makefile:
- Initial revision of some win32 files for building with mingw.
- lib/rbfile.c:
- Added a missing page-type name to PageTypeName[].
2000-10-11 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Changed the -z option to allow a SIZE=0 HR instead of forbid them.
- Call RbMake_{init,cleanup}() directly.
- Renamed Honor-Page-Breaks-In-Source to Allow-Old-Style-Page-Breaks.
- doc/tools.html, doc/lib-rbfetch.html, doc/lib-rbfile.html,
doc/lib-rbhtml.html, doc/lib-rbmake.html, doc/lib-rbpage.html,
doc/lib-utils.html:
- Document the latest interface.
- lib/rbfetch.c:
- Don't call other init/cleanup functions -- let others handle this.
- lib/rbhtml.c:
- Look for the new <HR NEW-PAGE> tag to indicate a page break.
- lib/rbmake.c:
- Call the RbHtml_{init,cleanup}() functions.
- Changed noZeroSizedHRs to allowHRSize0PageBreaks.
- lib/rbmake.h:
- Changed noZeroSizedHRs to allowHRSize0PageBreaks.
- samples/foxnews.opt, samples/ws.opt, samples/yahoo.opt:
- Changed Honor-Page-Breaks-In-Source into
Allow-Old-Style-Page-Breaks.
- samples/tij2.opt:
- Changed Honor-Page-Breaks-In-Source into
Allow-Old-Style-Page-Breaks.
- Use the new <HR NEW-PAGE> syntax to indicate a page break.
- lib/rbpage.c, lib/rbpage.h:
- lib/Makefile.in:
- Updated the dependencies.
2000-10-09 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbimage.c:
- Reorganized things to avoid having a separate set of non-functional
functions (since I often forgot to update them). The result is
slightly less readable, but more maintainable.
- Made RbImage_turnMBufIntoPngMBuf() take a pointer to the URL (just
in case future conversion code needs it).
- Improved the error-checking code.
- lib/rbimage.h:
- Updated the RbImage_turnMBufIntoPngMBuf() prototype.
- lib/rbpage.c:
- Call RbImage_turnMBufIntoPngMBuf() with a pointer to the URL.
- lib/rbutil.c:
- Improved rbGetFileSuffix(), added rbGetUrlSuffix(), and changed
rbUrlToPageType() to use rbGetUrlSuffix().
- lib/rbutil.h:
- Added a prototype for rbGetUrlSuffix().
2000-10-08 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbfile.c:
- Added a kludge for a crash bug in some WIN32 timezone code.
- lib/rburls.c:
- Moved the xmlmemory.h include to rburls.h.
- CWD now uses "file://PATH" rather than just "file:PATH".
- lib/rburls.h:
- Moved the xmlmemory.h include here.
- lib/rbfetch.c:
- No need to include xmlmemory.h directly anymore.
2000-10-08 Wayne Davison <wayned@users.sourceforge.net>
- samples/foxnews.opt:
- Made the comment-stripping a little stricter.
- lib/rbfetch.c:
- Don't try to read local image files with the image-processing code.
- lib/rbimage.c, lib/rbimage.h:
- Got rid of RbImage_turnFileIntoPngMBuf().
- Added RbImage_lastErrorMessage().
- lib/rbpage.c:
- Have RbPage_write() use RbImage_lastErrorMessage(), as appropriate.
- lib/rbpage.h:
- Made the string returned by RbPage_write() const.
2000-10-08 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbpage.c:
- Have RbPage_write() return an error when the image conversion fails.
- lib/Makefile.in:
- Fixed "make install" from a non-CVS package source.
- lib/mem.c, lib/mem.h, lib/rburls.c, lib/rburls.h:
2000-10-07 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Free the strings that come from rbBuildURL() using rbFreeURL().
- Improved the option-parsing code to allow any empty item to mean
"use the default".
- lib/graburl.c:
- Use the new rbGetUrlFn() function to get a local filename out of an
URL (and it returns NULL if it's not a local file).
- lib/mem.c:
- Added the callXmlFree() function for use by WIN32.
- lib/mem.h:
- For WIN32, redefine xmlFree() to be callXmlFree().
- lib/rbfetch.c:
- Use the new rbGetUrlFn() function to get a local filename out of an
URL (and it returns NULL if it's not a local file).
- Free the xml-allocated strings with xmlFree().
- lib/rbhtml.c, lib/rbmake.c:
- Free the strings that come from rbBuildURL() using rbFreeURL().
- lib/rburls.c:
- Added rbFreeURL() and rbGetUrlFn().
- Don't use the gnu extention to getcwd() -- use a heap buffer.
- lib/rburls.h:
- Added prototypes for rbFreeURL() and rbGetUrlFn().
- lib/Makefile.in:
- Updated the dependencies.
2000-10-07 Wayne Davison <wayned@users.sourceforge.net>
- lib/subst.c:
- Corrected the calling of pcre_exec().
- rbburst.c, rbdump.c, rbmake.c:
- Silence a bogus compiler warning.
2000-10-04 Wayne Davison <wayned@users.sourceforge.net>
- rbinfo.c:
- Use the new RbFile_getTypeName() function.
- rbmake.c:
- Use RbMake_getIncludeOptName(), RbMake_getTextConvOptName(),
RbMake_findIncludeOpt(), and RbMake_findTextConvOpt().
- lib/rbfile.c:
- Added RbFile_getTypeName().
- lib/rbfile.h:
- Added prototype for RbFile_getTypeName().
- Removed extern for PageTypeName[].
- lib/rbmake.c:
- Added RbMake_getTextConvOptName(), RbMake_findTextConvOpt(),
RbMake_getIncludeOptName(), and RbMake_findIncludeOpt().
- lib/rbmake.h:
- Added prototypes for RbMake_getTextConvOptName(),
RbMake_findTextConvOpt(), RbMake_getIncludeOptName(), and
RbMake_findIncludeOpt().
- Removed externs for TextConvOptNames[] and IncludeOptNames[].
2000-10-04 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Pass the 4 callback functions to the library as pointers.
- lib/rbfetch.c:
- We now accept a pointer to the fetchStatus() function, store it off,
and call the callback function using it.
- lib/rbfetch.h:
- Typedef the callback function pointer and have the init function
accept it.
- lib/rbfile.c:
- If ftruncate() doesn't exist, try using chsize() or fcntl(F_CHSIZE).
- lib/rbhtml.c:
- The shouldAllowURL() and scheduleURL() functions are now callback
pointers in the RbMake object.
- lib/rbhtml.h:
- lib/rbmake.c:
- The RbMake_new() function now takes 3 callback pointers and stores
them off in the RbMake object. We also call scheduleURL() now via
the stored callback pointer.
- lib/rbmake.h:
- Added typedefs and member objects for the new callback function
pointers.
- lib/rbpage.c:
- Call finishInfoPage() via the callback pointer.
- lib/rbpage.h:
- Got rid of the finishInfoPage() prototype and simplified the file to
not need to include rbmake.h.
- lib/hashtable.h:
- lib/match.c:
- Silence a bogus compiler warning.
- lib/subst.c:
- Got rid of a couple bogus compiler warnings.
- Makefile.in:
- Got rid of the unused AWK init.
- lib/Makefile.in:
- Updated the dependencies.
- configure.in:
- Look for ftruncate() and chsize().
2000-10-03 Wayne Davison <wayned@users.sourceforge.net>
- configure.in:
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c:
- Only include getopt.h if HAVE_GETOPT_H is defined.
2000-10-03 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Use the most proper push-to-MBuf calling syntax.
- lib/rbfetch.c:
- Moved the RbPage_drop() back before we call fetchStatus().
- Fixed the page-joining status report.
- lib/rbhtml.c:
- lib/rbpage.c:
- Fleshed out RbPage_delete().
- RbPage_write() now deletes all pages that have been written.
2000-10-03 Wayne Davison <wayned@users.sourceforge.net>
- lib/mbuf.c:
- Now MBuf_gets() can handle CR+LF or CR line-endings.
- rbburst.c, rbdump.c:
- rbinfo.c:
- Added the -a (all-info) option.
- When displaying strings, output them with unenhanced punctuation.
- Include getopt.h.
- rbmake.c:
- Enhanced loadOptions() to work with CR+LF and CR line-endings.
- When displaying strings, output them with unenhanced punctuation.
- Include getopt.h.
- doc/tools.html:
- lib/graburl.c, lib/rbfetch.c, lib/rbfile.c:
- Open the local file in binary mode.
- lib/rbinfohash.c:
- Added RbInfoHash_asciiFetch() and unenhancePunctuation().
- lib/rbinfohash.h:
- Added prototypes for RbInfoHash_asciiFetch() and
unenhancePunctuation().
- Made the RbInfoHash_fetch() "inline" function return a char *.
- samples/foxnews.opt:
- Get rid of the comment tags (since libxml seems to be having trouble
with them at the moment).
- Makefile.in:
- Added MAGIC_{CFLAGS,LIBS} and got rid of X_PRE_LIBS.
- configure.in:
- Use the Magick-config program to determine the image libraries.
- lib/Makefile.in:
- Got rid of unneeded config items.
2000-10-02 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Updated to mention the just-released libxml 2.2.4.
- samples/ws.opt:
- No need to name-mangle the Dec 1999 books anymore.
- Fix the weird scene breaks in 1632.
- Improved some of the comments.
- A couple superfluous regex tweaks.
2000-10-01 Wayne Davison <wayned@users.sourceforge.net>
- configure.in:
- Check for strcasecmp() and stricmp().
- rbdump.c, rbinfo.c, rbmake.c, lib/graburl.c, lib/rbfetch.c,
lib/rbhtml.c, lib/rbinfohash2.c, lib/rbmake.c, lib/rbpage.c,
lib/rburls.c, lib/rbutil.c:
- Use the new str*EQ() and str*NE() defines.
- lib/rbfile.c:
- Use the new str*EQ() and str*NE() defines.
- Pay attention to the TM_IN_SYS_TIME define.
- lib/mem.c:
- Pay attention to the HAVE_STRDUP define.
- Makefile.in:
- Updated the dependencies.
- lib/Makefile.in:
- Added str.*.
- Updated the dependencies.
2000-09-30 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Improved argExpandAndRewrite() to allow the rewrite rule to
eliminate the arg.
- Output the title and author for informational purposes.
- lib/mbuf.c, lib/mbuf.h:
- Turned MBuf_getReadPos() and MBuf_getLength() into "inline"
functions.
- lib/rbfetch.c:
- Delay calling RbPage_drop() until after we call fetchStatus().
- lib/rbhtml.c:
- Added missing CODE support to start/end-tag switch statements.
- lib/rbpage.c:
- If we drop the first page, abort.
- samples/ws.opt:
- A couple extra option-rewriting rules.
2000-09-30 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Output a warning if the user uses -u without PCRE available to do
the name unmunging.
- rbmake.c:
- Allow the user to specify some rewriting rules for options in the
option file.
- samples/ws.opt:
- Allow the user to give us an ISBN number with or without dashes.
- Simplified the rocket-menu meta tag substitution.
2000-09-30 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in:
- Added rules to build unjoin.subst, a file that rbburst.c now
includes.
- rbburst.c:
- Include unjoin.subst and use it to rewrite unjoined page fragments.
- lib/rbfetch.c:
- Don't lose the TF_MENUMARK_FILE flag when bursting pages out of a
.rb file.
- lib/rbfile.c:
- Turned pushToMBuf() into a public function named bufPushFunc().
- lib/rbfile.h:
- Added a prototype for bufPushFunc().
- lib/rbhtml.c:
- If we reject the image, don't add an empty <IMG> tag.
- Output the cover image in such a way that it doesn't disrupt the
unjoining of joined pages.
- lib/rbpage.c, lib/rbpage.h:
- Got rid of the unused bufcopyPushFunc().
- unjoin.subst.in:
- The rewriting rules for rbburst.c to unmangle names in unjoined page
fragments.
- .cvsignore:
2000-09-29 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- The meta-tag handling needed to convert UTF8 characters into
CP-1252-style HTML.
- When joining pages, munge the <META NAME="rocket-menu" ...> tag's
content value so that it will be valid if the page is reprocessed.
Also, unmunge it when unjoining pages.
- Improved the de-ampersanding of HTML strings destined for non-HTML
areas.
- rbdump.c:
- Improve the lower bound read check in outputHtmlContext().
- lib/rbmake.c:
- Allow "rb:" URLs to be handled by RbMake_addPageName() (an internal
scheme used when extracting pages from a .rb file).
- doc/index.html:
- Improved the install instructions some more.
2000-09-29 Wayne Davison <wayned@users.sourceforge.net>
- doc/tools.html:
- Mention the new META-tag processing more prominently.
- doc/index.html:
- Fixed a formatting glitch.
- Mention PCRE's web site.
2000-09-29 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, lib/rbmake.h:
- Upped the version to 0.94.
2000-09-29 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in:
- lib/Makefile.in:
- Added mem.* and updated dependencies.
- rbmake.c, lib/hashtable.c, lib/mbuf.c, lib/rbfetch.c, lib/rbfile.c,
lib/rbhtml.c, lib/rbmake.c, lib/rbpage.c, lib/rburls.c,
lib/rbutil.c, lib/subst.c:
- Use the new Mem_*() routines.
- lib/mem.c, lib/mem.h, doc/lib-mem.html:
2000-09-28 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- When copying the title out of the HTML text, be sure to expand all
the basic ampersand escapes.
- doc/lib-subst.html:
- doc/library.html:
- Provide links to both lib-match.html and lib-subst.html.
- doc/lib-rbmake.html:
- Bring the RbMake doc up-to-date.
2000-09-28 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Mention the book name in the "Finishing up" message.
- Don't attempt to call RbMake_addMenuItem() if the url is NULL.
- lib/rbhtml.c:
- I think the "PUBLISHER" info item should really be "PUB_NAME".
- Don't attempt to call RbMake_addMenuItem() if the url is NULL.
- There mustn't be a newline after the page-joining HR tag.
- lib/rbmake.c:
- Make sure all the items in the "go to" menu are unique.
- lib/subst.c:
- Improved the formatting of a couple error messages.
- Allow references to pieces of the current file name by using ()s in
the regex match and then using $/1 (etc.) to access these items.
2000-09-28 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Needed to add a hidx-note for the <HR SIZE=0> tags that we add when
joining pages and when adding a cover image.
- Get the start-of-file position right for the first joined page after
adding a cover image.
- lib/rbpage.c:
- Fixed a bug in the RbPage_makeRbRef() function and improved it a bit
more.
2000-09-28 Wayne Davison <wayned@users.sourceforge.net>
- rbdump.c:
- Fixed the context-dumping code to handle not having enough
after-context due to EOF.
- lib/Makefile.in:
- Updated the dependencies.
- rbmake.c:
- Changed the return of parseFileArg().
- Added parseMenuArg(), which in turn calls RbMake_addMenuItem().
- Use parseMenuArg() in the commandline/options-file parsing.
- doc/tools.html:
- Mention the "go to" menu demonstration in ws.opt.
- lib/rbhtml.c:
- The "rocket-menu" META tag now parses the url in the context of the
current page and then calls RbMake_addMenuItem().
- The HREF code calls the new function RbPage_makeRbRef() rather than
munging the url itself.
- lib/rbmake.c:
- Added RbMake_addMenuItem().
- lib/rbmake.h:
- Added a prototype for RbMake_addMenuItem().
- lib/rbpage.c:
- Note all the local-name references from the menuItems before calling
delUnusedHidxNames().
- Added RbPage_makeRbRef().
- lib/rbpage.h:
- Added a prototype for RbPage_makeRbRef().
2000-09-28 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Document the latest library requirements (e.g. pcre).
- doc/tools.html:
- Document the latest command usage and features.
- doc/lib-match.html:
- Document the latest \X escapes.
- doc/lib-mbuf.html:
- Document the MBuf_toBuffer() function.
- doc/lib-rbfetch.html:
- Updated the fetchStatus() description.
- doc/lib-rbfile.html:
- Mention the latest values of the page-type defines.
- doc/lib-rbhtml.html:
- Mention how the push routines are no longer called directly (in the
usual case) but instead are accessed by the new RbPage_*Content()
functions. Also mention that the RbMake class can now call the
scheduleURL() callback function.
- doc/lib-rbimage.html:
- Mention the new calling parameters and treatment of the MBuf
objects.
- doc/lib-rbinfohash.html:
- The calling syntax for RbInfoHash_mergeFromFile() changed and its
features were updated.
- doc/lib-rbmake.html:
- Mention that we can call the scheduleURL() callback function now.
- doc/lib-rbpage.html:
- Talk about the latest content-pushing functions, the more flexible
parsing support, and a brief mention of the text-substitution
feature.
- doc/lib-utils.html:
- Turned the PageType enum into a page-type int.
- rbburst.c, rbinfo.c:
- Use RBO_INCLUDE_IMAGES + RBO_INCLUDE_AUDIO instead of the old
RBO_INCLUDE_BINARIES option.
- rbmake.c:
- Added the -g option, which lets you specify items to put into the
"goto" menu.
- The "includeBinaries" option was split into "includeImages" and
"includeAudio".
- The -T option now takes a letter for which conversion mode you want
to use (instead of a number).
- Call RbMake_create() with the latest arg syntax.
- Improved the option-file dump code to make the names a little
clearer, and also to order the items in some more logical groupings.
Added the new option and one that was missing.
- The loadOptions() routine was ordered alphabetically.
- Fixed a potential crash bug in the new fatalError() function.
- lib/Makefile.in:
- Updated the dependencies.
- lib/rbfetch.c:
- Use the separated image/audio variables and defines.
- lib/rbfile.c:
- Use the separated image/audio defines.
- lib/rbfile.h:
- Added TF_MENUMARK_FILE.
- Separated RBO_INCLUDE_BINARIES into *_IMAGES and *_AUDIO.
- lib/rbhtml.c:
- META tags are now parsed in all pages (rather than just the first),
but the only page that contributes to the title/author information
is still just the first HTML page.
- We parse a "rocket-menu" META tag into an item for the "goto" menu.
- Don't try to enhance the HTML of the menumark.html file.
- Deal with the new, separate image and audio variables.
- Fixed a bug in the munging of HREFs from unjoined files (such as the
menumark file) into a joined file.
- Fixed the image-file code so that it gets properly checked by the
shouldAllowURL() call.
- lib/rbhtml.h:
- Moved the CH_* character defines into rbmake.h.
- lib/rbmake.c:
- Added text strings to make it easy to output certain option
settings.
- Added code to write out own own menumark file based on the command-
line, option-file settings, and/or META tags.
- Turned includeBinaries into includeImages and includeAudio.
- RbMake_create() no longer takes a maxTocCnt value, since there is
now no way to figure out the maximum number of ToC entries in
advance (without disallowing things like the META-tag menumark
functionality).
- lib/rbmake.h:
- Added TEXTCONV_OPT_CNT.
- Defined some INCLUDE_* values.
- Moved the CH_* character defines here from rbmake.h.
- Extern some option-name arrays.
- Added "menuItems" and "rootURL" to the RbMake member variables.
- Removed sawHtmlPage (since the setting of rootURL is now used for
this).
- Separated includeBinaries into includeImages and includeAudio, while
also making them a short (since they can contain 3 states now).
- Updated the RbMake_create() prototype.
- lib/rbpage.c:
- Set TF_MENUMARK_FILE in a menumark page's RbPage->tocFlags var.
- Remember the "url" of the first page in the rootURL var.
- RbPage_write() now caches the "me->rb" value in the "rb" variable
for some (potentially) more efficient pointer access.
- Tweaked the title-to-filename code a little.
- lib/subst.c:
- Optimized the code some more by (1) reducing the number of memory
allocations required to hold the change arrays, and (2) by
optimizing the case where the substituted text (in a global replace)
is unchanging in each iteration.
2000-09-26 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Moved some title-munging code into lib/rbmake.c.
- Call the new RbMake_mungeBookName() function to set the rbFile var.
- If the bookname starts with a '_', wait to output the "Creating ..."
message until we get the finishInfoPage() call. At that point we
grab the book's filename (with might have been munged into a name
based on the book's title) and then output the slightly-delayed
"Creating ..." message.
- lib/rbfile.c:
- Set the newFileName to NULL when we unlink it on error.
- lib/rbmake.c:
- Added RbMake_mungeBookName() to turn the string "_Put_Title_Here_"
into the actual book's title. The function also removes any known
suffixes that are present (which allows things like .info files to
be passed in for the book's name) and adds a .rb onto the end.
- lib/rbmake.h:
- Added prototype for RbMake_mungeBookName().
- lib/rbpage.c:
- Right before the finishInfoPage() call, check to see if the book's
name begins with a '_', and if so, see if a call to
RbMake_mungeBookName() results in a new name based on the book's
title and store it if it does.
2000-09-26 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added the -L option, which allows you to specify args to be used in
an option file. This means that any of the string-specifying
options in the option file (specified by -l) can now contain $
references (e.g. $1, ${2}, $3). Use "$$" to specify a single '$'.
- Changed fetchStatus() to differentiate between getting joined pages
and writing out files to the .rb file.
- Supply our own fatalError() and warning() functions so that we can
do our own thing (such as removing a partially-complete *.rb.new
file).
- lib/rbfetch.c:
- We now pass a joinedCnt of -1 to the fetchStatus() function when
we're reporting the status of a page that has been fetched but not
yet written out (since it is being joined).
- lib/rbhtml.c:
- Supply a HTTP-EQUIV="Content-Type" META header so that the HTML
files will be properly marked with their charset if they get
extracted from the book.
- lib/rbutil.c:
- Don't have rbIsHtmlSuf() return true for potential .html suffixes,
just have the ...ToPageType() functions handle this.
2000-09-26 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Dump (-d) the Cover-Image info in a better spot in the list.
- lib/mbuf.c:
- Fixed the truncation of multi-chunk MBuf objects when trailing
chunks are discarded.
- MBuf_appendMBuf() now properly sets the allocLen to include any
extra allocated memory from the last chunk appended.
- Changed MBuf_appendBuffer() to allow the user to specify how much
memory is allocated for the buffer being appended.
- lib/mbuf.h:
- Changed the prototype for MBuf_appendBuffer().
- lib/subst.c:
- Sped up string substitutions quite a bit by optimizing away some
useless char moving. For instance, a pervasive substitution in a
900K text was sped up by nearly a factor of 5 (from 7.78s to 1.59s).
2000-09-25 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Changed the -d (dump) output to comment on the available text-
conversion modes.
- lib/rbfetch.c, lib/rbpage.c:
- Handle the PT_RAW_TEXT page-type.
- lib/rbfile.h:
- lib/rbmake.c:
- Initialize textConversionMode properly.
- Handle the PT_RAW_TEXT page-type.
- lib/rbmake.h:
2000-09-25 Wayne Davison <wayned@users.sourceforge.net>
- lib/hashtable.c:
- lib/rbfetch.c, lib/rbhtml.c, lib/rbpage.c, lib/rbpage.h:
- Changed member variable "pageURL" to be just "url".
- lib/subst.c:
- Allow /.../ for the filename regex-match in addition to mX...X.
- Made m{...} work properly.
2000-09-25 Wayne Davison <wayned@users.sourceforge.net>
- lib/Makefile.in:
- Updated the dependencies.
- lib/match.c:
- Added support for characters \n, \r, \t, \e, \f, \a, \b, and for
some abbreviated class specifiers: \s, \S, \d, \D, \w, and \W.
- lib/subst.c:
- Added support for \a (audible bell) and \b (backspace).
- rbmake.c:
- Improved the output of the -d (dump) option a little more.
- Updated the fetchStatus() args to match the latest spec.
- lib/mbuf.c:
- Fixed a bug in MBuf_prependBuffer().
- lib/rbfetch.c:
- Moved a bunch of page-oriented logic into new functions in rbpage.c.
- Got rid of the BufStream class, and renamed ParseStream to
PageStream.
- We call fetchStatus() after we call RbPage_write() or RbPage_drop(),
so some of the parameters had to change.
- Reordered a few routines.
- lib/rbfetch.h:
- Changed the fetchStatus() prototype.
- lib/rbimage.c:
- Changed RbImage_turnFileIntoPngMBuf() so that it takes an MBuf
pointer that we want to use to hold the image blob.
- Changed RbImage_turnMBufIntoPngMBuf() so that it replaces the data
in the supplied MBuf pointer rather than destroying the MBuf and
creating a new one.
- lib/rbimage.h:
- The prototype for RbImage_turnFileIntoPngMBuf() changed.
- lib/rbpage.c:
- The RbPage_new() routine now always allocates a "content" MBuf.
- Added functions RbPage_changeType(), RbPage_appendContent(), and
RbPage_finishContent().
- The RbPage_write() function now returns an error string if we try to
write out a PT_MAYBE_HTML page and the page doesn't look like HTML.
- If the parsePage flag is still set when we get to RbPage_write(),
the code now handles this.
- lib/rbpage.h:
- Added prototypes for RbPage_changeType(), RbPage_appendContent(),
and RbPage_finishContent().
- Tweaked the prototype for RbPage_write().
2000-09-25 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Added support for CR+LF and CR line endings when converting text
files into HTML.
2000-09-25 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added -d to dump the currently-set options and args to stdout in a
format that can be read back in via the new -l (load) option.
- Added the -s option to specify one or more text-substitution files.
- Added the -x option to specify one or more exclusion-match rules.
- Fixed a glitch in the -R option.
- Makefile.in:
- Deal with the new (and optional) PCRE flags and libs.
- Updated the dependencies.
- acconfig.h:
- configure.in:
- rbdump.c:
- Added an MBuf_setReadPos() call, just to be paranoid.
- lib/Makefile.in:
- Added graburl.* and subst.*.
- Updated the dependencies.
- lib/mbuf.c:
- Make sure that MBuf_gets() fails gracefully on an empty MBuf.
- Changed MBuf_toBuffer() to take an optional alloc-len int-pointer.
This lets the user optionally ask to have the unused-but-allocated
memory left in place (when possible).
- lib/mbuf.h:
- Changed MBuf_toBuffer()'s prototype.
- lib/rbfetch.c:
- If the RbMake object has substRules, don't parse the HTML data as we
receive it. Instead, run the substitution rules on the entire
buffer after it is complete, and then parse the resulting data.
- lib/rbfile.c, lib/rbimage.c:
- Use MBuf_dataPtrAt() instead of MBuf_dataPtr() in one spot.
- lib/rbhtml.c:
- Call shouldAllowURL() on binary URLs now.
- lib/rbinfohash.c:
- Moved the RbInfoHash_mergeFromFile() function into lib/rbinfohash2.c
so that it can use libxml to fetch an URL, but users of just the
other routines still won't need to link with libxml.
- lib/rbinfohash.h:
- Changed RbInfoHash_mergeFromFile()'s prototype.
- lib/rbmake.c:
- Initialize the new substRules member variable to NULL.
- lib/rbmake.h:
- Added substRules array to the RbMake object.
- lib/rbpage.c:
- Set the new page->parsePage bool in RbPage_new().
- lib/rbpage.h:
- Added parsePage bool to the RbPage object.
- lib/graburl.c, lib/graburl.h:
- A new routine to read a file: or http: URL.
- lib/subst.c, lib/subst.h:
- Provide perl-like text-substitution with a simple URL-matching
config-file syntax.
2000-09-25 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c, lib/hashtable.c,
lib/marray.c, lib/match.c, lib/mbuf.c, lib/rberror.c, lib/rbfetch.c,
lib/rbfile.c, lib/rbhtml.c, lib/rbimage.c, lib/rbinfohash.c,
lib/rbmake.c, lib/rbpage.c, lib/rburls.c, lib/rbutil.c:
- Including config.h is never optional.
2000-09-23 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Updated the libxml2 src-rpm's link.
2000-09-23 Wayne Davison <wayned@users.sourceforge.net>
- lib/Makefile.in:
- Removed the hard-wired -g CFLAG.
- lib/rbfetch.c, lib/rbpage.c:
- Added support for the new PT_COVER_IMAGE type.
- lib/rbimage.c:
- Added optional support for resizing an image to fill the page.
- lib/rbimage.h:
- The functions now take a resizeIt arg.
- lib/rbmake.c:
- Reserve the ToC-name "cover.png" for use by the coverImage option.
- Schedule the acquisition of the cover image right away.
- lib/rbhtml.c:
- We now output the reserved ToC-name "cover.png" for a cover image.
- lib/rbfile.c:
- Synchronized the PageTypeName[] array to the latest values.
- lib/rbfile.h:
- Added PT_COVER_IMAGE and shuffled some of the odd-ball page types to
the end of the list.
- lib/rbhtml.h, lib/rbmake.h:
- Moved the scheduleURL() prototype from rbhtml.h to rbmake.h.
2000-09-22 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Updated the Install Notes section.
- configure.in:
- Update the config-h timestamp when creating config.h.
- rbinfo.c:
- Output the genre (if present).
- lib/rbfetch.c:
- README:
- Point people at doc/index.html for the package requirement details
for installation.
- INSTALL:
- This is now generic configure-based INSTALL instructions.
2000-09-22 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Made the sourceforge logo follow the recommended guideline.
2000-09-22 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, lib/rbmake.h:
- Upped the version number to 0.93.
2000-09-22 Wayne Davison <wayned@users.sourceforge.net>
- lib/Makefile.in:
- We don't install tags.h anymore.
- Have the "uninstall" target remove the rbmake include files.
- lib/rbhtml.c:
- The tags.h include file is not installed anymore.
2000-09-22 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake.c:
- An assumed "index.html" name now sets the page-type to
PT_MAYBE_HTML.
- Changed the include syntax.
- Makefile.in:
- Decided to change ROOTDIR to BUILDROOT.
- Updated the dependencies.
- lib/Makefile.in:
- Install the .h files into $(prefix)/include/rbmake.
- Create the rbmake symlink and clean it up.
- Decided to change ROOTDIR to BUILDROOT.
- Updated the dependencies.
- lib/.cvsignore:
- rbburst.c, rbdump.c, rbinfo.c, rbmake.c, lib/hashtable.c,
lib/hashtable.h, lib/marray.c, lib/marray.h, lib/match.c,
lib/match.h, lib/mbuf.c, lib/rberror.c, lib/rbfetch.c,
lib/rbfetch.h, lib/rbfile.c, lib/rbfile.h, lib/rbhtml.c,
lib/rbhtml.h, lib/rbimage.c, lib/rbimage.h, lib/rbinfohash.c,
lib/rbinfohash.h, lib/rbpage.c, lib/rbpage.h, lib/rburls.c,
lib/rbutil.c, lib/rbutil.h, lib/rbmake.h:
- Changed the include syntax.
2000-09-21 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in:
- Fixed the "uninstall" target.
- lib/rbfetch.c:
- Remove bogus call to RbPage_pageInit().
2000-09-21 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- fetchStatus() allows an error message w/o a page pointer.
- lib/rbfetch.c:
- Call the xmlNanoHTTP{Init,Cleanup}() functions.
- Use the new rbUrlToPageType() function to parse an URL.
- Handle the new HT_MAYBE_HTML page-type.
- lib/rbfile.c:
- Added the new names to PageTypeName[].
- Don't allow an empty .rb file to be created.
- lib/rbfile.h:
- Added PT_MAYBE_HTML and PT_IGNORE.
- lib/rbhtml.c:
- Use the new rbUrlToPageType() function to parse an URL.
- lib/rbmake.c:
- Use xmlParseURI() to parse an URL before we try to find its suffix.
- Handle the new PT_MAYBE_HTML type.
- lib/rbpage.c:
- The RbPage_new() code now handles PT_MAYBE_HTML.
- lib/rbutil.c:
- Added rbAddIgnoreSuffix() to let the user set file types that should
be ignored.
- Made rbSuffixToPageType() return PT_IGNORE if the filetype should be
ignored.
- Added rbUrlToPageType(), which works just like
rbFilenameToPageType() except that it ignores any query and/or
fragment URL suffixes.
- lib/rbutil.h:
- Added prototypes for rbUrlToPageType() and rbAddIgnoreSuf().
2000-09-20 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in:
- Made "make install" install everything by default.
- Added install support for ROOTDIR (for RPM building support).
- lib/Makefile.in:
- Fixed the install rule for the library.
- Added install support for ROOTDIR (for RPM building support).
- lib/rbmake.c:
- Fixed a recently-added bug when parsing an implied index file.
- lib/rbutil.c:
- Improved the the rbGetFileSuffix() function.
- Have rbIsHtmlSuf() return "true" for an implied index-file URL.
- lib/rbfile.c:
- Don't try to deflate encrypted content.
2000-09-19 Wayne Davison <wayned@users.sourceforge.net>
- rbinfo.c, lib/rbfile.c:
- Work better with encrypted books.
2000-09-19 Wayne Davison <wayned@users.sourceforge.net>
- Makefile.in:
- Added rules to keep all the config items up-to-date.
2000-09-19 Wayne Davison <wayned@users.sourceforge.net>
- .cvsignore:
- rbinfo.c:
- Makefile.in:
- doc/tools.html:
- rbburst.c:
- Moved a FILE variable's definition.
- rbmake.c, lib/rbfetch.c, lib/rbfetch.h, lib/rbhtml.c, lib/rbhtml.h,
lib/rbmake.c, lib/rbmake.h, lib/rbpage.c, lib/rbpage.h,
lib/rbutil.c, lib/rbutil.h:
- PageType is no longer an enum.
- lib/rbfile.c:
- PageType is no longer an enum.
- Added PageTypeName[].
- Added RbFile_uncompressedLength().
- lib/rbfile.h:
- PageType is no longer an enum.
- Added PageTypeName[] extern and PT_COUNT define.
- Added RbFile_uncompressedLength() prototype.
- Made all the prototypes match the "me" var name from the .c file.
2000-09-18 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbhtml.c:
- Added <EM> to the translated tags we know about.
- Fixed the hexadecimal conversion in the %-escape code.
- Makefile.in lib/Makefile.in:
- Added config.h to the dependencies.
2000-09-18 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html:
- Grouped all the documentation links into one area.
2000-09-18 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake.h:
- Upped the version to 0.92.
2000-09-18 Wayne Davison <wayned@users.sourceforge.net>
- configure.in, acconfig.h, aclocal.m4, Makefile.in,
lib/Makefile.in, install-sh:
- Implemented autoconf configuration.
- rbburst.c, rbdump.c, rbmake.c, lib/hashtable.c, lib/marray.c,
lib/match.c, lib/mbuf.c, lib/rberror.c, lib/rbfetch.c, lib/rbfile.c,
lib/rbhtml.c, lib/rbimage.c, lib/rbinfohash.c, lib/rbmake.c,
lib/rbpage.c, lib/rburls.c, lib/rbutil.c:
- Tweaked include directives to use config.h.
- INSTALL, doc/index.html:
- Updated install documentation.
- .cvsignore, lib/.cvsignore:
- Ignore autoconf-generated files.
- Makefile, lib/Makefile:
2000-09-17 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-rbfile.html, doc/lib-utils.html, doc/library.html,
doc/rb_format.html:
- Even more minor tweaking.
2000-09-16 Wayne Davison <wayned@users.sourceforge.net>
- doc/rb_format.html:
- Added the .rb-file-format documentation.
- doc/index.html, doc/library.html:
2000-09-16 Wayne Davison <wayned@users.sourceforge.net>
- doc/lib-marray.h:
- Added a new documentation page.
- doc/index.html:
- Tweaked the project page's URL.
- doc/lib-hashtable.html, doc/lib-mbuf.html, doc/lib-match.html:
- Corrected the names of several doc files.
- lib-rbfile.html, lib-rbhtml.html, lib-rbimage.html,
lib-rbinfohash.html, lib-rbpage.html:
- Fixed the links to the above renamed pages.
2000-09-16 Wayne Davison <wayned@users.sourceforge.net>
- doc/hashtable.html, doc/mbuf.html, doc/match.html:
- Added a few more HTML documents.
2000-09-16 Wayne Davison <wayned@users.sourceforge.net>
- doc/index.html, doc/library.html, doc/tools.html,
doc/lib-rbfetch.html, doc/lib-rbfile.html, doc/lib-rbhtml.html,
doc/lib-rbimage.html, doc/lib-rbinfohash.html, doc/lib-rbmake.html,
doc/lib-rbpage.html, doc/lib-utils.html:
- Added some documentation in HTML form.
2000-09-15 Wayne Davison <wayned@users.sourceforge.net>
- rbburst.c:
- Added the -i option to ignore binary items.
- RBO_INCLUDE_IMAGES is now RBO_INCLUDE_BINARIES.
- rbmake.c:
- Use new name for includeImages option: includeBinaries.
- The *_cachedOpenUrl() routine is now a part of the RbFetch
interface.
- Use all the latest RbFetch function names.
- No need to directly call rbHtmlInit() and rbHtmlCleanup() directly.
- Pass pt_UNKNOWN in to a few routines that now require a PageType
enum.
- Callback functions shouldAllowURL() and scheduleURL() now receive a
PageType enum.
- lib/Makefile:
- Updated the dependencies.
- lib/rbfetch.c:
- Tweaked the function names a bit.
- Don't allow multiple calls to RbFetch_init() and RbFetch_cleanup().
- Moved *_cachedOpenUrl() here from lib/rbfile.c.
- Call RbFetch_cachedOpenUrl() when the fetch loop is done.
- Made RbFetch_getURL() take a PageType enum.
- RBO_INCLUDE_IMAGES is now RBO_INCLUDE_BINARIES.
- Pass the PageType enum to RbMake_addPageName() and RbPage_new().
- The RbPage object changed pageType into just "type".
- The external function from lib/rbhtml.c have new names.
- lib/rbfetch.h:
- Tweaked the function names a bit.
- Made RbFetch_getURL() take a PageType enum.
- Moved the *_cachedOpenUrl() prototype here from lib/rbfile.h.
- lib/rbfile.c:
- Use the new toc->type value instead of checking file suffixes.
- The ToC_new() function now takes a PageType value and sets the type
in the structure (it also determines the type if you pass in
pt_UNKNOWN).
- Moved *_cachedOpenUrl() to lib/rbfetch.c.
- Made RbFile_writePage() and addToc() take a PageType enum.
- Don't allow RbFile_writePage() to be called on a read-only file.
- Made RbFile_readToc() use the ToC_new() function.
- lib/rbfile.h:
- Put the newly-expanded PageType enum here.
- Added a PageType enum to the ToC structure.
- Renamed RBO_INCLUDE_IMAGES to RBO_INCLUDE_BINARIES.
- Moved the RbFetch_cachedOpenUrl() prototype to lib/rbfetch.h.
- Made RbFile_writePage() and ToC_new() take a PageType enum.
- lib/rbhtml.c:
- Renamed the external functions.
- Don't allow RbHtml_cleanup() to get called multiple times.
- Use the new NameWithType return value for the RbMake_*PageName()
functions.
- Call shouldAllowURL(), scheduleURL(), and RbMake_addPageName() with
a PageType enum.
- Use new name for includeImages option: includeBinaries.
- Made several functions static.
- lib/rbhtml.h:
- Renamed the external functions.
- Made shouldAllowURL() and scheduleURL() take a PageType enum.
- lib/rbmake.c:
- Added stubs for RbMake_init() and RbMake_cleanup().
- Use new name for includeImages option: includeBinaries.
- Made RbMake_addPageName() take a PageType enum and to use this
instead of doing so much suffix-checking.
- RbMake_addPageName() & RbMake_findPagename() return NameWithType
ptr.
- lib/rbmake.h:
- Added the NameWithType typedef.
- Changed includeImages into includeBinaries.
- Added prototypes for RbMake_init() and RbMake_cleanup().
- Made RbMake_addPageName() take a PageType enum.
- RbMake_addPageName() & RbMake_findPagename() return NameWithType
ptr.
- lib/rbpage.c:
- Tweaked the opening comment.
- Made RbPage_new() take a PageType enum and use it instead of so much
suffix-checking.
- Pass the PageType value to RbFile_writePage().
- lib/rbpage.h:
- Moved the PageType enum to lib/rbfile.h.
- Renamed pageType to just "type".
- Made RbPage_new() take a PageType enum.
- lib/rbutil.c:
- Added rbIsHkeySuf(), rbSuffixToPageType(), and
rbFilenameToPageType().
- lib/rbutil.h:
- Added rbIsHkeySuf(), rbSuffixToPageType(), and
rbFilenameToPageType().
2000-09-14 Wayne Davison <wayned@users.sourceforge.net>
- LICENSE, lib/rbmake.h:
- Upped the version to 0.91.
2000-09-14 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Fixed a typo in the usage message.
- lib/rbhtml.c:
- Made UTF8ToMBuf() optionally url-escape characters.
- Added private-function urlEscapeChar().
- Added "bool urlEscape" to putTagAttrValue()'s args.
- The values of the NAME, ID, and HREF tag-attrs are now url-escaped.
- lib/rbimage.c:
- Got rid of a couple bogus warnings when no image support is
included.
2000-09-13 Wayne Davison <wayned@users.sourceforge.net>
- lib/rberror.h, lib/rberror.c, lib/rbimage.c, lib/hashtable.c,
lib/rbfile.c, lib/rbhtml.c, lib/rbinfohash.c, rbburst.c, rbdump.c,
rbmake.c:
- The new error/warning functions make it easy for the user to catch
these messages now.
- lib/Makefile:
- Added rberror.* and updated the dependencies.
- Makefile:
- Updated the dependencies.
2000-09-13 Wayne Davison <wayned@users.sourceforge.net>
- rbmake.c:
- Added the -u (unjoin) option.
- Moved the .rb-file fetching code into lib/rbfetch.c.
- Moved the cached-rb-open code into lib/rbfile.c.
- Moved the cwd-related code into rburls.c.
- Use the new rbBuildURL() function.
- Call the new rbHtmlCleanup() function.
- rbdump.c:
- Use the new RbFile_open() flag-arg syntax.
- rbburst.c:
- Added the -u (unjoin) option.
- Use the new RbFile_open() flag-arg syntax.
- lib/mbuf.c:
- Make sure the read pos doesn't go invalid when truncating an MBuf.
- Fixed a comment.
- lib/rbfetch.c, lib/rbfetch.h:
- Added rbFetchPrepareForRbContents(), rbFetchRbContents(), and
rbFetchRbPage().
- lib/rbfile.c:
- Changed the RbFile_open() args to take an openFlag.
- Added unjoin-support code to RbFile_open() and RbFile_readPage().
- Added RbFile_cachedOpenUrl() to keep one rb file open for reading.
- Added unjoinPushFunc().
- Added ToC_new().
- Init the new "ord" member of ToC.
- And the toc->flags we write with 0xFF.
- lib/rbfile.h:
- Renamed TF_INFOFILE to TF_INFOPAGE and added TF_UNJOINED_FRAGMENT.
- Defined JOIN_NAME_SEP as ',' (instead of the old hard-wired '-').
- Added "ord" to ToC and "joinOrd" to RbFile.
- The new tocUnjoin pointer in RbFile is used when we split pages into
virtual toc entries.
- Defined the new RBO_* open flags.
- RbFile_open() has a new flag arg (rather than bool).
- Added prototypes for RbFile_cachedOpenUrl() and ToC_new().
- lib/rbhtml.c:
- Optimized some malloced buffers so that they get reused.
- Added rbHtmlCleanup().
- More space-compression optimizations.
- Output the breaks between joined HTML pages in a consistent manner.
- Fixed the munging of UTF8 hrefs into internal page names.
- When unjoining a file, demangle joined HREF and NAME fields.
- Fixed a crash when a non-compliant URL was parsed by libxml.
- Use the new JOIN_NAME_SEP define.
- Improved the mapping of defines-list elements.
- Don't crash if a tag at the start of a page is flagged RB_TRIM_WS.
- Don't drop the </HTML> tag.
- Moved the url-related functions into rburls.c.
- Get the default character encoding out of the page-object.
- lib/rbhtml.h:
- Moved the url-related functions into rburls.c.
- Added a prototype for rbHtmlCleanup().
- lib/rbmake.c:
- Close any cached-open .rb file in RbMake_finish().
- When joining files, the munging of file/href names now translates
any join-filename separators in the filename into '_'.
- lib/rbpage.c:
- Set the charEncoding value in RbPage_new().
- lib/rbpage.h:
- Added charEncoding to RbPage.
- lib/rbmake.h, lib/rbutil.h:
- Moved STATICLEN() from rbmake.h to rbutil.h.
- lib/rburls.c, lib/rburls.h:
- Moved the url-related functions here from lib/rbhtml.*.
- lib/Makefile:
- Added rburls.* and updated the dependencies.
- Makefile:
2000-09-12 Wayne Davison <wayned@users.sourceforge.net>
- lib/Makefile, lib/tags.h, lib/build-tags.awk, lib/.cvsignore:
- We now auto-generate tags.h to keep it in sync with rbhtml.c.
- lib/rbhtml.c, lib/rbhtml.h:
- Added rbBuildUrl() to give the user a consistent library call to use
for URL manipulation. Also added rbGetCwdUrl(), and rbStripCwd().
Use the new TAG_* values from tags.h. Got rid of SPANs. Don't note
LI tags in the .hidx file. Improved the handling of ALIGN and ID
attributes. Don't translate non-included URLs into about:blank.
- lib/rbmake.c:
- Enhanced RbMake_addPageName() a bit.
- lib/rbpage.c, lib/rbpage.h:
- Changed the tag string in the TagTree object into a numeric value.
2000-09-11 Wayne Davison <wayned@users.sourceforge.net>
- lib/match.c, lib/match.h, rbmake.c, lib/Makefile:
- Added a wildcard-matching function for use by the -m & -M options.
- lib/rbpage.c:
- When joining pages, don't wait to write the info file until all the
pages have been fetched (since the finishInfoPage() callback may
prompt the user for information, we call it as soon as possible).
- lib/mbuf.c, lib/mbuf.h:
2000-09-11 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbfetch.c, lib/rbpage.c, lib/rbmake.c, lib/rbmake.h,
lib/rbhtml.c, rbhtml.h:
- Handle .txt files as specially-parsed html now. Made
shouldAllowURL() pass the page ptr rather than just the rb ptr.
- rbmake.c:
2000-09-09 Wayne Davison <wayned@users.sourceforge.net>
- rbdump.c:
- We now dump the .hidx file that is associated with a .txt file.
- rbmake.c:
- Added the -p (prompt for title & author) option (moving -p to -e).
- lib/rbpage.c, lib/rbpage.h:
- Changed the info-page code to call the new finishInfoPage()
callback. Generate and update a VERSION number in the info page.
- lib/rbhtml.c, lib/rbhtml.h:
- Added some defines for the enhanced punctuation used in the code.
- lib/rbhtml.c:
- Enhanced the whitespace compression algorithm a bit.
2000-09-09 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake.h:
- Tweaked the version string to 0.90 for the initial public release.
2000-09-09 Wayne Davison <wayned@users.sourceforge.net>
- lib/rbmake.c:
- Ignore the "?query" part of an URL when checking the suffix.
- lib/rbhtml.c, lib/rbhtml.h, lib/rbpage.c, lib/rbpage.h:
- Fixed some potential glitches in the .hidx name & paragraph offsets
when transforming the paragraphs into book style.
- lib/marray.h:
Return to the home page.