Fresh IDE . Check-in [1d5ab4479e]
Not logged in

This repository is a mirror!

The original is located on: https://fresh.flatassembler.net/fossil/repo/fresh
If you want to follow the project, please update your remote-url

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:TeX to HTML tool TTH updated to v4.12
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1d5ab4479ea6a13d2f4f814033b43013f0a5e68a
User & Date: johnfound 2018-12-05 08:57:01
Context
2018-12-05
09:21
Merged with the latest FreshLibDev. check-in: 695640ceff user: johnfound tags: trunk
08:57
TeX to HTML tool TTH updated to v4.12 check-in: 1d5ab4479e user: johnfound tags: trunk
08:34
More generic font family in the help files. check-in: 38462acc17 user: johnfound tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/source/tools/tth.

cannot compute difference between binary files

Changes to doc/source/tools/tth_src/tth.c.

1
2
3
4
5
6
7
8
9
10
11
12
.....
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
.....
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754




















19755
19756
19757
19758
19759
19760
19761
/* TtH TeX to HTML translator.
TtH Version 
"4.10"
 (c) Ian Hutchinson
Wed Sep  6 16:24:32 EDT 2017
*/

#line 3 "lex.yy.c"

#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */
................................................................................
/* TtH flex file to convert plain TeX and LaTeX to HTML.
(c) Ian Hutchinson, 1997-2011.
Released under the terms of the GPL2. See license.txt
This file needs to be turned into a C program using flex
And then compiled into the tth executable using a C compiler.
*/
#line 10 "tth.lex"
#define TTH_VERSION "4.10"
  /*#define TTH_GOLD "gold" no longer a distinction*/  /*sf*/
#define TTH_HEAD "HEAD"  /*sf*/
char tth_DOC[]="\n\
                Version XXXX (c)1997-2017 Ian Hutchinson\n\
            TtH (TeX-to-HTML) translates TeX into HTML.\n\n\
The program is a filter by default: it reads from stdin and writes to stdout.\n\
But a non-switch argument specifies the file[.tex] to translate to file.html.\n\
................................................................................
  *(scrstring+strcspn(scrstring,"|"))= 0 ;

//  fprintf(tth_fdout,"<a \nid=\"%s%s%d%d\"></a>",scratchstring,argchar,sectno,tthindexrefno);
//  fprintf(tth_fdout,"<a \nid=\"%s%s%d\"></a>", scratchstring,argchar,subsectno);
  fprintf(tth_fdout,"<a class=\"a\" id=\"%s\"></a>\n", scratchstring);

  if(tth_indexfile != NULL){

    if( lbook ) {

      if ( appendix )
        sprintf(argchar,"%c",chapno+64);
      else 
        sprintf(argchar,"%d",chapno);

      if (strstr(chscratch,"|see")==NULL) {

      	if(tth_splitfile)	
          fprintf(tth_indexfile, "\\indexentry{%s|href{%s#%s%s%d%d}}{%s%s%d}\n", scrstring,filechar,scratchstring, argchar,sectno,tthindexrefno, argchar,page_compositor,sectno); 
        else 
          fprintf(tth_indexfile,"\\indexentry{%s|href{#%s%s%d%d}}{%s%s%d}\n",scrstring,scratchstring,argchar,sectno,tthindexrefno,argchar,page_compositor,sectno);

//	      fprintf(tth_fdout,"<a \nid=\"%s%s%d%d\"></a>",scratchstring,argchar,sectno,tthindexrefno);
      } else {
        fprintf(tth_indexfile,"\\indexentry{%s}{%s%s%d}\n",chscratch,argchar,page_compositor,sectno);      
      }

    } else {

      if ( appendix ) 
        sprintf(argchar,"%c",sectno+64);
      else 
        sprintf(argchar,"%d",sectno);

      if(strstr(chscratch,"|see")==NULL) {

        if(tth_splitfile) 
          fprintf(tth_indexfile, "\\indexentry{%s|href{%s#%s%s%d%d}}{%s%s%d}\n", scrstring,filechar,scratchstring, argchar,subsectno,tthindexrefno, argchar,page_compositor,subsectno); 
        else 
          fprintf(tth_indexfile, "\\indexentry{%s|href{#%s%s%d%d}}{%s%s%d}\n", scrstring,scratchstring, argchar,subsectno,tthindexrefno, argchar,page_compositor,subsectno);

//        fprintf(tth_fdout,"<a \nid=\"%s%s%d\"></a>", scratchstring,argchar,subsectno);
      } else { /* A |see case */
        fprintf(tth_indexfile, "\\indexentry{%s}{%s%s%d}\n",chscratch, argchar,page_compositor,subsectno);




















      }
    }

    *argchar=0;

  }
  *dupstore=0;


|

|







 







|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
.....
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
.....
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
/* TtH TeX to HTML translator.
TtH Version 
"4.12"
 (c) Ian Hutchinson
Sun Dec 17 17:43:50 EST 2017
*/

#line 3 "lex.yy.c"

