I believe it is written in C++, so you can get the source code and have someone bang it into your project.
You might look at the source code (hopefully it is commented) and see what steps are followed. I don't think you are actually pasting a Word document into it, but rather what the clipboard is putting out when you copy to it and paste from it. This may be relatively plain text, which Sigil is guessing how to convert into html. It may be guessing that two end of lines is a paragraph for instance.
But I suspect that not all operating systems work the same, so you might need to use a hex editor (which you can download for free, PS Pad is one, but there innumerable others) to see just what is actually being pasted.
But as this may not be the same from the various operating systems you could have a task on your hands. There doesn't seem a pre-cooked solution for this, only hard work looking at what Sigil does. Nobody is going to do it for you, I am afraid.
|