Menu

#144 Improvements on UTF-8 (RUS) for Delphi XE7

None
closed-fixed
None
5
2023-01-28
2021-05-26
No

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.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2021-05-26

    Yes, I would appreciate very much getting those changes. You can simply attach them to this ticket.

     
  • Igor Kolmakov

    Igor Kolmakov - 2021-05-27

    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.

     
  • Thomas Mueller

    Thomas Mueller - 2023-01-22

    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?

     
  • Thomas Mueller

    Thomas Mueller - 2023-01-28
    • status: open --> closed-fixed
    • assigned_to: Thomas Mueller
    • Group: -->
     
  • Thomas Mueller

    Thomas Mueller - 2023-01-28

    Patches applied to revision #3961 (with some minor modifications) Please check whether they still work as designed.

     

Log in to post a comment.

MongoDB Logo MongoDB