Import Debian changes 2.7.9+dfsg-ok1

mathjax (2.7.9+dfsg-ok1) nile; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2024-05-08 09:34:41 +08:00 committed by luoyaoming
parent 6ad47a5aa4
commit 160f549788
58 changed files with 1405 additions and 0 deletions

18
debian/README.source vendored Normal file
View File

@ -0,0 +1,18 @@
Scripts in `packer` and `combiner` directories are based on upstream ones, which
can be found at:
https://github.com/mathjax/MathJax-dev/
Debian modifications to packer/packMJfile:
* Use Debian yui-compressor path (`/usr/share/yui-compressor/yui-compressor.jar`);
* Replace current working directory in MathJax with `MathJax` string;
* Do not require the configuration script.
Debian modifications to packer/packMJ:
* Do not exclude a11y and TeX/mhchem3 extensions from packing.
Debian modifications to combiner/lists/*:
* Exclude a11y extension, it is not DFSG compliant.
The latest version is based on upstream commit
c385ab91ea8839ca30319b3ec9e746e1c817a92f.

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
mathjax (2.7.9+dfsg-ok1) nile; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.top> Wed, 08 May 2024 09:34:41 +0800

5
debian/clean vendored Normal file
View File

@ -0,0 +1,5 @@
config/
extensions/
jax/
localization/
MathJax.js

52
debian/combiner/combineMJ vendored Executable file
View File

@ -0,0 +1,52 @@
#! /usr/bin/perl
#
# Create all the combined configuration files
#
# Usage: ./combineMJ [--force] [proj-dir]
#
use Cwd;
use FindBin;
if ($ARGV[0] eq '--force') {$force = true; shift}
$DIR = $FindBin::Bin;
$MJX = shift || getcwd;
$COMBINELIST = "$DIR/combineMJlist";
$COMBINELISTU = "$DIR/combineMJlist-unpacked";
die "Project directory must contain a config directory\n" unless -d "$MJX/config";
opendir(LISTS,"$DIR/lists") || die "Can't list $DIR/lists: $!\n";
@lists = grep {/.*\.lis/} readdir(LISTS);
closedir(LISTS);
foreach $list (@lists) {
$file = $list; $file =~ s/\.[^.]*/.js/;
$needsUpdate = 1;
if (-e "$MJX/config/$file" && !$force) {
$needsUpdate = 0;
$date = (stat("$MJX/config/$file"))[9];
open(LIST,"<","$DIR/lists/$list") || warn "Can't read $DIR/lists/$list: $!\n";
@files = <LIST>; chomp(@files);
close(LIST);
foreach $name (@files) {
last unless $name =~ m/\S/;
if (!(-e "$MJX/$name") || (stat("$MJX/$name"))[9] > $date) {
$needsUpdate = 1;
last;
}
}
}
if ($needsUpdate) {
print "Refreshing: config/$file\n";
system("$COMBINELIST '$MJX' '$DIR/lists/$list' > /dev/null");
system("$COMBINELISTU '$MJX' '$DIR/lists/$list' > /dev/null");
} else {
print "Up to date: config/$file\n";
}
}
1;

77
debian/combiner/combineMJlist vendored Executable file
View File

