A hierarchical system for Chinese orthography with applications to education and computers