texlive[54885] Build/source/texk/web2c/ctiedir: [CTIE] Make

commits+ascherer at tug.org commits+ascherer at tug.org
Sun Apr 26 13:51:04 CEST 2020


Revision: 54885
          http://tug.org/svn/texlive?view=revision&revision=54885
Author:   ascherer
Date:     2020-04-26 13:51:04 +0200 (Sun, 26 Apr 2020)
Log Message:
-----------
[CTIE] Make ctie/ctie-k TeXable.

Preserve section numbers of stand-alone ctie.w by moving two new
sections with KPathSea material to section 70. System-dependent changes.

Improve formatting of item list.

Use $TEXMFDOTDIR in description, as in CWEB's comm-w2c.ch.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/ctiedir/ChangeLog
    trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch

Modified: trunk/Build/source/texk/web2c/ctiedir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ctiedir/ChangeLog	2020-04-26 11:02:57 UTC (rev 54884)
+++ trunk/Build/source/texk/web2c/ctiedir/ChangeLog	2020-04-26 11:51:04 UTC (rev 54885)
@@ -2,6 +2,7 @@
 
 	* ctie-k.ch: Fix several typos in ctie.w.
 	Use British English also in the changefile.
+	Make the result TeXable, preserving section numbers.
 
 2014-06-18  Peter Breitenlohner  <peb at mppmu.mpg.de>
 

Modified: trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch
===================================================================
--- trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch	2020-04-26 11:02:57 UTC (rev 54884)
+++ trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch	2020-04-26 11:51:04 UTC (rev 54885)
@@ -39,8 +39,7 @@
     @<Initialise parameters@>;
 @z
 
-These are defined by kpathsea; we replace this by the path-searching
-initialisation code taken almost verbatim from comm-w2c.ch.
+boolean and string are defined by kpathsea.
 @x l.116
 @ We include the additional types |boolean| and |string|.  \.{CTIE}
 replaces the complex \.{TIE} character set handling (based on that of
@@ -54,44 +53,17 @@
 typedef int boolean;
 typedef char* string;
 @y
-@ The \.{ctie} program from the original \.{CTIE} package uses the
-compile-time default directory or the value of the environment
-variable \.{CWEBINPUTS} as an alternative place to be searched for
-files, if they could not be found in the current directory.
-
-This version uses the \Kpathsea/ mechanism for searching files. 
-The directories to be searched for come from three sources:
-
- (a)~a user-set environment variable \.{CWEBINPUTS}
-    (overridden by \.{CWEBINPUTS\_ctie});\par
- (b)~a line in \Kpathsea/ configuration file \.{texmf.cnf},\hfil\break
-    e.g. \.{CWEBINPUTS=.:$TEXMF/texmf/cweb//}
-    or \.{CWEBINPUTS.ctie=.:$TEXMF/texmf/cweb//};\hangindent=2\parindent\par
- (c)~compile-time default directories \.{.:$TEXMF/texmf/cweb//}
-    (specified in \.{texmf.in}).
-
- at d kpse_find_cweb(name) kpse_find_file(name, kpse_cweb_format, true)
-
-@ The simple file searching is replaced by the `path searching'
-mechanism that the \Kpathsea/ library provides.
-
-We set |kpse_program_name| to |"ctie"|.  This means if the variable
-|CWEBINPUTS.ctie| is present in \.{texmf.cnf} (or |CWEBINPUTS_ctie| in
-the environment) its value will be used as the search path for
-filenames.  This allows different flavors of \.{CTIE} to have
-different search paths.
-
-@<Set up |PROGNAME| feature and initialise the search path mechanism@>=
-kpse_set_program_name(argv[0], "ctie");
-
 @ We include the additional types |boolean| and |string|.  \.{CTIE}
 replaces the complex \.{TIE} character set handling (based on that of
 the original \.{WEB} system) with the standard \.{CWEB} behaviour, and
 so uses the |char| type for input and output.
 
-The |kpathsea| library (version 3.4.5) defines the |true|, |false|,
-|boolean| and |string| types in \.{kpathsea/types.h}, so we do not
-actually need to define them here.
+The |kpathsea| library (version 3.4.5 and higher) defines the |true|, |false|,
+|boolean| and |string| types in \.{kpathsea/types.h}, so we do not actually
+need to define them here.
+
+ at s boolean int
+ at s string int
 @z
 
 @x l.129 The kpathsea include files find the right header file for these.
@@ -528,6 +500,9 @@
 }
 @z
 
+We use the path-searching initialisation code
+taken almost verbatim from comm-w2c.ch.
+
 @x l.1267
 @* System-dependent changes.
 This section should be replaced, if necessary, by
@@ -542,5 +517,35 @@
 @^system dependencies@>
 @y
 @* System-dependent changes.
-There are no additional changes.
+The \.{ctie} program from the original \.{CTIE} package uses the
+compile-time default directory or the value of the environment
+variable \.{CWEBINPUTS} as an alternative place to be searched for
+files, if they could not be found in the current directory.
+
+This version uses the \Kpathsea/ mechanism for searching files.
+The directories to be searched for come from three sources:
+\smallskip
+{\parindent5em
+\item{(a)} a user-set environment variable \.{CWEBINPUTS}
+    (overridden by \.{CWEBINPUTS\_ctie});
+\item{(b)} a line in \Kpathsea/ configuration file \.{texmf.cnf},\hfil\break
+    e.g., \.{CWEBINPUTS=\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//}\hfil\break
+    or \.{CWEBINPUTS.ctie=\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//};
+\item{(c)} compile-time default directories (specified in
+    \.{texmf.in}),\hfil\break
+    i.e., \.{\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//}.\par}
+
+ at d kpse_find_cweb(name) kpse_find_file(name, kpse_cweb_format, true)
+
+@ The simple file searching is replaced by the `path searching'
+mechanism that the \Kpathsea/ library provides.
+
+We set |kpse_program_name| to |"ctie"|.  This means if the variable
+|CWEBINPUTS.ctie| is present in \.{texmf.cnf} (or |CWEBINPUTS_ctie| in
+the environment) its value will be used as the search path for
+filenames.  This allows different flavors of \.{CTIE} to have
+different search paths.
+
+@<Set up |PROGNAME| feature and initialise the search path mechanism@>=
+kpse_set_program_name(argv[0], "ctie");
 @z



More information about the tex-live-commits mailing list.