@ -0,0 +1,77 @@
#! /usr/bin/perl
#
# Combine scripts in the MathJax project into single-file-load
# configuration files.
#
# Usage: ./combineMJlist proj-dir [files.lis]
#
use Cwd;
use FindBin;
$DIR = $FindBin::Bin;
$MJX = shift || getcwd;
$name = $ARGV[0]; $name =~ s!.*/!!;
die "Usage: ./combineMJlist srcdir files.lis\n" unless $name =~ m/\S/;
die "Project directory must contain a config directory\n" unless -d "$MJX/config";
$outfile = "config/$name"; $outfile =~ s/\.[^.]*/.js/;
@files = ();
while ($file = <>) {
chomp($file);
if ($file =~ m/\S/) {
push (@files,$file);
} else {
@config = <>;
chomp(@config);
last;
}
}
$MMLorHTML = 0;
@list = ();
foreach $file (@files) {
$MMLorHTML = 1 if $file =~ m!/MMLorHTML.js!;
push(@list,"[MathJax]/$file");
}
$files = ' "'.join("\",\n \"",@list).'"';
$MMLorHTML = ("","\nMathJax.Hub.Config({delayJaxRegistration: true});\n")[$MMLorHTML];
open(CONFIG,"<","$DIR/template.js") || die "Can't open $DIR/template.js: $!\n";
@lines = <CONFIG>;
close(CONFIG);
$config = join("",@lines);
$config =~ s!%%% NAME %%%!/MathJax/$outfile!;
$config =~ s!%%% FILES %%%!$files!;
$config =~ s!%%% MMLorHTML %%%!$MMLorHTML!;
print "Creating $outfile\n";
open(CONFIG,">","$MJX/$outfile") || die "Can't write $MJX/$outfile: $!\n";
print CONFIG $config;
if (scalar(@config)) {
print CONFIG "MathJax.Hub.Config({\n ";
print CONFIG join("\n ",@config);
print CONFIG "\n});\n\n";
}
foreach $file (@files) {
print " $file\n";
open(JS,"<","$MJX/$file") || warn "Can't read $MJX/$file: $!\n";
@lines = <JS>;
close(JS);
$lines = join("",@lines);
$lines =~ s!/.*?\*/\n\n!!s;
print CONFIG $lines;
}
print CONFIG "MathJax.Ajax.loadComplete(\"[MathJax]/$outfile\");\n";
close(CONFIG);
1;

73
debian/combiner/combineMJlist-unpacked vendored Executable file
View File

@ -0,0 +1,73 @@
#! /usr/bin/perl
#
# Combine scripts in the MathJax project into single-file-load
# configuration files.
#
# Usage: ./combineMJlist-unpacked proj-dir [files.lis]
#
use Cwd;
use FindBin;
$DIR = $FindBin::Bin;
$MJX = shift || getcwd;
$name = $ARGV[0]; $name =~ s!.*/!!;
die "Usage: ./combineMJlist srcdir files.lis\n" unless $name =~ m/\S/;
die "Project directory must contain an unpacked/config directory\n" unless -d "$MJX/unpacked/config";
$outfile = "config/$name"; $outfile =~ s/\.[^.]*/.js/;
@files = ();
while ($file = <>) {
chomp($file);
if ($file =~ m/\S/) {
push (@files,$file);
} else {
@config = <>;
chomp(@config);
@config = grep {!/^extensions:/} @config;
while (scalar(@config) && $config[-1] !~ m/\S/) {pop(@config)}
$config[-1] =~ s/,$// if scalar(@config);
last;
}
}
@CONFIG = ();
@JAX = ();
@EXTENSIONS = ();
foreach $file (@files) {
if ($file =~ m!^jax/(.*)/config.js!) {push(@JAX,"\"$1\"")}
if ($file =~ m!^extensions/a11y/(.*)!) {push(@EXTENSIONS,"\"[a11y]/$1\"")}
elsif ($file =~ m!^extensions/(.*)!) {push(@EXTENSIONS,"\"$1\"")}
if ($file =~ m!^config/(.*)!) {push(@CONFIG,"\"$1\"")}
}
@HUB = ();
push(@HUB,"config: [".join(",",@CONFIG)."]") if scalar(@CONFIG);
push(@HUB,"extensions: [".join(",",@EXTENSIONS)."]") if scalar(@EXTENSIONS);
push(@HUB,"jax: [".join(",",@JAX)."]") if scalar(@JAX);
push(@HUB,join("\n ",@config)) if scalar(@config);
open(CONFIG,"<","$DIR/template-unpacked.js") || die "Can't open $DIR/template-unpacked.js: $!\n";
@lines = <CONFIG>;
close(CONFIG);
$config = join("",@lines);
$config =~ s!%%% NAME %%%!/MathJax/unpacked/$outfile!;
print "Creating $outfile\n";
open(CONFIG,">","$MJX/unpacked/$outfile") || die "Can't write $MJX/$outfile: $!\n";
print CONFIG $config;
print CONFIG "MathJax.Hub.Config({\n";
print CONFIG " ",join(",\n ",@HUB);
print CONFIG "\n});\n\n";
print CONFIG "MathJax.Ajax.loadComplete(\"[MathJax]/$outfile\");\n";
close(CONFIG);
1;

15
debian/combiner/lists/AM_CHTML-full.lis vendored Normal file
View File

