[prev in list] [next in list] [prev in thread] [next in thread]
List: scilab-users
Subject: Re: [Scilab-users] help page
From: Samuel Gougeon <sgougeon () free ! fr>
Date: 2019-04-26 20:07:30
Message-ID: 49a50e58-4420-7e9a-fa46-b8835a0c6a9c () free ! fr
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Le 26/04/2019 à 22:03, Stéphane Mottelet a écrit :
>
> Le 26/04/2019 à 21:23, Samuel Gougeon a écrit :
>
> > Hello,
> >
> > Le 26/04/2019 à 19:40, Stéphane Mottelet a écrit :
> > > Le 26/04/2019 à 19:10, Antoine Monmayrant a écrit :
> > >
> > > > Hello Stéphane,
> > > >
> > > > Not sure this does what you expect, but I think pandoc can do the
> > > > trick:
> > > > foo.xml copied from :
> > > > https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/5.5.2/en_US/man.html
> > > >
> > > > pandoc -f docbook -t latex foo.xml -o foo.pdf
> > >
> > > OK, but you need the Scilab stylesheets in order to have the correct
> > > output. I suppose the above assumes a basic rendering. My question
> > > was rather about doing this within Scilab. The example of the help
> > > page does not work on my machine for html and pdf output.
> >
> > To do this, i have created a template toolbox restricted to
> > ./etc/page.start (void), ./help/la_LA series of languages subdirs,
> > and ./jar empty.
> > I make a copy of the template. Then, i put in ./help/en_US the main
> > xml file (etc for other languages),
> > I set the current directory to the root dir of the template, and run
> > --> tbx_make . help // (*)
> > Then i display the HTML page in Chrome, preview the printing in PDF,
> > tune its layout, and that's OK.
> >
> > Why on your side does it fail to generate the html? Any error message
> > in the terminal?
>
> When I run the example of xmltopdf help page, all generated pdf files
> are empty.
>
Yes, the PDF generator is KO. This is reported for years now.
But HTML pages can be well generated.
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 26/04/2019 à 22:03, Stéphane
Mottelet a écrit :<br>
</div>
<blockquote cite="mid:f24c576d-193d-3b67-170c-5d09e4db3fe9@utc.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p>Le 26/04/2019 à 21:23, Samuel Gougeon a écrit :<br>
</p>
<blockquote type="cite"
cite="mid:378174f8-b7a4-1384-c3c6-1bba92a4e1d5@free.fr">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hello,<br>
<br>
Le 26/04/2019 à 19:40, Stéphane Mottelet a écrit :<br>
</div>
<blockquote
cite="mid:e46b674a-8a09-c7f7-264a-021f1a755231@utc.fr"
type="cite">Le 26/04/2019 à 19:10, Antoine Monmayrant a
écrit : <br>
<br>
<blockquote type="cite">Hello Stéphane, <br>
<br>
Not sure this does what you expect, but I think pandoc can
do the trick: <br>
foo.xml copied from : <a class="moz-txt-link-freetext"
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr \
/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/5.5.2/en_US/man.html"
moz-do-not-send="true">https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/5.5.2/en_US/man.html</a><br>
<br>
pandoc -f docbook -t latex foo.xml -o foo.pdf <br>
</blockquote>
<br>
OK, but you need the Scilab stylesheets in order to have the
correct output. I suppose the above assumes a basic rendering.
My question was rather about doing this within Scilab. The
example of the help page does not work on my machine for html
and pdf output. <br>
</blockquote>
<br>
To do this, i have created a template toolbox restricted to
./etc/page.start (void), ./help/la_LA series of languages
subdirs, and ./jar empty.<br>
I make a copy of the template. Then, i put in ./help/en_US the
main xml file (etc for other languages),<br>
I set the current directory to the root dir of the template, and
run<br>
<tt>--> tbx_make . help // (*)</tt><br>
Then i display the HTML page in Chrome, preview the printing in
PDF, tune its layout, and that's OK.<br>
<br>
Why on your side does it fail to generate the html? Any error
message in the terminal?<br>
</blockquote>
<p>When I run the example of xmltopdf help page, all generated pdf
files are empty.<br>
</p>
</blockquote>
<br>
Yes, the PDF generator is KO. This is reported for years now.<br>
But HTML pages can be well generated.<br>
<br>
</body>
</html>
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic