[tei-council] links into images

Dot Porter dporter at uky.edu
Tue Oct 10 11:18:48 EDT 2006


Sebastian,

On 10/10/06, Sebastian Rahtz <sebastian.rahtz at oucs.ox.ac.uk> wrote:
> Dot Porter wrote:
> > Yeah, I thought those hrefs on <rect> looked odd, but it validated so
> > I thought it was okay (I used an online validator rather than my usual
> > oXygen so perhaps I can blame that).
> which version of SVG did your validator claim to use?
>

I took this:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1"
    xmlns="http://www.w3.org/2000/svg">
 <desc>Woodcut of "The Study"</desc>
   <image id="p981" xlink:href="study.jpg"/>
   <rect id="p982" xlink:href="study.jpg" x="75" y="75" width="100"
height="100"/>
   <rect id="p983" xlink:href="study.jpg" x="55" y="42" width="100"
height="400"/>
</svg>

And stuck it in here:

http://www.stg.brown.edu/service/xmlvalid/

> Anyway, I subsequently loaded my example in Inkscape,
> and draw some rectangles around the real picture,
> so the values are actually _correct_ in the following code.
>
>
>     <body>
>       <linkGrp>
>     <link targets="#l9801 #e9801 #p-e9801 #p-l9801"/>
>     <link targets="#l9802 #e9802 #p-e9802 #p-l9802"/>
>     <link targets="#l9806 #e9806 #p-e9806 #p-l9806"/>
>     <link targets="#l9807 #e9807 #p-e9807 #p-l9807"/>
>       </linkGrp>
>       <div>
>     <figure>
>       <head>Woodcut of "The Study"</head>
>       <svg xmlns="http://www.w3.org/2000/svg"
>     xmlns:xlink="http://www.w3.org/1999/xlink" >
>   <image
>      xlink:href="../Source/Images/compic.png"
>      width="597"
>      height="897"
>      id="image1764" />
>   <rect
>      style="fill:none;opacity:1;stroke:#eaac24;stroke-width:2"
>      id="p-l9801"
>      width="169"
>      height="53.5"
>      x="57"
>      y="467.86218"/>
>   <rect
>      style="fill:none;opacity:1;stroke:#eaac24;stroke-width:2"
>      id="p-l9802"
>      width="126"
>      height="47"
>      x="312"
>      y="474.36218"/>
>   <rect
>      style="fill:none;opacity:1;stroke:#eaac24;stroke-width:2"
>      id="p-l9806"
>      width="158.5"
>      height="32.5"
>      x="313"
>      y="601.36218"/>
>   <rect
>      style="fill:none;opacity:1;stroke:#eaac24;stroke-width:2"
>      id="p-e9806"
>      width="233"
>      height="25.5"
>      x="56.5"
>      y="591.36218"/>
>   <rect
>      style="fill:none;opacity:1;stroke:#eaac24;stroke-width:2"
>      id="p-l9807"
>      width="130"
>      height="25.5"
>      x="312"
>      y="635.86218"/>
>   <rect
>      style="fill:none;opacity:1;stroke:#eaac24;stroke-width:2"
>      id="p-e9807"
>      width="188"
>      height="22.5"
>      x="55"
>      y="618.86218"/>
>       </svg>
>     </figure>
>       </div>
>       <div xml:id="e98" xml:lang="en" type="lesson">
>         <head>The Study</head>
>         <p>
>           <seg xml:id="e9801">The Study</seg>
>           <seg xml:id="e9802">is a place</seg>
>           <seg xml:id="e9803">where a Student,</seg>
>           <seg xml:id="e9804">a part from men,</seg>
>           <seg xml:id="e9805">sitteth alone,</seg>
>           <seg xml:id="e9806">addicted to his Studies,</seg>
>           <seg xml:id="e9807">whilst he readeth</seg>
>           <seg xml:id="e9808">Books,</seg>
>         </p>
>       </div>
>       <div xml:id="l98" xml:lang="la" type="lesson">
>         <head>Muséum</head>
>         <p>
>           <seg xml:id="l9801">Museum</seg>
>           <seg xml:id="l9802">est locus</seg>
>           <seg xml:id="l9803">ubi Studiosus,</seg>
>           <seg xml:id="l9804">secretus ab hominibus,</seg>
>           <seg xml:id="l9805">solus sedet,</seg>
>           <seg xml:id="l9806">Studiis deditus,</seg>
>           <seg xml:id="l9807">dum lectitat</seg>
>           <seg xml:id="l9808">Libros,</seg>
>         </p>
>       </div>
>     </body>
>
>
> --
> Sebastian Rahtz
>
> Information Manager, Oxford University Computing Services
> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>
> OSS Watch: JISC Open Source Advisory Service
> http://www.oss-watch.ac.uk
>
>


-- 
***************************************
Dot Porter, University of Kentucky
#####
Program Coordinator
Collaboratory for Research in Computing for Humanities
dporter at uky.edu          859-257-9549
#####
Editorial Assistant, REVEAL Project
Center for Visualization and Virtual Environments
porter at vis.uky.edu
***************************************



More information about the tei-council mailing list