Hi,
I didn't see any pull requests for this one in user-nones tree. You should probably out of courtesy at least try that approach before posting them here where user-none may not see them.
Alternatively, you could easily implemented this one as a python edit plugin for Sigil where you could control how the text gets htmlized, where it gets added to the spine, etc, and then everyone could use it without need to rebuild their own patched copy from source. That was the whole point of adding the plugin structure.
Take care,
Kevin
Quote:
Originally Posted by varlog
Sigil is able to open simple text file per menu "File->Open->Text files": it is converted into rudimentary .xhtml file. What I missed was an ability to add a simple text file to existing content. This patch provides such an ability.
I implemented it as an extra context menu "Add Existing Text Files..." (see image).
Implementation has no sanity checks and doesn't care about suffixes: it means you can add any file and Sigil will try to make simple xhtml text file from it. It is safe to add files with same name.
Disclaimer: it works for me, in my environment (Ubuntu 14.04, 64 bit) as designed, don't hold me responsible if it doesn't in yours. And I'm still not sure about concurrency...
|