• Hi! Great plugin for Latin alphabet.

    I was wondering if the plugin could handle Right-to-left Persian alphabet and how to do it.
    “ا,آ,ب,پ,ت,ث,ج,چ,ح,خ,د,ذ,ر,ز,ژ,س,ش,ص,ض,ط,ظ,ع,غ,ف,ق,کگ,ل,م,ن,و,هی”
    Also: does this plugin support multiple language? E.g. on my website, you can change language from English to Persian and I was wondering if the A-Z could change from Latin alphabet to Persian alphabet.

    Appreciate any help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You can set the alphabet by adding the alphabet parameter like below:

    [a-z-listing alphabet="ا,آ,ب,پ,ت,ث,ج,چ,ح,خ,د,ذ,ر,ز,ژ,س,ش,ص,ض,ط,ظ,ع,غ,ف,ق,کگ,ل,م,ن,و,هی"]
    

    It is important that you do not input any “right-to-left” or “left-to-right” markings within the shortcode. This is because the plugin will treat them as extra letters. These are markings are invisible, so you need to make sure your input is set to left-to-right mode, and that you do not switch modes, while writing the shortcode. The alphabet needs to be ordered from left-to-right with the first letter of your alphabet at the left and the last letter of your alphabet on the right.

    Multiple languages are not currently supported as I do not have access to any translation plugins to be able to work on the support.

    Thread Starter theburningdude

    (@theburningdude)

    Thanks for the reply! I will try this. I appreciate your answer.

    Thread Starter theburningdude

    (@theburningdude)

    I have another question:
    [a-z-listing alphabet=”ا,آ,ب,پ,ت,ث,ج,چ,ح,خ,د,ذ,ر,ز,ژ,س,ش,ص,ض,ط,ظ,ع,غ,ف,ق,کگ,ل,م,ن,و,هی”]

    the above shortcode is written from right-to-left
    E.g. ا = A
    Should this be the opposite way in the shortcode?

    Plugin Author Dani Llewellyn

    (@diddledani)

    Yes, I think it does need to be the opposite-way in the shortcode, but I might be wrong as I am unable to read any right-to-left languages fluently enough to be able to make the correct choice. Try both to see which works best 🙂

    Thread Starter theburningdude

    (@theburningdude)

    Hi Daniel,

    I have been playing around with your awesome plugin. However, I still have not succeeded making it work with Persian letters.
    I added this [a-z-listing alphabet=”ا,ب,پ,ت,ث,ج,چ,ح,خ,د,ذ,ر,ز,ژ,س,ش,ص,ض,ط,ظ,ع,غ,ف,ق,ک,گ,ل,م,ن,و,ه,ی”]

    And got the following result (see image), however, it seems to not recognize the letters. It categorizes all letters under the category “#”:

    View post on imgur.com

    Do you have any suggestions on how to fix this?

    Appreciate your answer

    Plugin Author Dani Llewellyn

    (@diddledani)

    Perhaps your PHP installation is missing the mbstring extension? If you have the required access to your web host then you should be able to find out whether it is currently enabled or enable it if it isn’t. This is the main reason that people encounter that causes this behaviour.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Persian Language support’ is closed to new replies.