<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT size=2 face=Arial><STRONG>Introduction and 
Background</STRONG></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>In an OpenSuSE-11.1, Linux operating system with 
the primary language set as English and the secondary language set&nbsp;as 
"Simplified Chinese"&nbsp;and using the K Desktop Environment (KDE) 3.5.10, I 
can input simplified Chinese characters&nbsp;into a document in the text editor 
Kate using the AR PL Songtil GB font and the Small Common Input Method (SCIM) 
1.4.7 with&nbsp;Smart&nbsp;Pinyin set for inputting simplified Chinese 
characters.&nbsp; In this way I could&nbsp;input a set of LaTeX commands 
and&nbsp;some text containing simplified Chinese characters&nbsp;in a file of 
the form MyFile.tex file.&nbsp; &nbsp;I also have Chinese/Japanese/Korean (CJK) 
1.4.7 for LaTeX 2e, including various related CJK software packages, 
installed.&nbsp; That permits the command of the form "latex MyFile.tex" to be 
executed.&nbsp; Also it permits a command of the form 
"latex2html.............MyFile.tex" to be executed using the previously&nbsp; 
installed program LaTeX2html 1.70 (a year-2002 version).&nbsp; Some of the 
relevant commands in such a .tex file could, for example, be similar 
to:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>\documentclass{article}</FONT></DIV>
<DIV><FONT size=2 face=Arial>\usepackage{CJKutf8}</FONT></DIV>
<DIV><FONT size=2 face=Arial>\usepackage{pinyin}</FONT></DIV>
<DIV><FONT size=2 face=Arial>..</FONT></DIV>
<DIV><FONT size=2 face=Arial>\begin{document}</FONT></DIV>
<DIV><FONT size=2 face=Arial>\begin{CJK}{UTF8}{gbsn}</FONT></DIV>
<DIV><FONT size=2 face=Arial>....some simplified Chinese characters 
here.....</FONT></DIV>
<DIV><FONT size=2 face=Arial>....some pinyin romanizations (Chinese 
pronunciation system) here, for example \Ni3 \hao3 \ma5?</FONT></DIV>
<DIV><FONT size=2 face=Arial>\end{CJK}</FONT></DIV>
<DIV><FONT size=2 face=Arial>\end{document}</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>In a successful case a resulting&nbsp;output file 
of the form MyFile.html could then be opened&nbsp;in the Konqueror-3.5.10 Web 
browser&nbsp;to display the&nbsp;simplified Chinese characters and pinyin 
romanizations input into the original .tex file.&nbsp; The default in LaTeX2HTML 
is apparently to produce Portable Network Graphics (.png) images.&nbsp; Without 
using Chinese characters such images may contain mathematical symbols, often 
with just one mathematical expression,&nbsp;symbol, or inline-used Greek letter 
in each .png file.&nbsp; On the other hand, when using simplified Chinese 
characters, from my experience it appears that one .png file is produced for 
each segment in the .tex file which begins with \begin{CJK}{UTF8}{gbsn} and ends 
with \end{CJK}.&nbsp; That one, .png file apparently contains&nbsp;<EM>all</EM> 
of the possibly numerous mathematical symbols and simplified Chinese 
characters&nbsp;generated from that segment of the .tex file.&nbsp;&nbsp;The 
program&nbsp;LaTeX2HTML 1.70 apparently treated the entire CJK segment in the 
.tex file as if it were a single, "mathematical" 
expression.&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><STRONG>The Apparent Byte Size Limit for a Portable 
Network Graphics (.png) File</STRONG></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>However, in the file of the form MyFile.tex, 
apparently when the set of LaTeX commands and text between the commands 
\begin{CJK}{UTF8}{gbsn} and \end{CJK} was too extensive, one of the&nbsp;ensuing 
messages after&nbsp;entering the command of the form "latex2html........ 
MyFile.tex" was "Bad file descriptor" in attempting to generate the .png 
image.&nbsp; That .png image was listed in the so-generated folder with a 
corresponding name of the form MyFile; but it&nbsp;had a size of 0 bytes.--So, 
of course, it either wasn't displayed or else a blank for it was displayed when 
the file of the form MyFile.html was opened in the Konqueror Web browser.&nbsp; 
</FONT><FONT size=2 face=Arial>From experience the limiting size of the 
so-generated, yet displayable, not-empty, .png file&nbsp;had to&nbsp;have been 
somewhat larger than 60 kilobytes, based on the largest .png file size I recall 
seeing in this context without the file-size problem.&nbsp; Such a large size is 
in stark contrast to 4.6 kilobytes, the largest size I saw for a .png image of a 
mathematical expression generated by LaTeX2HTML 1.70 from a .tex file containing 
mathematical expressions and possibly one or more Greek letters, but no 
simplified Chinese characters.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><STRONG>A&nbsp;"Workaround" 
Solution</STRONG></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>By breaking the single, 
long,&nbsp;\begin{CJK}{UTF8}{gbsn}, \end{CJK} segment into several, shorter, 
such segments, such that no LaTeX2HTML-generated .png file had a size larger 
than the apparent byte limit of somewhat greater than 60 kilobytes, the .html 
file produced by LaTeX2HTML could contain the designed, simplified Chinese 
characters and mathematical content.&nbsp; Then each {CJK} segment of the .tex 
file corresponded to one .png file.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>The above&nbsp;solution is much preferred over the 
alternative solution of breaking the long, say MyFile.tex file into files of the 
form MyFileA.tex, MyFileB.tex, MyFileC.tex, etc.; executing latex2hmtl commands 
of the forms "latex2html......MyFileA.tex",&nbsp; 
"latex2html......MyFileB.tex",&nbsp; "latex2html......MyFileC.tex", etc., 
so-producing output files of the respective forms&nbsp;MyFileA.html, 
MyFileB.html, MyFileC.html,&nbsp;etc.; and finally appending each of those files 
in the order of&nbsp;MyFileA.html, MyFileB.html, MyFileC.html,&nbsp;etc., to 
make one long, .html document.--The undesirable features of this alternative 
solution are that,&nbsp;say equation number 1 and the image file name img1.png 
could&nbsp;conceivably appear&nbsp;for each of the files of the 
forms&nbsp;MyFileA.html, MyFileB.html, MyFileC.html,&nbsp;etc.&nbsp; So&nbsp;if 
all of the&nbsp;multiple, img1.png files were placed in the same 
directory,&nbsp;there would likely be mistakes or problems when img1.png would 
be referenced by one of the .html files.&nbsp; No, for one project each of the 
equations and&nbsp;.png files should have its own, unique number.&nbsp; And that 
can be arranged automatically by LaTeX2HTML by using the first solution in which 
the&nbsp;long,&nbsp;CJK segment in the original .tex file is broken into several 
CJK segments, as&nbsp;discussed in the first paragraph of this 
section.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><STRONG>Unknown Origin of the Apparent .png-File 
Size Limitation</STRONG></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Since the origin in the computer code of the 
apparent, .png, file-size limitation is unknown to me, even whether it is within 
the CJK for LaTeX or LaTeX2HTML code, I&nbsp;hope I will able to&nbsp;send this 
e-mail letter to both the LaTeX2HTML and CJK users groups; however, so far 
e-mail letters sent to two e-mail addresses posted for joining the CJK users 
group have been returned to me as undeliverable.&nbsp; Please advise me on where 
to make a change&nbsp;in one of the computer codes to accommodate a .png file 
size&nbsp;larger than the current apparent limit, which appears to be somewhat 
over 60 kilobytes.&nbsp; Thanks in advance for help with where to make a change 
in some computer code to overcome this apparent limitation.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Pat&nbsp; </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV></BODY></HTML>