added scriptCode for legends: 4 letter ISO 15924 code