Here is a new patch for the line type, with a new input/output format{A,B,C}, as discussed in this thread.