Bug#495021: tex4ht: Could you incorporate late July bug fixes?

2008-08-20 Thread Eitan Gurari


  The author has bug fixes under
http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
  
  Trivially applying the Debian patches to the complete fixed
  source does not work, and I'm a little affected by some of the
  bugs.  I'd be terribly grateful for a bug-fix release if at all
  possible.  tex4ht is a bear to install by hand.  Thanks for the
  packaging!

The bugfixes page has an `upgrade' pointer trying to explain the
process. Can you be specific with regard to the problem being
encountered. -eitan





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486476: oolatex fails to create directory sxw-%%.dir as specified in tex4ht.cfg

2008-07-04 Thread Eitan Gurari


   an error is signalled when the script invoked by oolatex try to create
   the Pictures directory
  
  The problem is the the current tex4ht.env has a configuration which
  calls mkdir instead of mkdir -p. The latter is necessary since
  occasionally, we are invoking it with an argument like a/b.
  
  I will fix this in the Debian version and I request Eitan to fix it
  in the upstream version.

I believe that problem was already taken care of through the leading
record 

.4oo mkdir sxw-%%0.dir

in the oo segment of tex4ht.env

http://www.cse.ohio-state.edu/~gurari/TeX4ht/tex4ht-env-unix.txt

So I wonder whether the -p option is still needed.

By a way, the bug fixes distribution has a few days old version of
tex4ht.env that fixes also problems for the JavaHelp output mode.

-eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486482: tex4ht: a java program invoked from oolatex goes in error

2008-06-16 Thread Eitan Gurari

Hi Giacomo,

Can you cut the file esercizio.tex to a miniature minimal size while
still demonstrating the problem.  The problem seems to be in a broken
XML code produced in early phases and then fed into xtpipes.

-eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486482: tex4ht: a java program invoked from oolatex goes in error

2008-06-16 Thread Eitan Gurari

  We are still trying to fix this compatibility issue.

It will take some months until I'll confront the problem head on.  I
intend first to learn the gij/gcj environment by using it to develop
software for another project.  -eitan






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#471837: tex4ht: oolatex does not produce usable output

2008-03-25 Thread Eitan Gurari


   java version 1.5.0
   gij (GNU libgcj) version 4.3.1 20080309 (prerelease)

The above posting didn't reach me for reasons I don't understand.  I
can find it, however, on the web.

   
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/c9b356251e990acd/4215f6ecc9bb959d%234215f6ecc9bb959d
 
  In my experience, tex4ht works only with the Sun java 1.6. You have to
  install the Sun Java and link to the correct java in the
  /etc/tex4ht/tex4ht.env and it will work.
 
At my place I can get the java running fine on sun solaris under

   java version 1.5.0_06
   Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
   Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

-eitan






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#471837: tex4ht: oolatex does not produce usable output

2008-03-23 Thread Eitan Gurari


   The files seems fine, until xtpipes comes into play.
  
   Can you copy the file
  
 /usr/share/tex4ht/tex4ht.jar
  
   and directory
  
 /usr/share/texmf/tex4ht/xtpipes
  
   to
  
 http://www.renyi.hu/~braung/tmp/oolatex/
  
   setup to public access.
  
  Done.  These are the ones in the Debian package.

Well, the files work fine at my place, and I'm lost :-(

What output do you get from running the command

java -version

-eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#471837: tex4ht: oolatex does not produce usable output

2008-03-21 Thread Eitan Gurari

Braun Gábor writes:
 \documentclass{article}

 \begin{document}
 foo
 \end{document}

 Compilation command and messages on terminal:
 $ mk4ht oolatex test
  ...
   Can you create a new directory, compile the file in that directory,
   place the directory on the web, and provide a pointer to its
   address.  -eitan
  
  http://www.renyi.hu/~braung/tmp/oolatex/
  
  The directory as a zip archive:
  
  http://www.renyi.hu/~braung/tmp/oolatex.zip

The files seems fine, until xtpipes comes into play.

Can you copy the file

  /usr/share/tex4ht/tex4ht.jar 

and directory

  /usr/share/texmf/tex4ht/xtpipes

to

  http://www.renyi.hu/~braung/tmp/oolatex/

setup to public access.

-eitan




Bug#471837: tex4ht: oolatex does not produce usable output

2008-03-20 Thread Eitan Gurari


  \documentclass{article}
  
  \begin{document}
  foo
  \end{document}
  
  Compilation command and messages on terminal:
  $ mk4ht oolatex test

  System call: java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i 
  /usr/share/texmf/tex4ht/xtpipes/ -o test.4oo test.tmp
  --- xtpipes error 29 --- At sax 
  content-handler=xtpipes.util.ScriptsManager,tex4ht.OoFilter 
  lexical-handler=xtpipes.util.ScriptsManagerLH  : While parsing file 
  file:/home/gabor/tmp/tex4ht/oo/test.tmp: org.xml.sax.SAXParseException

Can you create a new directory, compile the file in that directory,
place the directory on the web, and provide a pointer to its
address.  -eitan






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#460985: tex4ht: htlatex can't cope with shell metacharacters in the file name (first arg)

2008-01-17 Thread Eitan Gurari


  Currently, this affects the .css and .tmp files generated but none of
  the other files. Perhaps this is a minor bug in the programs which it
  should be possible to fix.

A more profounde problem will occur when multi hypertex files are
created (e.g., in response to the command line option 3).  The
basename will be used for all those files as well as in hypertext
links.  

I still believe the most feasible solution is to go through some kind
of aliasing approach.

-eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#460985: tex4ht: htlatex can't cope with shell metacharacters in the file name (first arg)

2008-01-16 Thread Eitan Gurari

 A quick and easy way to fix it would be to 
 rewrite htlatex in Perl, though that would pull in Perl. I presume 
 there's a way of dealing with the problem in a shell script too.

   I do not understand the precise difficulty. Could you give an
   example?
  
  htlatex an example.tex
  
  This does not work.

I don't know how to deal with meta characters within the htlatex
script, and it is not clear to me how mk4ht can help.  The file name
is used by different utilities, including some called from within the
tex4ht.env script.  However, how about creating metacharacter-free
aliases to the file names?

-eitan





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#460985: tex4ht: htlatex can't cope with shell metacharacters in the file name (first arg)

2008-01-16 Thread Eitan Gurari

   However, how about creating metacharacter-free aliases to the file names?
  
  That's just a workaround.

What are the drawbacks of such a workaround?

  If you look at the run-mailcap script, you'll find 
  out that it does this internally. However, I doubt it will work with 
  htlatex, as the filename can be important for finding other files, because 
  (La)TeX uses the basename to derive the various auxiliary files (.log, .aux, 
  .dvi c.).

A similar problem will apply also to tex4ht as it uses the basename
for naming the hypertext files it creates, and sets xml elements
referencing those files.

-eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#460985: tex4ht: htlatex can't cope with shell metacharacters in the file name (first arg)

2008-01-16 Thread Eitan Gurari


   What are the drawbacks of such a workaround?
  
  I've explained that below, and you've agreed.
  
If you look at the run-mailcap script, you'll find
out that it does this internally. However, I doubt it will work with
htlatex, as the filename can be important for finding other files, 
because
(La)TeX uses the basename to derive the various auxiliary files (.log, 
.aux,
.dvi c.).
  
   A similar problem will apply also to tex4ht as it uses the basename
   for naming the hypertext files it creates, and sets xml elements
   referencing those files.
  
  Exactly. So creating aliases is not a good idea.

I don't follow.  If `abc.tex' is an alias assigned to `a b c.tex', and
htlatex is being called on `abc.tex', then everything should run
smoothly.  -eitan








-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#460986: tex4ht: Should depend on perl

2008-01-15 Thread Eitan Gurari

   Since tex4ht uses Perl, it should presumably depend on it.
  
  I will add the dependency. Note, though that perl-base is Essential
  and perl-base is all that is used.

Well, tex4ht does not use perl at all.

Only the mk4ht script uses perl.  That script is not needed in tex4ht.
It just provides a convenient shortcut for accessing different htlatex
commands.  

I wouldn't like to see tex4ht declared as dependent on perl.  If
needed, I rather take mk4ht out of the tex4ht distribution into a
separate independent distribution.

-eitan





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#450416: oolatex: treats $U_\mbox{s}$ as an error

2007-11-07 Thread Eitan Gurari

There are some things of (la)tex which are not supported by tex4ht,
including the reported problem.

 http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn4.html

Personally, I think U_\mathrm{self} is a degraded form of math.  

-eitan


  This point in the manuscript is the same point where the oolatex run
  complained with
  ! Argument of \new:mfont has an extra }.
  inserted text 
  \par 
  l.184   U_\mathrm{
self}= 4\pi kT   \sum_{n=0}^{\infty}{'}
  
  
  
  I don't know why oolatex is complaining about the \mathrm box, I'm
  pretty sure it's standard LaTeX (running latex normally does not give
  the same error).  Breaking at this point must be what's generating the
  broken odt code which OpenOffice cannot read.
  
  Instead of writing $U_\mathrm{self}$, I can add extra braces
  $U_{\mathrm{self}}$.  oolatex is then happy.  But since this is not
  required for normal LaTeX, it's an onerous demand and prone to
  repeating the same problem any time you try to convert any normal LaTeX
  document.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#447690: MathML output not honoured by iceweasel

2007-10-25 Thread Eitan Gurari

An instuction

  htlatex filename xhtml,mathml  -cunihtf

is already supported under the script name `xhmlatex'. See 

   http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn-commands.html
   = XHTML with MathML

