LaserWeb / LaserWeb4

Collaborative effort on the next version of LaserWeb / CNCWeb
GNU Affero General Public License v3.0
714 stars 193 forks source link

Proposal: recognise <title> tag in .svgs #484

Closed lucalcin closed 6 years ago

lucalcin commented 6 years ago

Hi,

.svg standard allow the use of the tag to name each element.</p> <p>When working with large .svg files, can be useful to show in the document list a name for each path or element. Just as an example, I'm working now with a .svg that contains more than 2500 elements, grouped in more than 100 objects, each with his own name. Some elements are to engrave with 20% power, others with 50%, other to cut. Without names, is tricky to understand what element is to engrave and what is to cut.</p> <p>In attachment, a zipped .svg file with named elements and a concept image showing the names in the document section.</p> <p>Thanks</p> <p>Luca</p> <p><img referrerpolicy="no-referrer" src="https://user-images.githubusercontent.com/28046872/40328104-883490da-5d45-11e8-9285-39e3e0868252.jpg" alt="naming-example" /></p> <p><a rel="noreferrer nofollow" target="_blank" href="https://github.com/LaserWeb/LaserWeb4/files/2023995/title.example.svg.zip">title example.svg.zip</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/jorgerobles"><img src="https://avatars.githubusercontent.com/u/1706080?v=4" />jorgerobles</a> commented <strong> 6 years ago</strong> </div> <div class="markdown-body"> <p>Thanks, will try to. I do some complex cuts too but solve with color filtering. Prepare your file asigning stroke colors by operation and ordering, and then add the whole file as an operation (several times) using the stroke color filter. Works like a charm.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/lucalcin"><img src="https://avatars.githubusercontent.com/u/28046872?v=4" />lucalcin</a> commented <strong> 6 years ago</strong> </div> <div class="markdown-body"> <p>REALLY POWERFUL! The color filter is a really great feature. I already used color to identify type in my job (purple for cut, green for engrave and so on). This simplifies complex operations. Anyway, naming convention will be useful when in a single drawing lies multiple objects (i.e. ribs of a wing or of a boat), so you can identify and choose the one to work.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/jorgerobles"><img src="https://avatars.githubusercontent.com/u/1706080?v=4" />jorgerobles</a> commented <strong> 6 years ago</strong> </div> <div class="markdown-body"> <p>it's done already, will be available on the next build</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>