add pinyin tone transfer function