#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */
................................................................................
/* TtH flex file to convert plain TeX and LaTeX to HTML.
(c) Ian Hutchinson, 1997-2011.
Released under the terms of the GPL2. See license.txt
This file needs to be turned into a C program using flex
And then compiled into the tth executable using a C compiler.
*/
#line 10 "tth.lex"
#define TTH_VERSION "4.12"
  /*#define TTH_GOLD "gold" no longer a distinction*/  /*sf*/
#define TTH_HEAD "HEAD"  /*sf*/
char tth_DOC[]="\n\
                Version XXXX (c)1997-2017 Ian Hutchinson\n\
            TtH (TeX-to-HTML) translates TeX into HTML.\n\n\
The program is a filter by default: it reads from stdin and writes to stdout.\n\
But a non-switch argument specifies the file[.tex] to translate to file.html.\n\
................................................................................
  *(scrstring+strcspn(scrstring,"|"))= 0 ;

//  fprintf(tth_fdout,"<a \nid=\"%s%s%d%d\"></a>",scratchstring,argchar,sectno,tthindexrefno);
//  fprintf(tth_fdout,"<a \nid=\"%s%s%d\"></a>", scratchstring,argchar,subsectno);
  fprintf(tth_fdout,"<a class=\"a\" id=\"%s\"></a>\n", scratchstring);

  if(tth_indexfile != NULL){
    strcpy(scratchstring,chscratch);
    *(scratchstring+strcspn(scratchstring,"|@"))= 0  ;
  /*Here we should remove spaces and special characters in a version
    of scratchstring to be used as the name. Because (quoting) ID and
    NAME tokens must begin with a letter ([A-Za-z]) and may be
    followed by any number of letters, digits ([0-9]), hyphens ("-"),
    underscores ("_"), colons (":"), and periodsx(".").  This means
    the unallowed characters are: "\n\t_!\"#$%&'()*+,/;<=>?[\\]^`{|}~" */
    /* This version replaced only ! 
    while(strlen(scratchstring)-strcspn(scratchstring,"!"))
    *(scratchstring+strcspn(scratchstring,"!")) = '+';   */
    while(strlen(scratchstring)
	  -strcspn(scratchstring,"\n\t !\"#$%&'()*+,/;<=>?[\\]^`{|}~"))
      *(scratchstring
	+strcspn(scratchstring,"\n\t !\"#$%&'()*+,/;<=>?[\\]^`{|}~")) = '_';
    strcpy(scrstring,chscratch);
    *(scrstring+strcspn(scrstring,"|"))= 0 ; /* remove all number formatting */
    if(lbook){
      if(appendix)sprintf(argchar,"%c",chapno+64);
      else sprintf(argchar,"%d",chapno);
      if(strstr(chscratch,"|see")==NULL){
	if(tth_splitfile)	fprintf(tth_indexfile, /*sf*/
		"\\indexentry{%s|href{%s#%s%s%d%d}}{%s%s%d}\n", /*sf*/
		   scrstring,filechar,scratchstring,/*sf*/
			 argchar,sectno,tthindexrefno,/*sf*/
			 argchar,page_compositor,sectno); else /*sf*/
	fprintf(tth_indexfile,
		     "\\indexentry{%s|href{#%s%s%d%d}}{%s%s%d}\n",
		scrstring,scratchstring,
		argchar,sectno,tthindexrefno,
		argchar,page_compositor,sectno);
	fprintf(tth_fdout,"<a \nid=\"%s%s%d%d\"></a>",
		scratchstring,argchar,sectno,tthindexrefno);
      }else{ /* A |see case */
	fprintf(tth_indexfile,
		"\\indexentry{%s}{%s%s%d}\n",chscratch,
		argchar,page_compositor,sectno);      }
    }else {
      if(appendix)sprintf(argchar,"%c",sectno+64);
      else sprintf(argchar,"%d",sectno);
      if(strstr(chscratch,"|see")==NULL){
	if(tth_splitfile) fprintf(tth_indexfile, /*sf*/
	      "\\indexentry{%s|href{%s#%s%s%d%d}}{%s%s%d}\n", /*sf*/
	       scrstring,filechar,scratchstring, /*sf*/
				  argchar,subsectno,tthindexrefno, /*sf*/
			 argchar,page_compositor,subsectno); else /*sf*/
	   fprintf(tth_indexfile,
		  "\\indexentry{%s|href{#%s%s%d%d}}{%s%s%d}\n",
		  scrstring,scratchstring,
		   argchar,subsectno,tthindexrefno,
		   argchar,page_compositor,subsectno);
	fprintf(tth_fdout,"<a \nid=\"%s%s%d\"></a>"
		,scratchstring,argchar,subsectno);
      }else{ /* A |see case */
	fprintf(tth_indexfile,
		"\\indexentry{%s}{%s%s%d}\n",chscratch,
		argchar,page_compositor,subsectno);
      }
    }

    *argchar=0;

  }
  *dupstore=0;