Home > Asp.Net > Type in Gujarati & UTF-8

Type in Gujarati & UTF-8

Hi,friends.I want to develop a application where user can choose either English or gujarati language for  writing.Before going to how to develop a gujarati typing with Asp.Net i advice you to read about what is Unicode and UTF format and why it is important.

What is Unicode?

Unicode is a computing industry standard allowing computers to represent and manipulate the text expressed in most of the world’s writing system.Developed in tandem with the Universal Character Set standard and published in book form as The Unicode Standard, the latest version of Unicode consists of a repertoire of more than 107,000 characters covering 90 scripts.

The Unicode Consortium is a non profit organization that coordinates Unicode Development.It has ambitious goal of eventually replacing existing character encoding schemes with Unicode and its standard Unicode Transformation Format(UTF). More Details….

What is UTF-8?

UTF-8 is a (8-bit Unicode Transformation System) is a variable length Character encoding for Unicode.It is capable to represent any character in the unicode standard.(yet it’s backward compatible with ASCII).For these  reasons it’s  steadily become preferred encoding for E-mail,Webpages and othere places where characters are stored and streamed.

The Internet Engineering Task Force (IETF) requires all protocols to identify the encoding used for character data and the supported character encoding must include UTF-8.The Internet Mail Consortium(IMC) recommends that all e-mail programs be able to display and create mail using UTF-8.More…

How to Use Unicode  in Creating Gujarati Script?

Gujarati script is used to write Gujarati Language.

Gujarati alphabet mainly includes 34 consonants (ornamented sounds), 2 compound characters that are treated as consonants (not lexically though), and 14 vowels (pure sounds). Overall, the writing system comprises of 94 legitimate and recognized distinct symbols or shapes. In the current Unicode 4.1 implementation, however, only some of these symbols have been incorporated as glyphs or shapes. The remaining shapes are created by conjuctions.

Framework of a Gujarati symbol

1. Baseline area – this is the placeholder for consonants and independent vowels

2. Area below and above the baseline – used for placing lower (below-base) and upper (above-base) dependent vowels respectively

3. Area before and after the baseline – used for writing left (pre-base) and right (post-base) dependent vowels respectively

What is Substitution?

Substitution, in the sense applicable here, means replacing a set or group of characters or shapes with a single character or shape. In practical terms, this translates as – 1) multiple key-strokes will generate a single shape; and 2) the resultant shape will keep transforming itself (based on certain rules) in accordance with the user’s key-strokes or inputs.

Substitution can happen when you add one or more shapes in any of the positions other than the baseline area (see illustration above). Read More..

Now let’s start code for gujarti writing.

For this i found a useful Javascript.I used following two javascript file

1.Parser.js  & 2.Gujarati.js

Here is above image displays the writing pad where you can see gujarati words.For this i used a text area and a button.Text area is a simple HTML text area cotrol and set it’s name=”comment”.

Categories: Asp.Net
  1. Ahmedabad
    February 5, 2010 at 12:58 pm

    Dear I want to know is there any offline pad so we can write and prepare document at our end and then upload on the blog of the same

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: