Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add title to Symbol file
#1
I created a Symbol file for Inkscape using Bootstrap icons. I went well except for the fact that none of the icons has a <title></title> element. But the info required for the title is available in " class ", please see the code below. While I can manually add it for one or two icon/symbol, there are around 1.5K of them in the Symbol file


Code:
<symbol
      id="symbol16060"
      width="16"
      height="16"
      fill="currentColor"
      class="bi bi-currency-pound"
      viewBox="0 0 16 16">
       <title id="pound gbp">GBP Currency Pound</title>
     <path
        d="M4 8.585h1.969c.115.465.186.939.186 1.43 0 1.385-.736 2.496-2.075 2.771V14H12v-1.24H6.492v-.129c.825-.525 1.135-1.446 1.135-2.694 0-.465-.07-.913-.168-1.352h3.29v-.972H7.22c-.186-.723-.372-1.455-.372-2.247 0-1.274 1.047-2.066 2.58-2.066a5.32 5.32 0 0 1 2.103.465V2.456A5.629 5.629 0 0 0 9.348 2C6.865 2 5.322 3.291 5.322 5.366c0 .775.195 1.515.399 2.247H4v.972z"
        id="path1872-3" />
   </symbol>


Is there any method to automate the process ? ie, fetch the name from "class" and add it as <title id=name>name</title>

Thanks.
Reply


Messages In This Thread
Add title to Symbol file - by meetdilip - 05-21-2021, 06:06 AM

Forum Jump: