width and heigt in pt, but without measurement unit

Bug #925195 reported by stefan-koch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dvisvgm
Fix Released
Medium
Martin Gieseking

Bug Description

If dvisvgm creates a svg from a dvi doc, then dvisvgm (a. e.) sets the width to ... and the height to 12
I think with 12 are 12 pt well-meant.
Output: page size: 15.875pt x 12pt (5.57941mm x 4.21752mm)

But if I open the svg file with an text editor there you can see:
<svg height='12' version='1.1' viewBox='77 53.48 15.875 12' width='15.875' ...

but it should be:
<svg height='12pt' version='1.1' viewBox='77 53.48 15.875 12' width='15.875pt' ...

If you open both files with gimp, gimp asks you with how many pixels it should open the svg, and you can choose between pix, mm, pt, ...
Now if you choose pt the first file will show wrong values (width and height) the second show right values.

Gimp chooses at the first file without the measurement unit "pt" pix for calculation, that means for heigt 12 pix and not 12 pt -> thats the Bug

Revision history for this message
stefan-koch (stefan-koch-x) wrote :

The file tex1.svg was added: first file

Revision history for this message
stefan-koch (stefan-koch-x) wrote :

The file tex2.svg was added: second file

Revision history for this message
stefan-koch (stefan-koch-x) wrote :

Thank you.

Revision history for this message
stefan-koch (stefan-koch-x) wrote :

it's dvisvgm vers. 1.0.3 on kubuntu 10.10 amd64

Revision history for this message
Martin Gieseking (martin-gieseking) wrote :

Stefan, thanks for the hint. I'll add the missing unit to the width/height attributes in the next dvisvgm release.

Revision history for this message
Martin Gieseking (martin-gieseking) wrote :

The corresponding patch has been added to the hg repository (rev 174d3fa0df89).

Changed in dvisvgm:
importance: Undecided → Medium
assignee: nobody → Martin Gieseking (martin-gieseking)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.