fragments: dot binarization with on-the-fly tree reading