Набросал немножко, дальше не стал разбираться, что там нужно.
import csv
import re
if __name__ == '__main__':
with open('trans.csv', 'r') as trans:
trans = {key: value for key, value in csv.reader(trans)}
with open('source.txt', 'r') as source:
for line in source:
matches = re.match('^\.([\w]+)\.', line)
if not matches:
continue
word = matches.group(1)
if word in trans:
print(word, trans[word])