|
[Date Index]
[Thread Index]
[Author Index]
importing a file with rtf tags embedded
- To: mathgroup at smc.vnet.net
- Subject: [mg50743] importing a file with rtf tags embedded
- From: János <janos.lobb at yale.edu>
- Date: Sat, 18 Sep 2004 05:49:24 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Is there a way which enable to import a text file containing rtf tags
and show it without those tags ?
For example, here is a snippet for illustration:
requiring, high, dose, IMMUNOSUPPRESSION\par,
\pard\fi-1440\li1440\tx719\t\
x1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8
640\t\
x9360, \tab, \tab, -, NECROTIZING, BRONCHOPNEUMONIA, and, BRONCHITIS,, \
bilateral\par,
\pard\fi-2160\li2160\tx719\tx1440\tx2160\tx2880\tx3600\tx4320\t\
x5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360, \tab, \tab, \tab, -,
Tissue, \
cultures, positive, for, PSEUDOMONAS, AERUGINOSA\par,
\pard\fi-1440\li1440\t\
x719\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx79
20\t\
x8640\tx9360, \tab, \tab, -, PROSTATIC, ABSCESS\par, \tab, -Residual, \
MALIGNANT, LYMPHOMA,, leptomeninges,, hypothalamus,, hippocampus\par,
\pard\t\
x719\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx79
20\t\
x8640\tx9360\tx10080, -, BIVENTRICULAR, HYPERTROPHY,, HEART, (weight:,
550, \
grams;, left, ventricular, free, wall:, 1.6cm;, right, ventricular,
wall:, \
0.8cm)\par,
\pard\fi-720\li720\tx719\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\
\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640, \tab, -,
Hepatosplenomegaly, \
(liver, weight:, 2080, grams,, spleen, weight:, 450, grams)\par, \tab,
-, \
Mild, arteriolonephrosclerosis,, bilateral, kidney\par, \par, CAUSE,
OF, \
DEATH:\par,
\pard\tx719\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\t\
x6480\tx7200\tx7920\tx8640\tx9360\tx10080, \tab,
I would like to see only:
requiring, high, dose, IMMUNOSUPPRESSION
-, NECROTIZING, BRONCHOPNEUMONIA, and, BRONCHITIS
-, Tissue, cultures, positive, for, PSEUDOMONAS, AERUGINOSA
-, PROSTATIC, ABSCESS
-Residual, MALIGNANT, LYMPHOMA,, leptomeninges,, hypothalamus,,
hippocampus
-, BIVENTRICULAR, HYPERTROPHY,, HEART, (weight:, 550, grams;, left,
ventricular, free, wall:, 1.6cm;, right, ventricular, wall:, 0.8cm)
-, Hepatosplenomegaly, (liver, weight:, 2080, grams,, spleen, weight:,
450, grams)
-, Mild, arteriolonephrosclerosis,, bilateral, kidney
CAUSE, OF, DEATH:
I looked and tried the options listed under Import, but with no
success. The file itself has comas, semicolons,... in it, so if I
Import it with Record or Word types, they break the rtf braces and I am
not able to look for rtf tag patterns - with my newbie knowledge. I
have about a thousand such files which need to lose their rtf tags or
interpret them correctly and show the format accordingly.
Any good tip ?
Thanks ahead,
János
----------------------------------------------
Trying to argue with a politician is like lifting up the head of a
corpse.
(S. Lem: His Master Voice)
Prev by Date:
IMS 2005: First announcement and call for submissions
Next by Date:
Re: Re: Technical Publishing Made Easy with New Wolfram Publicon Software
Previous by thread:
IMS 2005: First announcement and call for submissions
Next by thread:
Re: importing a file with rtf tags embedded
|