SVG to VML Converter

Introduction

The StyleCampaign SVG to VML converter was written for internal development and experimentation purposes. Having started life as a simple path converter it has subsequently evolved to be something far more comprehensive. However, it is not a complete one to one conversion utility. In many instances there is no clear or direct analogue between the two formats. And as it would be almost impossible to reliably determine intent from supplied SVG code, the software will ignore situations where a direct conversion cannot be made. An example of this being SVG filters, for which there is no direct semantic equivalent.

Development of the software is ongoing and updates, improvements and bug fixes may or may not be forthcoming, dependant on how useful the software proves to be. However, all that being said it is being made available to developers under the following conditions:

  • They have no expectation with regards to its utility
  • They accept that it is error prone buggy garbage
  • They place no value on their work or their time
  • They relinquish StyleCampaign from all potential liability resulting from its use
  • They have nothing better to do

Feel free to report any issues, and to make comments and or suggestions...

 

Usage

  • Open SVG file in text editor
  • Copy/Paste into the main form field
  • Hit the convert button
  • Copy/Paste generated code back into text editor
  • Name/Save resulting file as .html

The StyleCampaign SVG to VML converter has been developed to be as simple to use as possible. It does not generate a file. The generated VML code can be copy/pasted to any plain text editor and then saved locally.

The entire body of the source SVG should be copied from <svg> to </svg> tag. The <svg> tags should always be included. Attempting to convert partial SVG code is not advised/supported.

Alternatively you can convert a single SVG path. Only the path code itself should be copied without the enclosing double quotes, e.g. M160,0 C69.8,0,0,76.7,0,160 c0,90.3,78.3,160,160,160 c87,0,159.9-72.6,160-160 C320.1,73,247.7,0,160,0z

Clean, well formatted SVG code is advised as errors will occur otherwise. This is not simply a failing of the converter, empty groups for example will be reliably converted but will crash Word when you try to view the resulting html file.