bugs and suggestion with indexing and Search
Posted: Tue Oct 04, 2022 8:39 am
Dear all
I have 2 remarks with the indexing
1. Under some circonstances,it breaks the Search and replace feature: it you select a whole word and then mark it as an index mark, then all is fine. BUT you can also mark words if your cursor is within the word (without selecting the whole word). If you mark it as an index mark, then it will correctly mark it but insert the invisible "index mark" where the cursor is, i.e. within the word. Then this word will not be recognised in a Search as there is an invisible mark in the middle of it. This can be corrected or by automatically inserting the index mark at the beginning of the word, wherever the cursor is, or my modifying the search engine to automatically ignore index mark wherever they are.
2. In the Quick index feature, I would suggest that the selected word in the text should be automatically preinserted in the Search window below. It would save a lot of time because, as it is, if you wish to make use of the very convenient MArk All, you have to write twice the list of index records. First the list and then, you have to rewrite each record one after the other in the search window.
I have one remark as regard Search&Replace within Yellow side notes
I have noticed another bug on Search&Replace within Yellow side notes: the search engine is actually broken if you replace twice (or more) the same word in one yellow side note. Currently it is as if the engine was calculating where the intended words were in the note from the start of the note (for example, let's say that the first occurence of the word begins at the 75th letter and the second occurence of the word begins at the 123rd letter) then it will proceed to replace the first word and then the second WITHOUT modifying the length from the beginning of the note. In my example, let's say my word is 10 letters long, and I am replacing it by an abbreviation 2 letters long. The engine does the job OK for the first word, BUT NOW my second word begins at 123-10+2=115th letter of the note: it will ignore it and wrongly insert the abbreviation at the 123 and 124th letters of the note. This can be corrected by making the search engine restart its letter count from the beginning of the note after modifying each word.
yours
Etienne
I have 2 remarks with the indexing
1. Under some circonstances,it breaks the Search and replace feature: it you select a whole word and then mark it as an index mark, then all is fine. BUT you can also mark words if your cursor is within the word (without selecting the whole word). If you mark it as an index mark, then it will correctly mark it but insert the invisible "index mark" where the cursor is, i.e. within the word. Then this word will not be recognised in a Search as there is an invisible mark in the middle of it. This can be corrected or by automatically inserting the index mark at the beginning of the word, wherever the cursor is, or my modifying the search engine to automatically ignore index mark wherever they are.
2. In the Quick index feature, I would suggest that the selected word in the text should be automatically preinserted in the Search window below. It would save a lot of time because, as it is, if you wish to make use of the very convenient MArk All, you have to write twice the list of index records. First the list and then, you have to rewrite each record one after the other in the search window.
I have one remark as regard Search&Replace within Yellow side notes
I have noticed another bug on Search&Replace within Yellow side notes: the search engine is actually broken if you replace twice (or more) the same word in one yellow side note. Currently it is as if the engine was calculating where the intended words were in the note from the start of the note (for example, let's say that the first occurence of the word begins at the 75th letter and the second occurence of the word begins at the 123rd letter) then it will proceed to replace the first word and then the second WITHOUT modifying the length from the beginning of the note. In my example, let's say my word is 10 letters long, and I am replacing it by an abbreviation 2 letters long. The engine does the job OK for the first word, BUT NOW my second word begins at 123-10+2=115th letter of the note: it will ignore it and wrongly insert the abbreviation at the 123 and 124th letters of the note. This can be corrected by making the search engine restart its letter count from the beginning of the note after modifying each word.
yours
Etienne