@ -0,0 +1,15 @@
jax/input/AsciiMath/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/AsciiMath/jax.js
jax/output/CommonHTML/jax.js
jax/output/CommonHTML/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

13
debian/combiner/lists/AM_CHTML.lis vendored Normal file
View File

@ -0,0 +1,13 @@
jax/input/AsciiMath/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/AsciiMath/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,18 @@
jax/input/AsciiMath/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/AsciiMath/jax.js
jax/output/NativeMML/jax.js
jax/output/HTML-CSS/jax.js
jax/output/HTML-CSS/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

15
debian/combiner/lists/AM_HTMLorMML.lis vendored Normal file
View File

@ -0,0 +1,15 @@
jax/input/AsciiMath/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/AsciiMath/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

15
debian/combiner/lists/AM_SVG-full.lis vendored Normal file
View File

@ -0,0 +1,15 @@
jax/input/AsciiMath/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/AsciiMath/jax.js
jax/output/SVG/jax.js
jax/output/SVG/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

12
debian/combiner/lists/AM_SVG.lis vendored Normal file
View File

@ -0,0 +1,12 @@
jax/input/AsciiMath/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/AsciiMath/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,34 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/output/NativeMML/jax.js
jax/output/HTML-CSS/jax.js
jax/output/HTML-CSS/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js
menuSettings: {
zoom: "Double-Click",
mpContext: true,
mpMouse: true
},
errorSettings: {
message: ["[",["MathError","Math Error"],"]"]
},

31
debian/combiner/lists/Accessible.lis vendored Normal file
View File

@ -0,0 +1,31 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js
menuSettings: {
zoom: "Double-Click",
mpContext: true,
mpMouse: true
},
errorSettings: {
message: ["[",["MathError","Math Error"],"]"]
},

View File

@ -0,0 +1,15 @@
jax/input/MathML/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/MathML/jax.js
jax/output/CommonHTML/jax.js
jax/output/CommonHTML/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

13
debian/combiner/lists/MML_CHTML.lis vendored Normal file
View File

@ -0,0 +1,13 @@
jax/input/MathML/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/MathML/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,18 @@
jax/input/MathML/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/MathML/jax.js
jax/output/NativeMML/jax.js
jax/output/HTML-CSS/jax.js
jax/output/HTML-CSS/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

15
debian/combiner/lists/MML_HTMLorMML.lis vendored Normal file
View File

@ -0,0 +1,15 @@
jax/input/MathML/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/MathML/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

15
debian/combiner/lists/MML_SVG-full.lis vendored Normal file
View File

@ -0,0 +1,15 @@
jax/input/MathML/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/MathML/jax.js
jax/output/SVG/jax.js
jax/output/SVG/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

13
debian/combiner/lists/MML_SVG.lis vendored Normal file
View File

@ -0,0 +1,13 @@
jax/input/MathML/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
jax/input/MathML/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,25 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/output/NativeMML/jax.js
jax/output/HTML-CSS/jax.js
jax/output/HTML-CSS/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,22 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,22 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/output/SVG/jax.js
jax/output/SVG/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,20 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,19 @@
jax/input/TeX/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/output/CommonHTML/jax.js
jax/output/CommonHTML/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

17
debian/combiner/lists/TeX-AMS_CHTML.lis vendored Normal file
View File

@ -0,0 +1,17 @@
jax/input/TeX/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,19 @@
jax/input/TeX/config.js
jax/output/HTML-CSS/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/output/HTML-CSS/jax.js
jax/output/HTML-CSS/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

17
debian/combiner/lists/TeX-AMS_HTML.lis vendored Normal file
View File

@ -0,0 +1,17 @@
jax/input/TeX/config.js
jax/output/HTML-CSS/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,19 @@
jax/input/TeX/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/output/SVG/jax.js
jax/output/SVG/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

17
debian/combiner/lists/TeX-AMS_SVG.lis vendored Normal file
View File

