Hi;
I have been using Notecase for a couple of years. I would like to keep it but it seems it is no longer being maintained as open source.
∴ I would like to use Lyx as my large note taker or draft writer application. The problem is Notecase uses an *.ncd suffix which is unrecognized by Lyx. When I examine the files I want to import from Notecase to Lyx they are designated in the header as:
<!DOCTYPE NoteCase-File> <!--LastNote:41--> <HTML> <HEAD> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <meta name="generator" content="NoteCase 1.6.1"> <TITLE></TITLE> ... etc.
The markup is almost certainly html.
How can I convert these files into *.txt? I have tried several variations of:
]$ html2text -o ~/UMLC.txt file:///home/bill/NoteCaseDocs/UMLC. *Cannot open input file "file:///home/bill/NoteCaseDocs/UMLC.*".
Any suggestions greatly appreciated on how to import these (I have several) *.ncd files into Lyx.
On Fri, 2010-03-05 at 09:51 -0500, William Case wrote:
How can I convert these files into *.txt? I have tried several variations of:
]$ html2text -o ~/UMLC.txt file:///home/bill/NoteCaseDocs/UMLC. *Cannot open input file "file:///home/bill/NoteCaseDocs/UMLC.*".
Any suggestions greatly appreciated on how to import these (I have several) *.ncd files into Lyx.
YMMV but I'd do something like:
for F in foo/*.ncd; do links -dump $F > $(echo $F|sed 's/.ncd$/.txt/'); done
"for each file matching foo/*.ncd convert the dump the content as plain text using links into a file with the same name but the extension .ncd replaced with .txt"
I happen to like links but this should work with any html-text converter. Just watch out that it does the right things for what you want with the file names.
Regards, Bryn.
"lynx" (not lyx :-) is a text mode web browser. With sufficient command line options, you can get it to render html as text and save it in a file in an automated fashion.
Hi Tom;
On Fri, 2010-03-05 at 10:01 -0500, Tom Horsley wrote:
"lynx" (not lyx :-) is a text mode web browser. With sufficient command line options, you can get it to render html as text and save it in a file in an automated fashion.
We are talking about different applications. LyX is a type setting program based on LaTex. It can be found in the Fedora 12 repo.
"Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices (e.g., vt100 terminals, vt100 emulators running on PCs or Macs, or any other character-cell display)."
On Fri, 2010-03-05 at 09:51 -0500, William Case wrote:
Hi;
I have been using Notecase for a couple of years. I would like to keep it but it seems it is no longer being maintained as open source.
∴ I would like to use Lyx as my large note taker or draft writer application. The problem is Notecase uses an *.ncd suffix which is unrecognized by Lyx. When I examine the files I want to import from Notecase to Lyx they are designated in the header as:
<!DOCTYPE NoteCase-File> <!--LastNote:41--> <HTML> <HEAD> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <meta name="generator" content="NoteCase 1.6.1"> <TITLE></TITLE> ... etc.
The markup is almost certainly html.
How can I convert these files into *.txt? I have tried several variations of:
]$ html2text -o ~/UMLC.txt file:///home/bill/NoteCaseDocs/UMLC. *Cannot open input file "file:///home/bill/NoteCaseDocs/UMLC.*".
Any suggestions greatly appreciated on how to import these (I have several) *.ncd files into Lyx.
For a smallish number of files, the easiest is probably to open them in Firefox and use Save As ... text.
poc
On Fri, 2010-03-05 at 10:25 -0500, William Case wrote:
We are talking about different applications. LyX is a type setting program based on LaTex. It can be found in the Fedora 12 repo.
"Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices (e.g., vt100 terminals, vt100 emulators running on PCs or Macs, or any other character-cell display)."
You didn't read what he said about using Lynx to turn HTML into plain text...
Hi Tom;
On Fri, 2010-03-05 at 10:01 -0500, Tom Horsley wrote:
"lynx" (not lyx :-) is a text mode web browser. With sufficient command line options, you can get it to render html as text and save it in a file in an automated fashion.
Tim was right. I mis-read your advice last night. Downloaded lynx this morning and it seems to do what I want. I have to learn to play around with saving to text etc. but all the needful stuff seems to be there.
Hi;
On Fri, 2010-03-05 at 09:51 -0500, William Case wrote:
Hi;
I have been using Notecase for a couple of years. I would like to keep it but it seems it is no longer being maintained as open source.
∴ I would like to use Lyx as my large note taker or draft writer application. The problem is Notecase uses an *.ncd suffix which is unrecognized by Lyx. When I examine the files I want to import from Notecase to Lyx they are designated in the header as:
<!DOCTYPE NoteCase-File> <!--LastNote:41--> <HTML> <HEAD> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <meta name="generator" content="NoteCase 1.6.1"> <TITLE></TITLE> ... etc.
The markup is almost certainly html.
How can I convert these files into *.txt? I have tried several variations of:
]$ html2text -o ~/UMLC.txt file:///home/bill/NoteCaseDocs/UMLC.txt *Cannot open input file "file:///home/bill/NoteCaseDocs/UMLC.*".
Any suggestions greatly appreciated on how to import these (I have several) *.ncd files into Lyx.
The real solution was:
]$ html2text ~/NoteCaseDocs/UMLC.ncd >> ~/NoteCaseDocs/UMLC.txt
Then importing .txt files into LyX. Worked like a charm!
However, shouldn't have ]$ html2text ~/NoteCaseDocs/UMLC.ncd -o ~/NoteCaseDocs/UMLC.txt worked as well. Or, have I misunderstood the use of the '-o' option ?!?