Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24216

    spiros
    Participant

    A list of replacements was used on the file source-text.txt:

    File content:

    *(/afaistos
    *(/agios
    *(/agnwn
    *(/alh
    *(/alios
    *(/alis
    *(/almos
    *(/alukos
    *(/alus
    *(/arma

    In Notepad++ as notepadplusplus-findreplace.txt

    Then the Python script Plugin was used to batch replace the characters
    The script:

    with open('C:/notepadplusplus-findreplace.txt') as f:
        for l in f:
            s = l.split()
            editor.replace(s[0], s[1])

    The output was as expected (notepad-output.txt):

    Ἅφαιστοσ
    Ἅγιοσ
    Ἅγνων
    Ἅλη
    Ἅλιοσ
    Ἅλισ
    Ἅλμοσ
    Ἅλυκοσ
    Ἅλυσ
    Ἅρμα

    Tried same replacements with EmEditor with batch replace (emeditor-findreplace.tsv).
    The output was unexpected, i.e.

    Ἅφὰὶστὸσ
    Ἅγὶὸσ
    Ἅγνὼν
    Ἅλὴ
    Ἅλὶὸσ
    Ἅλὶσ
    Ἅλμὸσ
    Ἅλὺκὸσ
    Ἅλὺσ
    Ἅρμὰ

    Any ideas why this difference? I suspect that replacements might not be done in a linear fashion which is important for this type of conversion.

    Files here

    #25417

    spiros
    Participant

    Hi, not sure if anyone had a chance to see why the replacement behaves in this I way, I just wanted to update that I tried the same replacements with an UltraEdit script, and it worked as expected; so I am guessing there is some sort of bug with EmEditor.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.