This option, however, is currently problematic for browsers. For
instance, that is the case when dealing with  unicode entries
such as #x1D6E2;.

-eitan

  .)  The only remaining part of the bug would be a wishlist bug for
  
htlatex filename.tex xhtml,mathml
  
  to nevertheless name its output as filename.xht (or filename.xhtml)
  instead of the filename.html that it currently uses: clearly the user at
  least requested xhtml and mathml output, even if they didn't use one of
  the commands recommended in the online HTML documentation, so it would
  be nice if this command would either abort with an error message or run
  but name its output as filename.xht (or filename.xhtml) so that it's
  more likely to be understood as an xhtml/mathml file than the
  filename.html that it currently produces.
  
  I'll create a new bug report to continue the discussion of \email
  handling to reduce the mixing of unrelated issues in one bug number.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#447690: tex4ht: Should Recommends: dvipng

2007-10-23 Thread Eitan Gurari

Peter,

Any concrete example of what is going wrong there, unless the problem
is with the browsers.

-eitan


  intended for tex4ht would use equations.  Tex4ht's MathML output doesn't come
  out right for me in either iceweasel or konqueror, which makes me think that






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#447690: More on \email problem

2007-10-23 Thread Eitan Gurari


 [Note: I started writing this e-mail message before receiving your reply 
  you sent privately, and this email message doesn't address the comments 
  in your reply.] 
 
My oversight--I meant to reply to the public domain. 
 
 Having downloaded tex4ht source, I see that \email magic is handled in 
 part by \Link[mailto:#1]{}{}. 
 
I just modified the configuration for the email feature. The old 
configuration assumed an entry consisting of a single address, not 
being aware of the possibility of having a group of addresses. 

-eitan

Fragments from the previous emails + replies


   So I suppose the trick is to look at differences between tex4ht's output
   and that page, paying particular attention to doctype etc. bits and xmlns
   use and so on.

 Try

mk4ht mzlatex filename

 or better off

mk4ht mzlatex filename html,mathplayer

 The mk4ht prefix might not be needed.

Indeed, the .xht filename used by at least the latter command (combined
with a change to the input file to avoid the problem with spaces in the
argument to \email) is enough that iceweasel renders the page with its
MathML things; thanks.

   This bug makes me wonder how many other constructs can result in
   invalid html/xhtml.  A good way of avoiding this when writing a =
new
   application is for each command handler to produce not raw
   supposed-html but rather an intermediate format like a libxml tree.
   Whether it's worth applying this to an already-existing program
   instead of fixing bugs one by one as they're reported is another
   matter :) .

 People writing latex applications don't bother about non-visual
 formats. The tex4ht utility tries indirectly to implement such
 approach mainly through \NewConfigure and \Configure commands.

I wrote the above before I'd downloaded the source and found that most
of tex4ht's implementation of \email is written in TeX with the
\Configure and \NewConfigure commands you mention.  I still don't know
the rest of how it's implemented, though (e.g. how \Link is defined).




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#444131: tex4ht produces invalid mml (unicode 0x0)

2007-09-28 Thread Eitan Gurari

  In the archive at http://rcswww.urz.tu-dresden.de/~s7935097/0formel.zip
  you will find everything I have.
  
  I don't exactly know what is the output of tex4ht.c so I included the
  full stdout of mk4ht oolatex 0formel in the file 0formel.stdout and
  stderr in 0formel.err. I hope this helps.
  
The problem was in missing hypertext fonts, as indicated by the
following messages at 0formel.err

--- warning --- Couldn't find font `lmsy7.htf' (char codes: 0--173)
--- warning --- Couldn't find font `lmsy10.htf' (char codes: 0--173)
--- warning --- Couldn't find font `lmmi5.htf' (char codes: 0--127)
--- warning --- Couldn't find font `lmmi7.htf' (char codes: 0--127)
--- warning --- Couldn't find font `lmmi10.htf' (char codes: 0--127)
--- warning --- Couldn't find font `rm-lmr5.htf' (char codes: 0--255)
--- warning --- Couldn't find font `rm-lmr7.htf' (char codes: 0--255)
--- warning --- Couldn't find font `lmex10.htf' (char codes: 0--127)
--- warning --- Couldn't find font `lmbsy5.htf' (char codes: 0--173)
--- warning --- Couldn't find font `lmbsy7.htf' (char codes: 0--173)
--- warning --- Couldn't find font `lmbsy10.htf' (char codes: 0--173)
--- warning --- Couldn't find font `rm-lmr10.htf' (char codes: 0--255)

I added the missing lm fonts into the bugfixes distribution.

-eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#444131: tex4ht produces invalid mml (unicode 0x0)

2007-09-26 Thread Eitan Gurari


  Trying to translate some latex files to .odt I got the error message 
  
  System call: java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i
  /usr/share/texmf/tex4ht/xtpipes/ -o 0formel-m4.4om 0formel-m4.tmp
  --- xtpipes error 29 --- At sax
  content-handler=xtpipes.util.ScriptsManager,tex4ht.OomFilter
  lexical-handler=xtpipes.util.ScriptsManagerLH  : While parsing file
  file:/home/schlemme/000Privat/bugs/0formel-m4.tmp:
  org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0)
  was found in the element content of the document.

  \documentclass{article}
  \usepackage{lmodern}% commenting out this gives right results.
  \begin{document}
  $5{,}4$ 
  $7\cdot1$ 
  $0^{-7}$
  \end{document}

Works fine at my place. Can you provide the file 0formel.dvi and the
messages produced by tex4ht.c (preferable by giving a pointer to a
web site containing the data). -eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#444135: oolatex: incompatibility with beamer package

2007-09-26 Thread Eitan Gurari

  tex4htformel-m2.tmp
  --- xtpipes error 29 --- At sax
  content-handler=xtpipes.util.ScriptsManager,tex4ht.OomFilter
  lexical-handler=xtpipes.util.ScriptsManagerLH  : While parsing file
  file:/home/schlemme/000Privat/bugs/tex4htformel-m2.tmp:
  org.xml.sax.SAXParseException: Element type math:mtext must be
  followed by either attribute specifications,  or /.
  --- Warning --- System return: 256
  
  is issued when compiling the following file:
  
  \documentclass{article}
  \usepackage{beamerarticle}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage[thinqspace,textstyle,squaren]{SIunits}
  \begin{document}
  \unit{$5{,}4\cdot10^{-7}$}\squaremetrepersecond
  
  \end{document}
  
  removing the beamer class or package it compiles just fine (result
  unchecked).

Fixed, -eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#444084: tex4ht: you-on gets extra space

2007-09-25 Thread Eitan Gurari

Junichi,

Can you place on the web the following files, and provide a pointer to
their locations.

1. A COMPLETE MINIMAL MINIATURE source latex file exhibiting the problem
2. The dvi file produced by platex, before being processed by dvi2dvi
3. The dvi file produced by dvi2dvi
4. A pdf or postscript output of the file

