Uddhartu kaamah Sanakaadi Siddhaa Netadwimarse Shiva Sootra Jaalam ||
Translation: At the end of his (celestial) dance, the king of natyashastra (i.e. the Supreme god Shiva), sounded the Dhakka (Damaru - his famous two-sided drum) 9 and 5 times (i.e. 14 times). ... This (he did), in order to to grant salvation / enlightenment * to Sanaka and other siddhas (basically the four Kumaras - sons of Brahma born out of his mind) ... and thus weaved the net of shiva-sootras (the Varnamala).
This is a famous Sootram - also called the Maheshwara Sootra - and is attributed to Paanini - the ancient sage who is credited for building the grammar of the Sanskrit language.
The story goes like this: When Brahma decided to commence the sequence of creation, he first of all created four Kumaras (see Jaya and Vijaya) by just having a wish in his mind. These were Sanaka, Sanandana, Sanatana and Sanatkumara. They were all embodiments of pure qualities. Brahma created them so that they could help in the process of creation. But they were so pure - almost child-like - that they had no idea how to go about the business of creation. They also refused to take part in creation, thinking that the lowly mode of reproduction was not for them.
When Brahma found that the four Kumaras are not interested in the purpose they were supposed to be interested in, but are rather happy in learning knowledge and siddhis (yogic powers), he got angry and asked Shiva to help them understand life and its purpose better. Shiva, who is erotic in the nine worlds below and an ascetic in the five worlds above, played on his drum 9 + 5=14 times, representing the paths to be found in all the fourteen worlds and thus provided enlightenment to the yogi Kumaras.
These drum beats are none other than the seed mantras (sounds) of Sanskrit alphabets **:
1. A I Un.
2. Ar Al Uk
3. E Ong
4. Ai Ouch
5. Ha Ya Va Rat
7. Nga Ma Jna Nna Nam
8. Jha Bhany
9. Gha Dha Dhash.
10. Ja Ba Ga Da Dash
11. Kha Pha Chcha Ththa Ththa Ca Ta Tav
12. Ka Pay
13. Sha Shsha Sar
And that is how the alphabet came into existence!
Since these 14 varnas i.e. alphabets came out of Shiva himself, who has no death, these varnas are known as Aksharas (deathless). The jaal (net) that the Supreme God knitted is called Aksharamala. They are also called
Chaturdasa Vidyasthanams (The First 14 places of knowledge).