Thread:User talk:CodeCat/Strip ́ symbol for Russian User:Conrad.Irwin/editor.js

Hi. Are you able to automatically strip ́ (stress symbol) from Russian translations, similar to Serbo-Croatian and Slovene diacritics? E.g. рабо́та -> работа, so that the actual link is for работа but alt=рабо́та and "page name" would show the word without the symbol?

Also, I wonder if it's possible to remove spaces from beginning and end (but not middle) from any translation (trim), so as to avoid extra spaces added when people copy-paste?