Quote:
Originally Posted by Mr Pointy
Hi All,
thanks for the feedback - what I really need to know - is there a way to replicate what happens when you paste a word document into sigil - and get the code from word behind the scenes...
...into a web text box... what would be the web text box/box that the word text can be pasted into that would give the behind the scenes same output as sigil...
I appreciate there are easier ways to do this and also that there are products out there that do this already, I just want to try and store the information in code view by posting the normal text from word on a website without having to bounce it through calibre or sigil first - or convert word to html then view source and surgically cut from the listed text
|
I don't think you read the posts. NO. Not in any simple fashion. You can output the file to HTML and then paste THAT into a "text box" that is in reality an HTML editor, I suppose. But if you're trying to build some end-user platform where they paste a Word file into a "box" that somehow magically extracts all the HTML and CSS and gives you the back end, you're going to have to write a program that does that, and frankly, I don't see how that can happen.
Other people can speak to this better than I, but Word isn't pure HTML. It uses XML and other tools that provide the GUI interface for the CSS (and other coding that isn't CSS) that makes it function (like start-and-stop lists). I don't see how any user "copy and paste" is going to carry all that information with it. You, yourself, said that you know that copy-and-pasting from Word to BookView doesn't work, right? So:
how can it work in a webform? If you cannot do it, yourself, from GUI to GUI, how can you start to replicate it in a webform? You already have the answer. There may well be programmatic methods that would extract all that information, (n.b.: I don't actually see how, not going GUI->GUI) but it's certainly outside of the scope of normal ePUB creation or this forum.
Hitch