fix y coordinate in specimen with r2l direction; do not enforce writing mode in svg for horizontal directions