Skip to content
Snippets Groups Projects
Commit b709c197 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

now works again

Rev: tutorial/.cvsignore:1.9
Rev: tutorial/Makefile:1.14
Rev: tutorial/Wmml.pmod:1.19
Rev: tutorial/html.pike:1.14
Rev: tutorial/html_onepage.pike:1.2
Rev: tutorial/wmmltohtml2:1.5
parent 59c50b49
No related branches found
No related tags found
No related merge requests found
*.files
*.md
.nfs* .nfs*
Image.wmml
___tmp.* ___tmp.*
extra_textflows.mif extra_textflows.mif
illustration*.gif illustration*.gif
illustration_cache illustration_cache
man
tut*.html
tutorial-foo.wmml tutorial-foo.wmml
tutorial.aux tutorial.aux
tutorial.dvi tutorial.dvi
...@@ -11,7 +16,3 @@ tutorial.log ...@@ -11,7 +16,3 @@ tutorial.log
tutorial.mif tutorial.mif
tutorial.tex tutorial.tex
tutorial_*.html tutorial_*.html
tut*.html
*.md
*.files
man
/*.files
/*.md
/.nfs* /.nfs*
/Image.wmml
/___tmp.* /___tmp.*
/extra_textflows.mif /extra_textflows.mif
/illustration*.gif /illustration*.gif
/illustration_cache /illustration_cache
/man
/tut*.html
/tutorial-foo.wmml /tutorial-foo.wmml
/tutorial.aux /tutorial.aux
/tutorial.dvi /tutorial.dvi
...@@ -11,7 +16,3 @@ ...@@ -11,7 +16,3 @@
/tutorial.mif /tutorial.mif
/tutorial.tex /tutorial.tex
/tutorial_*.html /tutorial_*.html
/tut*.html
/*.md
/*.files
/man
...@@ -28,7 +28,7 @@ the_image_module.html: Image.wmml the_image_module.wmml ...@@ -28,7 +28,7 @@ the_image_module.html: Image.wmml the_image_module.wmml
./wmmltohtml2 <the_image_module.wmml html the_image_module ./wmmltohtml2 <the_image_module.wmml html the_image_module
clean: clean:
rm *.html illustration_cache illustration*.gif rm *.html *.md illustration_cache illustration*.gif
export: export:
tar czvTf tutorial.files tutorial.tar.gz tar czvTf tutorial.files tutorial.tar.gz
......
#include "types.h" #include "types.h"
import ".";
import Sgml; import Sgml;
SGML low_make_concrete_wmml(SGML data); SGML low_make_concrete_wmml(SGML data);
...@@ -929,8 +930,8 @@ string image_to_gif(TAG data, float dpi) ...@@ -929,8 +930,8 @@ string image_to_gif(TAG data, float dpi)
{ {
case "fig": case "fig":
werror("Converting "); werror("Converting ");
Process.system("fig2dev -L ps "+params->src+" ___tmp.ps;echo showpage >>___tmp.ps"); Process.system("/bin/sh -c 'fig2dev -L ps "+params->src+" ___tmp.ps;echo showpage >>___tmp.ps'");
Process.system("gs -q -sDEVICE=pbmraw -r225 -g2500x2500 -sOutputFile=___tmp.ppm ___tmp.ps </dev/null >/dev/null"); Process.system("/bin/sh -c 'gs -q -sDEVICE=pbmraw -r225 -g2500x2500 -sOutputFile=___tmp.ppm ___tmp.ps </dev/null >/dev/null'");
object o=Image.image()->fromppm(Stdio.read_file("___tmp.ppm"))->autocrop()->scale(1.0/3)->rotate(-90); object o=Image.image()->fromppm(Stdio.read_file("___tmp.ppm"))->autocrop()->scale(1.0/3)->rotate(-90);
o=Image.image(o->xsize()+40, o->ysize()+40, 255,255,255)->paste(o,20,20); o=Image.image(o->xsize()+40, o->ysize()+40, 255,255,255)->paste(o,20,20);
rm("___tmp.ps"); rm("___tmp.ps");
......
#include "types.h" #include "types.h"
import ".";
inherit Stdio.File : out; inherit Stdio.File : out;
SGML html_toc; SGML html_toc;
...@@ -388,10 +389,12 @@ SGML convert(SGML data) ...@@ -388,10 +389,12 @@ SGML convert(SGML data)
break; break;
case "ex_identifier": case "ex_identifier":
case "ex_string":
case "ex_commend": case "ex_commend":
ret+=convert(data->data); ret+=convert(data->data);
continue; continue;
case "ex_string":
ret+=convert(replace(data->data," ",""));
continue;
case "example": data->tag="blockquote";break; case "example": data->tag="blockquote";break;
case "ex_keyword": data->tag="b";break; case "ex_keyword": data->tag="b";break;
......
#include "types.h" #include "types.h"
import ".";
inherit "html"; inherit "html";
SGML low_split(SGML data) { return data; } SGML low_split(SGML data) { return data; }
#!/usr/local/bin/pike #!/usr/local/bin/pike
import Stdio; import Stdio;
import ".";
#include "types.h" #include "types.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment