summaryrefslogtreecommitdiffstats
path: root/share/examples/tref.svg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /share/examples/tref.svg
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/examples/tref.svg')
-rw-r--r--share/examples/tref.svg110
1 files changed, 110 insertions, 0 deletions
diff --git a/share/examples/tref.svg b/share/examples/tref.svg
new file mode 100644
index 0000000..306ee76
--- /dev/null
+++ b/share/examples/tref.svg
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="521.51471"
+ height="158.39999"
+ viewBox="0 0 1000 300"
+ version="1.0"
+ id="svg2255"
+ sodipodi:version="0.32"
+ inkscape:version="0.92.0 r15304"
+ sodipodi:docname="tref.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ <metadata
+ id="metadata2271">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview
+ inkscape:window-height="744"
+ inkscape:window-width="1280"
+ inkscape:pageshadow="2"
+ inkscape:pageopacity="0.0"
+ guidetolerance="10.0"
+ gridtolerance="10.0"
+ objecttolerance="10.0"
+ borderopacity="1.0"
+ bordercolor="#666666"
+ pagecolor="#ffffff"
+ id="base"
+ inkscape:zoom="2.1974452"
+ inkscape:cx="260.75735"
+ inkscape:cy="79.199997"
+ inkscape:window-x="0"
+ inkscape:window-y="25"
+ inkscape:current-layer="svg2255"
+ width="488.92px"
+ height="148.5px"
+ showgrid="false"
+ inkscape:window-maximized="0" />
+ <defs
+ id="defs2257">
+ <text
+ id="ReferencedText">Referenced character data</text>
+ </defs>
+ <text
+ x="40.090099"
+ y="42.696518"
+ font-size="45"
+ id="text2262"
+ style="font-size:29.54101944px;fill:#0000ff">Inline character data</text>
+ <text
+ x="38.907303"
+ y="84.391068"
+ font-size="45"
+ id="text2264"
+ style="font-size:29.54101944px;fill:#ff0000">
+ <tref
+ xlink:href="#ReferencedText"
+ id="tref2266" />
+ </text>
+ <text
+ id="text2217"
+ font-size="45"
+ y="126.08561"
+ x="38.907303"
+ style="font-size:29.54101944px;fill:#a05a2c">This text is stripped from the meta data: <tref
+ id="tref2219"
+ xlink:href="#metadata2271"
+ style="fill:#a05a2c" />
+</text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:21.00694847px;font-family:'Aldine401 BT';fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="34.670681"
+ y="169.49898"
+ id="text2252"><tspan
+ sodipodi:role="line"
+ id="tspan2254"
+ x="34.670681"
+ y="169.49898">The tref element allows you to refer to character data from any other svg element.</tspan><tspan
+ sodipodi:role="line"
+ x="34.670681"
+ y="195.75766"
+ id="tspan2256">The tref will act just like a tspan for this cloned text, and the same properties that</tspan><tspan
+ sodipodi:role="line"
+ x="34.670681"
+ y="222.01634"
+ id="tspan2258">can be applied to a tspan can be applied to a tref. As such, regular tspans and text</tspan><tspan
+ sodipodi:role="line"
+ x="34.670681"
+ y="248.27504"
+ id="tspan2260">nodes can be contained in the same text object as a tref. The cloned character data</tspan><tspan
+ sodipodi:role="line"
+ x="34.670681"
+ y="274.53372"
+ id="tspan2262">may not be edited even though the rest of the text can be.</tspan></text>
+</svg>