Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-19 Thread Karl Berry
it should be possible to remove the 2^16 page limit in tex4ht. Sure, most likely it is possible. And if you want to rearrange the logic in tex4ht-c.tex / tex4ht.c so it doesn't use the stated postamble value, patches are welcome :). As I said, it's just not something I think is crucial enough

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-18 Thread William F Hammond
Karl Berry wrote: ... > \count255=0 > \loop\ifnum\count255 < 65600 > \advance\count255 by 1 > x\vfil\eject > \repeat > \end > ... Thanks, Karl! I put this code in karlBerry65600pp.tex and called TeX. Then: dv2dt karlBerry65600pp.dvi > karlBerry65600pp.dtx grep '^bop' karlBerry65600p

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-18 Thread Karl Berry
How does dvitype know the actual number of pages? dvitype reads the entire dvi file page by page, merely storing away the total_pages value from the postamble so it can report any discrepancy, not using it to actually parse the dvi file. In theory it might be possible to change the tex4ht and

[tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-18 Thread Karl Berry
Follow-up Comment #3, bug #618 (project tex4ht): For the record: 1) dvitype reads the entire dvi file page by page, merely storing away the total_pages value from the postamble so it can report any discrepancy, not using it to actually parse the dvi file. In theory it might be possible to change

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-17 Thread William F Hammond
Hi Karl! You write: Hi Nasser - it turns out the problem is simple: DVI format only supports 65,536 pages -- the postamble item that reports the total number of pages is two bytes (t[2] as shown on for example, page 12 of dvitype.pdf). How does dvitype know the actual number of pages? I've neve

[tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-17 Thread Karl Berry
Update of bug #618 (project tex4ht): Status:None => Wont Fix Open/Closed:Open => Closed ___ Follow-up Comment #2: As I wrote at the end

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-17 Thread Karl Berry
Hi Nasser - it turns out the problem is simple: DVI format only supports 65,536 pages -- the postamble item that reports the total number of pages is two bytes (t[2] as shown on for example, page 12 of dvitype.pdf). Your document is larger than that, namely 74193 pages. That's why tex4ht (the bina

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-15 Thread Nasser M. Abbasi
On 12/15/2023 6:21 AM, CV Radhakrishnan wrote: On 12/14/23 20:32, Nasser M. Abbasi wrote: [...] The above build.sh assumes you are using TL 2023, if not please change the path shown. Yes, I have TL 2023. After you start ./build.sh it will take about 12-16 hrs or so depending on the speed a

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-15 Thread CV Radhakrishnan
On 12/14/23 20:32, Nasser M. Abbasi wrote: [...] The above build.sh assumes you are using TL 2023, if not please change the path shown. Yes, I have TL 2023. After you start ./build.sh it will take about 12-16 hrs or so depending on the speed and memory of your PC. This is the biggest prob

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-15 Thread Michal Hoftich
Hi Karl, > > The main thing I need to even make a start at debugging the binary is > the exact invocation of the tex4ht executable (and t4ht, if it makes > that far). > I think it is tex4ht -utf8 -cunihtf Best Michal

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-14 Thread Nasser M. Abbasi
On 12/14/2023 5:09 PM, Karl Berry wrote: and see if they can reproduce these errors, Thanks for all this. The main thing I need to even make a start at debugging the binary is the exact invocation of the tex4ht executable (and t4ht, if it makes that far). I think/hope make4ht will output

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-14 Thread Karl Berry
and see if they can reproduce these errors, Thanks for all this. The main thing I need to even make a start at debugging the binary is the exact invocation of the tex4ht executable (and t4ht, if it makes that far). I think/hope make4ht will output that with -a debug, but I admit I'm not sur

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-14 Thread Nasser M. Abbasi
In case someone would like to try compiling this in tex4ht, and see if they can reproduce these errors, here are the instructions: The errors you should see at the end are these: The following ZIP file contains the folder with all

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Nasser M. Abbasi
On 12/13/2023 4:10 PM, Karl Berry wrote: Hi Karl, Nasser's original DVI file is included in the zip file, so it is possible to execute tex4ht on it. It fails silently, it looks like some \special instruction causes immediate stop. Please point me to the zip. (No promises. :) --tha

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Michal Hoftich
On Wed, Dec 13, 2023 at 11:10 PM Karl Berry wrote: > > Hi Karl, Nasser's original DVI file is included in the zip file, so it > is possible to execute tex4ht on it. It fails silently, it looks like > some \special instruction causes immediate stop. > > Please point me to the zip. (No p

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Karl Berry
Hi Karl, Nasser's original DVI file is included in the zip file, so it is possible to execute tex4ht on it. It fails silently, it looks like some \special instruction causes immediate stop. Please point me to the zip. (No promises. :) --thanks, karl.

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Michal Hoftich
On Wed, Dec 13, 2023 at 10:46 PM Karl Berry wrote: > > Nasser/Michal - does one of the tex4ht binaries actually crash in > processing your giant document? Or does it just fail silently somewhere > in the middle? > Hi Karl, Nasser's original DVI file is included in the zip file, so it is possible

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Karl Berry
Nasser/Michal - does one of the tex4ht binaries actually crash in processing your giant document? Or does it just fail silently somewhere in the middle? I can probably debug a crash. Silent failures are a lot harder. --best, karl.

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Michal Hoftich
> > No problem Michal, thanks for trying. > > I ended up splitting that one large file into 4 smaller > files. i.e. made it 4 books instead of one book. Each builds > on its own, and in its own separate folder. > I think this is a good idea. With larger files, everything is more complicated, you r

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-13 Thread Nasser M. Abbasi
On 12/12/2023 8:45 AM, Michal Hoftich wrote: Follow-up Comment #1, bug #618 (project tex4ht): It seems that something causes tex4ht command to stop processing your DVI file abruptly. Maybe some wrong \special command. There are no errors in the log file. It seems that LaTeX compiled the whole fi

[tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-12 Thread Michal Hoftich
Follow-up Comment #1, bug #618 (project tex4ht): It seems that something causes tex4ht command to stop processing your DVI file abruptly. Maybe some wrong \special command. There are no errors in the log file. It seems that LaTeX compiled the whole file. The problem is with the DVI file. But I c

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-11 Thread Nasser M. Abbasi
On 12/11/2023 9:06 PM, William F Hammond wrote: Hello Nasser, You don't give us much to go on. But it does provoke my curiosity. Sorry, but I did send Michal detailed information on this. I just added bug for tracking and did not think anyone else will be interested in all the boring details

Re: [tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-11 Thread William F Hammond
Hello Nasser, You don't give us much to go on. But it does provoke my curiosity. I assume that you are able to build the 57,000 page pdf from the tex source that you want to process with tex4ht. Is html output the final tex4ht target? I'm assuming it is. You say: [INFO]make4ht-lib: parse

[tex4ht] [bug #618] Incomplete XML Document, domfilter error, truncated build on large file.

2023-12-11 Thread Nasser M. Abbasi
URL: Summary: Incomplete XML Document, domfilter error, truncated build on large file. Project: tex4ht Submitted by: nma123 Submitted on: Tue Dec 12 01:04:12 2023 Category: None