Enable text based alternatives for graph display and drawing entry

Try another version of this question

Find the area of the trapezoid shown below

[Graphs generated by this script: initPicture(-1,5.5,-1,5.5);path([[0,0],[1,4],[3,4],[5,0],[0,0]]);text([2,4],'10.4','above');text([4,2],'23.3','right');text([0.5,2],'21.4','left');text([2.5,0],'26','below');stroke='red';fontfill='red';line([1,0],[1,4]);text([1,2],'20.8','right');]