Old Japanese was written entirely in kanji, and a set of kanji called ''
man'yōgana'' were first used to represent the phonetic values of grammatical particles and morphemes. As there was no consistent method of sound representation, a phoneme could be represented by multiple kanji, and even those kana's pronunciations differed in whether they were to be read as or , making decipherment problematic. The , a poetry anthology assembled sometime after 759 and the eponym of ''man'yōgana
, exemplifies this phenomenon, where as many as almost twenty kanji were used for the mora ka
. The consistency of the kana used was thus dependent on the style of the writer. Hiragana developed as a distinct script from cursive man'yōgana
, whereas katakana developed from abbreviated parts of regular script man'yōgana
as a glossing system to add readings or explanations to Buddhist sutras. Both of these systems were simplified to make writing easier. The shapes of many hiragana resembled the Chinese cursive script, as did those of many katakana the Korean gugyeol'', suggesting that the Japanese followed the continental pattern of their neighbors. Kana is traditionally said to have been invented by the
Buddhist priest Kūkai in the ninth century. Kūkai certainly brought the
Siddhaṃ script of India home on his return from
China in 806; his interest in the sacred aspects of
speech and
writing led him to the conclusion that Japanese would be better represented by a phonetic alphabet than by the kanji which had been used up to that point. The modern arrangement of kana reflects that of the
devanagari order used for
Sanskrit in the
Buddhist Siddhaṃ script hybrid known by the Japanese at the time, before, the traditional
iroha arrangement used to follow the order of a poem which uses each kana once. Kana's vowel (a-i-u-e-o) and consonant (k, s, t, n, h, m, y, r, w) order coincide with the Sanskrit order, except for the letter s, but that is explained by the properties of Old Japanese and the version of Siddham buddhist monks learnt at the time. However, the first time this order was used in Japanese was during the
Heian period by Myōkaku, a priest and Sanskrit scholar of the 12th century, member of the same order of Kūkai and credited as reviving Saskrit studies. In 1695, a priest named Keichū published a 5 volume book that is considered to be fundamental in fixing the sound order to this day; and this work, in turn, was probably based on an earlier 3 volume systematic study of the grammar and the writing system of the Buddhist Hybrid Sanskrit, written by another priest, Kakugen, in 1681, also member of the order of Kūkai and Myōkaku. However, hiragana and katakana did not quickly supplant ''man'yōgana
. It was only in 1900 that the present set of kana was codified. All the other forms of hiragana and katakana developed before the 1900 codification are known as . Rules for their usage as per the spelling reforms of 1946, the , which abolished the kana for wi
(ゐ・ヰ), we
(ゑ・ヱ), and wo'' (を・ヲ) (except that the last was reserved as the accusative particle). ==Collation==