• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Révision662ba659d483ddd01667065de6dace52214eb235 (tree)
l'heure2014-05-03 01:00:10
AuteurHans Breuer <hans@breu...>
CommiterHans Breuer

Message de Log

pstricks: fixed linestyles for dash-dot and dash-dot-dot

Formerly these were breaking the rendering altogether, now only the
text rendering has still issues.

Change Summary

Modification

--- a/plug-ins/pstricks/render_pstricks.c
+++ b/plug-ins/pstricks/render_pstricks.c
@@ -339,32 +339,24 @@ set_linestyle(DiaRenderer *self, LineStyle mode)
339339 case LINESTYLE_DASHED:
340340 pstricks_dtostr(dash_length_buf,renderer->dash_length);
341341 fprintf(renderer->file, "\\psset{linestyle=dashed,dash=%s %s}\n",
342- dash_length_buf,
343- dash_length_buf);
342+ dash_length_buf, dash_length_buf);
344343 break;
345344 case LINESTYLE_DASH_DOT:
346345 hole_width = (renderer->dash_length - renderer->dot_length) / 2.0;
347346 pstricks_dtostr(hole_width_buf,hole_width);
348347 pstricks_dtostr(dot_length_buf,renderer->dot_length);
349348 pstricks_dtostr(dash_length_buf,renderer->dash_length);
350- fprintf(renderer->file, "\\linestyleddashdotted{%s %s %s %s}\n",
351- dash_length_buf,
352- hole_width_buf,
353- dot_length_buf,
354- hole_width_buf );
349+ fprintf(renderer->file, "\\psset{linestyle=dashed,dash=%s %s %s %s}\n",
350+ dash_length_buf, hole_width_buf, dot_length_buf, hole_width_buf );
355351 break;
356352 case LINESTYLE_DASH_DOT_DOT:
357353 hole_width = (renderer->dash_length - 2.0*renderer->dot_length) / 3.0;
358354 pstricks_dtostr(hole_width_buf,hole_width);
359355 pstricks_dtostr(dot_length_buf,renderer->dot_length);
360356 pstricks_dtostr(dash_length_buf,renderer->dash_length);
361- fprintf(renderer->file, "\\linestyleddashdotdotted{%s %s %s %s %s %s}\n",
362- dash_length_buf,
363- hole_width_buf,
364- dot_length_buf,
365- hole_width_buf,
366- dot_length_buf,
367- hole_width_buf );
357+ fprintf(renderer->file, "\\psset{linestyle=dashed,dash=%s %s %s %s %s %s}\n",
358+ dash_length_buf, hole_width_buf, dot_length_buf, hole_width_buf,
359+ dot_length_buf, hole_width_buf );
368360 break;
369361 case LINESTYLE_DOTTED:
370362 pstricks_dtostr(dot_length_buf,renderer->dot_length);
--- a/samples/pst-test.tex
+++ b/samples/pst-test.tex
@@ -2,14 +2,15 @@
22 \documentclass[landscape]{article}
33 \usepackage[pdf]{pstricks}
44 \usepackage[crop=off]{auto-pst-pdf}
5-\title{Dia Export Test}
5+\title{Dia Pstricks Export Test}
66 \author{Hans Breuer}
77 \begin{document}
88 \maketitle
9-\include{convert-to-path.pst}
9+%\include{convert-to-path.pst}
1010 %\include{jigsaw.pst}
11-% while the former files had clipping issues render-test does not
12-% produce any visible result within in this setup, not even single
13-% layers of it
14-%\include{render-test.pst}
11+% All the files have clipping issues render-test did not produce any
12+% visible result within in this setup, due dash-dot-dot errors
13+% After that fixed still only a single included file can be included
14+% reliable on windows with TeXworks:pdfLatex ...
15+\include{render-test.pst}
1516 \end{document}