Rozumi tu trochu vic nekdo formatu SVG? Inspirovan trochu timto popisem prevodu jakeho si XML popisujiciho strom do SVG obrazku tento strom vykreslujiciho, udelal jsem si pro jakousi svoji datovou strukturu vystup do obdobneho SVG (viz nize). Kdyz tohle SVG otevru v Inkscapu, tak je to vsechno parada, z nej uz si udelam treba export do PNG a pohode. Ale pak jsem taky stejne SVG zkusil jinde a v Opere se to zobrazi uplne rozbity, pomoci convertu (z baliku ImageMagick) ten prevod do png taky dopadne dost bidne a kdyz to otevru v Gimpu, tak to sice trochu puvodni zamer pripomina, ale rozhodne to tez nedopadne dobre.
Rikam si, ze budto podpora SVG neni vsude uplne dobre dotazena a ten Inkscape to umi nejlip, nebo to SVG neobsahuje uplne presne popisne informace, tudiz si tam ruzne implementace neco mohou volit ruzne, a proto to pak v kazde vypada trochu jinak. Konkretne by me zajimalo, jestli nekdo tusi, po jakem fontu ma implementace sahnout pro textove prvky, neni-li to uvedeno (mozna treba prave v tom je problem toho reseni).
V zasade je tedy otazka, jestli je ten obrazek v poradku a jenom jsou nedotazene implementace (az na Inkscape), nebo jestli je v tom obrazku neco zasadne blbe (nebo neco chybi), tudiz potrebuju upravit to generovatko.
Ted ono SVG:
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg">
<g transform="scale(20)">
<text x="1.7" y="12" style="text-anchor: middle; font-size: 1;">−∞,1</text>
<rect x="0" y="11.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="3.7" y1="9.25" x2="1.7" y2="11.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="3.7" y="9" style="text-anchor: middle; font-size: 1;">1</text>"
<rect x="2.7" y="8.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="3.7" y1="9.25" x2="5.7" y2="11.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="5.7" y="12" style="text-anchor: middle; font-size: 1;">1,2</text>
<rect x="4.0" y="11.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="7.7" y1="6.25" x2="3.7" y2="8.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="7.7" y="6" style="text-anchor: middle; font-size: 1;">2</text>"
<rect x="6.7" y="5.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="7.7" y1="6.25" x2="11.7" y2="8.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="9.7" y="12" style="text-anchor: middle; font-size: 1;">2,5</text>
<rect x="8.0" y="11.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="11.7" y1="9.25" x2="9.7" y2="11.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="11.7" y="9" style="text-anchor: middle; font-size: 1;">5</text>"
<rect x="10.7" y="8.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="11.7" y1="9.25" x2="13.7" y2="11.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="13.7" y="12" style="text-anchor: middle; font-size: 1;">5,8</text>
<rect x="12.0" y="11.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="15.7" y1="3.25" x2="7.7" y2="5.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="15.7" y="3" style="text-anchor: middle; font-size: 1;">8</text>"
<rect x="14.7" y="2.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="15.7" y1="3.25" x2="27.7" y2="5.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="17.7" y="15" style="text-anchor: middle; font-size: 1;">8,11</text>
<rect x="16.0" y="14.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="19.7" y1="12.25" x2="17.7" y2="14.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="19.7" y="12" style="text-anchor: middle; font-size: 1;">11</text>"
<rect x="18.7" y="11.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="19.7" y1="12.25" x2="21.7" y2="14.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="21.7" y="15" style="text-anchor: middle; font-size: 1;">11,12</text>
<rect x="20.0" y="14.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="23.7" y1="9.25" x2="19.7" y2="11.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="23.7" y="9" style="text-anchor: middle; font-size: 1;">12</text>"
<rect x="22.7" y="8.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="23.7" y1="9.25" x2="25.7" y2="11.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="25.7" y="12" style="text-anchor: middle; font-size: 1;">12,15</text>
<rect x="24.0" y="11.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="27.7" y1="6.25" x2="23.7" y2="8.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="27.7" y="6" style="text-anchor: middle; font-size: 1;">15</text>"
<rect x="26.7" y="5.05" width="2" height="1.2" rx="1" ry="1" style="fill: none; stroke: black; stroke-width: 0.1;"/>
<line x1="27.7" y1="6.25" x2="29.7" y2="8.05" style="stroke-width: 0.1; stroke: black;"/>
<text x="29.7" y="9" style="text-anchor: middle; font-size: 1;">15,∞</text>
<rect x="28.0" y="8.05" width="3.4" height="1.2" style="fill: none; stroke: black; stroke-width: 0.1;"/>
</g>
</svg>
|