Studies in the structure of some ancient scripts