• Resolved Avaz

    (@avazbek)


    Hello,

    Due to pecularity of our language(uzbek based on latin alphabet) we use ’ and ‘ characters and they shouldn’t replace each other, because it’s counted wrong. AFAIK, there’s no keyboard button for (&lsquo) character, and in posts I’ve to edit manually each word which contains such character.

    For example I’ve to change the word O’zbek to O‘zbek in the WP editor, so that it will display correctly, like O‘zbek.

    That’s why I thought if it was possible to write a lil hack/plugin which will replace given combinations. Here they are:

    All O’, o’ and G’, g’ in a post and post title will be replaced with O‘, o‘ and G‘, g‘ accordingly.

    Can anyone write such hack/plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can anyone write such hack/plugin?

    Sure! Your request is actually simple to write up something for…

    Uzbek Single Left Quote plugin
    Download plugin | View source

    Plugin tests for the format

    [O|G]'[A-Z]

    In other words, O or G (case-insensitive), followed by a straight single quote, followed by any alphabetical character. Let me know if this needs to be adjusted in any way. Admittedly I know nothing of the Uzbeki language. :/

    Thread Starter Avaz

    (@avazbek)

    Kafkaesqui,

    Thank you very much! This is what I needed. I’ve posted about this plugin on my blog, hope it will be helpful for many other users too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto Replacer’ is closed to new replies.