fanticla has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am searching for inspiration. I have many different texts in a unique .txt file. Each text is annotated with a tag (at the headings of each text). The structure looks like the following:
<text>Meta information about text 1</text> This is text one. .... This was text one. <text>Meta information about text 2</text> This is text two. .... This was text two.
My software allows users to search for a word in the .txt file, and shows in a TK::Text Wiget the portion of the text containing that word. This works fine. What I would like now to do is to retrieve the content of the <text> annotation related to the text where the word has been found. Any idea how I could implement it. I am not searching for a peace -> piece ;) of code, but just for the right inspiration...Thanks. Cla
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Retrieving meta information from txt
by chrestomanci (Priest) on Dec 10, 2010 at 12:07 UTC | |
by Anonymous Monk on Dec 10, 2010 at 12:09 UTC | |
|
Re: Retrieving meta information from txt
by jethro (Monsignor) on Dec 10, 2010 at 12:18 UTC | |
by Anonymous Monk on Dec 10, 2010 at 13:30 UTC | |
|
Re: Retrieving meta information from txt
by bart (Canon) on Dec 10, 2010 at 12:00 UTC | |
|
Re: Retrieving meta information from txt
by cdarke (Prior) on Dec 10, 2010 at 13:59 UTC | |
|
Re: Retrieving meta information from txt
by elef (Friar) on Dec 10, 2010 at 18:19 UTC | |
|
Re: Retrieving meta information from txt
by Anonymous Monk on Dec 10, 2010 at 11:41 UTC |