Writing Systems: A Linguistic Approach