A student starting to learn to write Japanese can start with hiragana or with katakana . Hiragana was used for unofficial writing such as personal letters , while katakana and Chinese were used for official documents . In modern times , the usage of hiragana has become mixed with katakana writing .