- AuthorPosts
- January 27, 2019 at 7:57 am #24216spirosParticipant
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
February 13, 2019 at 11:06 am #25417spirosParticipantHi, 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.
- AuthorPosts
- You must be logged in to reply to this topic.