Zipf's law and the distribution of written signs