-eitan


  Japanese text usually does not use space inside sentences (space is
  not a delimiter). tex4ht seems to insert spaces after 'you-on'
  (small-letters: $B$c$e$g$C%c%e%g%C(B)

  A HTML snippet looks like (there is extra space in /span span after 
  $B$C(B)
  class=dmjhira-10x-x-101$B$+(B/spanspan 
  class=dmjhira-10x-x-101$B$C(B/span span 
  class=dmjhira-10x-x-101$B$F(B/spanspan 

  platex $5 
  '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx\HCode\def\HCode##1[EMAIL
   PROTECTED]@[EMAIL 
  PROTECTED],html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
   tex4ht\endcsname{#1,html}\def\HCode1{\documentstyle[tex4ht,[EMAIL 
  PROTECTED] '$2'.a.b.c.\input ' $1
  dvi2dvi -F a2n ${1/.tex/.dvi}  ${1/.tex/.dvi.tmp}
  mv ${1/.tex/.dvi.tmp} ${1/.tex/.dvi}
  tex4ht -f/$1   -itex4ht/ht-fonts/mozilla/nttsub/$3



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#384958: tex4ht: some grouping issues with oolatex math

2007-09-25 Thread Eitan Gurari


   mk4ht oolatex test.tex  seems to produce incorrect output.
   At least my oowriter (2.0.3) does not like the double indices $x_{i_j}$ 
   without further grouping.
   In oomath input syntax it produces x_i_j, which should be x_{i_j}.
  
  On Tue, 29 Aug 2006, Eitan Gurari wrote:
   I'm not sure, however, what effort it will take for non-trivial
   cases, and I don't see where I can find the time for this job in
   the near futute.  I'm also wondering whether such a fix is not more
   appropriate for the OO people to do.
  
  Since I do not use OO, I am not sure whether this issue has been
  resolved. Could you please provide some information on the current
  state?

The tex4ht utility produces OpenDocument format, where math is
represented in mathml.  When loading an OpenDocument file, OpenOffice
translates the mathml code into an internal oomath format.  The mathml
code produced by tex4ht for the given example  is correct, and it
displays fine both under Mozilla and MSIE+MathPlayer.   The behavior
of OpenOffice is incorrect.

A possible `solution' could have been for tex4ht to complement the
math in the OpenDocument code with oomath code, and by doing so help
with bugs within the  OpenOffice engine.  It is a task I unlikely to
work on.

I don't think this issue should be the concern of tex4ht or the debian
distribution.  I hope before long it will be resolved within
OpenOffice.

-eitan









-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#440071: tex4ht: xtpipes dosent find .4xt files

2007-09-01 Thread Eitan Gurari

I repackaged xtpipes within tex4ht, including placing all the java
code within a jar file.  In the process I renamed xttl into xtpipes.

I don't follow the logic of setting ${SELFAUTOPARENT} into a 
slash '/'.   For the debian distribution I think replacing
`%%~/texmf-dist' with `/usr/share/texmf' should do the job.

-eitan

  xtpipes.jar doesn't find it's files due to different problems (one
  additional be reported in an extra report):
  
  in /etc/tex4ht.env I had replaced the line 
  
  %.4oo java -jar /usr/share/tex4ht/xtpipes.jar -i %%~/texmf/tex4ht/xttl/ -o 
  %%0.4oo %%0.tmp
  
  with
  
  ..4oo java -jar /usr/share/tex4ht/xtpipes.jar -i 
  /usr/share/tex4ht/xtpipes/lib/ -i /usr/share/texmf/tex4ht/xttl/ -o %%0.4oo 
  %%0.tmp
  
  to help it find all necessary .4xt files. Unfortunately it didn't help.
  The last -i seems to overwrite the first one, so all .4xt files must be
  in the same directory. 
  
  My solution was to symlink everything from
  /usr/share/tex4ht/xtpipes/lib/ to /usr/share/texmf/tex4ht/xttl/.
  
  after that it worked fine.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#440071: tex4ht: xtpipes dosent find .4xt files

2007-08-31 Thread Eitan Gurari

Tobias,

a. Records starting with the percentage character % are treated as
   comment. On the other hand, records starting with ..4oo relate to
   filenames  of the form foo..4oo. So it is not clear to me why the record
   
  %.4oo java -jar 
   
   and its replacement
   
  ..4oo java -jar ...
   
   play any role.
   
b. Yes, only the last -i is recognized.  I think a classpath form of
   paths concatenation applies to the -i arguments.
   
   -i /usr/share/tex4ht/xtpipes/lib/:/usr/share/texmf/tex4ht/xttl/ 
  
c. Can you put the jar file somewhere on the web and provide a pointer to
   it. At my place I don't (yet) have the jar-ed distribution. The script
   instruction I provide takes the form
   
  .4oo java -classpath %%~/texmf-dist/tex4ht/bin xtpipes
-i  %%~/texmf-dist/tex4ht/xttl/ 
-o %%0.4oo %%0.tmp 
   
   so I wonder whether the problem is not just in the missing -classpath part.
   Currently, the -i record should point just to the xttl directory.
   
-eitan

  xtpipes.jar doesn't find it's files due to different problems (one
  additional be reported in an extra report):
  
  in /etc/tex4ht.env I had replaced the line 
  
  %.4oo java -jar /usr/share/tex4ht/xtpipes.jar -i %%~/texmf/tex4ht/xttl/ -o 
  %%0.4oo %%0.tmp
  
  with
  
  ..4oo java -jar /usr/share/tex4ht/xtpipes.jar -i 
  /usr/share/tex4ht/xtpipes/lib/ -i /usr/share/texmf/tex4ht/xttl/ -o %%0.4oo 
  %%0.tmp
  
  to help it find all necessary .4xt files. Unfortunately it didn't help.
  The last -i seems to overwrite the first one, so all .4xt files must be
  in the same directory. 
  
  My solution was to symlink everything from
  /usr/share/tex4ht/xtpipes/lib/ to /usr/share/texmf/tex4ht/xttl/.
  
  after that it worked fine.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#440075: tex4ht: SELFAUTOPARENT does not work with debian texlive

2007-08-31 Thread Eitan Gurari



  kpsewhich '${SELFAUTOPARENT}' 
  reports me /,

What information is provided for the following command lines.

kpsetool -v '$TETEXDIR'
kpsetool  -v '$SELFAUTOPARENT' 
which t4ht

  which is consistent with the information I found in the
  internet: /usr/bin is reduche two times to /. 

Is http://dvi2bitmap.sourceforge.net/ssn71.htx/N-a2b5c2.html 
the correct pointer to the internet.

-eitan

  But all the %%~ placeholders in /etc/tex4ht.env need /usr/share/tex4ht
  ..
  
  I'm not sure, who is to blame for that discrepancy, so I seperated it
  from Bug #440071 to allow easy reassigning to other packages.
  
  As a consequence a solution resp. workaround is to subsitude all
  occurences of %%~ in /etc/tex4ht.env with /usr/share/tex4ht.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#440169: tex4ht: does not support \includegraphics in \title{}

2007-08-31 Thread Eitan Gurari


Fixed. -eitan

Junichi Uekawa writes:
  Package: tex4ht
  Version: 20070821-1
  Severity: normal
  
  The following sequence does not work
  
  
  \documentclass{article}
  \usepackage{graphicx}
  
  \begin{document}
  
  \begin{titlepage}
  
  \title{\includegraphics[width=7cm]{image200502/openlogo-nd.eps}\\
   
  \footnote{}}
  \date{-yy-zz}
  \author{ \thanks{Debian Project Official Developer}} 
  \maketitle
  
  \end{titlepage}
  
  
  \end{document}
  
  
  errors out with:
  
  (/usr/share/texmf/tex/generic/tex4ht/html4-math.4ht)) (./a.aux) [1])
  ! Incomplete \iffalse; all text was ignored after line 13.
  inserted text 
  \fi 
  * ...]}}}\makeatother\HCode .a.b.c.\input  a.tex

  ? q
  
  
  
  -- System Information:
  Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
  Architecture: amd64 (x86_64)
  
  Kernel: Linux 2.6.23-rc3dancer (PREEMPT)
  Locale: LANG=ja_JP.EUC-JP, LC_CTYPE=ja_JP.EUC-JP (charmap=EUC-JP) (ignored: 
  LC_ALL set to ja_JP.eucJP)
  Shell: /bin/sh linked to /bin/bash
  
  Versions of packages tex4ht depends on:
  ii  libc6 2.6.1-1GNU C Library: Shared libraries
  ii  libkpathsea4  2007-13TeX Live: path search library 
  for 
  ii  tex4ht-common 20070821-1 LaTeX and TeX for Hypertext 
  (HTML)
  ii  texlive-base-bin  2007-13TeX Live: Essential binaries
  
  tex4ht recommends no packages.
  
  -- no debconf information
  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#440071: tex4ht: xtpipes dosent find .4xt files

