Hi,
You could get the Python script from the site and run that.

Jim


-----Original Message-----
From: M. Fioretti [mailto:mfiore...@nexaima.net]
Sent: Thursday, December 06, 2012 2:19 PM
To: txt2tags-list@lists.sourceforge.net
Subject: [t2t] How do you convert HTML to txt2tags _automatically_???

Greetings,
the title says it all.

I DO know about this VI/VIM macro (if that's the correct name):

http://txt2tags.org/tips.html#html-to-t2t

but I am looking for a way to do everything in a shell script, not
interactively inside VI or VIM

I have found this suggestion on how to run vi inside a shell script:

http://www.computing.net/answers/linux/use-vi-within-script/29184.html

but I can't find a way to adapt that trick to load a local copy of
this file

http://txt2tags.googlecode.com/svn/trunk/extras/unhtml.vim

and execute it. Is it possible?

If not, could that unhtml.vim file be loaded/executed via awk, sed, whatever...
with as little editing as possible?

If that isn't possible either, are there other already tested ways to
automatically convert an HTML file to t2t markup from inside a shell script?

TIA,
MArco

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list

________________________________

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list

Reply via email to