Strip ́ symbol for Russian [[User:Conrad.Irwin/editor.js]]

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?

Anatoli (обсудить/вклад)23:54, 7 January 2013

I think so. Is it a combining diacritic? Or are there also letter forms where the accent is combined with the letter into a single unit?

CodeCat23:56, 7 January 2013

When you combine the symbol with a Roman letter it merges into one (or it just looks so), see é or á. The Cyrillic letters look a bit differently: е́ and а́. But I can click on backspace and remove the symbol from both Roman and Cyrillic, "delete" will delete both characters. Sorry if I'm not helpful. BTW, Serbo-Croatian doesn't remove all diacritics from Cyrillic but I don't remember, which one.

Here's a full list: А́, Е́, Ё́, И́, О́, У́, Ы́, Э́, Ю́, Я́, а́, е́, ё́, и́, о́, у́, ы́, э́, ю́, я́ It's usually wrong to put accents on Ё (it's stressed in 99.9% of cases) but please add them as well)

Anatoli (обсудить/вклад)00:19, 8 January 2013

I have tried adding only the combining character to strip, it's possible that it is enough. Can you try?

CodeCat00:20, 8 January 2013

No, it didn't work (after a hard refresh). I used рабо́та, "page name" field shows the same and the preview shows the same.

Anatoli (обсудить/вклад)00:24, 8 January 2013

I made a small mistake but I fixed that, and now it seems to work.

CodeCat00:27, 8 January 2013

Thanks! I did the same for Ukrainian, Belarusian, Bulgarian and Macedonian as some online dictionaries show words with stresses. Also I added stripping of Arabic diacritics tfrom Persian and Urdu, so that پُشت would link to پشت, etc.

Anatoli (обсудить/вклад)00:40, 8 January 2013