2007-08-31 Thread Eitan Gurari


   c. Can you put the jar file somewhere on the web and provide a pointer to
  it. At my place I don't (yet) have the jar-ed distribution. The script
  instruction I provide takes the form
  
 .4oo java -classpath %%~/texmf-dist/tex4ht/bin xtpipes
   -i  %%~/texmf-dist/tex4ht/xttl/ 
   -o %%0.4oo %%0.tmp 
  
  so I wonder whether the problem is not just in the missing -classpath 
   part.
  Currently, the -i record should point just to the xttl directory.
  
  Is the -classpath also searched for files included by the -i
  directive?
  
  I should have checked with you whether conversion/packing to .jar
  would affect the program in anyway.
  
  The reason I did this conversion for the Debian package is that this
  is the recommended way to distribute classes in Debian.

Kapil,

xtpipes searches *.4xt script files under the directories given by the
-i switch. If it does not find a script file under those directories,
it searches the file under the directories provided by the -classpath
switch.  

xtpipes is a stand alone utility incorporated into tex4ht quite
recently.  There are a few changes I still want to do with the
organization of its directories.  Under the modified organization I'll
expand the directories listed under the -i switch, and the -classpath
directories will not include .4xt script files.

I think it is a good idea to use the .jar file.  I want to use it
also in the distribution of tex4ht. I asked for a pointer to the .jar
file to try getting a compatible setup.

-eitan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#438595: tex4ht: relative path support broken with images

2007-08-19 Thread Eitan Gurari

Assuming the problem resulted from a source similar to

\documentclass{article} 
  \usepackage{graphicx} 
\begin{document} 
  \includegraphics{image200708/surrogate.png} 
\end{document} 

the related messages onto the console were similar to

   System call: cp image200708/surrogate.png target-directory/. 
   System return: 0 

and the problem is due to target-directory not having the subdirectory
image200708, a possible solution can be to use instead of the command
cp a call to a more general utility that besides for copying the files
also creates missing sub directories when the need arises.

-eitan



  t4ht '-d' support will break image links that have relative paths.
  
  The generated HTML will contain
  
  IMG 
  src=image200708/surrogate.png alt=
  PIC  
  width=483.69684pt height=291.90413pt 
  
  
  but the image files will be copied as the basename (surrogate.png is
  there, but it's not in image200708/ directory, so the image is not
  displayed).


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#438595: tex4ht: relative path support broken with images

2007-08-19 Thread Eitan Gurari



Kapil,

How the `install' command will look like for the following case?

Given:

   A file:images/a.png
   A directory:   /n/gold/5/gurari/WWW/temp/.
 
Get a variant of

cp images/a.png /n/gold/5/gurari/WWW/temp/.

where the variant command

   (1) Creates the directory 

   /n/gold/5/gurari/WWW/temp/images/

   (2) Copies a.png from

   images/a.png

   into

   /n/gold/5/gurari/WWW/temp/images/

I tried

   install images/a.png /n/gold/5/gurari/WWW/temp/.

and couldn't figure out the effect of the execution of the command.

-eitan




   and the problem is due to target-directory not having the subdirectory
   image200708, a possible solution can be to use instead of the command
   cp a call to a more general utility that besides for copying the files
   also creates missing sub directories when the need arises.
  
  On Debian systems one can use the install utility to do this. I
  could perhaps make the appropriate change to tex4ht.env for this.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-30 Thread Eitan Gurari

Can you try downloading

   http://www.cse.ohio-state.edu/~gurari/temp/nogjava.perl
into
   src/java/nogjava.perl

and invoke one of the listed alternatives.  The perl script
should remove the generic notation from the java code.

-eitan

 
Alternative 1  
-  
 perl nogjava.perl  
 cd work.dir  
 yourjavac *.java */*.java */*/*.java  
 
Alternative 2 (assumes javac for yourjavac)  
-  
 perl nogjava.perl -j  
 
Alternative 3 (assumes ecj for yourjavac)  
-  
 perl nogjava.perl -e  
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-30 Thread Eitan Gurari


  By the way, I did manage to compile the java code with minor
  modifications as I mentioned earlier.

Apparently I misread the posting :-(  In any case, an automated process
would be useful as the java will likely change and grow in time.  I'll
wait for confirmation that it works before incorporating it into the
distribution. Thanks, -eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-26 Thread Eitan Gurari

Kapil,

I was hoping to work on this problem a week ago, but didn't get to it
yet.  I hope the packaging can wait a little more before proceeding.
Unfortunately, I over stretched with too many commitments and try
somehow to float. I believe the problem is easy to fix.

-eitan




  Dear Michael and Eitan,
  
  On Wed, 17 Jan 2007, Eitan Gurari wrote:
   Looks like all the errors related to the generic notation. 
   Can you try compiling the file
   
   http://www.cse.ohio-state.edu/~gurari/temp/Xtpipes.java
  
  
  After including this file and a minor change to ScriptsManager.java
  I was able to compile with 3 warnings about unused variables using
  only the compiler available with the Debian package ecj-bootstrap-gcj
  (as suggested by Micheal).
  
  I still have no way to check that this produces the correct results
  in comparison to the compilation produced by using the original
  sources. I will start learning how to actually use these classes
  with tex4ht.
  
  All the same, I will now try to figure out how best to package these
  classes with the existing Debian package and put it in the unstable
  Debian archive.
  
  Thanks for all your help.
  
  Regards,
  
  Kapil.
  --


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-17 Thread Eitan Gurari

Michael,

The problem is in missing

import xtpipes.XtpipesUni;

at the start of

JsmlMathBreak.java

And yes, the slash is needed there.

Sorry about that. I'll fix the tex4ht distribution shortly.

-eitan



  I tried compiling the java sources using the line from the README which
  was:
  
   javac *.java */*.java */*/*.java -d /texmf/tex4ht/bin
  
  I assume it should read
  
   javac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
 ^
  However, using the sun-java5-jdk javac I get:
  
  
  $ javac *.java */*.java */*/*.java -d /texmf/tex4ht/bin
  
  JsmlMathBreak.java:15: cannot find symbol
  symbol  : variable XtpipesUni
  location: class 
  String s = XtpipesUni.toUni(ch, start, length, );
 ^
  JsmlMathBreak.java:29: cannot find symbol
  symbol  : variable XtpipesUni
  location: class JsmlMathBreak
+ XtpipesUni.toUni(atts.getValue(i), \)
  ^
  2 errors
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-17 Thread Eitan Gurari

Michael,

Looks like all the errors related to the generic notation. 
Can you try compiling the file

http://www.cse.ohio-state.edu/~gurari/temp/Xtpipes.java

It is the original program with the generic notation removed.  It
compiles under sun's java. If so, I'll add a short perl script to the
instructions for applying the cleaning phase.

I fixed in the distribution the two modules that produced the
warning messages.

Kapil,

  I've been a bit lax in following up your and Eitan's work on this
  with actually trying to compile things. However, my experience the
  last time I tried was similar to yours. I especially had problems
  with the SAX stuff as it was not in the GNU java classes.

What is the compiler is in use?

  I can try to move the java portion of the package to contrib as
  tex4ht-nonfree. In this case I would have to explain this addition to
  the archive as currently the only way to make progress towards speech
  support in tex4ht.

I don't think there will be a need for that. The problems are 
minors and with a little feedback I'll be able to fix them (in case
that is not already the case).

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#406060: tex4ht: oolatex ignores spaces and \centering (+ cannot handle list of figures/tables)

2007-01-08 Thread Eitan Gurari

  oolatex seems to ignore things like \newspace and \vspace while it
  considers \hspace. Additionally it ignores \centering in floating
  figures/tables while \begin{center}\end{center} works. The is a little
  inconvenient as \centering is the default in Kile's figure wizard.

The approach in tex4ht is to try to capture logical units and ignore
formatting instructions.  \vspase appears under the hood within the
definitions of many macros (over 500 on my departmental latex
distribution), and configuring that instruction probably will break
much of the output code.

  While playing with floating figures I also discovered that oolatex
  cannot handle \listoftables and \listoffigures while xhlatex can.

Fixed.

  Sorry for mixing two possibly unrelated bugs into one report.

That is fine. Much of the development of the OpenDocument
configurations is done by adjusting corresponding HTML configurations.
The HTML configurations are better developed since more people use
them and as a result they get better feedback.



  \listoffigures
  \listoftables
  
  \newpage
  
  start
  \newpage
  this should be on next page

The OpenDocument configurations of tex4ht offer the \Hclearpage
command for introducing page breaks.

-eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-07 Thread Eitan Gurari

Michael,

  Thanks a lot. After updating the package the image is now visible in OO 
  (BTW: 
  thanks to the package maintainer for update_src.sh!). 
  However, kword is still complaining about the namespace issue -- but well, 
  it is 
  called oolatex and not kwlatex ;).

Any help to install kword on fedora? I tried 

rpm -ivh 
http://download.fedora.redhat.com/pub/fedora/linux/extras/development/i386/koffice-kword-1.6.1-4.fc7.i386.rpm

and got signature and dependency problems.  

  Perhaps one additional problem. The displayed image in the odt is very very 
  tiny, but I can set the correct size via the image properties dialog to fix
  this. Is there any way to keep/set the correct size during conversion?

That should have be done by the invoking `java ...xtpipes ...' from
t4ht.c. See, e.g.,

 http://www.cse.ohio-state.edu/~gurari/temp/log.txt

