Adapting SVG of Phoenician letters for HTML sites
P粉558478150
P粉558478150 2024-01-10 18:12:25
0
1
676

I'm trying to adapt an open source SVG created in Inkscape so that it can be embedded into my experimental website, like I've done with other SVGs in the same alphabet.

Phoenician "mem" and "nun" SVG from my site

<svg version="1.1" id="nūn" xmlns:svg="http://www.w3.org/2000/svg"
                xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-244 364 46.9 65"
                style="enable-background:new -244 364 46.9 65;" xml:space="preserve" class="symbol" title="nūn">
                <g id="layer1">
                    <path id="rect3131" d="M-238,365.1l-4.8,36.3l35.8-15.9l-2.6,41.9l8,0.5l3.4-55.2l-34.7,15.6l2.9-22.2L-238,365.1z"/>
                </g>
            </svg>

            <svg version="1.1" id="mēm" xmlns:svg="http://www.w3.org/2000/svg"
                xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-248.3 359 55.6 73.8"
                style="enable-background:new -248.3 359 55.6 73.8;" xml:space="preserve" class="symbol" title="mēm">
                <g id="path2220">
                    <path d="M-203.5,431.4l-6.8-4.2c7.1-11.5,9.7-22.3,8-32.8l-3.6-12l-10.5,18.8l-7-19.1l-8.7,18.1l-14.9-30.9l7.2-3.5
                        l7.7,16l9.8-20.2l7.5,20.5l11.2-20l9.3,30.8C-192.3,405.5-195.2,418.1-203.5,431.4z"/>
                </g>
            </svg>

What confused me the most when adapting this "waw" SVG was:

  • "waw" has no defined view box other than width and height, which seems to be very different from the view box of "mem" and "nun", such as "-248.3 359 55.6 73.8".

  • When I try to replace "waw" with my own viewbox, "waw" doesn't load on my page at all.

My attempt to rewrite "waw"

<svg version="1.1" id="waw" xmlns:svg="http://www.w3.org/2000/svg"
                 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-251.1 354.8 60.4 83.5"
                 style="enable-background:new -251.1 354.8 60.4 83.5;" xml:space="preserve" class="symbol" title="waw">
                <g id="layer1">
                    <path id="rect2726" 
                          d="M 19.421875,5.015625 L 13.953125,10.890625 L 38.453125,33.734375 L 38.453125,79.984375 L 46.453125,79.984375 
                             L 46.453125,33.984375 L 71.046875,11.046875 L 65.609375,5.203125 L 42.609375,26.640625 L 19.421875,5.015625 z"/>
                </g>
            </svg>

How should I rewrite this SVG so that it uses the correct viewbox (relative to "mem" and "nun")?

P粉558478150
P粉558478150

reply all(1)
P粉904405941

I loaded it into an SVG editor (Boxy SVG is my favorite) to box the path with the view and clean it up.

<svg viewBox="0 0 60.4 83.5" xmlns="http://www.w3.org/2000/svg">
  <path d="M 7.122 4.266 L 1.653 10.141 L 26.153 32.984 L 26.153 79.234 L 34.153 79.234 L 34.153 33.234 L 58.747 10.297 L 53.309 4.453 L 30.309 25.891 L 7.122 4.266 Z"/>
</svg>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template