E
E
Eugene2020-02-02 17:06:27
Notepad++
Eugene, 2020-02-02 17:06:27

Changing characters in text?

Hello everybody!
I decided to make some corrections to an already existing translation of one game. The game already has a redrawn font.
After studying the files with text in a hex editor, I prepared the following table - which letter corresponds to the character in the game:

spoiler

А(A) Б(А) В(B) Г(б) Д(Б) Е(E)  |
                               |
Ж(?) З(3) И(Ь) Й(Ь) К(K) Л(Ш)  |
                               |
М(M) Н(H) О(0) П(И) Р(P) С(C)  |
                               |
Т(T) У(Y) Ф(?) Х(X) Ц(?) Ч(4)  |
                               |
Ш(У) Щ(?) Э(Й) Ю(?) Я(?)       |
--------------------------------
а(a) б(д) в(и) г(r) д(g) е(e)  |
                               |
ж(й) з(т) и(u) й(ъ) к(k) л(щ)  |
                               |
м(m) н(ь) о(o) п(n) р(p) с(c)  |
                               |
т(t) у(y) ф(в) х(x) ц(з) ч(к)  |
                               |
ш(у) щ(ц) э(ы) ю(w) я(d) ы(Яi) |
                               |
ь(Я) ъ(Я)                      |


Further, in order to display any text in the game, you need to write it with the characters that are given in brackets. Example:
spoiler

Приветсвую жителей хабра|
Ирuиеtctиw йuteщеъ хадра|



Is it possible somehow to do a simple character substitution using some Notepad++ or Sublime Text?
At the moment, I'm making corrections manually, and I would like to simplify this process a little...
Ideally, I would like to have some kind of software in which you can "translate" text according to a given template in both directions. Some kind of Google translator, only according to a custom template.

Tried creating my own layout, but it only works one way. The layout will not translate the extracted texts back into Russian.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2020-02-03
@free_gen

The solution was found by itself :
5e376b583232e099607677.png

P
Page-Audit.ru, 2020-02-02
@PageAuditRU

On PHP, you can bang a script of such a transliteration in 10 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question