...">

Convert svg to html + css

I want to convert the converter from svg format to (html + css)

<g transform="matrix(1.25,0,0,-1.25,0,15.56875)">


    <text transform="matrix(1,0,0,-1,76.881,0)">
        <tspan style="font-size: 7.87px; font-family: 'XITSMath';" x="0" y="0">N</tspan>
    </text>


    <text transform="matrix(1,0,0,-1,88.499,7.313)">
        <tspan style="font-size: 7.87px; font-family: 'XITSMath';" x="0" y="0">T</tspan>
    </text>
</g>

Now, what I want to do is convert the matrix, x and y values ​​to css attributes. For example, T here is a superscript, and N is an index, and this is done using the tarnsform, x, and y attributes. And I want to translate this sub / super script effect for css in an HTML document. I found a python script called svg2css, and another that called svg2html, but I cannot find any information on how to test them. This is a svg2css script: http://sourceforge.net/projects/svg2css/files/
And this is a svg2html script: http://jspoker.pokersource.info/jpoker-1.0.16/test-svg2html.py
I also found this, this test code for svg2html script: http://jspoker.pokersource.info/jpoker-1.0.16/test-svg2html.py Hi friends, finally, I found a way to check the svg2css python script, but the error message appears: I tried using the svg2css inkscape extension in python, which converts the svg file to its equivalent css + html, but did not lead to a warning output:

The source file is C: \ WINDOWS \ Temp \ ink_ext_XXXXXX.svg9EFDKV not SVG. My svg file is very simple, it just contains one text tag, I tried to create css + html from these svg formats:

  • plain svg
  • inkscape svg
  • optimized svg but they are all redistributed without output with the same error message.

This is the error log file generated in \ Users \ staff \ Application Data \ inkscape:

The Sketch Entry extension did not load because the dependency was not completed. Dependency: Type: executable location: path string: skconvert

"LaTeX Input" , . : : : string: org.inkscape.input.sk

, , , , - , ? .

+3
1

, SVG - ().

jpg png HTML.

, 1px, , , , .


Update:

, text, XSL SVG XHTML - CSS (, , XSL, SVG).

-1

Source: https://habr.com/ru/post/1768030/


All Articles