Hi Siniy-Kit > What i have to change to make tiddlywiki import TXT files as HTML files?
Importing of different file types is performed by "deserializer" modules. They are registered with a particular file extension and MIME type, and are invoked to process incoming files of a matching type. The only way to make TXT files be processed like HTML files would be to change the configuration such that TXT files are treated as HTML files. That would be a global change, though. There's been another question in this area recently. I wonder if we should add support for plugins to hook into the import process and be given the opportunity to process incoming files. Can you outline your use case for needing to import TXT files as HTML files? Best wishes Jeremy. 2014-12-22 8:12 GMT+00:00 Siniy-Kit <[email protected]>: > Hi! > i have file *test.html* it contains the following text > > > > <div id="storeArea" style="display:none;"> > <div created="20141212183935886" image150x150="images/products/427.jpg" > modified="20141214130702523" nazvanie="Букет в прямоугольной вазе." > stoimost="253" subtitle="<$image source=" > images/products/products_big/427.jpg " />" tags="[[Цветы > любимой]] $:/Note [[Сегодня в продаже]]" title="10517"> > <pre> > <tw class='simpleCart_shelfItem'><$button message='tm-modal' > param='10517' class = 'onclean' ><$image source='images/products/427.jpg' > /> </$button><<tovar>></tw> <h3> <$view field='nazvanie'/> </h3> > Подарите букет любимой! Лучшего подарка вам всё равно не найти. Эти > прекрасные цветы согреют своей красотой и великолепием. Любите цветы. > Любите девушек и все будет хорошо. Когда в голове пусто, бывает очень > выдавить даже несколько сточек. > </pre> > </div> > > <div created="20141212183935886" image150x150="images/products/427.jpg" > modified="20141214130702523" nazvanie="Букет в 2222." stoimost="253" > subtitle="<$image source=" images/products/products_big/427.jpg > " />" tags="[[Цветы любимой]] $:/Note [[Сегодня в продаже]]" title > ="10555"> > <pre> > <tw class='simpleCart_shelfItem'><$button message='tm-modal' param= > '10517' class = 'onclean' ><$image source='images/products/427.jpg' /> > </$button><<tovar>></tw> <h3> <$view field='nazvanie'/> </h3> > Подарите букет любимой! Лучшего подарка вам всё равно не найти. Эти > прекрасные цветы согреют своей красотой и великолепием. Любите цветы. > Любите девушек и все будет хорошо. Когда в голове пусто, бывает очень > выдавить даже несколько сточек. > </pre> > </div> > </div> > > if i import *test.html *to TiddlyWiki it works very well (import 2 > tiddlers), but if i change file name to *test.TXT* tiddlywiki import this > file as plain text. > What i have to change to make tiddlywiki import TXT files as HTML files? > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

