debian/0000755000000000000000000000000012212121077007161 5ustar debian/mediawiki-extensions-math.install0000644000000000000000000000025712052661612015652 0ustar debian/Math.php etc/mediawiki-extensions/extensions-available/ Math.php db Math.body.php Math.hooks.php Math.i18n.php mathParserTests.txt usr/share/mediawiki-extensions/math/ debian/mediawiki-extensions-math.postinst0000644000000000000000000000306112052714100016052 0ustar #!/bin/sh # From MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.postinst,v 1.11 2011/10/06 08:59:57 tg Exp $ set -e # This maintainer script can be called the following ways: # # * new-postinst "configure" [$most_recently_configured_version] # The package is unpacked; all dependencies are unpacked and, when there # are no circular dependencies, configured. # # * old-postinst "abort-upgrade" $new_version # * conflictors-postinst "abort-remove" "in-favour" $package # $new_version # * postinst "abort-remove" # * deconfigureds-postinst "abort-deconfigure" "in-favour" # $failed_install_package $fip_version ["removing" # $conflicting_package $cp_version] # The package is unpacked; all dependencies are at least Half-Installed, # previously been configured, and not removed. In some error situations, # dependencies may not be even fully unpacked. # # * postinst "triggered" "${triggers[*]}" # For trigger-only calls, i.e. if "configure" is not called. check_move_dir() { local _src=/usr/share/mediawiki-extensions/math local _dst=/var/lib/mediawiki/extensions/Math test -h $_dst && return 0 test -e $_dst && if test -d $_dst; then rmdir $_dst else rm $_dst fi if test -e $_dst; then echo >&2 Some error removing $_dst exit 1 fi ln -s $_src $_dst } case $1 in configure) check_move_dir ;; abort-upgrade|abort-remove|abort-deconfigure) ;; triggered) ;; *) echo >&2 "postinst called with unknown subcommand '$1'" exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/texvc.xml0000644000000000000000000001337712052661573011063 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ manpages/docbook.xsl XP=xsltproc -''-nonet manpage.1: manpage.dbk $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. --> Marc"> Dequ\[`e]nes"> 2005-01-02"> 1"> Duck@DuckCorp.org"> TEXVC"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2003 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; math equation PNG renderer &dhpackage; tempdir outputdir texcode encoding DESCRIPTION &dhpackage; is designed to render math equations written in latex code into PNG images. OPTIONS tempdir directory where temporary files are created. outputdir directory where the result image is stored. texcode latex code string representing math equations. encoding used encoding in latex code string. OUTPUT Status codes and HTML/MathML transformations are returned on stdout. A rasterized PNG file will be written to the output directory, named for the MD5 hash code. texvc output format is like this: +%5 ok, but not html or mathml c%5%h ok, conservative html, no mathml m%5%h ok, moderate html, no mathml l%5%h ok, liberal html, no mathml C%5%h\0%m ok, conservative html, with mathml M%5%h\0%m ok, moderate html, with mathml L%5%h\0%m ok, liberal html, with mathml X%5%m ok, no html, with mathml S syntax error E lexing error F%s unknown function %s - other error with the following codes: \0 - null character %5 - md5, 32 hex characters %h - html code, without \0 characters %m - mathml code, without \0 characters AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/mediawiki-math-texvc.manpages0000644000000000000000000000001712052661573014731 0ustar debian/texvc.1 debian/rules0000755000000000000000000000210412052661573010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS override_dh_auto_build: if [ -x /usr/bin/ocamlopt ]; then\ make -C math texvc;\ else\ make -C math texvc.bc;\ mv math/texvc.bc math/texvc;\ fi cd debian && xsltproc -nonet -o texvc.1 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl texvc.xml override_dh_auto_clean: cd math && make clean dh_auto_clean override_dh_auto_install: override_dh_shlibdeps: # This is merely the most sensible place to do this # otherwise dh_prep nobbles it dh_shlibdeps if [ ! -x /usr/bin/ocamlopt ]; then \ echo "interpreter:Depends=ocaml-base-nox" >> debian/mediawiki-math-texvc.substvars;\ fi %: dh $@ debian/mediawiki-extensions-math.links0000644000000000000000000000010612052713622015314 0ustar usr/share/mediawiki-extensions/math var/lib/mediawiki/extensions/Math debian/changelog0000644000000000000000000000450012212120706011030 0ustar mediawiki-math (2:1.0+git20120528-8) unstable; urgency=low * Team upload * Use “ Thu, 05 Sep 2013 17:21:57 +0200 mediawiki-math (2:1.0+git20120528-7) unstable; urgency=low * Team upload. * Update Policy and VCS-* URLs, like with mediawiki * Depends: texlive-latex-extra for cancel.sty -- Thorsten Glaser Thu, 23 May 2013 15:37:12 +0200 mediawiki-math (2:1.0+git20120528-6) unstable; urgency=low [ Thorsten Glaser ] * Team upload [ gregor herrmann ] * Fix "installs files in /usr/share/mediawiki/extensions which is a symlink in the mediawiki package": install to /usr/share/mediawiki-extensions/math and symlink from /var/lib/mediawiki/extensions/Math (Closes: #689249) [ Thorsten Glaser ] * Add mediawiki-extensions-math.postinst to handle the upgrade case -- Thorsten Glaser Tue, 20 Nov 2012 14:58:41 +0000 mediawiki-math (2:1.0+git20120528-5) unstable; urgency=low * Depend on ocaml-nox in the texvc package, not the transitional package -- Jonathan Wiltshire Mon, 18 Jun 2012 20:55:12 +0100 mediawiki-math (2:1.0+git20120528-4) unstable; urgency=low * Upload to unstable -- Jonathan Wiltshire Mon, 18 Jun 2012 16:27:34 +0100 mediawiki-math (2:1.0+git20120528-3) experimental; urgency=low * Build only bytecode on architectures that don't have ocamlopts available * Ensure ocaml-base-nox dependency present on relevant architectures -- Jonathan Wiltshire Sat, 02 Jun 2012 22:17:26 +0100 mediawiki-math (2:1.0+git20120528-2) experimental; urgency=low * Add git-buildpackage configuration and ignore it in source diffs * debian/control: Add VCS fields * Fix package priority to Optional, except the transitional mediawiki-math package * mediawiki-extensions-math: add recommends on mediawiki-extensions-base * Install default configuration for use by mwenext and mwdisext * Include mwenext/mwdisext instructions in README.Debian -- Jonathan Wiltshire Sat, 02 Jun 2012 20:31:45 +0100 mediawiki-math (2:1.0+git20120528-1) experimental; urgency=low * Initial release in new source package (Closes: #675145, #673126) -- Jonathan Wiltshire Wed, 30 May 2012 23:19:38 +0100 debian/gbp.conf0000644000000000000000000000004112052661573010607 0ustar [DEFAULT] debian-branch = master debian/source/0000755000000000000000000000000012052661573010475 5ustar debian/source/format0000644000000000000000000000001412052661573011703 0ustar 3.0 (quilt) debian/mediawiki-math-texvc.clean0000644000000000000000000000001712052661573014220 0ustar debian/texvc.1 debian/copyright0000644000000000000000000000351412052661573011133 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: mediawiki-math Source: http://www.mediawiki.org/wiki/Extension:Math Files: * Copyright: 2002-2011 various MediaWiki contributors License: GPL-2.0 License: GPL-2.0 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". Files: debian/* Copyright: 2012 Jonathan Wiltshire License: GPL-2.0 Files: debian/texvc.xml Copyright: 2003 Marc Dequènes (Duck) License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/compat0000644000000000000000000000000212052661573010373 0ustar 8 debian/Math.php0000644000000000000000000000012112212120622010550 0ustar Tue, 29 May 2012 23:05:14 +0100 debian/texvc.10000644000000000000000000001046512052661573010416 0ustar '\" t .\" Title: TEXVC .\" Author: Marc Dequ\e[`e]nes .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 2005-01-02 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "TEXVC" "1" "2005\-01\-02" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" texvc \- math equation PNG renderer .SH "SYNOPSIS" .HP \w'\fBtexvc\fR\ 'u \fBtexvc\fR {tempdir} {outputdir} {texcode} {encoding} .SH "DESCRIPTION" .PP \fBtexvc\fR is designed to render math equations written in latex code into PNG images\&. .SH "OPTIONS" .PP {tempdir} .RS 4 directory where temporary files are created\&. .RE .PP {outputdir} .RS 4 directory where the result image is stored\&. .RE .PP {texcode} .RS 4 latex code string representing math equations\&. .RE .PP {encoding} .RS 4 used encoding in latex code string\&. .RE .SH "OUTPUT" .PP Status codes and HTML/MathML transformations are returned on stdout\&. A rasterized PNG file will be written to the output directory, named for the MD5 hash code\&. .PP texvc output format is like this: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} +%5 ok, but not html or mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} c%5%h ok, conservative html, no mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} m%5%h ok, moderate html, no mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} l%5%h ok, liberal html, no mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} C%5%h\e0%m ok, conservative html, with mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} M%5%h\e0%m ok, moderate html, with mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} L%5%h\e0%m ok, liberal html, with mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} X%5%m ok, no html, with mathml .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} S syntax error .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} E lexing error .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} F%s unknown function %s .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \- other error .RE .PP with the following codes: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \e0 \- null character .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %5 \- md5, 32 hex characters .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %h \- html code, without \e0 characters .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} %m \- mathml code, without \e0 characters .RE .sp .SH "AUTHOR" .PP This manual page was written by Marc Dequ\e[`e]nes (Duck) Duck@DuckCorp\&.org for the Debian(TM) system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .SH "AUTHOR" .PP \fBMarc Dequ\e[`e]nes\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br Copyright \(co 2003 Marc Dequ\[`e]nes (Duck) .br debian/docs0000644000000000000000000000002412052661573010044 0ustar mathParserTests.txt debian/control0000644000000000000000000000526612212120472010573 0ustar Source: mediawiki-math Section: web Priority: optional Maintainer: Mediawiki Maintenance Team Uploaders: Jonathan Wiltshire Build-Depends: debhelper (>= 8.0.0), ocaml-nox | ocaml, xsltproc, docbook-xml, docbook-xsl Standards-Version: 3.9.4 Homepage: http://www.mediawiki.org/wiki/Extension:Math Vcs-Git: git://anonscm.debian.org/collab-maint/mediawiki-math.git Vcs-Browser: http://anonscm.debian.org/git/collab-maint/mediawiki-math.git Package: mediawiki-extensions-math Architecture: all Depends: mediawiki (>= 1:1.18), mediawiki-math-texvc (>= 2:1.0), ${misc:Depends} Recommends: mediawiki-extensions-base Description: math rendering plugin for MediaWiki (common files) MediaWiki is a wiki engine (a program for creating a collaboratively edited website). It is designed to handle heavy websites containing library-like document collections, and supports user uploads of images/sounds, multilingual content, TOC autogeneration, ISBN links, etc. . Moreover, it keeps track of changes, so users can receive notifications, view diffs and revert edits. This system has many other features and can easily be extended. . This package contains the architecture-independent files for the math rendering plugin. Package: mediawiki-math-texvc Architecture: any Depends: ${interpreter:Depends}, ${shlibs:Depends}, texlive-latex-base, ghostscript, imagemagick, texlive-latex-extra, ${misc:Depends} Recommends: mediawiki-extensions-math, latex-cjk-all Conflicts: mediawiki-math (<< 1:1.18) Replaces: mediawiki-math (<< 1:1.18) Description: math rendering plugin for MediaWiki (texvc binary files) MediaWiki is a wiki engine (a program for creating a collaboratively edited website). It is designed to handle heavy websites containing library-like document collections, and supports user uploads of images/sounds, multilingual content, TOC autogeneration, ISBN links, etc. . Moreover, it keeps track of changes, so users can receive notifications, view diffs and revert edits. This system has many other features and can easily be extended. . This package contains the texvc binary required by the math rendering plugin. Package: mediawiki-math Section: oldlibs Priority: extra Architecture: any Depends: mediawiki-extensions-math, ${misc:Depends} Description: math rendering plugin for MediaWiki (transitional package) MediaWiki is a wiki engine (a program for creating a collaboratively edited website). It is designed to handle heavy websites containing library-like document collections, and supports user uploads of images/sounds, multilingual content, TOC autogeneration, ISBN links, etc. . This is a transitional package and can safely be removed. debian/mediawiki-math-texvc.install0000644000000000000000000000002512052661573014603 0ustar math/texvc usr/bin