texlive[66688] Master/texmf-dist: disable accent redefinition, tex4ht
commits+karl at tug.org
commits+karl at tug.org
Mon Mar 27 23:26:26 CEST 2023
Revision: 66688
http://tug.org/svn/texlive?view=revision&revision=66688
Author: karl
Date: 2023-03-27 23:26:26 +0200 (Mon, 27 Mar 2023)
Log Message:
-----------
disable accent redefinition, tex4ht r1311; do not redefine \chapter, tex4ht r1312
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1311
http://tug.org/svn/texlive?view=revision&revision=1312
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-unicode.tex
trunk/Master/texmf-dist/source/generic/tex4ht/update-htfonts
trunk/Master/texmf-dist/tex/generic/tex4ht/glossary.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/titlesec-hooks.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/unicode.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,3 +1,13 @@
+2023-03-27 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (titlesec-hooks.4ht): prevent redefinition of
+ \chapter commands
+ https://tex.stackexchange.com/a/680943/2891
+
+ * tex4ht-unicode.tex (unicode.4ht): disabled redefinition of
+ accents, in order to get pictured accents in default HTML math
+ output.
+
2023-03-24 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-fonts-noncjk.tex (
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1309 2023-03-22 13:48:40Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1312 2023-03-27 13:06:23Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -937,6 +937,8 @@
>>> \AddFile{9}{titlesec-hooks}
\<titlesec-packagehooks\><<<
+\let\ttl:@makechapterhead\@makechapterhead
+\let\ttl:@makeschapterhead\@makeschapterhead
\let\ttl:chapter\chapter
\let\ttl:section\section
\let\ttl:subsection\subsection
@@ -950,6 +952,8 @@
\let\subsubsection\ttl:subsubsection
\let\paragraph\ttl:paragraph
\let\subparagraph\ttl:subparagraph
+ \let\@makechapterhead\ttl:@makechapterhead
+ \let\@makeschapterhead\ttl:@makeschapterhead
}
>>>
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-unicode.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-unicode.tex 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-unicode.tex 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-unicode.tex 1230 2022-10-31 12:01:20Z michal_h21 $
+% $Id: tex4ht-unicode.tex 1311 2023-03-27 07:25:44Z michal_h21 $
% latex tex4ht-unicode or xhlatex tex4ht-unicode "html,3,sections+"
%
% Copyright 2009-2022 TeX Users Group
@@ -356,6 +356,11 @@
\:CheckOption{new-accents} \if:Option \else
|<old unicode accents|>
\ifx \mathml:on\:UnDef
+% this configuration causes wrong rendering of accents in the default TeX4ht
+% math output - accented text, like vectors is converted without accents
+% we will rather use the default configuration, which produces pictures
+% in the text mode, accents seems to work fine with or without this configuration
+ \iffalse % we use \iffalse, because simple commenting off didn't work
\Configure{accents}
{\ifmmode \expandafter\mathord\fi
{|<temp hcode accents|>%
@@ -362,6 +367,7 @@
\ht:special{t4ht@[}x\ht:special{t4ht@]}}}
{\ifmmode \expandafter\mathord\fi
{\HCode{<span class='accent#1'>}#3\HCode{</span>}}}
+ \fi
\else
\:warning{unicode.4ht loaded after mathml.4ht}
\fi
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/update-htfonts
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/update-htfonts 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/update-htfonts 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,5 +1,6 @@
#!/bin/sh
# $Id: update-htfonts 1141 2022-06-01 21:43:42Z karl $
+# Update TeX4ht font files (.htf). See ./Makefile for invocations.
# Public domain. Originally written by Karl Berry, 2022.
# don't bother with real option parsing.
@@ -34,7 +35,8 @@
devdir=$1
instdir=$2
verbose=true
-tmp=/tmp/htdif # prefix
+tmpdir=/tmp/htdif.d # prefix
+rm -rf $tmpdir; mkdir $tmpdir
if test ! -d "$devdir"; then
echo "$0: devdir not a directory: $devdir" >&2
@@ -66,8 +68,8 @@
htf_same () {
src=$1; dest=$2;
#
- src_filtered=$tmp.s`basename "$src"`
- dest_filtered=$tmp.d`basename "$dest"`
+ src_filtered=$tmpdir/s`basename "$src"`
+ dest_filtered=$tmpdir/d`basename "$dest"`
#
sed 's/20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]\(-[0-9][0-9]:[0-9][0-9]\)*//' \
$src >$src_filtered || exit 1
@@ -79,7 +81,7 @@
#
Iterate through all files in the dev directory.
echo "$prg: comparing $devdir"
echo "$prg: to $instdir"
->$tmp.0 # accumulate diffs here
+>$tmpdir/0 # accumulate diffs here
#
find "$devdir" -type f -print | sort | while read devf; do
instf=`echo "$devf" | sed "s,^$devdir/,$instdir/,"`
@@ -93,7 +95,7 @@
else
$verbose && echo "`basename \"$devf\"`: diff ($devf != $instf)"
# save diff from (older) DEST to newer (SRC).
- diff -u0 "$dest" "$src" >>$tmp.0
+ diff -u0 "$dest" "$src" >>$tmpdir/0
#
copy_file "$devf" "$instf"
fi
@@ -122,14 +124,14 @@
done
#
check for extra files in $instdir
-(cd "$devdir" && find . -type f -print | sort) >$tmp.devdir || exit 1
-(cd "$instdir" && find . -type f -print | sort) >$tmp.instdir || exit 1
+(cd "$devdir" && find . -type f -print | sort) >$tmpdir/devdir || exit 1
+(cd "$instdir" && find . -type f -print | sort) >$tmpdir/instdir || exit 1
echo "$prg: files in devdir and not in instdir (should be empty):"
-comm -23 $tmp.devdir $tmp.instdir
+comm -23 $tmpdir/devdir $tmpdir/instdir
echo "$prg: files in instdir and not in devdir (you should remove):"
-comm -13 $tmp.devdir $tmp.instdir
+comm -13 $tmpdir/devdir $tmpdir/instdir
# maybe better to leave it for manual removal?
echo "$prg: done."
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/glossary.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/glossary.4ht 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/glossary.4ht 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,6 +1,6 @@
-% glossary.4ht (2021-06-06-09:18), generated from tex4ht-4ht.tex
+% glossary.4ht (2023-03-22-13:41), generated from tex4ht-4ht.tex
% Copyright 2005-2009 Eitan M. Gurari
-% Copyright 2009-2021 TeX Users Group
+% Copyright 2009-2023 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-06-06-09:18}
+\immediate\write-1{version 2023-03-22-13:41}
\def\glosslabel#1{\Link{}{#1}\EndLink}
\def\glossref#1#2{\Link{#1}{}#2\EndLink}
@@ -41,7 +41,7 @@
{\Configure{Needs}{File: #1.4idx}\Needs{}}%
\fi}
-\warn:gls{\jobname}
+refextract\warn:gls{\jobname}
\def\gloskip{\expandafter\ifx\csname gloskip:\gls at style\endcsname\relax
\indexspace \else \csname gloskip:\gls at style\endcsname\fi}
\NewConfigure{gloskip}[2]{\expandafter\def\csname gloskip:#1\endcsname{#2}}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/titlesec-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/titlesec-hooks.4ht 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/titlesec-hooks.4ht 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,4 +1,4 @@
-% titlesec-hooks.4ht (2022-03-16-14:13), generated from tex4ht-4ht.tex
+% titlesec-hooks.4ht (2023-03-27-13:26), generated from tex4ht-4ht.tex
% Copyright 2022 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,8 +16,10 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-03-16-14:13}
+\immediate\write-1{version 2023-03-27-13:26}
+\let\ttl:@makechapterhead\@makechapterhead
+\let\ttl:@makeschapterhead\@makeschapterhead
\let\ttl:chapter\chapter
\let\ttl:section\section
\let\ttl:subsection\subsection
@@ -31,6 +33,8 @@
\let\subsubsection\ttl:subsubsection
\let\paragraph\ttl:paragraph
\let\subparagraph\ttl:subparagraph
+ \let\@makechapterhead\ttl:@makechapterhead
+ \let\@makeschapterhead\ttl:@makeschapterhead
}
\endinput
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/unicode.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/unicode.4ht 2023-03-27 20:14:44 UTC (rev 66687)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/unicode.4ht 2023-03-27 21:26:26 UTC (rev 66688)
@@ -1,4 +1,4 @@
-% unicode.4ht (2022-10-31-13:02), generated from tex4ht-unicode.tex
+% unicode.4ht (2023-03-27-13:26), generated from tex4ht-unicode.tex
% Copyright 2009-2022 TeX Users Group
% Copyright 1998-2009 Eitan M. Gurari
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-10-31-13:02}
+\immediate\write-1{version 2023-03-27-13:26}
\exit:ifnot{8859-6,%
SIunits,%
@@ -303,6 +303,11 @@
{\a:accents{}{#1}} {\b:accents{bar}{#1}{#2}}
\ifx \mathml:on\:UnDef
+% this configuration causes wrong rendering of accents in the default TeX4ht
+% math output - accented text, like vectors is converted without accents
+% we will rather use the default configuration, which produces pictures
+% in the text mode, accents seems to work fine with or without this configuration
+ \iffalse % we use \iffalse, because simple commenting off didn't work
\Configure{accents}
{\ifmmode \expandafter\mathord\fi
{\leavevmode
@@ -316,6 +321,7 @@
\ht:special{t4ht@[}x\ht:special{t4ht@]}}}
{\ifmmode \expandafter\mathord\fi
{\HCode{<span class='accent#1'>}#3\HCode{</span>}}}
+ \fi
\else
\:warning{unicode.4ht loaded after mathml.4ht}
\fi
@@ -566,8 +572,6 @@
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsart}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -579,6 +583,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsproc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -589,7 +594,6 @@
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsldoc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -679,7 +683,6 @@
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amstex1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -730,6 +733,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -959,6 +963,11 @@
{\a:accents{}{#1}} {\b:accents{bar}{#1}{#2}}
\ifx \mathml:on\:UnDef
+% this configuration causes wrong rendering of accents in the default TeX4ht
+% math output - accented text, like vectors is converted without accents
+% we will rather use the default configuration, which produces pictures
+% in the text mode, accents seems to work fine with or without this configuration
+ \iffalse % we use \iffalse, because simple commenting off didn't work
\Configure{accents}
{\ifmmode \expandafter\mathord\fi
{\leavevmode
@@ -972,6 +981,7 @@
\ht:special{t4ht@[}x\ht:special{t4ht@]}}}
{\ifmmode \expandafter\mathord\fi
{\HCode{<span class='accent#1'>}#3\HCode{</span>}}}
+ \fi
\else
\:warning{unicode.4ht loaded after mathml.4ht}
\fi
@@ -1192,6 +1202,16 @@
+
+
+
+
+
+
+
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{revsymb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1262,6 +1282,7 @@
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{8859-6}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1335,9 +1356,6 @@
-
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{eurosym}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1361,6 +1379,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{sistyle}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1458,6 +1477,9 @@
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{cp850}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -2177,5 +2199,10 @@
+
+
+
+
+
\endinput
More information about the tex-live-commits
mailing list.