Fred Drake [Mon, 17 May 1999 14:47:10 +0000 (14:47 +0000)]
\declaremodule: Make this more robust. Only attempt to add an index
entry based on the module type if the type is known.
Otherwise, spit out a warning the the module type
parameter was bad and generate a "plain" index entry.
Without this, the bad module type was emitted as
text.
Problem noticed by processing Michael Hudson's docs for
bytecodehacks.
Fred Drake [Thu, 13 May 1999 18:36:54 +0000 (18:36 +0000)]
make_index_entry(): Remove. Not only did this override the
l2hinit.perl version of the function (which
overrode a version in latex2html), but
do_cmd_index() was overridden. Since
do_cmd_index() was the only caller, we can trash
this.
define_indexing_macro(): New function used during setup to support
more dynamic dispatch for indexing.
process_index_macros(): New function; implement dynamic dispatching
of indexing support functions, allowing many
targets used in indexing to be shared by
multiple index entries. I.e., something like
\index{foo}\bifuncindex{bar} can now share a
single target anchor.
These indexing changes reduce the amount of clutter in the generated
HTML files. In the reference manual, this cuts the number of targets
by 44%. Targets are less affected when generated by environments
rather than macros.
Fred Drake [Fri, 7 May 1999 21:14:28 +0000 (21:14 +0000)]
ExtendedEsisBuilder.push(): Override inherited definition. We don't
want to push nodes into the document, but into a document
fragment, since we're not necesarily working with something
that's well-formed.
Fred Drake [Thu, 6 May 1999 19:37:38 +0000 (19:37 +0000)]
Make it work for "manual" documents as well as "howto" documents.
This still doesn't understand anything about multiple source files or
checking time dependencies.
1. Fixes float divmod so that the quotient it returns is always an integral
value.
2. Fixes float % and float divmod so that the remainder always gets the
right sign (the current code uses a "are the signs different?" test that
doesn't work half the time <wink> when the product of the divisor and the
remainder underflows to 0).
Nathan Paul Simons noticed that the grid_remove() method was missing.
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)
I'm still unsure, but couldn't stand the virtual event trickery so tried a
different sin (adding undo_block_start/stop methods to the Text instance in
EditorWindow.py). Like it or not, it's efficient and works <wink>. Better
idea?
Give the attached a whirl. Even if you hate the implementation, I think
you'll like the results. Think I caught all the "block edit" cmds,
including Format Paragraph, plus subtler ones involving smart indents and
backspacing.
[W]hile trying to dope out how redirection works, stumbled into two
possible glitches. In the first, it doesn't appear to make sense to try to
rename a command that's already been destroyed; in the second, the name
"previous" doesn't really bring to mind "ignore the previous value" <wink>.
Fred Drake [Mon, 3 May 1999 14:29:07 +0000 (14:29 +0000)]
Make sure latex2html doesn't produce a hard link between foo/foo.html
and foo/index.html. Make a copy instead. (Appearantly some tar
openers on non-Unixlike systems can't handle hard links.)
Fred Drake [Mon, 3 May 1999 14:27:45 +0000 (14:27 +0000)]
Make sure latex2html doesn't produce a hard link from $part/$part.html
and $part/index.html. Make a copy instead. (Appearantly some tar
openers on non-Unixlike systems can't handle hard links.)
Greg Ward [Sun, 2 May 1999 21:42:05 +0000 (21:42 +0000)]
The 'copy_file()' and 'copy_tree()' functions in util.py now have
meaningful return values: respectively, whether the copy was done, and
the list of files that were copied. This meant some trivial changes in
core.py as well: the Command methods that mirror 'copy_file()' and
'copy_tree()' have to pass on their return values.
Greg Ward [Sun, 2 May 1999 21:39:13 +0000 (21:39 +0000)]
Rearranged things so that compilation of .py files is the responsibility
of the 'install_py' command rather than 'build_py'. Obviously, this
meant that the 'build_py' and 'install_py' modules had to change; less
obviously, so did 'install' and 'build', since these higher-level
commands must make options available to control the lower-level
commands, and some compilation-related options had to migrate with the
code.
Fred Drake [Thu, 29 Apr 1999 19:06:56 +0000 (19:06 +0000)]
make_nav_panel(): Remove the spurious NAME="tex2html\d+" attributes
added to the anchors in the navigation bars. These
are added somewhere deep with l2h, and are stupid.
Fred Drake [Thu, 29 Apr 1999 15:42:19 +0000 (15:42 +0000)]
Generate index.html from index.html.in. This avoids having to modify the
index to update the version number; boilerplate.tex remains the only document
source for this information.
Fred Drake [Thu, 29 Apr 1999 13:41:17 +0000 (13:41 +0000)]
Don't point readers to rand, point to random! And make it a hyperlink
while you're at it.
Also, when discussing order of reading, make it clear that chapter 2
is assumed background material for the remainder of the manual.
That's needed for terminology if nothing else!
Fred Drake [Thu, 29 Apr 1999 13:20:25 +0000 (13:20 +0000)]
Explain comments at the start of chapter 3. This is needed since they
appear in the examples without any further explanation, and the
tutorial doesn't have this information explicit anywhere else.
Omission reported by Jon Black <jblack@Ridgeway-Sys.com>.
Fred Drake [Wed, 28 Apr 1999 17:38:31 +0000 (17:38 +0000)]
Added test case that includes a comma in the full name. This tests
for an old bug that's been gone a while, but was still documented
until a few minutes from now.
Fred Drake [Wed, 28 Apr 1999 17:11:21 +0000 (17:11 +0000)]
setup_column_alignments(): Adding valign=baseline to the <td> tag
makes the alignment work on Navigator as
well as IE. Uglier HTML, but it looks
right.
Fred Drake [Wed, 28 Apr 1999 13:54:30 +0000 (13:54 +0000)]
do_cmd_seetext(): Clean up so we get proper nesting of <div>s. This
fixes a rendering problem on IE5.
General adjustments to the table* environments, including using
<thead> and <tbody>. Attempt to adjust the vertical alignment of the
table cells so that the baseline of the first cell matches the
baseline of the remaining cells: When the first cell is small and the
second cell of the same row is multi-line, the first cell was
vertically centered by default. Specifying valign=baseline fixes the
problem on IE, but Netscape seems to ignore both valign=top and
valign=baseline (even though valign is NS's fault!). Make the
horizontal alignment of 'p' columns left instead of center (for the
headings).