Text this: A greedy maximal sweepline algorithm for a Jordan curve