@ -0,0 +1,17 @@
jax/input/TeX/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,25 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/input/AsciiMath/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/input/AsciiMath/jax.js
jax/output/CommonHTML/jax.js
jax/output/CommonHTML/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,23 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/input/AsciiMath/config.js
jax/output/CommonHTML/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/input/AsciiMath/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,28 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/input/AsciiMath/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/input/AsciiMath/jax.js
jax/output/NativeMML/jax.js
jax/output/HTML-CSS/jax.js
jax/output/HTML-CSS/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,25 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/input/AsciiMath/config.js
jax/output/HTML-CSS/config.js
jax/output/NativeMML/config.js
jax/output/PreviewHTML/config.js
config/MMLorHTML.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/input/AsciiMath/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,25 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/input/AsciiMath/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/input/AsciiMath/jax.js
jax/output/SVG/jax.js
jax/output/SVG/autoload/mtable.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

View File

@ -0,0 +1,23 @@
jax/input/TeX/config.js
jax/input/MathML/config.js
jax/input/AsciiMath/config.js
jax/output/SVG/config.js
jax/output/PreviewHTML/config.js
extensions/tex2jax.js
extensions/mml2jax.js
extensions/asciimath2jax.js
extensions/MathEvents.js
extensions/MathZoom.js
extensions/MathMenu.js
jax/element/mml/jax.js
extensions/toMathML.js
extensions/TeX/noErrors.js
extensions/TeX/noUndefined.js
jax/input/TeX/jax.js
extensions/TeX/AMSmath.js
extensions/TeX/AMSsymbols.js
jax/input/MathML/jax.js
jax/input/AsciiMath/jax.js
jax/output/PreviewHTML/jax.js
extensions/fast-preview.js
extensions/AssistiveMML.js

15
debian/combiner/template-unpacked.js vendored Normal file
View File

