diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-01-22 20:49:41 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-01-22 20:49:41 -0800 |
commit | 198ce0cde99731680b62294a7dff1b218b29bd4d (patch) | |
tree | 1d10434dca1d01742f8639a9f3ba505f1ca9652c /test/command | |
parent | f5e3c1dad678732f59d7bd655993cd5ba61a7621 (diff) | |
download | pandoc-198ce0cde99731680b62294a7dff1b218b29bd4d.tar.gz |
ImageSize: use viewBox for svg if no length, width.
This change allows pandoc to extract size information
from more SVGs. Closes #7045.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/svg.md | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/test/command/svg.md b/test/command/svg.md index 57506570b..4ba836b20 100644 --- a/test/command/svg.md +++ b/test/command/svg.md @@ -36,28 +36,27 @@ % pandoc -f latex -t icml \includegraphics{command/SVG_logo.svg} ^D -[WARNING] Could not determine image size for 'command/SVG_logo.svg': could not determine SVG size <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph"> <CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle"> - <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1 0 0 1 150 -100"> + <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1 0 0 1 37.5 -37.5"> <Properties> <PathGeometry> <GeometryPathType PathOpen="false"> <PathPointArray> - <PathPointType Anchor="-150 -100" LeftDirection="-150 -100" RightDirection="-150 -100" /> - <PathPointType Anchor="-150 100" LeftDirection="-150 100" RightDirection="-150 100" /> - <PathPointType Anchor="150 100" LeftDirection="150 100" RightDirection="150 100" /> - <PathPointType Anchor="150 -100" LeftDirection="150 -100" RightDirection="150 -100" /> + <PathPointType Anchor="-37.5 -37.5" LeftDirection="-37.5 -37.5" RightDirection="-37.5 -37.5" /> + <PathPointType Anchor="-37.5 37.5" LeftDirection="-37.5 37.5" RightDirection="-37.5 37.5" /> + <PathPointType Anchor="37.5 37.5" LeftDirection="37.5 37.5" RightDirection="37.5 37.5" /> + <PathPointType Anchor="37.5 -37.5" LeftDirection="37.5 -37.5" RightDirection="37.5 -37.5" /> </PathPointArray> </GeometryPathType> </PathGeometry> </Properties> - <Image Self="ue6" ItemTransform="1 0 0 1 -150 -100"> + <Image Self="ue6" ItemTransform="1 0 0 1 -37.5 -37.5"> <Properties> <Profile type="string"> $ID/Embedded </Profile> - <GraphicBounds Left="0" Top="0" Right="300" Bottom="200" /> + <GraphicBounds Left="0" Top="0" Right="75" Bottom="75" /> </Properties> <Link Self="ueb" LinkResourceURI="file:command/SVG_logo.svg" /> </Image> @@ -70,28 +69,27 @@ % pandoc -f latex -t icml \includegraphics{command/SVG_logo-without-xml-declaration.svg} ^D -[WARNING] Could not determine image size for 'command/SVG_logo-without-xml-declaration.svg': could not determine SVG size <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph"> <CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle"> - <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1 0 0 1 150 -100"> + <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1 0 0 1 37.5 -37.5"> <Properties> <PathGeometry> <GeometryPathType PathOpen="false"> <PathPointArray> - <PathPointType Anchor="-150 -100" LeftDirection="-150 -100" RightDirection="-150 -100" /> - <PathPointType Anchor="-150 100" LeftDirection="-150 100" RightDirection="-150 100" /> - <PathPointType Anchor="150 100" LeftDirection="150 100" RightDirection="150 100" /> - <PathPointType Anchor="150 -100" LeftDirection="150 -100" RightDirection="150 -100" /> + <PathPointType Anchor="-37.5 -37.5" LeftDirection="-37.5 -37.5" RightDirection="-37.5 -37.5" /> + <PathPointType Anchor="-37.5 37.5" LeftDirection="-37.5 37.5" RightDirection="-37.5 37.5" /> + <PathPointType Anchor="37.5 37.5" LeftDirection="37.5 37.5" RightDirection="37.5 37.5" /> + <PathPointType Anchor="37.5 -37.5" LeftDirection="37.5 -37.5" RightDirection="37.5 -37.5" /> </PathPointArray> </GeometryPathType> </PathGeometry> </Properties> - <Image Self="ue6" ItemTransform="1 0 0 1 -150 -100"> + <Image Self="ue6" ItemTransform="1 0 0 1 -37.5 -37.5"> <Properties> <Profile type="string"> $ID/Embedded </Profile> - <GraphicBounds Left="0" Top="0" Right="300" Bottom="200" /> + <GraphicBounds Left="0" Top="0" Right="75" Bottom="75" /> </Properties> <Link Self="ueb" LinkResourceURI="file:command/SVG_logo-without-xml-declaration.svg" /> </Image> |