Hello.
I am from Russia and am using Delphi XE7.
The development environment uses UTF-8 encoding, which leads to incorrect positioning in the line of the source editor.
I am using GExpert version 1.3.18
I downloaded the source codes of the expert and fixed the behavior in some places that were critical for me to use.
If you are interested in changes in the GExpert code, I can send you a changelog and changed files.
Thank you very much for supporting the project. I am without him, as without hands.
My email ivk@narod.ru
Best regards, Igor Kolmakov.
Yes, I would appreciate very much getting those changes. You can simply attach them to this ticket.
Ok.
In attachments changed files and file with GIT changes.
I made only those changes that were critical for me.
In particular, due to the previously unresolved cursor positioning problem, in the case when the search line was found in a line with Russian lines after them, the cursor was set to a completely different position.
After my improvements, the problem was solved, but unfortunately by 100%, since the environment function returns a position 1 more or less. As a result, for some lines, the cursor is positioned 1 character to the left or to the right.
But this is much better than when the cursor is positioned to the right by the number of national characters in the line.
Note. In the source text, UTF-8 characters of 3 bytes in size were found. These lines were scored from a PDF file. Therefore, the procedure for determining the byte position in the UTF-8 line has been improved.
I just tried to apply your changes to the current sources, but unfortunately I seem to have waited too long and it has become very difficult to find out which are actual changes and which would be regressions.
Have you kept up your copy of the sources with those in the SourceForge repository? If yes, could you please attach a new diff against those?
Patches applied to revision #3961 (with some minor modifications) Please check whether they still work as designed.