@ -0,0 +1,15 @@
/*************************************************************
*
* %%% NAME %%%
*
* Copyright (c) 2010-2018 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/

18
debian/combiner/template.js vendored Normal file
View File

@ -0,0 +1,18 @@
/*
* %%% NAME %%%
*
* Copyright (c) 2010-2018 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
%%% MMLorHTML %%%
MathJax.Ajax.Preloading(
%%% FILES %%%
);

67
debian/control vendored Normal file
View File

@ -0,0 +1,67 @@
Source: mathjax
Section: javascript
Priority: optional
Maintainer: openKylin Developers <packaging@lists.openkylin.top>
Uploaders: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Build-Depends: debhelper-compat (= 13), perl, yui-compressor
Standards-Version: 4.5.0
Homepage: https://www.mathjax.org
Vcs-Git: https://salsa.debian.org/js-team/mathjax.git
Vcs-Browser: https://salsa.debian.org/js-team/mathjax
Rules-Requires-Root: no
Package: libjs-mathjax
Architecture: all
Multi-Arch: foreign
Depends: fonts-mathjax (>= 2.6.0~), ${misc:Depends}
Suggests: fonts-mathjax-extras, fonts-stix, libjs-mathjax-doc
Description: JavaScript display engine for LaTeX and MathML
MathJax was designed with the goal of consolidating the recent advances in web
technologies into a single, definitive, math-on-the-web platform supporting
the major browsers and operating systems.
.
It requires no setup on the part of the user (no plugins to download or
software to install), so the page author can write web documents that include
mathematics and be confident that users will be able to view it naturally and
easily. Simply include MathJax and some mathematics in a web page, and MathJax
will do the rest.
Package: fonts-mathjax
Section: fonts
Architecture: all
Depends: ${misc:Depends}
Suggests: libjs-mathjax
Multi-Arch: foreign
Description: JavaScript display engine for LaTeX and MathML (fonts)
MathJax was designed with the goal of consolidating the recent advances in web
technologies into a single, definitive, math-on-the-web platform supporting
the major browsers and operating systems.
.
It requires no setup on the part of the user (no plugins to download or
software to install), so the page author can write web documents that include
mathematics and be confident that users will be able to view it naturally and
easily. Simply include MathJax and some mathematics in a web page, and MathJax
will do the rest.
.
This package contains OTF, SVG and WOFF fonts for MathJax.
Package: fonts-mathjax-extras
Section: fonts
Architecture: all
Depends: ${misc:Depends}
Recommends: fonts-mathjax
Suggests: libjs-mathjax
Multi-Arch: foreign
Description: JavaScript display engine for LaTeX and MathML (extra fonts)
MathJax was designed with the goal of consolidating the recent advances in web
technologies into a single, definitive, math-on-the-web platform supporting
the major browsers and operating systems.
.
It requires no setup on the part of the user (no plugins to download or
software to install), so the page author can write web documents that include
mathematics and be confident that users will be able to view it naturally and
easily. Simply include MathJax and some mathematics in a web page, and MathJax
will do the rest.
.
This package contains EOT fonts for MathJax, that are provided in addition to
OTF, SVG and WOFF fonts in "fonts-mathjax" package.

231
debian/copyright vendored Normal file
View File

@ -0,0 +1,231 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: MathJax
Source: https://github.com/mathjax/MathJax
Files-Excluded: config extensions jax localization
unpacked/extensions/a11y/mathjax-sre.js
unpacked/extensions/a11y/mathmaps
unpacked/extensions/a11y/wgxpath.install.js
fonts/HTML-CSS/TeX/png
latest.js MathJax.js
Files: *
Copyright: 2009-2020 The MathJax Consortium
License: Apache-2.0
Files: unpacked/extensions/MathML/content-mathml.js
unpacked/extensions/MathML/mml3.js
Copyright: 2001-2015 David Carlisle
2013-2020 The MathJax Consortium
License: Apache-2.0
Files: unpacked/extensions/TeX/mhchem3/mhchem.js
Copyright: 2011-2015 The MathJax Consortium
2015-2019 Martin Hensel
License: Apache-2.0
Files: fonts/HTML-CSS/TeX/*
Copyright: 2009-2013 The MathJax Consortium, with Reserved Font Names
MathJax_AMS, MathJax_Main, MathJax_Math, etc
License: OFL-1.1
Files: fonts/HTML-CSS/Asana-Math/*
Copyright: 2007 Apostolos Syropoulos <asyropoulos@yahoo.com>, with
Reserved Font Name Asana Math
2013 The MathJax Consortium, with Reserved Font Name Asana MathJax
License: OFL-1.1
Files: fonts/HTML-CSS/Neo-Euler/*
Copyright: 1997-2009 American Mathematical Society, with Reserved Font Names
EUEX10, EUEX7, EUEX8, EUEX9, EUFB10, EUFB5, EUFB7, EUFM10,
EUFM5, EUFM7, EURB10, EURB5, EURB7, EURM10, EURM5, EURM7,
EUSB10, EUSB5, EUSB7, EUSM10, EUSM5, EUSM7,
CMEX10, CMSY5, CMSY7
2009-2010 Khaled Hosny <khaledhosny@eglug.org>
2013 The MathJax Consortium, with Reserved Font Name Neo Euler
MathJax
License: OFL-1.1
Files: fonts/HTML-CSS/STIX-Web/*
Copyright: 2001-2010 STI Pub Companies, consisting of the American Institute of
Physics, the American Chemical Society, the American
Mathematical Society, the American Physical Society,
Elsevier, Inc., and The Institute of Electrical and
Electronic Engineers, Inc. (www.stixfonts.org), with
Reserved Font Name STIX Fonts
1998-2003 MicroPress, Inc., with Reserved Font Name TM Math
1990 Elsevier, Inc
2013 The MathJax Consortium, with Reserved Font Name STIX
MathJax
License: OFL-1.1
Files: fonts/HTML-CSS/Gyre-Pagella/*
fonts/HTML-CSS/Gyre-Termes/*
fonts/HTML-CSS/Latin-Modern/*
Copyright: 2012-2013 B. Jackowski, P. Strzelczyk and P. Pianowski
(on behalf of TeX Users Groups)
2013 The MathJax Consortium, with Reserved Font Names
GyrePagellaMathJax, GyreTermesMathJax and LatinModernMathJax
License: GFL
Files: unpacked/jax/input/AsciiMath/jax.js
Copyright: 2014 Peter Jipsen and other ASCIIMathML.js contributors
2012-2020 The MathJax Consortium
License: GPL-2+ or Apache-2.0
Files: debian/*
Copyright: 2011 Julien Jehannet <julien.jehannet@logilab.fr>
2012-2020 Dmitry Shachnev <mitya57@debian.org>
License: Apache-2.0
Files: debian/packer/*
debian/combiner/*
Copyright: 2009-2018 The MathJax Consortium
License: Apache-2.0
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache License version 2.0
can be found in "/usr/share/common-licenses/Apache-2.0".
License: GPL-2+
This program 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 program 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.
.
On Debian systems, the complete text of the GNU General Public
License version 2 can be found in "/usr/share/common-licenses/GPL-2".
License: OFL-1.1
SIL OPEN FONT LICENSE
Version 1.1 - 26 February 2007
.
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
.
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
.
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting — in part or in whole — any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
.
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
License: GFL
GUST FONT LICENSE
.
This is a preliminary version (2006-09-30), barring acceptance from
the LaTeX Project Team and other feedback, of the GUST Font License.
(GUST is the Polish TeX Users Group, http://www.gust.org.pl)
.
For the most recent version of this license see
http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
or
http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
.
This work may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
license or (at your option) any later version.
.
Please also observe the following clause:
1) it is requested, but not legally required, that derived works be
distributed only after changing the names of the fonts comprising this
work and given in an accompanying "manifest", and that the
files comprising the Work, as listed in the manifest, also be given
new names. Any exceptions to this request are also given in the
manifest.
.
We recommend the manifest be given in a separate file named
MANIFEST-<fontid>.txt, where <fontid> is some unique identification
of the font family. If a separate "readme" file accompanies the Work,
we recommend a name of the form README-<fontid>.txt.
.
The latest version of the LaTeX Project Public License is in
http://www.latex-project.org/lppl.txt and version 1.3c or later
is part of all distributions of LaTeX version 2006/05/20 or later.

2
debian/fonts-mathjax-extras.install vendored Normal file
View File

@ -0,0 +1,2 @@
fonts/HTML-CSS/TeX/eot usr/share/javascript/mathjax/fonts/HTML-CSS/TeX
fonts/HTML-CSS/STIX-Web/eot usr/share/javascript/mathjax/fonts/HTML-CSS/STIX-Web

5
debian/fonts-mathjax.install vendored Normal file
View File

@ -0,0 +1,5 @@
fonts/HTML-CSS/TeX/otf usr/share/javascript/mathjax/fonts/HTML-CSS/TeX
fonts/HTML-CSS/TeX/svg usr/share/javascript/mathjax/fonts/HTML-CSS/TeX
fonts/HTML-CSS/TeX/woff usr/share/javascript/mathjax/fonts/HTML-CSS/TeX
fonts/HTML-CSS/STIX-Web/otf usr/share/javascript/mathjax/fonts/HTML-CSS/STIX-Web
fonts/HTML-CSS/STIX-Web/woff usr/share/javascript/mathjax/fonts/HTML-CSS/STIX-Web

1
debian/fonts-mathjax.links vendored Normal file
View File

@ -0,0 +1 @@
usr/share/javascript/mathjax/fonts/HTML-CSS/TeX/otf usr/share/fonts/opentype/mathjax

1
debian/libjs-mathjax.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/share/javascript/mathjax

1
debian/libjs-mathjax.docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

7
debian/libjs-mathjax.install vendored Normal file
View File

@ -0,0 +1,7 @@
MathJax.js usr/share/javascript/mathjax
config usr/share/javascript/mathjax
extensions usr/share/javascript/mathjax
jax usr/share/javascript/mathjax
localization usr/share/javascript/mathjax
test usr/share/javascript/mathjax
unpacked usr/share/javascript/mathjax

50
debian/packer/packMJ vendored Executable file
View File

@ -0,0 +1,50 @@
#! /usr/bin/perl
#
# Compresses scripts in the MathJax project
#
# Usage: packMJ [--force] [project-dir]
use Cwd;
use FindBin;
if ($ARGV[0] eq '--force') {$force = true; shift}
$DST = shift || getcwd;
$SRC = "$DST/unpacked";
$bindir = $FindBin::Bin;
$PACKMJFILE = "$bindir/packMJfile";
sub packDir {
my ($src,$dst) = @_;
opendir(SRC,$src);
my @files = grep(/^[^.]/,readdir(SRC));
closedir(SRC);
foreach my $file (@files) {
if (-d "$src/$file") {
next if "$src/$file" eq "$SRC/fonts";
next if "$src/$file" eq "$SRC/docs";
next if "$src/$file" eq "$SRC/unpacked";
if (! -e "$dst/$file") {mkdir "$dst/$file"}
packDir("$src/$file","$dst/$file");
} elsif ($file =~ m/\.js$/) {
packFile($src,$dst,$file);
}
}
}
sub packFile {
my ($src,$dst,$file) = @_;
$src .= "/$file"; $dst .= "/$file";
my ($stime,$ssize) = (stat($src))[9,7];
my $dtime = (stat($dst))[9];
return if $stime <= $dtime && !$force;
system("$PACKMJFILE '$src' '$dst'");
my $dsize = (stat($dst))[7];
print "Size: $dsize, Original: $ssize [saved: ",$ssize-$dsize," or ",
sprintf("%.1f",100*($ssize-$dsize)/$ssize),"%]\n";
}
packDir($SRC,$DST);
1;

56
debian/packer/packMJfile vendored Executable file
View File

@ -0,0 +1,56 @@
#! /usr/bin/perl
# Compresses a MathJax file and reports the new size and savings.
# You need to have yuicompressor in order for this to work
#
# Usage: packMJfile src-file dest-file
use Cwd;
use FindBin;
$bindir = $FindBin::Bin;
$JAVA = "java";
$SED = "sed";
$YUICOMPRESSOR = "/usr/share/yui-compressor/yui-compressor.jar";
$YUIFILTER = "$bindir/yuiFilter";
$src = shift; $dst = shift;
if ($src =~ m!/config/(local/local|default)\.js$!) {
print "============================================\n";
print "Copying: $src\n";
system("cp '$src' '$dst'");
exit;
}
print "============================================\n";
print "Compressing: $src\n";
print "--------------------------------------------";
# The sed command uncomments the 'MathJax.isPacked = true;' from MathJax.js
system("cat '$src' | $SED \"s\/^.*\\/\\/ \\(MathJax.isPacked = true;\\).*$\/\\1\/\" | $JAVA -jar '$YUICOMPRESSOR' -v -o '$dst' --type js 2>&1 | $YUIFILTER");
open(MJX,"<", $dst);
@lines = <MJX>;
close(MJX);
$compressed = join("",@lines);
$template = "$bindir/template.js";
open(MJX,"<",$template);
@lines = <MJX>;
close(MJX);
$lines = join("",@lines);
$dstname = $dst; $dstname =~ s!.*/(dpvc-)?MathJax!/MathJax!;
$cwd = getcwd; $dstname =~ s/\Q$cwd\E/\/MathJax/;
$lines =~ s/%%%NAME%%%/$dstname/;
$lines =~ s/%%%DATA%%%/$compressed/;
open(MJX,">",$dst);
print MJX $lines;
close(MJX);
1;