Can you show me the messages issued by t4ht.c, and the output of

  java -classpath  ...correct-path.../texmf/tex4ht/bin xtpipes

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-07 Thread Eitan Gurari


Michael,

Can you take a look at the `instructions' entry at the end of the
first paragraph in

  http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html

-eitan

  Reading the changelog of the package and the other bugreports I think
  the problem is that xtpipes is not included in the package. I tried to
  understand where xtpipes should come from - but failed to do so. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405914: tex4ht: oolatex cannot handle apacite citations while xhlatex can

2007-01-07 Thread Eitan Gurari

Michael, Fixed. -eitan


  converting a minimal tex file with apacite citations using oolatex leads to 
  corrupted citations in the odt file. OTOH xhlatex converts the same file
  just fine.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-07 Thread Eitan Gurari

  However, while this solves *my* problem I'm not sure whether the
  official package can take this path. Two things come to my mind:
  
   1. I simply included the binary stuff, but I still do not know where the
  sources are that where used to build it. 

They come from the literate source (la)tex files.

  BTW: What is this: byte code?

Yes.

  (remember: I'm a complete java dummy)

Knowing what `byte code' means makes you an expert ;-)

   2. I'm running the sun-java5-jre package from nonfree. Adding the now
  necessary dependency to this package would make tex4ht essentially a
   contrib package -- a pretty high price for solving this problem. I
   have not tested if other java versions would work. 
   I'll do that as soon as I figure out how to build the binaries that
   I just included.

I added to the bugfixes distribution a subtree

  src/java

with the java sources and instructions. Hope I didn't make major
mistakes there. The binaries probably contain much junk.  (The files
come from different projects currently under development and go
through frequent changes.)

-eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#405800: tex4ht: oolatex generates invalid documents

2007-01-06 Thread Eitan Gurari

Michael,

Can you upgrade your tex4ht utility to that offered at

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html

The output for the figure at your place produces an old element type
draw:image .../ for figures instead of the newer type 
draw:frame .../.  

Also, the script at your place does not activate the java
postprocessor. See

http://www.cse.ohio-state.edu/~gurari/temp/log.txt

for a reference.

-eitan



  Package: tex4ht
  Version: 20060913-1

  I tried to use tex4ht to convert a LaTeX file into an OpenOffice document.
  The texfile contains essentially only an eps image created with R (file
  is attached):
  
  graph_test.tex (also attached):
  ---
  
  \documentclass[a4paper,10pt]{scrreprt}
  \usepackage{graphicx}
  
  \begin{document}
  
  % test.eps created with R using:
  % postscript('test.eps',onefile=FALSE,horizontal=FALSE)
  % hist(rnorm(100))
  % dev.off()
  \includegraphics[width=10cm]{test.eps}
  
  \end{document}
  
  
  I converted it into odt by invoking:
  
   mk4ht oolatex graph_test.tex


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#384958: tex4ht: some grouping issues with oolatex math

2006-08-29 Thread Eitan Gurari


  As a workaround use the math:annotation tag with StarMath5 syntax as
  OO does.
  
  Deleting this tag looks right at the first glance as OOo saves a binary
  copy of it inside the document. But when you try to edit the formula it
  gets confused again.

Might be a good idea for simple formulas. I'm not sure, however, what
effort it will take for non-trivial cases, and I don't see where I can
find the time for this job in the near futute.  I'm also wondering
whether such a fix is not more appropriate for the OO people to do. -eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#384958: tex4ht: some grouping issues with oolatex math

2006-08-28 Thread Eitan Gurari

The problem is with a broken mathml engine in OpenOffice 2.

eqnarray


The \begin{eqnarray}a=b\end{eqnarray} is translated by tex4ht into

mia/mimo=/momib/mi

