Maybe it isn't written consistently in the same language. Educated people of that era knew several. The author could be using a phonetic alphabet and the most convenient language to express an idea. That would account for many of the inconsistencies. Some of the letters could also be numbers, which would explain odd repetitions.