F
Fil
Let say I want to know the word or the paragraph that contains the character
2043.
How do I call them?
--------------------------------
For the story I have a book of Italian cooking recipes (the absolute best
one that every italian grandma has on her shelves) in plain text that I am
trying to put in a nice format. The problem is that it is ~ 3000 pages long.
Luckily when I pasted the content of the txt file (a friend of mine sent me)
into word, I noticed that all formatting information hadn't been lost. I have
one recipe per page and paragraphs were preserved.
Based on what I see in the index, I want to link the index to the body of
the document. When the index will be properly linked to the text I will be
able to create back the proper structure of the document: chapter, sub
chapter, ... with a dedicated formatting for each of them.
Right now I am going through the index, grabing the title of each section
(basically I get rid of the spaces and page number), looking at all the
occurences of this title in the body of the occument and will select among
them the one which is at the beginning of a paragraph, hoping hard there's
only one that match this criterion. Once I found this occurence I will link
the item of my index to this occurence.
2043.
How do I call them?
--------------------------------
For the story I have a book of Italian cooking recipes (the absolute best
one that every italian grandma has on her shelves) in plain text that I am
trying to put in a nice format. The problem is that it is ~ 3000 pages long.
Luckily when I pasted the content of the txt file (a friend of mine sent me)
into word, I noticed that all formatting information hadn't been lost. I have
one recipe per page and paragraphs were preserved.
Based on what I see in the index, I want to link the index to the body of
the document. When the index will be properly linked to the text I will be
able to create back the proper structure of the document: chapter, sub
chapter, ... with a dedicated formatting for each of them.
Right now I am going through the index, grabing the title of each section
(basically I get rid of the spaces and page number), looking at all the
occurences of this title in the body of the occument and will select among
them the one which is at the beginning of a paragraph, hoping hard there's
only one that match this criterion. Once I found this occurence I will link
the item of my index to this occurence.