palange/psdparse — pull request #1 by palange (2012-06-04 18:57:22+00:00)
Title: Parsing of text_layer data

This patch reads the fields of the 'TySh' block of the additional layer info. It adds a 'text_layer' key to any layer that provides subkeys for relevant info from 'TySh' (photoshop type tool v6+).

```python
l['text_layer'] = {}
l['text_layer']['text_desc'] = text_desc # Data for the type tool. (pdf or ps format?)
l['text_layer']['text_transform'] = (xx, xy, yx, yy, tx, ty,) # transform applied to rendered text
['text_layer']['left'] = left # always zero ?
l['text_layer']['top'] = top
l['text_layer']['right'] = right
l['text_layer']['bottom'] = bottom
```

Also fixes a bug parsing unicode layer names when the unicode layer isn't first in the list of additional layer infos.