-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Bill,
thanks for the update. On 28/04/15 20:36, Bill Allombert wrote: > On Sun, Sep 28, 2014 at 01:40:33PM +0200, Jerome BENOIT wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hello, >> >> please find below the message given by lintian for gap-io 4.4.1: >> >> E: gap-io: privacy-breach-may-use-debian-package >> usr/share/gap/pkg/io/doc/chap0_mj.html You may use libjs-mathjax package. >> (http://cdn.mathjax.org/mathjax/latest/mathjax.js?config=tex-ams-mml_htmlormml) >> >> and in attachment the chap0_mj.html and chap0.html generated files. > > Hello Jérome, > > GAPDoc documentation gives a solution to this problem: > see 5.3-7 GAPDoc2HTML > << > If mtrans is set to "MathJax" the formulae are essentially translated as for > LaTeX documents (there is no processing of <M> elements as decribed in > 3.8-2). > Inline formulae are delimited by \( and \) and displayed formulae by \[ and > \]. > With MathJax webpages can contain nicely formatted scalable and searchable > formulae. The resulting files link by default to http://cdn.mathjax.org to > get > the MathJax script and fonts. This means that they can only be used on > computers with internet access. An alternative URL can be set by overwriting > GAPDoc2HTMLProcs.MathJaxURL before building the HTML version of a manual. > This > way a local installation of MathJax could be used. See > http://www.mathjax.org/ > for more details. >>> > > So you should be able to avoid this issue by setting > GAPDoc2HTMLProcs.MathJaxURL:="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; > in the the file makedocrel.g or whatever the program that call GAPDoc is used. > > But of course, we should try to solve the problem globally. > > One solution: > > 1) I patch GAPDoc/lib/GAPDoc2HTML.gi to > use > GAPDoc2HTMLProcs.MathJaxURL:="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; > as the default value I would try to avoid this. > 2) I change gap-gapdoc to Recommends libjs-mathjax and fonts-mathjax-extras. this sounds good. > > 3) then we will need to rebuild the affected packages this is not an issue, but rather annoying I agree. > > Better idea ? > Do you know if it is possible to avoid the absolute file:// URL > (file:///usr/share/javascript/mathjax/MathJax.js) which does not > play well with webserver ? > > We can do it by creating a symlink > mathjax --> /usr/share/javascript/mathjax > in the doc directory of the package and set > GAPDoc2HTMLProcs.MathJaxURL:="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; This does not sounds reasonable. If I remember well, for docbook stuff there is a machinery that transparently via some catalog grabs meta data files when available while WWW are let unchanged. Quick man look gives update-catalog(8). Something similar here would be definitely the best answer. Thanks for the update, Jerome > > Thanks for your bug report, > Bill. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJVP9oqAAoJEIC/w4IMSybjJNkH/iSlJ2w2dOKsglZ31B9asivc BC3p6kFlzMGBey3eERhZyoRqmmzzImYobCufjDQlmlET0IgCCdwmeNkAtNiOXRWj 23bCakKH10ikEJeowKO8Jos3sF0KT8UDUHIUMmLW4UgtrO+81xSgQ8Ryh1+PPXG5 HyaAP/EU5nNgom3nBDLVo1Wabb1InyZoyhQ+EECU5wT9a/4Oqrw/uptbYku/jLGq NtrnMZoKGdoNiOZhT3w/gvfpV3TZaeUDjwUDQPq/HozTFNGB6DJZkq581lIVFit9 fbqbGzffrLdLPvqRHH/UF1WUKCz9J6ge809aGoLSbP8AO8im6P3BbIbDKX5oJmk= =zJZh -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org