kindle manager

This commit is contained in:
gavin
2020-06-16 09:50:09 +08:00
parent 956e68f551
commit 2171955111
15 changed files with 19 additions and 3 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -9,6 +9,14 @@ kindle manager
1. 按书本标题搜索并输出markdown格式标注
1. 按作者搜索内容并输出markdown格式标注
![class_map.JPG](https://i.loli.net/2020/06/16/afMJAcCyL3UmBeF.jpg)o
![main_window.JPG](https://i.loli.net/2020/06/16/9cq5LY7jkOpJUEH.jpg)
![main_window_toolbar.JPG](https://i.loli.net/2020/06/16/6CXDtNxdLw3qFn5.jpg)
![book_info_view.JPG](https://i.loli.net/2020/06/16/51nP2Cc8eVNp7YZ.jpg)
![word_view.JPG](https://i.loli.net/2020/06/16/cKCYSUiNfjQaZ3d.jpg)
![config_dialog.JPG](https://i.loli.net/2020/06/16/IrSCN45foGRWKP6.jpg)
`My Clippings.txt`有3种类型
### 书签 ###
格式为:

0
__init__.py Normal file
View File

BIN
classes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 MiB

BIN
design/book_info_view.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
design/class_map.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@@ -36,6 +36,13 @@ notes_temp = """<br><span style='font-size:18pt;color:maroon'>《{bookname}》</
<span style='font-size:18pt;color:#31849B'>{content}</span>
<span style='font-size:11pt;color:maroon'>【P{position}】</span><br>"""
infos_temp = """<br><span style='font-size:18pt;color:maroon'>
<a href="3school.com.cn/" target="_blank">《{bookname}》</a></span>
<span style='font-size:18pt;color:maroon'> {author} </span>
<span style='font-size:18pt;color:maroon'> ({time}) </span>
<span style='font-size:18pt;color:#31849B'>{rate}&#9733 &#9734</span>
<span style='font-size:11pt;color:maroon'>{img}</span><br>"""
words_temp = """<br><span style='font-size:18pt;color:#31849B'>{usage}</span><br><br>
<span style='font-size:14pt;color:#2F4F4F'> {bookname} </span>
<span style='font-size:14pt;color:maroon'> {author} </span>
@@ -200,9 +207,10 @@ class kmanWindow(QMainWindow):
if comp in [1,2]:
if len(self.filter_list)>0:
[stype,sbookname,sauthor,sposition,stime,scontent] = self.filter_list[0]
self.ui.textEdit.setHtml(notes_temp.format(
bookname=sbookname, author=sauthor, time=stime,
note=stype, content=scontent, position=sposition))
tt = notes_temp.format( bookname=sbookname, author=sauthor, time=stime,
note=stype, content=scontent, position=sposition)
print(re.split(r'[\(\-\:_\s]',sbookname.strip())[0])
self.ui.textEdit.setHtml(tt)
elif comp in [3,4]:
self.render_textedit_words(self.words_data)

BIN
packages.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB