Transposed feature for text decoding in jbig2

Code by @sriram-dev. Fixes #3666. Follow-up of #3734. Same code, just fixes some commit history issues.