19
debian/packer/template.js vendored Normal file
View File

@ -0,0 +1,19 @@
/*
* %%%NAME%%%
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
%%%DATA%%%

19
debian/packer/yuiFilter vendored Executable file
View File

@ -0,0 +1,19 @@
#! /usr/bin/perl
# used internally to filter the yuicompressor output to not show certain messages
while ($line = <>) {
if ($line =~ m/use a single 'var' statement per scope/) {
$line = <>; $line = <>; # skip next two lines
} elsif ($line =~ m/The symbol (VERSION|TEXCLASS|MO) is declared but/) {
$line = <>; $line = <>; # skip next two lines
} elsif ($line =~ m/Using 'eval' is not recommended/) {
$line = <>; $line = <>; # skip next two lines
} elsif ($line =~ m/Using charset (MacRoman|UTF)/) {
$line = <>; # skip blank line
} else {
print $line;
}
}
1;

48
debian/patches/no_extra_fonts.diff vendored Normal file
View File

@ -0,0 +1,48 @@
Description: disable extra fonts, we do not ship them at the moment
Author: Dmitry Shachnev <mitya57@debian.org>
Forwarded: not-needed
Last-Update: 2016-02-14
--- a/unpacked/extensions/MathMenu.js
+++ b/unpacked/extensions/MathMenu.js
@@ -1573,13 +1573,7 @@
ITEM.RADIO(["TeXImage","TeX (image)"], "font", {action: MENU.Font}),
ITEM.RULE(),
ITEM.RADIO(["STIXLocal","STIX (local)"], "font", {action: MENU.Font}),
- ITEM.RADIO(["STIXWeb","STIX (web)"], "font", {action: MENU.Font}),
- ITEM.RULE(),
- ITEM.RADIO(["AsanaMathWeb","Asana Math (web)"], "font", {action: MENU.Font}),
- ITEM.RADIO(["GyrePagellaWeb","Gyre Pagella (web)"], "font", {action: MENU.Font}),
- ITEM.RADIO(["GyreTermesWeb","Gyre Termes (web)"], "font", {action: MENU.Font}),
- ITEM.RADIO(["LatinModernWeb","Latin Modern (web)"], "font", {action: MENU.Font}),
- ITEM.RADIO(["NeoEulerWeb","Neo Euler (web)"], "font", {action: MENU.Font})
+ ITEM.RADIO(["STIXWeb","STIX (web)"], "font", {action: MENU.Font})
),
ITEM.SUBMENU(["ContextMenu","Contextual Menu"], {hidden:!CONFIG.showContext},
ITEM.RADIO(["MathJax","MathJax"], "context"),
--- a/unpacked/jax/output/HTML-CSS/jax.js
+++ b/unpacked/jax/output/HTML-CSS/jax.js
@@ -432,11 +432,6 @@
TeXImage: ["",""],
STIXLocal: ["STIX","STIX-Web"],
STIXWeb: "STIX-Web",
- AsanaMathWeb: "Asana-Math",
- GyrePagellaWeb: "Gyre-Pagella",
- GyreTermesWeb: "Gyre-Termes",
- LatinModernWeb: "Latin-Modern",
- NeoEulerWeb: "Neo-Euler"
},
fontInUse: "generic",
--- a/unpacked/jax/output/SVG/jax.js
+++ b/unpacked/jax/output/SVG/jax.js
@@ -159,8 +159,7 @@
hideProcessedMath: true, // use display:none until all math is processed
- fontNames: ["TeX","STIX","STIX-Web","Asana-Math",
- "Gyre-Termes","Gyre-Pagella","Latin-Modern","Neo-Euler"],
+ fontNames: ["TeX","STIX","STIX-Web","Asana-Math"],
Config: function () {

2
debian/patches/series vendored Normal file
View File

@ -0,0 +1,2 @@
no_extra_fonts.diff
update_url.diff

16
debian/patches/update_url.diff vendored Normal file
View File

@ -0,0 +1,16 @@
Description: use local URL in an example in config/Safe.js
Author: Dmitry Shachnev <mitya57@debian.org>
Forwarded: not-needed
Last-Update: 2020-05-23
--- a/unpacked/config/Safe.js
+++ b/unpacked/config/Safe.js
@@ -9,7 +9,7 @@
* when you load MathJax.js, e.g.
*
* <script
- * src="http://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_HTML,Safe">
+ * src="file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_HTML,Safe">
* </script>
*
* ---------------------------------------------------------------------

10
debian/rules vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/make -f
# -*- makefile -*-
# This file was originally written by Joey Hess and Craig Small.
%:
dh $@
override_dh_auto_build:
./debian/packer/packMJ --force
./debian/combiner/combineMJ --force

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

9
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1,9 @@
# These files really have long lines, but they are not minified.
mathjax source: source-is-missing unpacked/extensions/a11y/explorer.js *
mathjax source: source-is-missing unpacked/jax/input/AsciiMath/jax.js *
mathjax source: source-is-missing unpacked/jax/output/SVG/fonts/*
mathjax source: source-is-missing unpacked/localization/*
mathjax source: source-contains-prebuilt-javascript-object unpacked/extensions/a11y/explorer.js *
mathjax source: source-contains-prebuilt-javascript-object unpacked/jax/input/AsciiMath/jax.js *
mathjax source: source-contains-prebuilt-javascript-object unpacked/jax/output/SVG/fonts/*
mathjax source: source-contains-prebuilt-javascript-object unpacked/localization/*

1
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1 @@
Bug-Database: https://github.com/mathjax/MathJax/issues

8
debian/watch vendored Normal file
View File

@ -0,0 +1,8 @@
# watch control file for uscan
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
opts=uversionmangle=s/-/~/,dversionmangle=s/\+dfsg//,repacksuffix=+dfsg \
https://github.com/mathjax/MathJax/releases .*/archive/v?(2\..*).tar.gz