Hello,
I’m having problem with Reg Replace. I’ve received a lot of poems lyrics in .txt format (I’m not programist). Problem is they all have been saved with wrong encoding which resulted with replacing all national characters (I’m from Poland) to their equivalent in Unicode. I was looking for a tool which would allow me to batch all files at once and I bumped to Reg Replace for STE. I have installed Reg Replace using Package Controll and decided to do one file at the time. Fallowing this instructions:
see here
I’ve put in reg_replace.sublime-settings fallowing code:
`{
"replacements": {
"pl1": {
"find": "ê",
"replace": "ę",
"greedy": true,
"case": false,
"literal": true
},
"pl2": {
"find": "¿",
"replace": "ż",
"greedy": true,
"case": false,
"literal": true
},
"pl3": {
"find": "³",
"replace": "ł",
"greedy": true,
"case": false,
"literal": true
},
"pl4": {
"find": "¹",
"replace": "ą",
"greedy": true,
"case": false,
"literal": true
},
"pl5": {
"find": "Ÿ",
"replace": "ź",
"greedy": true,
"case": false,
"literal": true
},
"pl6": {
"find": "œ",
"replace": "ś",
"greedy": true,
"case": false,
"literal": true
},
"pl7": {
"find": "æ",
"replace": "ć",
"greedy": true,
"case": false,
"literal": true
}
}
}`
Than I’ve put this code into Default.sublime-commands:
[
{
"caption": "Reg Replace: Polish characters",
"command": "reg_replace",
"args": {
"replacements": [
"pl1",
"pl2",
"pl3",
"pl4",
"pl5",
"pl6",
"pl7"
]
},
"find_only": true
}
]
In the end I hit Ctrl + Shift + P and by typing “Polish characters” (name of my command), I find it, hit Enter and nothing happens. No error, no changes to opened document. Normally I would attempt some kind of trouble shooting, but I know only basis of Java Script and PHP. What I should check, where to read?
I’m using latest version of Sublime and running Windows 7 x64 Pro.