[l2h] l2h and win32

Martin Wolf Martin Wolf" <martin@familiewolf.de
Mon, 5 Mar 2001 19:30:43 +0100


Hallo there!

Just doing a new installation of the actual l2h 2kbeta1 on an Win98 system,
I discoverd some problems:

1) Ghostscript 6.0 is not correctly recogniced by config.pl. Is it possible
to add the solution I provided here at 28.09.2000 to the code or does this
not work for Unix?

2) I found that the \cleardoublepage is not on the lists for ignore_cmds.
Perhaps a good idea for the future.

3) As I mentioned on 18.12.00, the $ADDRESS-variable in latex2html.bat is
set _after_ the local config file is read. So all local setting is discard.
Setting the $ADDRESS _before_ reading the file would be a great solution.
(or checking whether local config sets the variable)

4) On win32 system it is not possible to create a .latex2html-init file.
(or: I can't rename a file to that name.) Perhaps the dot could be
standardly removed for win32 systems.

5) If I use LaTeX \input{myfile} statement I always got an unknown command:
myfile. I'm not an perl crack, but I discoverd that this is beause of the
reported filename of texexpand: <tex2html_file>#.\myfile.tex#. Can that
problem be solved by using an \ replacement? It's ugly, because my filenames
start with c_, so I got extra images on exery page produced by an accented
character (\c!)

6) As I am processing multi-language documents using the \foreignlanguage
command, I tried to add an implamentation to babel.perl:
sub do_cmd_foreignlanguage {
    local($_) = @_;
    local($lang, $text,$after,$done);
    $lang = &missing_braces unless(
     (s/$next_pair_pr_rx/$lang=$2;''/eo)
     ||(s/$next_pair_rx/$lang=$2;''/eo));

    $text = &missing_braces unless(
     (s/$next_pair_pr_rx/$text=$2;''/eo)
     ||(s/$next_pair_rx/$text=$2;''/eo));

    local($trans) = "${lang}_translation";
    if (defined &$trans) {
       push(@language_stack, $default_language);
     $default_language = $lang;
           $after = $_;
           $done = &convert_iso_latin_chars($text) if ($text);
     local($lcode) = $iso_languages{$lang};
     &add_to_body('LANG',$lcode) unless ($HTML_VERSION < 4);
     $default_language = pop @language_stack;
    } else { &no_lang_support($lang) }
    join('',$done,$after);
}
But it works only half, because the characters are translated by the
process_command/convert_iso_latin_char subroutine before the language
switching is performed. Has anyone an idea, how to do the desired task?

Enough for today, happy working

Martin

  ##         ##     Martin Wolf
 ####   #    ##     München, Germany
##  ## ###  ##      <martin@familiewolf.de>
##   ### ####         http://www.familiewolf.de