mapAttributes(_:) public func mapAttributes(_ text: NSAttributedString) -> [(TermColor,TermStyle,String)]