diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..e058711 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,15 @@ +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. + +The latest version is based on upstream commit +c385ab91ea8839ca30319b3ec9e746e1c817a92f. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0b2ae74 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mathjax (2.7.4+dfsg-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- openKylinBot Mon, 25 Apr 2022 22:03:04 +0800 diff --git a/debian/combiner/combineMJ b/debian/combiner/combineMJ new file mode 100755 index 0000000..a0567e6 --- /dev/null +++ b/debian/combiner/combineMJ @@ -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 = ; 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; diff --git a/debian/combiner/combineMJlist b/debian/combiner/combineMJlist new file mode 100755 index 0000000..b70afb7 --- /dev/null +++ b/debian/combiner/combineMJlist @@ -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 = ; +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 = ; + close(JS); + $lines = join("",@lines); + $lines =~ s!/.*?\*/\n\n!!s; + print CONFIG $lines; +} + +print CONFIG "MathJax.Ajax.loadComplete(\"[MathJax]/$outfile\");\n"; + +close(CONFIG); + +1; diff --git a/debian/combiner/combineMJlist-unpacked b/debian/combiner/combineMJlist-unpacked new file mode 100755 index 0000000..7bea250 --- /dev/null +++ b/debian/combiner/combineMJlist-unpacked @@ -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 = ; +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; diff --git a/debian/combiner/lists/AM_CHTML-full.lis b/debian/combiner/lists/AM_CHTML-full.lis new file mode 100644 index 0000000..090ca2e --- /dev/null +++ b/debian/combiner/lists/AM_CHTML-full.lis @@ -0,0 +1,18 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/AM_CHTML.lis b/debian/combiner/lists/AM_CHTML.lis new file mode 100644 index 0000000..942b56e --- /dev/null +++ b/debian/combiner/lists/AM_CHTML.lis @@ -0,0 +1,16 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/AM_HTMLorMML-full.lis b/debian/combiner/lists/AM_HTMLorMML-full.lis new file mode 100644 index 0000000..efe8920 --- /dev/null +++ b/debian/combiner/lists/AM_HTMLorMML-full.lis @@ -0,0 +1,21 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/AM_HTMLorMML.lis b/debian/combiner/lists/AM_HTMLorMML.lis new file mode 100644 index 0000000..f8df068 --- /dev/null +++ b/debian/combiner/lists/AM_HTMLorMML.lis @@ -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/PreviewHTML/jax.js +extensions/fast-preview.js +extensions/AssistiveMML.js +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/AM_SVG-full.lis b/debian/combiner/lists/AM_SVG-full.lis new file mode 100644 index 0000000..3a117e4 --- /dev/null +++ b/debian/combiner/lists/AM_SVG-full.lis @@ -0,0 +1,18 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/AM_SVG.lis b/debian/combiner/lists/AM_SVG.lis new file mode 100644 index 0000000..7ebd1f9 --- /dev/null +++ b/debian/combiner/lists/AM_SVG.lis @@ -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 +extensions/fast-preview.js +extensions/AssistiveMML.js +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/Accessible-full.lis b/debian/combiner/lists/Accessible-full.lis new file mode 100644 index 0000000..b315264 --- /dev/null +++ b/debian/combiner/lists/Accessible-full.lis @@ -0,0 +1,36 @@ +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 +extensions/a11y/accessibility-menu.js + +menuSettings: { + zoom: "Double-Click", + mpContext: true, + mpMouse: true +}, +errorSettings: { + message: ["[",["MathError","Math Error"],"]"] +}, +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/Accessible.lis b/debian/combiner/lists/Accessible.lis new file mode 100644 index 0000000..3a18864 --- /dev/null +++ b/debian/combiner/lists/Accessible.lis @@ -0,0 +1,33 @@ +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 +extensions/a11y/accessibility-menu.js + +menuSettings: { + zoom: "Double-Click", + mpContext: true, + mpMouse: true +}, +errorSettings: { + message: ["[",["MathError","Math Error"],"]"] +}, +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/MML_CHTML-full.lis b/debian/combiner/lists/MML_CHTML-full.lis new file mode 100644 index 0000000..94500d0 --- /dev/null +++ b/debian/combiner/lists/MML_CHTML-full.lis @@ -0,0 +1,18 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/MML_CHTML.lis b/debian/combiner/lists/MML_CHTML.lis new file mode 100644 index 0000000..7e80be1 --- /dev/null +++ b/debian/combiner/lists/MML_CHTML.lis @@ -0,0 +1,16 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/MML_HTMLorMML-full.lis b/debian/combiner/lists/MML_HTMLorMML-full.lis new file mode 100644 index 0000000..5c9f4b5 --- /dev/null +++ b/debian/combiner/lists/MML_HTMLorMML-full.lis @@ -0,0 +1,21 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/MML_HTMLorMML.lis b/debian/combiner/lists/MML_HTMLorMML.lis new file mode 100644 index 0000000..126c8a9 --- /dev/null +++ b/debian/combiner/lists/MML_HTMLorMML.lis @@ -0,0 +1,19 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] + diff --git a/debian/combiner/lists/MML_SVG-full.lis b/debian/combiner/lists/MML_SVG-full.lis new file mode 100644 index 0000000..464d019 --- /dev/null +++ b/debian/combiner/lists/MML_SVG-full.lis @@ -0,0 +1,18 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/MML_SVG.lis b/debian/combiner/lists/MML_SVG.lis new file mode 100644 index 0000000..3e5fd38 --- /dev/null +++ b/debian/combiner/lists/MML_SVG.lis @@ -0,0 +1,16 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS-MML_HTMLorMML-full.lis b/debian/combiner/lists/TeX-AMS-MML_HTMLorMML-full.lis new file mode 100644 index 0000000..6b63d13 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS-MML_HTMLorMML-full.lis @@ -0,0 +1,28 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS-MML_HTMLorMML.lis b/debian/combiner/lists/TeX-AMS-MML_HTMLorMML.lis new file mode 100644 index 0000000..1ecf246 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS-MML_HTMLorMML.lis @@ -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/PreviewHTML/jax.js +extensions/fast-preview.js +extensions/AssistiveMML.js +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS-MML_SVG-full.lis b/debian/combiner/lists/TeX-AMS-MML_SVG-full.lis new file mode 100644 index 0000000..6d50b69 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS-MML_SVG-full.lis @@ -0,0 +1,25 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS-MML_SVG.lis b/debian/combiner/lists/TeX-AMS-MML_SVG.lis new file mode 100644 index 0000000..ddbc6f6 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS-MML_SVG.lis @@ -0,0 +1,23 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS_CHTML-full.lis b/debian/combiner/lists/TeX-AMS_CHTML-full.lis new file mode 100644 index 0000000..7ae23eb --- /dev/null +++ b/debian/combiner/lists/TeX-AMS_CHTML-full.lis @@ -0,0 +1,22 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS_CHTML.lis b/debian/combiner/lists/TeX-AMS_CHTML.lis new file mode 100644 index 0000000..f0d6cd4 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS_CHTML.lis @@ -0,0 +1,20 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS_HTML-full.lis b/debian/combiner/lists/TeX-AMS_HTML-full.lis new file mode 100644 index 0000000..6717db1 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS_HTML-full.lis @@ -0,0 +1,22 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS_HTML.lis b/debian/combiner/lists/TeX-AMS_HTML.lis new file mode 100644 index 0000000..a99c531 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS_HTML.lis @@ -0,0 +1,20 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS_SVG-full.lis b/debian/combiner/lists/TeX-AMS_SVG-full.lis new file mode 100644 index 0000000..ba4ff2b --- /dev/null +++ b/debian/combiner/lists/TeX-AMS_SVG-full.lis @@ -0,0 +1,22 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-AMS_SVG.lis b/debian/combiner/lists/TeX-AMS_SVG.lis new file mode 100644 index 0000000..d06a4d5 --- /dev/null +++ b/debian/combiner/lists/TeX-AMS_SVG.lis @@ -0,0 +1,20 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-MML-AM_CHTML-full.lis b/debian/combiner/lists/TeX-MML-AM_CHTML-full.lis new file mode 100644 index 0000000..c470868 --- /dev/null +++ b/debian/combiner/lists/TeX-MML-AM_CHTML-full.lis @@ -0,0 +1,28 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-MML-AM_CHTML.lis b/debian/combiner/lists/TeX-MML-AM_CHTML.lis new file mode 100644 index 0000000..39c4a49 --- /dev/null +++ b/debian/combiner/lists/TeX-MML-AM_CHTML.lis @@ -0,0 +1,26 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-MML-AM_HTMLorMML-full.lis b/debian/combiner/lists/TeX-MML-AM_HTMLorMML-full.lis new file mode 100644 index 0000000..3a20c77 --- /dev/null +++ b/debian/combiner/lists/TeX-MML-AM_HTMLorMML-full.lis @@ -0,0 +1,31 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-MML-AM_HTMLorMML.lis b/debian/combiner/lists/TeX-MML-AM_HTMLorMML.lis new file mode 100644 index 0000000..f591b2a --- /dev/null +++ b/debian/combiner/lists/TeX-MML-AM_HTMLorMML.lis @@ -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/PreviewHTML/jax.js +extensions/fast-preview.js +extensions/AssistiveMML.js +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-MML-AM_SVG-full.lis b/debian/combiner/lists/TeX-MML-AM_SVG-full.lis new file mode 100644 index 0000000..4da9dd7 --- /dev/null +++ b/debian/combiner/lists/TeX-MML-AM_SVG-full.lis @@ -0,0 +1,28 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/lists/TeX-MML-AM_SVG.lis b/debian/combiner/lists/TeX-MML-AM_SVG.lis new file mode 100644 index 0000000..335a3cf --- /dev/null +++ b/debian/combiner/lists/TeX-MML-AM_SVG.lis @@ -0,0 +1,26 @@ +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 +extensions/a11y/accessibility-menu.js + +extensions: ['[a11y]/accessibility-menu.js'] diff --git a/debian/combiner/template-unpacked.js b/debian/combiner/template-unpacked.js new file mode 100644 index 0000000..4aba978 --- /dev/null +++ b/debian/combiner/template-unpacked.js @@ -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 + */ + diff --git a/debian/combiner/template.js b/debian/combiner/template.js new file mode 100644 index 0000000..54d3776 --- /dev/null +++ b/debian/combiner/template.js @@ -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 %%% +); + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2de82e5 --- /dev/null +++ b/debian/control @@ -0,0 +1,70 @@ +Source: mathjax +Section: javascript +Priority: optional +Maintainer: Dmitry Shachnev +Uploaders: Debian Javascript Maintainers +Build-Depends: debhelper (>= 11), perl, yui-compressor +Standards-Version: 4.1.4 +Homepage: https://www.mathjax.org +Vcs-Git: https://salsa.debian.org/js-team/mathjax.git +Vcs-Browser: https://salsa.debian.org/js-team/mathjax + +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 +Breaks: libjs-mathjax (<< 2.1) +Replaces: libjs-mathjax (<< 2.1) +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 +Breaks: libjs-mathjax (<< 2.1) +Replaces: libjs-mathjax (<< 2.1) +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1080ae3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,220 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: MathJax +Source: https://github.com/mathjax/MathJax +Comment: Repacked manually in get-orig-source target. + +Files: * +Copyright: 2009-2018 The MathJax Consortium +License: Apache-2.0 + +Files: unpacked/extensions/TeX/mhchem3/mhchem.js +Copyright: 2011-2015 The MathJax Consortium + 2015-2017 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 , 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 + 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: 2005 Peter Jipsen + 2012-2014 The MathJax Consortium +License: GPL-2+ or Apache-2.0 + +Files: debian/* +Copyright: 2011 Julien Jehannet + 2012-2018 Dmitry Shachnev +License: Apache-2.0 + +Files: debian/packer/* + debian/combiner/* +Copyright: 2009-2015 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-.txt, where is some unique identification + of the font family. If a separate "readme" file accompanies the Work, + we recommend a name of the form README-.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. diff --git a/debian/fonts-mathjax-extras.install b/debian/fonts-mathjax-extras.install new file mode 100644 index 0000000..e590e57 --- /dev/null +++ b/debian/fonts-mathjax-extras.install @@ -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 diff --git a/debian/fonts-mathjax.install b/debian/fonts-mathjax.install new file mode 100644 index 0000000..46ffe35 --- /dev/null +++ b/debian/fonts-mathjax.install @@ -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 diff --git a/debian/fonts-mathjax.links b/debian/fonts-mathjax.links new file mode 100644 index 0000000..b440f63 --- /dev/null +++ b/debian/fonts-mathjax.links @@ -0,0 +1 @@ +usr/share/javascript/mathjax/fonts/HTML-CSS/TeX/otf usr/share/fonts/opentype/mathjax diff --git a/debian/libjs-mathjax.dirs b/debian/libjs-mathjax.dirs new file mode 100644 index 0000000..318aba3 --- /dev/null +++ b/debian/libjs-mathjax.dirs @@ -0,0 +1 @@ +usr/share/javascript/mathjax diff --git a/debian/libjs-mathjax.docs b/debian/libjs-mathjax.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/libjs-mathjax.docs @@ -0,0 +1 @@ +README.md diff --git a/debian/libjs-mathjax.install b/debian/libjs-mathjax.install new file mode 100644 index 0000000..034d363 --- /dev/null +++ b/debian/libjs-mathjax.install @@ -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 diff --git a/debian/packer/packMJ b/debian/packer/packMJ new file mode 100755 index 0000000..ebfce5b --- /dev/null +++ b/debian/packer/packMJ @@ -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; diff --git a/debian/packer/packMJfile b/debian/packer/packMJfile new file mode 100755 index 0000000..f8200a7 --- /dev/null +++ b/debian/packer/packMJfile @@ -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 = ; +close(MJX); +$compressed = join("",@lines); + +$template = "$bindir/template.js"; + +open(MJX,"<",$template); +@lines = ; +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; diff --git a/debian/packer/template.js b/debian/packer/template.js new file mode 100644 index 0000000..3d860ae --- /dev/null +++ b/debian/packer/template.js @@ -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%%% diff --git a/debian/packer/yuiFilter b/debian/packer/yuiFilter new file mode 100755 index 0000000..9108514 --- /dev/null +++ b/debian/packer/yuiFilter @@ -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; diff --git a/debian/patches/no_extra_fonts.diff b/debian/patches/no_extra_fonts.diff new file mode 100644 index 0000000..4e4929d --- /dev/null +++ b/debian/patches/no_extra_fonts.diff @@ -0,0 +1,48 @@ +Description: disable extra fonts, we do not ship them at the moment +Author: Dmitry Shachnev +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 +@@ -396,11 +396,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 +@@ -125,8 +125,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 () { diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..a51cfdb --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +no_extra_fonts.diff +update_url.diff diff --git a/debian/patches/update_url.diff b/debian/patches/update_url.diff new file mode 100644 index 0000000..57d17fd --- /dev/null +++ b/debian/patches/update_url.diff @@ -0,0 +1,16 @@ +Description: use local URL in an example in config/Safe.js +Author: Dmitry Shachnev +Forwarded: not-needed +Last-Update: 2014-10-03 + +--- a/unpacked/config/Safe.js ++++ b/unpacked/config/Safe.js +@@ -9,7 +9,7 @@ + * when you load MathJax.js, e.g. + * + * + * + * --------------------------------------------------------------------- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..656d357 --- /dev/null +++ b/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# This file was originally written by Joey Hess and Craig Small. + +include /usr/share/dpkg/pkg-info.mk + +UPSTREAM_VERSION = $(DEB_VERSION_UPSTREAM:+dfsg=) + +DELETED_FILES = 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 + +%: + dh $@ + +override_dh_auto_build: + ./debian/packer/packMJ --force + ./debian/combiner/combineMJ --force + +override_dh_auto_clean: + rm -rfv config/ extensions/ jax/ localization/ + rm -fv MathJax.js + +get-orig-source: + uscan --noconf --download-current-version --no-symlink + gunzip -c ../$(UPSTREAM_VERSION).tar.gz | \ + tar --delete $(addprefix MathJax-$(UPSTREAM_VERSION)/,$(DELETED_FILES)) | \ + xz -z > ../mathjax_$(UPSTREAM_VERSION)+dfsg.orig.tar.xz diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..58521e9 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +mathjax source: source-is-missing +mathjax source: source-contains-prebuilt-javascript-object diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c2ba49c --- /dev/null +++ b/debian/watch @@ -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// \ +https://github.com/mathjax/MathJax/releases .*/archive/v?(.*).tar.gz