From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- external/xsltml/Makefile | 7 + external/xsltml/Module_xsltml.mk | 20 + external/xsltml/README | 14 + external/xsltml/UnpackedTarball_xsltml.mk | 28 + external/xsltml/xsltml_2.1.2.patch | 1718 +++++++++++++++++++++++++++++ 5 files changed, 1787 insertions(+) create mode 100644 external/xsltml/Makefile create mode 100644 external/xsltml/Module_xsltml.mk create mode 100644 external/xsltml/README create mode 100644 external/xsltml/UnpackedTarball_xsltml.mk create mode 100644 external/xsltml/xsltml_2.1.2.patch (limited to 'external/xsltml') diff --git a/external/xsltml/Makefile b/external/xsltml/Makefile new file mode 100644 index 000000000..e4968cf85 --- /dev/null +++ b/external/xsltml/Makefile @@ -0,0 +1,7 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/external/xsltml/Module_xsltml.mk b/external/xsltml/Module_xsltml.mk new file mode 100644 index 000000000..09877a7e7 --- /dev/null +++ b/external/xsltml/Module_xsltml.mk @@ -0,0 +1,20 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Module_Module,xsltml)) + +ifeq ($(ENABLE_MEDIAWIKI),TRUE) + +$(eval $(call gb_Module_add_targets,xsltml,\ + UnpackedTarball_xsltml \ +)) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/xsltml/README b/external/xsltml/README new file mode 100644 index 000000000..ab22e5e59 --- /dev/null +++ b/external/xsltml/README @@ -0,0 +1,14 @@ +XSLT MathML Library from [http://xsltml.sourceforge.net/]. + +This project is used in the Wiki filter that is installed +with the WikiPublisher extension. The extension is built +in mudule swext. + +Building of the module provides a set of xslt transformation +related files that are used by the filter to transform +embedded formula objects into media wiki format. + +The archive was downloaded from: +[http://xsltml.sourceforge.net] +on 2009-02-16. + diff --git a/external/xsltml/UnpackedTarball_xsltml.mk b/external/xsltml/UnpackedTarball_xsltml.mk new file mode 100644 index 000000000..743f2a01a --- /dev/null +++ b/external/xsltml/UnpackedTarball_xsltml.mk @@ -0,0 +1,28 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,xsltml)) + +$(eval $(call gb_UnpackedTarball_set_tarball,xsltml,$(XSLTML_TARBALL),0)) + +$(eval $(call gb_UnpackedTarball_fix_end_of_line,xsltml,\ + cmarkup.xsl \ + entities.xsl \ + glayout.xsl \ + mmltex.xsl \ + scripts.xsl \ + tables.xsl \ + tokens.xsl \ +)) + +$(eval $(call gb_UnpackedTarball_add_patches,xsltml,\ + external/xsltml/xsltml_2.1.2.patch \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/xsltml/xsltml_2.1.2.patch b/external/xsltml/xsltml_2.1.2.patch new file mode 100644 index 000000000..f02b0c594 --- /dev/null +++ b/external/xsltml/xsltml_2.1.2.patch @@ -0,0 +1,1718 @@ +--- misc/xsltml_2.1.2/cmarkup.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/cmarkup.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -5,9 +5,9 @@ + version='1.0'> + + +- + + +@@ -156,7 +156,7 @@ + & \text{if $ + + $} +- \\ ++ \\ + + + +@@ -223,7 +223,7 @@ + + - + +- ++ + + + +@@ -234,7 +234,8 @@ + + + +- ++ ++ + + + +@@ -585,12 +586,15 @@ + + + +- \frac{\partial^{ ++ \frac{\partial + + ++ ^{ + ++ } + + ++ ^{ + + + + +@@ -599,12 +603,15 @@ + + + + ++ } ++ ++ ++ ^{ ++ ++ } + +- +- +- + +- } ++ + + }{ + +@@ -943,7 +950,7 @@ + \left(\begin{array}{c} + + +- \\ ++ \\ + + \end{array}\right) + +@@ -961,7 +968,7 @@ + + & + +- \\ ++ \\ + + + +--- misc/xsltml_2.1.2/entities.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/entities.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -4,17 +4,56 @@ + version='1.0'> + + +- + ++' ++ ++ + + + + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -22,51 +61,324 @@ + C1 Controls and Latin-1 Supplement + Range: 0080-00FF + http://www.unicode.org/charts/PDF/U0080.pdf --> +- ++ ++ ++ + ++ + + ++ + ++ ++ + ++ + ++ ++ ++ + +- ++ ++ ++ ++ + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -92,60 +404,143 @@ + + + ++ ++ ++ ++ ++ + + +- ++ + ++ ++ ++ ++ ++ + + +- ++ ++ + + + +- +- ++ ++ + +- +- ++ ++ ++ ++ ++ ++ + ++ ++ ++ + ++ ++ ++ ++ ++ ++ ++ ++ + + ++ ++ ++ ++ ++ ++ ++ ++ + + + + + ++ ++ ++ ++ ++ ++ ++ ++ + ++ ++ + ++ ++ ++ + + ++ + ++ + + ++ + + + ++ + ++ ++ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + + ++ ++ ++ ++ + + + + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + + +- ++ + + + +@@ -164,6 +559,7 @@ + + + ++ + + + +@@ -178,6 +574,7 @@ + + + ++ + + + +@@ -191,6 +588,7 @@ + + + ++ + + + +@@ -205,12 +603,16 @@ + + + +- +- ++ ++ + + + +- ++ ++ ++ ++ ++ + + + + +- + + + +@@ -236,7 +637,6 @@ + + + +- + + + +@@ -244,11 +644,11 @@ + + + +- ++ + + + +- ++ + + + +@@ -262,95 +662,104 @@ + + + +- +- +- +- +- ++ ++ ++ ++ ++ + + + +- +- ++ ++ + +- +- ++ ++ + + +- ++ + + + ++ + + +- ++ + +- ++ + +- ++ + +- ++ + +- +- ++ ++ ++ + +- +- ++ ++ ++ ++ ++ + +- +- ++ ++ + +- +- +- +- ++ ++ ++ ++ + +- +- +- ++ ++ ++ + + + +- ++ + + + + +- ++ + + + + + ++ + ++ + + +- ++ + + +- ++ + + +- ++ + + +- +- +- +- ++ ++ ++ ++ + + +- +- ++ ++ + + +- +- ++ ++ + + + + ++ + ++ + + + +@@ -360,21 +769,59 @@ + + + ++ ++ ++ ++ ++ ++ ++ + ++ ++ ++ ++ ++ ++ + +- ++ + + + + +- ++ ++ ++ ++ ++ + ++ ++ ++ ++ + + +- +- +- ++ ++ ++ ++ + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -384,11 +831,41 @@ + + + ++ ++ ++ ++ + +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + + + +- +- +- +- +- +- +- +- +- ++ + + + +@@ -445,7 +924,12 @@ + + + +- ++ ++ ++ ++ ++ ++ + + + +--- misc/xsltml_2.1.2/glayout.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/glayout.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -1,12 +1,13 @@ + + + + +- + + +@@ -92,17 +93,16 @@ + + + +- +- ++ ++ + \left + +- +- \ +- +- ++ + \left. +- +- ++ ++ ++ ++ + + \left( + +@@ -128,26 +128,30 @@ + + + +- +- ++ ++ + \right + +- +- \ +- +- ++ + \right. + +- ++ ++ ++ + + \right) + + + + +- \phantom{ +- ++ ++ ++ ++ + + + +@@ -193,15 +197,21 @@ + + }{$ + +- ++ ++ ++ ++ ++ ++ ++ + \textcolor[rgb]{ + +- ++ + + }{ + + +- ++ + } + + +--- misc/xsltml_2.1.2/mmltex.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/mmltex.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -6,9 +6,9 @@ + + + +- + + +--- misc/xsltml_2.1.2/scripts.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/scripts.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -1,12 +1,13 @@ + + + + +- + + +@@ -23,7 +24,7 @@ + + } + +- ++ + \overbrace{ + + +@@ -64,7 +65,7 @@ + + } + +- ++ + \underbrace{ + + +@@ -153,7 +154,7 @@ + + } + +- ++ + \overbrace{ + + } +@@ -192,10 +193,51 @@ + \ddot{ + + } +- +- ++ ++ ++ \acute{ ++ ++ } ++ ++ ++ \grave{ ++ ++ } ++ ++ ++ \check{ ++ ++ } ++ ++ ++ \breve{ ++ ++ } ++ ++ ++ \overset{\circ}{ ++ ++ } ++ ++ ++ \bar{ ++ ++ } ++ ++ ++ \ddot{ ++ ++ } ++ ++ ++ \vec{ ++ ++ } ++ ++ ++ + +- ++ + \widehat{ + + +@@ -244,7 +281,7 @@ + + } + +- ++ + \underbrace{ + + } +--- misc/xsltml_2.1.2/tables.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/tables.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -1,130 +1,218 @@ +- +- +- +- +- +- +- +- +- \multicolumn{ +- +- }{c}{ +- +- } +- +- & +- +- +- +- +- +- +- \hfill +- +- +- +- \hfill +- +- +- +- & +- +- +- +- +- +- +- \\ +- +- +- +- +- \begin{array}{ +- +- | +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- | +- +- } +- +- \hline +- +- +- +- \\ \hline +- +- \end{array} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +\ No newline at end of file ++ ++ ++ ++ ++ ++ ++ ++ ++ \multicolumn{ ++ ++ }{c}{ ++ ++ } ++ ++ & ++ ++ ++ ++ ++ ++ ++ \hfill ++ ++ ++ ++ \hfill ++ ++ ++ ++ ++ ++ ++ ++ & ++ ++ ++ ++ \\ ++ ++ ++ ++ ++ ++ ++ ++ ++ \hline ++ ++ ++ ++ ++ ++ ++ \begin{array}{ ++ ++ | ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ | ++ ++ } ++ ++ \hline ++ ++ ++ ++ \\ \hline ++ ++ \end{array} ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ center ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ | ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +\ No newline at end of file +--- misc/xsltml_2.1.2/tokens.xsl 2009-03-27 08:11:02.000000000 +0100 ++++ misc/build/xsltml_2.1.2/tokens.xsl 2008-03-07 21:36:34.000000000 +0100 +@@ -1,12 +1,13 @@ + + + + +- + + +@@ -22,7 +23,15 @@ + + + ++ ++ ++ + ++ ++ \ ++ ++ ++ + + \mathrm{ + +@@ -51,10 +60,10 @@ + + + +- ++ + \left + +- ++ + \right + + +@@ -67,10 +76,13 @@ + + + +- +- \text{ +- +- } ++ ++ ++ ++ \text{ ++ ++ } ++ + + + +@@ -111,10 +123,16 @@ + + }{$ + +- ++ ++ ++ ++ ++ ++ ++ + \textcolor[rgb]{ + +- ++ + + }{ + -- cgit v1.2.3