Text 如何编写脚本将列表组织为特定的表格式?

Text 如何编写脚本将列表组织为特定的表格式?,text,formatting,Text,Formatting,我有一个大约4000多条中国古代谚语的列表,我想导入到Pleco(一个中文字典应用程序)中,用于抽认卡。然而,Pleco需要一种特定的格式(一个由选项卡分隔的表格),手动完成这项工作将花费永远的时间 你知道我将如何实现一个脚本来自动格式化列表吗 e、 g 进入: 它需要采用以下格式:简体字选项卡繁体字选项卡定义 请省去拼音(例如:i fán yǒu fán;xīyīyǒu yī)、标识符(例如[A1]、[A2])和主题的最后一行(例如:服装、食品、节俭) 代码后面的行并不总是精确的。有时每句谚语

我有一个大约4000多条中国古代谚语的列表,我想导入到Pleco(一个中文字典应用程序)中,用于抽认卡。然而,Pleco需要一种特定的格式(一个由选项卡分隔的表格),手动完成这项工作将花费永远的时间

你知道我将如何实现一个脚本来自动格式化列表吗

e、 g

进入:

它需要采用以下格式:简体字选项卡繁体字选项卡定义

请省去拼音(例如:i fán yǒu fán;xīyīyǒu yī)、标识符(例如[A1]、[A2])和主题的最后一行(例如:服装、食品、节俭)

代码后面的行并不总是精确的。有时每句谚语都会有或多或少的台词

非常感谢大家!StackOverflow对我的编码冒险有很大的帮助

Ài fàn yǒu fàn; xī yī yǒu yī.
爱饭有饭, 惜衣有衣。
愛飯有飯, 惜衣有衣。
[Those who] treasure [their] food [will always] have food [and those who] take care of [their] clothing [will always] have clothes [to wear]. 
[An admonition to thrift; see also bùyī nuǎn below.]
        CLOTHING FOOD THRIFT
[A2]
Ái gǒu yǎo de rén bù dōu shì zéi.
挨狗咬的人不都是贼。
挨狗咬的人不都是賊。
(lit) Not all who are bitten by dogs are thieves. 
(fig) One should not make judgments based on superficial appearances. Things are not always as they (first) appear.
        APPEARANCES JUDGMENTS
[A3]
Áiguo shé yǎo, jiàn shàn pǎo.
挨过蛇咬, 见鳝跑。
挨過蛇咬, 見鱔跑。
(lit) [One who has been] bitten by a snake [at the] sight [of an] eel [will] run away. 
(fig) “Once bitten, twice shy.” 
[See also yīzhāo bèi shé yǎo below.]
        EXPERIENCE LEARNING
爱饭有饭, 惜衣有衣  愛飯有飯, 惜衣有衣      [Those who] treasure [their] food [will always] have food [and those who] take care of [their] clothing [will always] have clothes [to wear]. 
[An admonition to thrift; see also bùyī nuǎn below.]

挨狗咬的人不都是贼。  挨狗咬的人不都是賊。      (lit) Not all who are bitten by dogs are thieves. 
(fig) One should not make judgments based on superficial appearances. Things are not always as they (first) appear.

挨过蛇咬, 见鳝跑。  挨過蛇咬, 見鱔跑。      (lit) [One who has been] bitten by a snake [at the] sight [of an] eel [will] run away. 
(fig) “Once bitten, twice shy.” 
[See also yīzhāo bèi shé yǎo below.]