and is loaded as

 matrix {a # = # b}

by OO2 into a broken display.  The xtpipe phase `fixes' the problem by
producing improper mathml output

mia/mimtext=/mtextmib/mi

which OO2 loads as

matrix {a # = # b}

and provides proper display. 

double subscript


The output of tex4ht on $x_{i_j}$ is 

   math:msub
   math:mrow
 math:mix/math:mi
   /math:mrow
   math:mrow
 math:msub
   math:mrow
 math:mii/math:mi
   /math:mrow
   math:mrow
 math:mij/math:mi
   /math:mrow
 /math:msub
   /math:mrow
 /math:msub
   
and OO2 loads the code into a broken format and view x_i_j.  The same
outcome occurs when tex4ht is modified to produce the following output.
   
   math:msub
 math:mix/math:mi
 math:msub
   math:mii/math:mi
   math:mij/math:mi
 /math:msub
   /math:msub

A manual editing of x_i_j into {x}_{{i}_{j}} or x_{i_j} provides the
proper display (and identical mathml code).  I don't know what kind of
mathml code tex4ht should produce to obtain correct display in OO2.



  mk4ht oolatex test.tex  seems to produce incorrect output.
  At least my oowriter (2.0.3) does not like the double indices $x_{i_j}$ 
  without further grouping.
  In oomath input syntax it produces x_i_j, which should be x_{i_j}.
  
  A similar effect produces
  \begin{eqnarray}a=b\end{eqnarray}, where the = expects two operators, but
  a # = # b is produced. Both '{}={}' and '=' (oowriter syntax) produce 
  useful output.

  Note: xtpipes won't accept the eqnarray. So, please try it with commenting 
  it out.
  Note: I didn't check against the newer versions of tex4ht mentioned in 
  Bug#384578.
  
  -- System Information:
  Debian Release: testing/unstable
APT prefers dapper-updates
APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 
  'dapper-proposed'), (500, 'dapper-backports'), (500, 'dapper'), (500, 
  'breezy'), (500, 'testing'), (500, 'stable')
  Architecture: amd64 (x86_64)
  Shell:  /bin/sh linked to /bin/bash
  Kernel: Linux 2.6.15-1-amd64-generic
  Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
  
  Versions of packages tex4ht depends on:
  ii  libc6 2.3.6-15   GNU C Library: Shared libraries
  ii  libkpathsea4  3.0-17 path search library for teTeX 
  (run
  ii  tetex-bin 3.0-17 The teTeX binary files
  ii  tex4ht-common 20060619-1 LaTeX and TeX for Hypertext 
  (HTML)
  
  tex4ht recommends no packages.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#384578: tex4ht: mk4ht oolatex tries to run xtpipes, which is not distributed

2006-08-26 Thread Eitan Gurari









  Running mk4ht oolatex tries to run xtpipes, which is not included in the 
  distribution.
  The corresponding part in /etc/tex4ht/tex4ht.env is 
  
  
   %
  ooxtpipes
  ..4om mv %%1.4om %%1.tmp
  ..4om java -classpath  ~/tex4ht.dir/texmf/tex4ht/bin xtpipes -i 
  ~/tex4ht.dir/texmf/tex4ht/xttl/ -o %%1.4om %%1.tmp
  /ooxtpipes
  
  
  This prevents maths from being included in the .odt file


The prefix ~/tex4ht.dir obviously needs to be modified to fit the
location of the installation of tex4ht. The bin and xttl subtrees can
be downloaded from http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html.

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#382436: Can not handle \hyphenation

2006-08-18 Thread Eitan Gurari

  [1] (./sosl70c.tavutus.tex
  ! Improper \hyphenation will be flushed.
  argument \protect 
  \a
  l.33 Ai-ne-jä
r-jes-töt %
  ? X
  
  But there is no problem, if I run make dvi or make postscript.

Fixed. -eitan



Bug#366712: tex4ht: Please clean up intermediate files

2006-05-18 Thread Eitan Gurari



   There is an option to send output files (.html,.css,.png) files to
   a directory other than the current directory. For example
  
  htlatex sample2e   -d~/home_page/test
  
   will send the output files to ~/home_page/test.

  Well, it would be nice if the temporary directory was automatically
  created if it doesn't exist.  But what I'd appreciate even more is if it
  would (or is?) possible to permanently set the -d switch, so that I
  don't need to type it every time.

That can be done by adding in the htlatex-like script files the -d
switch to the t4ht records, e.g.,

 t4ht ... -d~/WWW/temp/

Similarly, within mk4ht add the -d switch to the trailing quoted ...
segments, e.g.,

  ht,   htlatex, latex,  , , -cvalidatehtml -d~/WWW/temp/, 

It doesn't seem appropriate to introduce such a switch permanently
as different users might prefer different directories for their
output.  

I have the switch -d~/WWW/temp/ set in my private scripts. I insert
the switch -d./ in the command line, when I want to overwrite that
switch to have the outcome stay in the work directory.

  I've read the documentation about configuration files, but it seems this
  only relates to (La)TeX code, not to a configuration file for
  mk4ht/htlatex/...  Did I miss something?

Try the command `t4ht' without arguments.  It will show the available
options.  I'll modify the documentation to deal with issue.

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#366712: tex4ht: Please clean up intermediate files

2006-05-10 Thread Eitan Gurari


  A run of tex4ht creates numerous intermediate files.  It would be nice
  if they could automatically deleted - I suggest to do this without
  asking, but provide a commandline option for people who want to keep
  them.

I'm reluctant do provide such a feature, and rather leave it to the
users to design cleaning scripts of their own to be invoked explicitly
when desired.  Quite a few temporary files are needed for transferring
information between compilations (e.g., the xref files), and I think
they should stay around until the final version of the output is
ready.  On the other hand, some of the temporary files are useful for
debugging purposes (e.g., the log files).  I don't see a unified
approach to deal with this issue.  Yet, I my memory doesn't betray me,
I think the contributed tex4ht-auto-script.tex file from the bug fixes
page tries to address this issue to some degree.  -eitan







-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#363675: tex4ht: weird represenation of numbers in tables with dcolumn

2006-04-20 Thread Eitan Gurari


  when using tex4ht with dcolumn, the representation of numbers in the
  output file is weird.  The following document:
  
  \documentclass{article}
  \usepackage{dcolumn}
  
  \begin{document}
  \begin{tabular}{lD{.}{.}{2}}
hello  1.23 \\
bye5.2  \\
  \end{tabular}
  
  \end{document}
  
  Produces a table with four numbers: 1 and 23, separated by a dot, and 5
  and 2 separated by a dot:
  
  td  style=white-space:nowrap; text-align:center; id=TBL-1-1-2  
  class=td11  1span 
  class=cmmi-10./span23  /td
  
  I'm not a html guru, but it seems to me this is just a font change for
  the dot, which doesn't seem to make sense.  Anyway, it makes editing the
  resulting file hard - not a problem for html probably.  But the same
  also shows up in the OpenOffice output, and now we have two separate
  formulae for the 1 and for the 23, and this is cumbersome.

I modified the OpenOffice configurations to provide plain decimal
numbers. Thanks, -eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#363674: tex4ht: Should run bibtex when needed

2006-04-20 Thread Eitan Gurari

   When processing a document that uses bibtex with mk4ht, it does not run
   bibtex.  The bibliography is only included if bibtex has been run before
   to produce a LaTeX document.

   When bibtex needs to be run, the TeX output and the log file contains
   warnings like:
   
   Package natbib Warning: Citation `Brown-1980' undefined on input line 494.

Doesn't that behavior hold also for native latex compilations?

  There are a number of different such needs. For example makeindex';
  or sometimes for figures I may need metapost. Hence a script that
  automatically determines what needs to be run is a good idea.
  
  I believe that there is such a script being written and its source is
  in tex4ht-auto-script.tex but I have not yet included the output
  script in the Debian package for tex4ht partly because I don't
  think it covers all the cases that one would like and partly because
  it seems to be still under development.

The script got contributed by a user, and is provided without
modifications. I don't believe it is being farther developed.

-eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#360622: tex4ht: Problem with font changes in math mode

2006-04-10 Thread Eitan Gurari


  |   \label{eq:20}
  |   S = s_\mathrm{N} [\mathrm{N}] + s_\mathrm{U} [\mathrm{U}]
  | %  S = s_\text{N} [\text{N}] + s_\text{U} [\text{U}]


  with mk4ht oolatex mini.tex,  I get:

  ! Argument of \new:mfont has an extra }.
  inserted text 
  \par 
  l.11   S = s_\mathrm{
   N} [\mathrm{N}] + s_\mathrm{U} [\mathrm{U}]

Try using s_{\mathml{...}} instead of  s_\mathml{...}.  Unlike
(la)tex, tex4ht insists that multi parts subscripts and superscripts
should be braced. -eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350768: tex4ht: \text{\(..\)} produces not well formed mathml

2006-03-12 Thread Eitan Gurari

  Additional notes for the bug I have reported.

I didn't see that report--I guess it got rejected by my
imperfect mail filter :-(

  So the bug maybe fixed by adding \Configure{()} with similar arguments as
  those of \Configure{$} but adding two $ to enter and exit math mode.

Done. -eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350412: tex4ht: Option frames leads to incorrect DOCTYPEs

2006-02-03 Thread Eitan Gurari

  _However, I forced the mathml files to have .html extension names since
  _my Firefox Mozilla doesn't like the .xml extension names for files in
  _frames.
  
  I don't like the idea of forced .html extension.

OK. I removed this enforcement. -eitan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350411: tex4ht: fails creating image but png

2006-01-31 Thread Eitan Gurari

Done. Thanks, -eitan

  +++ tex4ht.env   2006-01-26 12:07:48.0 +0100
  @@ -178,9 +178,9 @@
   G.png
   Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3
   G.gif
  -Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp -gif %%2:%%2 %%1 -o %%3
  +Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3 -gif
   G.
  -Gdvips -Ppdf -mode ibmvga -D 110 -fzz%%4.ps
  +Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
   Gconvert -crop 0x0 -density 110x110 -transparent '#FF' zz%%4.ps %%3
   Grm zz%%4.ps
/dvipng


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350412: tex4ht: Option frames leads to incorrect DOCTYPEs

2006-01-31 Thread Eitan Gurari

Fixed.

However, I forced the mathml files to have .html extension names since
my Firefox Mozilla doesn't like the .xml extension names for files in
frames. 

-eitan

  1) Command line: mk4ht xhmlatex test.tex xhtml,frames
  
 Document types of output files:
  
 test.html:  XHTML 1.0 Frameset
 test2.html: XHTML 1.0 Transitional
 test3.html: XHTML 1.0 Transitional
  
  2) Command line: mk4ht mzlatex test.tex xhtml,frames
 Also for: mk4ht mzlatex test.tex xhtml,frames,portable

 Document types of output files:
  
 test.xml:   XHTML 1.1 plus MathML 2.0
 test2.xml:  XHTML 1.0 Transitional
 test3.xml:  XHTML 1.0 Transitional
  
  Expected document types:
  
 test.html and test.xml:   XHTML 1.0 Frameset
 all the other files:  XHTML 1.1 plus MathML 2.0
  
 For mzlatex with 'pmathml' no DOCTYPE for the other files since 
 none is produced wihout the 'frames' option.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#349841: tex4ht: image size in open office documents is not correct

2006-01-26 Thread Eitan Gurari

   But generating an open office document results in tiny images inside
   the document. Reading the content.xml file inside the zip file
   (.sxw) shows the following content:
  
  I have not understood your bug report. Could you please clarify the
  following points?
  
  a. What is the actual size of the image that you wish to appear in
  the document?
  
  b. What is the size in pixels of the PNG file produced?
  
  c. What is the scaling of this PNG file that is indicated in the OO
  file?

Kapil,

The request is to include in figure elements the dimension values,
like in 

   draw:image  xlink:href=#Pictures/circle.eps  
   ...
   svg:width=227.62204pt svg:height=227.62688pt /

The problem is that quite often the specified dimensions  provide
distorted pictures in the out.

Dirk,

If you'll provide a miniature complete sample latex file requesting a
figure I'll be able to specifically answer your inquiry.

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#344051: tex4ht: Invalid XML: element li has no attribute value

2005-12-22 Thread Eitan Gurari

That was the default behavior to deal with shortcoming of browsers,
while providing the command line option `li-' to request proper xhtml
outcome. I modified the configurations in the bugfixes distribution to
offer proper xhtml code in the default setting. -eitan



  \documentclass{article}
  
  \begin{document}
  \begin{enumerate}
  \item\label{item:1} First item.
  \item\label{item:2} Second and last item.
  \end{enumerate}
  \end{document}
  
  I compile it with:
  
  mk4ht xhmlatex test.tex

  test.html:18: element li: validity error : No declaration for 
  attribute value of element li
  a
  ^


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#344049: tex4ht: Command fails: mk4ht xhlatex file.tex

2005-12-22 Thread Eitan Gurari



  $ mk4ht xhlatex file.tex
  mk4ht (2005-09-23-22:09)
  improper command: xhlatex
   option1:  mk4ht #1 #2 #3 #4 #5


  + xh, xhlatex, latex,  xhtml,  -cunihtf, -cvalidate,
  + xh, xhtex,   tex,xhtml,  -cunihtf, -cvalidate,
  + xh, xhtexi,  texi,   xhtml,  -cunihtf, -cvalidate,
  + xh, xhcontext,texexec, xhtml,  -cunihtf, -cvalidate,

Without `-cunihtf':

  xh, xhlatex, latex,  xhtml, , -cvalidate,
  xh, xhtex,   tex,xhtml, , -cvalidate,
  xh, xhtexi,  texi,   xhtml, , -cvalidate,
  xh, xhcontext,texexec, xhtml, , -cvalidate,

Fixed. -eitan





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#320968: tex4ht: tex4ht produces lonely /p tags.

2005-11-22 Thread Eitan Gurari


Tobias, Any chance you can provide miniature sample latex files
demostarting the problems. -eitan
   
   See attachment.
   
   Tobias
  
  As suggested by Eitan could you please confirm that following
  line in your input:
  
   \Configure{BODY}{\empty}{\empty}
  
  1. Is essential to your file in some way.
  
  2. Removal of this line fixes the problem.

I believe the problem got solved on August 4. -eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#320933: Invalid OpenOffice.org -file and invalid a with ring in HTML

2005-11-22 Thread Eitan Gurari



  http://people.cc.jyu.fi/~juhtolv/tmp/bugreports/tex4ht/01/
  
  Go there and download dirs 01 and 02. Then go to each of them and try to run
  make with all those tex4ht*-targets. In directory 01 it stucks like this:

  ! Missing $ inserted.
  inserted text 
  $
  l.120   \citepbooks{stalstrom:1997}

I modified the bug fixes distribution to handle the reported problem.

Also note that the tex4ht installation is a little outdated (from
March). 

  Argh! Whole tex4ht is fscking b0rken right now.

Frustration ;-) It is not fun to spend 10 hours trying to understand a
report about a minor bug that takes just a few minutes to fix.

I'll appreciate additional bug reports, but please with MINIMAL
MINIATURE sample files demonstrating the problem(s).

-eitan















-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#340296: Do not embed images anymore

2005-11-22 Thread Eitan Gurari



  Here is as simple example as possible:
  
  http://people.cc.jyu.fi/~juhtolv/tmp/bugreports/tex4ht/02/
  
  Run these make -commands:
  
  make ps
  make pdf
  
  make html
  make splitpagethree
  
  When running last two command, tex4ht do not handle image embedding at
  all.

Try a more recent tex4ht installation. I got the following outcome.

http://www.cse.ohio-state.edu/~gurari/temp/sosl70c.html

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#338021: tex4ht: oolatex and similar should be linked from path

2005-11-07 Thread Eitan Gurari

There already are numerous htlatex-like commands and many more can be
justified.  To avoid flooding the bin directory with those commands an
indirect approach is offered for invoking the commands through a mk4ht
instruction.  For instance,

 mk4ht oolatex ...
 mk4ht mzlatex ...
 mk4ht xhlatex ...

See also

   http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn3.html

-eitan

  Package: tex4ht
  Version: 20050402.1817-1
  Severity: minor
  
  The tex4ht package puts specialized binaries, e.g., oolatex, in 
  /usr/share/tex4ht and does not link all of them into normal paths. For 
  example, htlatex is linked to /usr/bin/htlatex, but oolatex is not. Users
  must therefore type the full path (/usr/share/tex4ht/oolatex) to run it.
  Ideally it should be insalled in /usr/bin or symbolically linked from there.
  
  -- System Information:
  Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing')
  Architecture: i386 (i686)
  Shell:  /bin/sh linked to /bin/bash
  Kernel: Linux 2.6.12
  Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
  
  Versions of packages tex4ht depends on:
  ii  libc6 2.3.5-6GNU C Library: Shared libraries 
  an
  ii  libkpathsea3  2.1-1  path search library for teTeX 
  (run
  ii  tetex-bin 2.0.2-31   The teTeX binary files
  
  Versions of packages tex4ht recommends:
  pn  dvipngnone (no description available)
  
  -- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#320968: tex4ht: tex4ht produces lonely /p tags.

2005-08-04 Thread Eitan Gurari


I modified the bug fixes distribution to handle the exhibited
problem.  I wonder, however, what the objective of the configuration

   \Connfigure{BODY}{\empty}{\empty} 

It causes problems in the output. -eitan


  \documentclass{article}
  \usepackage[xhtml,3,index=2]{tex4ht}
   \usepackage{makeidx}
  
  %\title{Anwendungsbezogene Algebra}
  %\author{obias Schlemmer}
  \raggedbottom
  \makeindex
  \Configure{BODY}{\empty}{\empty}
  \begin{document}%\show\maketitle
  %\maketitle
  \tableofcontents
  %\listoffigures
  %\listoftables
  \section{Itroduction}
  \section{chapter 1}
  \index{a}\index{b}\index{c}
  \printindex
  \end{document}


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#320969: tex4ht breaks accessibility guidelines

2005-08-02 Thread Eitan Gurari

Tobias, I agree that there is much to be done regarding issues of
accessibility.  Such issues are of great concern for me, and I'm
working on developing technologies to deal with them.  It will take
some time before the new features will be incorporated into
tex4ht. -eitan


  The eccessive formatting using tables violates accessibility guidelines.
  Much (e.g. formula numbers) can could be done better with floats. This
  needs some extra programming effort, but it should be possible to do it
  in a better way using multiple passing of environments or cross
  referencing technologies.
  
  At least a summary attribute can be added to all the formatting tables.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#320933: Invalid OpenOffice.org -file and invalid a with ring in HTML

2005-08-02 Thread Eitan Gurari

Juhapekka, Any chance a miniature sample latex file can be provided
which demonstrates the problem. Unfortunately, I can't afford the time
to isolate problems from files which are large in size and rely on
many imported style files. -eitan

  Package: tex4ht
  Version: 20050402.1817-1
  Severity: normal
  
  
  All relevant files are here:
  
  http://people.cc.jyu.fi/~juhtolv/tmp/bugreports/tex4ht/01/
  
  First try to open that file sosl70c.sxw with OpenOffice.org. It causes
  error-dialog as seen in that screenshot tex4ht.OOo.01.png . It is
  something like this in English:
  
  Read error. In file's subdocument content.xml place 232,66 (line,column)
  formatting error was seen.
  
  That file was created with this command:
  
  make tex4ht-ooo
  
  Then see this URL:
  
  http://people.cc.jyu.fi/~juhtolv/tmp/bugreports/tex4ht/01/gradu-20050802/html.tex4ht.split1.dir/sosl70cpa3.html#x15-320007.6
  
  This is wrong:
  
  (St aa lström, 1997)
  
  It should be:
  
  (Stålström, 1997)
  
  Here is corresponding bibtex-entry from sosl70c.bib:
  
  @Book{stalstrom:1997,
  author =   {St{\aa}lstr{\o}m, Olli},
  title ={Homoseksuaalisuuden sairausleiman loppu},
  publisher ={Gaudeamus},
  year = 1997,
  address =  {Tampere}
  }
  
  
  Other Scandinavian chars (Ä, Ö, ä and ö) are right, though. That file
  was created with this command:
  
  make tex4ht-splitpageone
  
  My Master's Thesis needs many packages. Here is information about getting
  them:
  
  Everything else is in teTeX, except these:
  
  cmap *
  cm-super
  epigraph
  hfbright
  moresize
  multibib * (Has bibtexall-script)
  totpages *
  verse
  
  Those marked with * are in teTeX 3.0 (not yet released).
  
  This is loaded in that source code:
  
  eulervm
  
  But it is really not used, because I haven't written math to my Master's
  Thesis.
  
  Here is information about installing LaTeX-packages:
  
  http://www.tex.ac.uk/faq
  http://faq.tug.org/  (Easily remembered redirection)
  
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=wherefiles
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instt1font
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds
  
  
  
  -- System Information:
  Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (100, 'unstable')
  Architecture: i386 (i686)
  Kernel: Linux 2.6.12-1-686
  Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
  
  Versions of packages tex4ht depends on:
  ii  libc6   2.3.2.ds1-22 GNU C Library: Shared libraries 
  an
  ii  libkpathsea32.0.2-30 path search library for teTeX 
  (run
  ii  tetex-bin   2.0.2-30 The teTeX binary files
  
  -- no debconf information
  
  -- 
  Juhapekka naula Tolvanen * http colon slash slash iki dot fi slash juhtolv
  Katkeemaan ei sitä mitenkään saa. Turhempaa ei oo olemassakaan. Huomaa vaan
  kun joku sanoo jotain sellaista, mitä kuulla haluaa. Ei haittaa onko edes
  tottakaan. Oikeuttaa kalleintansa tuhlaamaan.  Apulanta
  



Bug#311523: tex4ht: MathML output: \middle unsupported

2005-06-01 Thread Eitan Gurari

 The primitive \middle of eTeX seems to be unsupported for MathML 
 output. 
 
I modified the mathml configurations as suggested, within a separate 
segment dedicated to etex.  Thanks, -eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307647: tex4ht: unicode used when it is not needed

2005-06-01 Thread Eitan Gurari

  tex4ht makes use of unicode letter when this is not needed...

In its default configuration, TeX4ht tries to address a middle road
with the objective to satisfy large assortment of users, uses, and
tools.  It is difficult to argue a proper way of behavior that will be
acceptable to all.  On the other hand, tex4ht is highly configurable
and variations to the default settings are quite often easy to
achieve.

 3. It *is* possible for you to define an alternate mechanism to avoid
ligatures---create your own htf files which skip the ligatures.

Under the current font schema introduced half a year ago, it is
trivial to adjust tex4ht to ignore ligatures.  All it takes is just
adding the following lines into the unicode.4hf file of the character
encoding in use.

'#xFB01;' ''  'fi'  '' 
'#xFB02;' ''  'fl'  '' 
'#xFB00;' ''  'ff'  '' 
'#xFB03;' ''  'ffi' '' 
'#xFB04;' ''  'ffl' '' 

These entries are currently included in the default setting for the
iso-8859-1 encoding due to font problems at users' browsers.

-eitan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307647: tex4ht: unicode used when it is not needed

2005-05-08 Thread Eitan Gurari


I modified the bugfixes distribution to provide reduced usage of
unicode values in iso-8859-1 output. The requests are to be made
through commands similar to

   htlatex file  iso8859/1/charset/less/!

or by modifying the charset paths in tex4ht.env accordingly.
Currently the only cases addressed are the ligatures 'ff' and 'fi' and
a few non-ligature values.  Additional cases will be addressed in
response to bug reports.

-eitan

  tex4ht makes use of unicode letter when this is not needed. This happens when
  the latex code contains the sequence ff or fi and maybe other sequences. 
  For
  example, here is a latex code and the html code generated by ht4tex and 
  htlatex. Note how
  the sequence fi was translated to #xFB01;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307647: tex4ht: unicode used when it is not needed

2005-05-06 Thread Eitan Gurari

Kapil,

I agree the ligatures shouldn't be represented by bitmaps.  To deal
just with those cases a nolig file can be a copy of

ht-fonts/iso8859/1/charset/unicode.4hf

stored at 

ht-fonts/iso8859/1/charset/nolig/unicode.4hf

augmented with entries similar to

'#xFB01;' ''  'fi' ''
'#xFB02;' ''  'fl' '' 

For such a case, a compilation can be requested with a comamnd similar
to

htlatex file  iso8859/1/charset/nolig/!

or the tex4ht.env file should have its charset directory path modified
accordingly.

TeX doesn't see the htf fonts--only the postprocessor tex4ht.s deals
with them.  The tex4ht system however requires much resources from
tex.  The tex system I run provides the following resources.

 17537 strings out of 61437 
 369958 string characters out of 4947194 
 2144172 words of memory out of 801 
 20492 multiletter control sequences out of 1+65535 
 8669 words of font info for 31 fonts, out of 100 for 1000 
 14 hyphenation exceptions out of 1000 
 36i,8n,28p,231b,2972s stack positions out of 15000i,4000n,6000p,20b,4s 

-eitan


  I wasn't thinking of making bitmap fonts for the ligatures. I
  understood the requirement as being roughly why not use ascii text
  in places where ascii text could suffice for conveying the content.
  
  So I was thinking of just using 'ff' , 'fi' and so on in place
  of '#xFB00;' and so on in a font file heirarchy called nolig. This
  directory heirarchy would break ligatures for all the latin
  characters.
  
  It may also be possible to ask TeX to avoid ligatures during its run.
  
  Another possibility is to check whether (X)HTML allows for ALT tags
  or some CSS statement which permits font/glyph substitution.

  P.S. While trying to create the font files using the source I noticed
  that one needs the environment variable extra_mem_top to be set to
  about 10 or so in order for TeX to run successfully with the htf
  source files. Is this how you run it?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307647: tex4ht: unicode used when it is not needed

2005-05-05 Thread Eitan Gurari


Kapil,

Some background information regarding the problem.

In the `old days', tex4ht provided for a given (la)tex font different
htf fonts addressing different character sets.  For instance, the
(la)tex cmr family of fonts had htf fonts under the unicode and
iso-8859-1 branches.  In the iso branch quite a few characters got
bitmap representations due to lack of native support in the iso
character set.

About half a year ago I started deleting the non-unicode htf fonts,
and provide instead unicode.4hf translation files.  When tex4ht.c
fails to find a htf font for a character set it internally creates
such a font from the unicode version using the appropriate unicode.4hf
mapping. For instance, the iso-8859-1 version of cmr.htf is created
from the unicode version of cmr.htf through the mapping provided in
the iso-8859-1 version of unicode.4hf.

The unicode.4hf mapping currently doesn't allow creation of bitmap
fonts. For that to happen the  tex4ht.c  code needs to be modified to
provide enhanced support for unicode.4hf files.

-eitan

  Eitan may soon provide the possibility of latin fonts as an option
  thereby causing this problem to disappear. I am trying my hand at a
  solution as well.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307647: tex4ht: unicode used when it is not needed

2005-05-04 Thread Eitan Gurari

Unfortunately, too many people complain about this and other similar
lack of font support problems by browsers for unicode symbols.  I'll
try to `fix' the problem the coming weekend.  -eitan

   tex4ht makes use of unicode letter when this is not needed. This happens 
   when
   the latex code contains the sequence ff or fi and maybe other 
   sequences. For
   example, here is a latex code and the html code generated by ht4tex and 
   htlatex. Note how
   the sequence fi was translated to #xFB01;
  
  Could you please tell me why you think this is a bug? Please keep the
  following in mind.
  
  1. TeX4HT tries as much as possible to be *like* TeX except that it
 outputs hypertext.
  
  2. TeX uses ligatures whenever it encounters ff, fi, fl and so on.
  
  3. It *is* possible for you to define an alternate mechanism to avoid
 ligatures---create your own htf files which skip the ligatures.
  
  Thanks and best regards,
  
  Kapil.
  --
  
  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]