BotDetect CAPTCHA Indian Localization

This page contains the details of Indian Captcha locales fully supported by BotDetect, for which there are both localized Captcha images and audio Captcha sounds available.

Supported Indian CAPTCHA Locales

Hindi CAPTCHA

Captcha Locale overview:

Language Country BotDetect Locale settings
Hindi India hi, hi-IN

Examples and specifications of individual Captcha feature localizations:

Hindi Localized CAPTCHA Images

Example Captcha images generated by BotDetect using the base Devanagari character set for all Captcha ImageStyle values can be seen in the BotDetect Captcha image styles demo

To use BotDetect Captcha images localized for the Hindi Captcha Locale in your application, you can specify the Locale value:

  • In ASP.NET applications, you can use either the .aspx page source:
    <!-- Captcha control localized to Hindi -->
    <BotDetect:WebFormsCaptcha ID="ExampleCaptcha" runat="server" Locale="hi" />
    or the page code-behind:
    [C#]
        
    // Set the Captcha instance Locale to Hindi    
    ExampleCaptcha.Locale = "hi";
    [VB.NET]
        
    ' Set the Captcha instance Locale to Hindi    
    ExampleCaptcha.Locale = "hi"

    or Locale-dependent Captcha strings can be configured on application level in the <botDetect> Web.config configuration section:

    <botDetect locale="hi" 
  • In Java applications, you can use either the application web.xml configuration file setting:
    <context-param>
      <param-name>BDC_locale</param-name>
      <param-value>hi</param-value>
    </context-param>
    
    or the Captcha object instance-specific value:
    exampleCaptcha.setLocale("hi"); 
    
    or Standard / Facelets JSF Captcha Tag page source:
    <botDetect:jsfCaptcha id="exampleCaptcha" locale="hi"
    
    or JSP Captcha Tag page source:
    <botDetect:captcha id="exampleCaptcha" locale="hi"
    
  • In ASP Classic applications, you can use either the application-global setting in the BotDetect\CaptchaConfig.asp file:
    ' Set the default Locale for all Captcha instances in the 
    ' Classic ASP application to Hindi
    BotDetect.Locale = "hi"
    or the Captcha object instance-specific value:
    <%
      Dim ExampleCaptcha : Set ExampleCaptcha = (New Captcha)("ExampleCaptcha")
      ExampleCaptcha.UserInputID = "CaptchaCode"
      ' Set the Captcha object instance Locale to Hindi
      ExampleCaptcha.Locale = "hi"
      Response.Write ExampleCaptcha.Html
    %>
  • In PHP applications, you can use either the application-global setting in the lib/botdetect/CaptchaConfigDefaults.php file:
    // Set the default Locale for all Captcha instances in the 
    // PHP application to Hindi
    $BDC_CaptchaConfig->Locale = 'hi';
    or the Captcha object instance-specific value:
    <?php 
      $ExampleCaptcha = new Captcha("ExampleCaptcha");
      $ExampleCaptcha->UserInputID = "CaptchaCode";
      // Set the Captcha object instance Locale to Hindi
      $ExampleCaptcha->Locale = 'hi';
      echo $ExampleCaptcha->Html(); 
    ?>

Hindi Localized Audio CAPTCHA Sounds

Example audio Captcha sounds generated by BotDetect using the Hindi Locale setting can be heard in the BotDetect Captcha features demo

To use BotDetect sounds localized for the Hindi Captcha Locale, you should also download the Hindi Pronunciation Sound Package and deploy the .bdsp file to the BotDetect sounds folder your application uses:

  • ASP.NET applications use Bin\BotDetectSounds by default. A custom folder can be specified in the <botDetect> configuration section.
  • Java applications use WEB-INF\BotDetectSounds by default. A custom folder can be specified in the web.xml configuration file setting.
  • ASP Classic applications use Redistribute\BotDetectSounds in the BotDetect installation folder by default. A custom folder can be specified in the BotDetect/CaptchaConfig.asp file.
  • PHP applications always use lib/botdetect/Resources/Sounds.

Unicode Captcha Codes and Font Requirements

This table on the left uses the actual Unicode characters drawn in localized Captcha images.

Displaying these characters in your browser requires having fonts which support them installed on the client machine.

In ASP.NET and ASP Classic versions of BotDetect, generating localized Captcha images using these characters also requires supporting fonts on your server.

If viewing these characters in your browser or generating them in Captcha images on your server fails, you can enable the required localization support for on both client and server machines using Control Panel:

Windows 2000, XP, 2003 Server: Regional and Language Options → Languages → Supplemental language support.

Windows Vista, 7, 2008 Server: Region and Language → Keyboards and Languages → Install/uninstall languages.

CodeStyle.Alpha Hindi CAPTCHA Characters
Unicode code point Name Character
0x0905 a
0x0906 aa
0x0907 i
0x0909 u
0x090B vocalic r
0x090C vocalic l
0x090F e
0x0913 o
0x0914 au
0x0915 ka
0x0916 kha
0x0917 ga
0x0918 gha
0x0919 nga
0x091A ca
0x091B cha
0x091C ja
0x091D jha
0x091E nya
0x091F tta
0x0920 ttha
0x0921 dda
0x0922 ddha
0x0923 nna
0x0924 ta
0x0925 tha
0x0926 da
0x0927 dha
0x0928 na
0x0929 nnna
0x092A pa
0x092B pha
0x092C ba
0x092D bha
0x092E ma
0x092F ya
0x0930 ra
0x0931 rra
0x0932 la
0x0933 lla
CodeStyle.Numeric Hindi CAPTCHA Characters
Unicode code point Name Character
0x0030 zero 0
0x0031 one 1
0x0032 two 2
0x0033 three 3
0x0034 four 4
0x0035 five 5
0x0036 six 6
0x0037 seven 7 (not used)
0x0038 eight 8
0x0039 nine 9
CodeStyle.Alphanumeric Hindi CAPTCHA Characters
Unicode code point Name Character
0x0905 a
0x0906 aa
0x0907 i
0x0909 u
0x090B vocalic r
0x090C vocalic l
0x090F e
0x0913 o
0x0914 au
0x0915 ka
0x0916 kha
0x0917 ga
0x0918 gha
0x0919 nga
0x091A ca
0x091B cha
0x091C ja
0x091D jha
0x091E nya
0x091F tta
0x0920 ttha
0x0921 dda
0x0922 ddha
0x0923 nna
0x0924 ta
0x0925 tha
0x0926 da
0x0927 dha
0x0928 na
0x0929 nnna
0x092A pa
0x092B pha
0x092C ba
0x092D bha
0x092E ma
0x092F ya
0x0930 ra
0x0931 rra
0x0932 la
0x0933 lla
0x0030 zero 0
0x0031 one 1
0x0032 two 2
0x0033 three 3(not used)
0x0034 four 4
0x0035 five 5
0x0036 six 6
0x0037 seven 7 (not used)
0x0038 eight 8
0x0039 nine 9