칼리버 이북 뷰어(calibre ebook viewer)에선 다양한 색상으로(사용자지정 색상도 가능) 단어나 문장등을
강조표시(text highlight)할수있다
또한 강조표시해둔 단어나 문장등의 text를 추출(extration & export)하여 외부파일로 내보낼수있다(저장할수있다)
약간의 프로그램 작성이 가능하다면 파이선(python)등을 이용하여 추출한 텍스트를 엑셀이나 파이선 셀레니움
(python selenium)으로 영어원서등을 읽다가 마킹(하이라이트)해놓은 단어들을 나만의 단어장으로 작성할수도
있다.
아래의 예는 calibre ebook에서 하이라이트하여 추출한 데이타(여기에선 NIV 영어성경 단어)를 출력해주는
간단한 코딩예(coding snipet)이다
>>> from collections import defaultdict
>>> f=open("C:/highlights_niv.calibre_highlights", 'r', encoding='UTF-8-sig')
>>> highlights=eval(f.read())
>>> words_by_vol = defaultdict(list)
>>> for each_h in highlights['highlights']:
words_by_vol[each_h['toc_family_titles'][0]].append(each_h['highlighted_text'])
>>> for index,value in enumerate(list(words_by_vol)):
print(index, value)
0 Exodus
1 Leviticus
2 Numbers
3 Deuteronomy
4 Joshua
5 Judges
6 Ruth
7 1st Samuel
8 2nd Samuel
9 1st Kings
10 2nd Kings
11 1st Chronicles
12 2nd Chronicles
13 Ezra
14 Nehemiah
15 Esther
16 Job
17 Psalms
18 Proverbs
19 Ecclesiastes
>>> print(words_by_vol[list(words_by_vol)[int(18)]])
['Exhortation', 'garland', 'waylay ', 'waywardness', 'complacency', 'wayward', 'vat', 'brim', 'resent', 'swerve', 'hamper', 'gall', 'spurn', 'cistern', 'bosom', 'sluggard', 'scoundrel', 'dissension', 'lurk', 'brazen', 'noose', 'hew', 'thwart', 'dissension', 'prospect', 'deride', 'snout', 'unduly', 'decay', 'annoyance', 'Reckless', 'snuff', 'dwindle', 'devious', 'manger', 'repose', 'spurn', 'Stern', 'resent', 'wretched', 'turmoil', 'crucible', 'gloat', 'breach', 'Acquit', 'adversity.', 'flog', 'slack', 'unscalable', 'hasty', 'curry', 'cherish', 'contemptuous', 'sluggard', 'forfeit', 'winnow', 'overweening', 'sluggard', 'gluttony', 'sprout', 'stingy', 'compliment', 'encroach', 'drowsiness', 'wayward ', 'woe', 'bruise', 'linger', 'rigging', 'falter', 'outlaw', 'gloat', 'fret', 'sly', 'halter', 'meddle', 'firebrand', 'fervent', 'abomination', 'provocation', 'exorbitant', 'amass', 'elation', 'renounce', 'fugitive', 'dissension', 'squander', 'flatter', 'scoff', 'gives full vent to', 'impart', 'pamper', 'dissension', 'accomplice', 'slander', 'disdainful', 'leech', 'displace', 'stately', 'stride', 'bearing', 'strutting', 'rooster', 'destitute', 'distaff', 'spindle']
>>>