[l2h] Indic-TeX/HTML

2006-02-18 Thread Bob Hueckstedt
Having successfully installed LaTeX2HTML on my office machine running 
XP, I have tried to do the exact same thing on my home machine, running 
Windows 2000 service pack 4. Unfortunately, there is a difference.


Here are the changes I've made with the help of Ross Moore for the XP 
installation:


in devnagri.perl line 116 I comment out the Unix command mv and 
uncomment the DOS command rename.


in devanagri.perl lines 178 and 216 read:

$RENAME ${PREFIX}images.pre ${PREFIX}images.dn\r\n;

and in latex2html.bat the while loop at lines 3769-3775 reads:

while (@cmds) {
$this_cmd = shift @cmds; last unless ($this_cmd);
$this_cmd =~ s/.pre /.tex$cnt / if(($cnt)($cnt  $num_cmds));
$cnt--; $this_cmd .= $cnt if ($cnt);
$preprocessor_cmds .= $this_cmd.\n;
L2hos-syswait($this_cmd);
}

In devnagri.perl I have also used that same line without the \r, and it 
works just fine in the XP installation. Also, for the .bat file's 
while loop I've also used the following (without the line break in the 
fourth line) without any problem:


while (@cmds) {
 $this_cmd = shift @cmds; last unless ($this_cmd);
 $num_cmds-- if (this_cmd =~ /rename/i );
 $this_cmd =~ s/.pre /.tex$cnt / if(($cnt)($cnt   $num_cmds));
 $cnt--;   $this_cmd .= $cnt if ($cnt);
 $preprocessor_cmds .= $this_cmd.\n;
 L2hos-syswait($this_cmd);
 }

The above in XP gives a preproc file that always reads:

rename images.pre images.dn
devnag images.dn images.tex

That allows for the production of the images, and all is well.

In 2000, however, with the exact same setup, the preproc file reads

rename images.pre images.dn1
devnag images.dn images.tex

Due to that 1 the preprocessor is unable to work on images.dn (it not 
existing), and therefore the .dn file cannot be transformed into the 
correct .tex and subsequently .html file.


Where does this 1 come from and how do I prevent it from appearing in 
the preproc file?


Gratefully,
Bob Hueckstedt

___
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html


[l2h] Indic-TeX/HTML

2005-12-08 Thread Bob Hueckstedt

Ross Moore,
Since my last email I have found that in the test subdirectory there is 
a file images.dn1.


??,
Bob Hueckstedt

___
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html


[l2h] Indic-TeX/HTML

2005-12-07 Thread Bob Hueckstedt

Dear Ross Moore and James Lynch,
Thank you both for the help.

Here is what I've done and the results.

First, I thought it would be easier to get the executables for the 
netpbm files I don't have and try that. (By the way, I knew I did not 
have these particular files because during the config run, I was told 
that those files were not found. When I looked for them in the netpbm 
directory, I found perl files, sans file extension names, instead of 
.exe files, which I think config specifically looks for.) I found and 
copied into the netpbm directory ppmquant.exe and pnmflip.exe. I still 
have no file anytopnm.exe.


I ran latex2html on my simple test file again, and the same result occurred.

So, I found the spot in latex2html.bat file that Ross Moore specified. 
It is there and checks out exactly as he wrote it in his email.


Yes, there is a file preproc in the test subdirectory. It has in it this 
line: rename images.pre images.dn; devnag  images.dn images.tex


(The background to getting this to work was that I had to change the 
relevant command in the devnagri.perl file from mv to rename.)


I ran both those commands from the command line, and both worked.

??,
RAH

___
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Indic-TeX/HTML

2005-12-07 Thread Ross Moore

Hi Bob,

On 08/12/2005, at 2:25 AM, Bob Hueckstedt wrote:

So, I found the spot in latex2html.bat file that Ross Moore  
specified. It is there and checks out exactly as he wrote it in his  
email.


Yes, there is a file preproc in the test subdirectory. It has in it  
this line: rename images.pre images.dn; devnag  images.dn images.tex


(The background to getting this to work was that I had to change  
the relevant command in the devnagri.perl file from mv to rename.)


OK. This looks like I never adapted  devnagri.perl  to be OS  
independent.

viz.

rossmoor% grep -n RENAME devnagri.perl
115:$RENAME = 'mv'; # Unix
116:#$RENAME = 'rename'; # DOS
178:$RENAME ${PREFIX}images.pre ${PREFIX}images.dn; ;
216:$RENAME ${PREFIX}images.pre ${PREFIX}images.dn; ;

line 115 is adapted for Unix, whereas the DOS version is commented-out.

But simply using the appropriate command may not be enough.



I ran both those commands from the command line, and both worked.


You say that these commands each work separately:
  rename images.pre images.dn
  devnag images.dn images.tex

But do they work under XP/DOS as a single compound command ?
  rename images.pre images.dn ; devnag images.dn images.tex

If not, then the file  preproc  needs to be constructed by
putting them on separate lines.
That is, under DOS the ';' towards the end of lines 178 and 216
needs to become a line-end combination  \r\n .
viz.,
   $RENAME ${PREFIX}images.pre ${PREFIX}images.dn\r\n;

Would you edit  devnagri.perl  to test this please.


Hope this helps,

Ross


??,
RAH

___
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html



Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  2109fax: +61 +2 9850 8114



___
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html


[l2h] Indic-TeX/HTML

2005-12-06 Thread Bob Hueckstedt
I have successfully installed LaTeX2HTML on a PC running XP and running 
TeX via MikTeX. I was even able to get the manual to come out correct in 
html.


The purpose for doing this was to experiment with converting Sanskrit 
and Hindi texts to html. I use a very simple file for testing this. It is:


test.dn
\documentclass[11pt]{article}
\usepackage[hindi]{devnagri}
\begin{document}

{\dn namo nama.h|}
\end{document}
end test.dn

This file goes through the preprocessor routine and latex-s just fine.

Whether I run latex2html on the dn or the tex file, I get the same 
response. Here is the relevant portion of the log:


quote
Writing image.pre file . . .
The syntax of the command is incorrect.

This is TeX, Version 3.141592 (MikTeX 2.4)
! I can't find file `.\images.tex'.
(*) ./images.tex

Please type another input file name:
\quote

I ran latex2html with the -debug option. That gave me two places in 
latex2html.bat that seem challenged. They are line 3773:

$preprocessor_cmds .= $this_cmd.\n;

and lines 3799-3803 (particularly line 3801):
sub make_latex_images{
close_dbm_database if $DJGPP;
local($dd) = $dd; $dd = '/' if ($dd eq \\);
local($latex_call) = $LATEX .$dd${PREFIX}images.tex;
print $latex_call\n if (($DEBUG)||($VERBOSITY  1));
L2hos-syswait($latex_call);
open_dbm_database if $DJGPP;
}

Not knowing perl, I'm good and stuck. Any help out of this would be most 
appreciated.


The only thing that happened during the installation, when I ran config, 
was that the netpbm I fetched had no pnmflip (it being now a perl file), 
no ppmquant (same -- a perl file) and no anytopnm (also a perl file). 
But I doubt any of this is relevant. But what do I know?


Bob Hueckstedt
Professor of Sanskrit
Univerity of Virginia

___
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html