[tex4ht-commits] [SCM] tex4ht updated: r411 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Mon Jun 11 15:12:18 CEST 2018
Author: michal_h21
Date: 2018-06-11 16:12:17 +0300 (Mon, 11 Jun 2018)
New Revision: 411
Modified:
trunk/lit/ChangeLog
trunk/lit/common.tex
trunk/lit/tex4ht-4ht.tex
trunk/lit/tex4ht-html0.tex
trunk/lit/tex4ht-html32.tex
trunk/lit/tex4ht-html4.tex
trunk/lit/tex4ht-info.tex
trunk/lit/tex4ht-options.tex
trunk/lit/tex4ht-sty.tex
trunk/lit/tex4ht-tei.tex
Log:
Changed \write16 to \writesixteen
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/ChangeLog 2018-06-11 13:12:17 UTC (rev 411)
@@ -1,3 +1,18 @@
+2018-06-11 Michal Hoftich <michal.h21 at gmail.com>
+ * common.tex,
+ * tex4ht-4ht.tex (amsart.4ht, amsbook.4ht, amsproc.4ht, article.4ht,
+ book.4ht, eplain.4ht, glossary.4ht, latex.4ht, mwart.4ht, mwbk.4ht,
+ mwrep.4ht, report.4ht, scrbook.4ht, scrreprt.4ht, showfonts.4ht, th4.4ht),
+ * tex4ht-html0.tex (html0.4ht),
+ * tex4ht-html32.tex (html32.4ht),
+ * tex4ht-html4.tex (html4.4ht, onmouseover.4ht),
+ * tex4ht-info.tex (info4ht.4ht),
+ * tex4ht-options.tex (tex4ht.4ht),
+ * tex4ht-sty.tex (tex4ht.sty),
+ * tex4ht-tei.tex (tei-mml.4ht, tei.4ht): changed \immediate\write16 to
+ \writesixteen
+
+
2018-06-08 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (cleveref.4ht): basic support for Cleveref package.
Modified: trunk/lit/common.tex
===================================================================
--- trunk/lit/common.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/common.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -35,3 +35,9 @@
% #1 is the first year for Eitan. The last year is always 2009. RIP.
\def\CopyYear.#1.{#1-2009}
+
+% command for write to terminal and the log file
+% this version is used in the .4ht files build
+% identical command is defined also in tex4ht-sty.tex,
+% it is used in TeX document compilation
+\def\writesixteen#1{\immediate\write1616{#1}}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-4ht.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -12,10 +12,11 @@
\DrawOff
-\immediate\write16{----------Verify length of lines!!!!------------}
-\immediate\write16{----------Verify length of lines!!!!------------}
-\immediate\write16{----------Verify length of lines!!!!------------}
-\immediate\write16{----------Verify length of lines!!!!------------}
+\def\writesixteen#1{\immediate\write1616{#1}}
+\writesixteen{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
\newif\ifalprotex \alprotexfalse
@@ -225,7 +226,7 @@
\bgroup \catcode`\_=12 \next
}
\def\finishAddFile[#1]#2#3{\egroup
- \immediate\write16{ ==> <#1, #2, #3>}%
+ \writesixteen{ ==> <#1, #2, #3>}%
\csname append:def\endcsname\OutFiles{\OutputCodE\<\if !#1!#3\else #1\fi.4ht\>}%
\csname append:def\endcsname\ConfigFiles{\AddFile{#2}{#3}}%
}
@@ -6091,7 +6092,7 @@
\<latex trace configurations\><<<
\:CheckOption{hooks+} \if:Option
- \def\trc:wrt{\immediate\write16}
+ \def\trc:wrt{\writesixteen}
\else \:CheckOption{hooks} \if:Option
\let\trc:wrt|=\:gobble
\fi\fi
@@ -6105,7 +6106,7 @@
\:CheckOption{hooks++} \if:Option
|<latex.ltx latex edit+ commands|>
\else \:CheckOption{hooks+} \if:Option
- \def\trc:wrt{\immediate\write16}
+ \def\trc:wrt{\writesixteen}
\else \:CheckOption{hooks} \if:Option
\let\trc:wrt|=\:gobble
\fi\fi
@@ -6147,7 +6148,7 @@
\pend:defI\begin{\expandafter
\ifx\csname before:begin##1\endcsname\relax
\expandafter\ifx\csname bfr:begin##1\endcsname\relax
- \immediate\write16{....\string\ConfigureEnv{##1}{}{}{}{}}%
+ \writesixteen{....\string\ConfigureEnv{##1}{}{}{}{}}%
\expandafter\let\csname bfr:begin##1\endcsname=\empty
\fi\fi}
\fi
@@ -10871,7 +10872,7 @@
\expandafter\ifx \csname #1warn:idx\endcsname\relax
\expandafter\global
\expandafter\let \csname #1warn:idx\endcsname|=\def
- \immediate\write16
+ \writesixteen
{---------------------------------------------------------}%
\:warning{If not done so, the index is to be processed by
^^J\space\space tex '\string\def\string\filename
@@ -11416,7 +11417,7 @@
\expandafter\ifx \csname #1warn:glo\endcsname\relax
\expandafter\global
\expandafter\let \csname #1warn:glo\endcsname|=\def
- \immediate\write16
+ \writesixteen
{---------------------------------------------------------}%
\:warning{If not done so, the glossary is to be processed by
^^J\space\space tex '\string\def\string\filename
@@ -30749,7 +30750,7 @@
\def\ShowFontU#1#2{%
\font\font:nm=#2
\openin\in:strm=#1\relax
- \ifeof\in:strm \immediate\write16{.........can't open #1}\else
+ \ifeof\in:strm \writesixteen{.........can't open #1}\else
\read\in:strm to\in:buf\relax
\HAssign\char:n=0 \HCode{<table class="unicodes" border="1"><tr>
<td>char<br\xml:empty>number</td>
@@ -30848,18 +30849,18 @@
\fi
}
\ifx \section\undefined
- \immediate\write16{-----------------------------------------------}
- \immediate\write16{|| This style file provides the command}
- \immediate\write16{|| \noexpand\showfonts {font1} ... {fontN} {}}
- \immediate\write16{|| for exhibiting fonts.}
- \immediate\write16{|| }
- \immediate\write16{|| Example:}
- \immediate\write16{|| \noexpand\documentclass{article}}
- \immediate\write16{|| \noexpand\input showfonts.4ht}
- \immediate\write16{|| \noexpand\begin{document}}
- \immediate\write16{|| \noexpand\showfonts {cmr10}{cmtt10} {}}
- \immediate\write16{|| \noexpand\end{document}}
- \immediate\write16{-----------------------------------------------}
+ \writesixteen{-----------------------------------------------}
+ \writesixteen{|| This style file provides the command}
+ \writesixteen{|| \noexpand\showfonts {font1} ... {fontN} {}}
+ \writesixteen{|| for exhibiting fonts.}
+ \writesixteen{|| }
+ \writesixteen{|| Example:}
+ \writesixteen{|| \noexpand\documentclass{article}}
+ \writesixteen{|| \noexpand\input showfonts.4ht}
+ \writesixteen{|| \noexpand\begin{document}}
+ \writesixteen{|| \noexpand\showfonts {cmr10}{cmtt10} {}}
+ \writesixteen{|| \noexpand\end{document}}
+ \writesixteen{-----------------------------------------------}
\def\next{%
\csname bye\endcsname
\documentclass {article}
@@ -36804,7 +36805,7 @@
>>>
% \def\@text at composite#1#2#3\@text at composite{%
-% \immediate\write16{....\string#1-\string#2...\expandafter
+% \writesixteen{....\string#1-\string#2...\expandafter
% \meaning\csname\string#1-\string#2\endcsname}%
% \expandafter\@text at composite@x
% \csname\string#1-\string#2\endcsname}
@@ -37441,7 +37442,7 @@
\openin15=\HOME/#1
% \ifeof15 \Needs{"ln -s #1 \HOME/#1"}
\ifeof15 \Needs{"cp -f #1 \HOME#1"}
- \immediate\write16{"cd \HOME; ln -s \SOURCE/#1 . ; cd \SOURCE"} \fi
+ \writesixteen{"cd \HOME; ln -s \SOURCE/#1 . ; cd \SOURCE"} \fi
\closein15
\OPO\<#1\>}
Modified: trunk/lit/tex4ht-html0.tex
===================================================================
--- trunk/lit/tex4ht-html0.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-html0.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -61,7 +61,7 @@
\<default cascade style sheets\><<<
{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@
\leavevmode}%
-\immediate\write16{--- file \aa:CssFile\space ---}%
+\writesixteen{--- file \aa:CssFile\space ---}%
\ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
\ht:special{t4ht<\aa:CssFile}%
>>>
@@ -82,7 +82,7 @@
\<cascade style sheets\><<<
\ScriptCommand{\CssFile}{%
- \immediate\write16{--- file \aa:CssFile\space ---}%
+ \writesixteen{--- file \aa:CssFile\space ---}%
\def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
\def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
\def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
Modified: trunk/lit/tex4ht-html32.tex
===================================================================
--- trunk/lit/tex4ht-html32.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-html32.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -344,7 +344,7 @@
\<default cascade style sheets\><<<
{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@
\leavevmode}%
-\immediate\write16{--- file \aa:CssFile\space ---}%
+\writesixteen{--- file \aa:CssFile\space ---}%
\ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
\ht:special{t4ht<\aa:CssFile}%
>>>
@@ -365,7 +365,7 @@
\<cascade style sheets\><<<
\ScriptCommand{\CssFile}{%
- \immediate\write16{--- file \aa:CssFile\space ---}%
+ \writesixteen{--- file \aa:CssFile\space ---}%
\def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
\def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
\def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
@@ -4576,7 +4576,7 @@
\<32,4 exerquiz\><<<
-\immediate\write16{%
+\writesixteen{%
***********************************************************\Hnewline
The `\eq at CA' button fails under Netscape, \Hnewline
due to a code of the following form.\Hnewline
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-html4.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -6972,7 +6972,7 @@
\def<#1>{\bgroup
\expandafter \ifx \csname js #1\endcsname \relax \jselement{#1}\fi
\def<##1>{\TagTrace{\def\x{##1}\def\y####1:->{}%
- \immediate\write16{...\string<\expandafter\y\meaning\x>}}%
+ \writesixteen{...\string<\expandafter\y\meaning\x>}}%
\string<\scan ##1"<>>}%
\NoSpecials{12}{0}{255}\NoSpecials{11}{65}{90}\NoSpecials{11}{97}{122}%
\catcode`\ =10 \catcode`\^^M=10 \catcode`\^^I=10 \catcode`\<=13
@@ -20248,7 +20248,7 @@
>>>
\<32,4 exerquiz\><<<
-\immediate\write16{%
+\writesixteen{%
***********************************************************\Hnewline
The `\eq at CA' button fails under Netscape, \Hnewline
due to a code of the following form.\Hnewline
Modified: trunk/lit/tex4ht-info.tex
===================================================================
--- trunk/lit/tex4ht-info.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-info.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -2939,7 +2939,7 @@
{} {\xdef\foo{width="\the\Gin at req@width"
height="\the\Gin at req@height"}}%
\Picture+[epsfig]{}}
- {\EndPicture\immediate\write16{..... \foo}}
+ {\EndPicture\writesixteen{..... \foo}}
>>>
\section{xy}
Modified: trunk/lit/tex4ht-options.tex
===================================================================
--- trunk/lit/tex4ht-options.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-options.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -64,9 +64,9 @@
\Log:Note{for additional information, use
the command line option `info'}
\fi
-\immediate\write16{::::::::::::::::::::::::::::::::::::::::::}
-\immediate\write16{ TeX4ht info is available in the log file }
-\immediate\write16{::::::::::::::::::::::::::::::::::::::::::}
+\writesixteen{::::::::::::::::::::::::::::::::::::::::::}
+\writesixteen{ TeX4ht info is available in the log file }
+\writesixteen{::::::::::::::::::::::::::::::::::::::::::}
|<redefine Configure|>
|<built-in settings|>
|<user's configuration files|>
Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-sty.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -12,10 +12,10 @@
\DrawOff
-\immediate\write16{----------Verify length of lines!!!!------------}
-\immediate\write16{----------Verify length of lines!!!!------------}
-\immediate\write16{----------Verify length of lines!!!!------------}
-\immediate\write16{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
+\writesixteen{----------Verify length of lines!!!!------------}
\newif\ifalprotex \alprotexfalse
@@ -29,7 +29,7 @@
\ifeof15
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% replacement for TeX4ht %%%%%%%%%%%%%%%%%%
-\immediate\write16{........dvi mode}
+\writesixteen{........dvi mode}
\csname newif\endcsname\ifHtml \Htmlfalse
\def\-#1{\ifx#1-\expandafter\TEMP\else\expandafter#1\fi}
\expandafter\let\csname bye\endcsname=\end
@@ -91,14 +91,14 @@
\closein15
\def\next{%\input DraTex.sty
-\immediate\write16{.................requesting non-html mode}%
+\writesixteen{.................requesting non-html mode}%
\input ProTex.sty
\AlProTex{sty,<<<>>>,|,title,list,[],ClearCode}}
\catcode`\:=12
\else
\closein15
\def\next{%\input DraTex.sty
-\immediate\write16{.................requesting html mode}%
+\writesixteen{.................requesting html mode}%
\input tex4ht.sty
\Preamble{xhtml,th4,family,sections+}
\Configure{@HEAD}{\HCode{<link rev="made"\Hnewline
@@ -174,6 +174,7 @@
\csname expand:after\endcsname{\csname
BeforeTeXIVht\endcsname\let\BeforeTeXIVht|=\UnDef}
\fi
+\def\writesixteen#1{\immediate\write1616{#1}}
|<save cat codes|>
|<ifs for TeX4ht|>
|<check if latex|>
@@ -1355,7 +1356,7 @@
|<trace+ comamnds|>
\def\edit:p#1#2{\let#2|=\empty \:gobble}%
\else \:CheckOption{hooks+} \if:Option
- \def\trc:wrt{\immediate\write16}
+ \def\trc:wrt{\writesixteen}
\else \:CheckOption{hooks} \if:Option
\let\trc:wrt|=\:gobble
\fi\fi
@@ -1668,7 +1669,7 @@
\PushStack\:CHK{#1}%
\expandafter\ifx \csname \:CurrentChk +#1\endcsname\relax
\expandafter\gdef \csname \:CurrentChk +#1\endcsname{}%
- \immediate\write16{\the\inputlineno.
+ \writesixteen{\the\inputlineno.
--- warning --- \:CurrentChk\space --> #1 ?}%
\fi
\xdef\:CurrentChk{#1}%
@@ -1677,7 +1678,7 @@
\def\trace:endchk#1 #2|<par del|>{%
\:chk:trc{Close......#1}%
\expandafter\ifx \csname #1Level:\endcsname\relax
- \immediate\write16{\the\inputlineno.
+ \writesixteen{\the\inputlineno.
--- warning --- </#1> witout <#1>}%
\expandafter\gHAssign\csname #1Level:\endcsname|=0
\else
@@ -1689,7 +1690,7 @@
\PopStack\:CHK\:CurrentChk
\PushStack\:CHK\:CurrentChk
\else
- \immediate\write16{\the\inputlineno.
+ \writesixteen{\the\inputlineno.
--- warning --- </\:temp> instead of </#1>}%
\fi
\fi
@@ -1699,7 +1700,7 @@
\:chk:trc{Empty......#1}%
\expandafter \ifx \csname \:CurrentChk +#1\endcsname\relax
\expandafter\gdef \csname \:CurrentChk +#1\endcsname{}%
- \immediate\write16{\the\inputlineno.
+ \writesixteen{\the\inputlineno.
--- warning --- \:CurrentChk\space --> #1 ?}%
\fi
}
@@ -2708,7 +2709,7 @@
\<utilities\><<<
\:CheckOption{hshow} \if:Option
- \def\hshow#1{\immediate\write16
+ \def\hshow#1{\writesixteen
{..#1.......\expandafter\meaning\csname #1\endcsname}}
|<Show Configure|>
\fi
@@ -2718,7 +2719,7 @@
\def\ShowConfigure#1{%
\edef\:tempb{\expandafter \meaning\csname c:#1:\endcsname}%
\expandafter\par:N \:tempb////%
- \immediate\write16{\string\Configure{#1}}%
+ \writesixteen{\string\Configure{#1}}%
{\show:Arg{1}{a:#1}%
\show:Arg{2}{b:#1}%
\show:Arg{3}{c:#1}%
@@ -2737,7 +2738,7 @@
\def\show:Arg#1#2{%
\ifnum \:tempb=#1 \let\show:Arg=\:gobbleII \fi
\expandafter\let\expandafter\:temp \csname #2\endcsname
- \immediate\write16{ {\ifx \:temp\relax ???\else
+ \writesixteen{ {\ifx \:temp\relax ???\else
\expandafter\:gobbleM \meaning \:temp\fi}}}
\def\:gobbleM#1->{}
>>>
@@ -2864,7 +2865,7 @@
\documentclass{article}
\begin{document}
- \immediate\write16
+ \writesixteen
{\csname file:name\endcsname...\csname FileName\endcsname}
\end{document}
@@ -3457,7 +3458,7 @@
\<html debug\><<<
\def\HTraceHPageOn{%
- \def\:buttrc##1##2{\no:pic \immediate\write16{%
+ \def\:buttrc##1##2{\no:pic \writesixteen{%
l.\the\inputlineno -[\HPageDepth]- \string##1##2}\yes:pic
}}
\def\HTraceHPageOff{\def\:buttrc##1##2{}}
@@ -5526,7 +5527,7 @@
\<blocs for tocs\><<<
\openin15=\jobname.4tc
\ifeof15 \closein15
- \def\:TableOfContents[#1]{\immediate\write16{No file \jobname.4tc}}
+ \def\:TableOfContents[#1]{\writesixteen{No file \jobname.4tc}}
|<undef /TableOfContents|>
\else
\ifHtml |<def html /TableOfContents|>
@@ -9066,10 +9067,10 @@
\xdef\recall:sub{%
\mathcode`\noexpand\_=\the\mathcode`\_
\catcode`\noexpand\_=\the\catcode`\_
- % \immediate\write16{.....sub \the\catcode`\_}%
+ % \writesixteen{.....sub \the\catcode`\_}%
}%
\mathcode`\_="8000 \catcode`\_=12
- % \immediate\write16{.....sub 12}
+ % \writesixteen{.....sub 12}
}
\fi
\fi
@@ -9096,10 +9097,10 @@
\xdef\recall:sup{%
\mathcode`\noexpand\^=\the\mathcode`\^
\catcode`\noexpand\^=\the\catcode`\^
- % \immediate\write16{.....sup \the\catcode`\^}%
+ % \writesixteen{.....sup \the\catcode`\^}%
}%
\mathcode`\^="8000 \catcode`\^=12
- % \immediate\write16{.....sup 12}%
+ % \writesixteen{.....sup 12}%
}
\fi
\fi
@@ -11121,7 +11122,7 @@
\<check that TeX4ht is not loaded after protex\><<<
-\def\:warning#1{\immediate\write16{l.\the\inputlineno\space
+\def\:warning#1{\writesixteen{l.\the\inputlineno\space
--- TeX4ht warning --- #1 ---}}
\ifx \:ShowCode\:UnDeF \else
\:warning{|<TeX4ht name|>.sty loaded after ProTeX?}
@@ -11164,9 +11165,9 @@
\openin15= wripro.tex
\ifeof15 \closein15
- \immediate\write16{*********************************}
- \immediate\write16{* - error - missing wripro.tex *}
- \immediate\write16{*********************************}
+ \writesixteen{*********************************}
+ \writesixteen{* - error - missing wripro.tex *}
+ \writesixteen{*********************************}
\else \closein15 \input wripro.tex \fi
\<warnings for missing /Link\><<<
@@ -11202,11 +11203,11 @@
%-------------------------------------------------------
\openin15= wripro.tex
\ifeof15 \closein15
- \immediate\write16{***********************************}
- \immediate\write16{* -- error -- missing wripro.tex -*}
- \immediate\write16{* Making a broken tex4ht.sty file.*}
- \immediate\write16{* Don't use this tex4ht.sty file! *}
- \immediate\write16{***********************************}
+ \writesixteen{***********************************}
+ \writesixteen{* -- error -- missing wripro.tex -*}
+ \writesixteen{* Making a broken tex4ht.sty file.*}
+ \writesixteen{* Don't use this tex4ht.sty file! *}
+ \writesixteen{***********************************}
\else \closein15 \fi
%-------------------------------------------------------
Modified: trunk/lit/tex4ht-tei.tex
===================================================================
--- trunk/lit/tex4ht-tei.tex 2018-06-08 23:53:07 UTC (rev 410)
+++ trunk/lit/tex4ht-tei.tex 2018-06-11 13:12:17 UTC (rev 411)
@@ -467,7 +467,7 @@
\<tei dtd tex4ht\><<<
|<tei dtd|>%
-}\immediate\write16{--- file \jobname.ent ---}\HCode{%
+}\writesixteen{--- file \jobname.ent ---}\HCode{%
|<tei entities dtd|>%
>>>
More information about the tex4ht-commits
mailing list