Jews in most places in the world learned the Hebrew letters. While they could speak the local language they could not write it, so when they wanted to communicate with each other, the natural way of writing was to use the Hebrew letters that they had learned as children. Not only Yiddish, but many o