View Single Post
Old 11-06-2014, 07:45 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,844
Karma: 6120478
Join Date: Nov 2009
Device: many
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 View Post
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...
KevinH is online now   Reply With Quote