NAME

AstroIdStr2nTxt - get the number of the paragraph from it's name in a given interpretation file.

USAGE

AstroIdStr2nTxt id_str [id_file]

PARAMETERS

id_str: Is the id string of the paragraph in interpretation file id_file.

id_file: Is the number of the interpretation file to look for the paragraph number.
If not given Proastro uses 1 as default number, so it is better if an interpretation text file with id number 1 exists.

Proastro interpretation files are text files where texts corresponding to astrological combinations are in.

The format of such a file is

<a name = "id_of_my combination">Title for my combination, for example Sun in Aries</a>
My text about Sun in Aries...
<a name ="id_of_my_other_combination">Title for my other combination, for example Moon in Leo</a>
My text for Moon in Leo ....

The first paragraph gets the number 1, the second 2 and so on.

OPTIONS

NONE

RETURN

The id number (from 1) for this paragraph or -1 if not found.

EXAMPLE

AstroIdStr2nTxt "All planets under horizon" 1

Output

3