-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can directly create cards on eow.alc.co.jp now
- Loading branch information
Showing
16 changed files
with
132 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var results = $("#resultsList").find("li"); | ||
var index = 0; | ||
var definitions = $.map(results,function(el){ | ||
if(el.children.length<3) return undefined; | ||
var definition = { | ||
'filename': window.location.href, | ||
'text': el.children[0].innerText, | ||
'translation': el.children[1].innerText.replace(/(?:\r\n|\r|\n)/g, '<br />') | ||
}; | ||
var i = index; | ||
$(el).find(".fukidashi").remove(); | ||
$(el).find(".tango_btn").unbind("click").bind("click",function(e) { | ||
console.log(i); | ||
chrome.runtime.sendMessage({ | ||
action: "link", | ||
params: { | ||
profile: 'sentence', | ||
href: 'sentence_add:' + i | ||
} | ||
},function(response) { | ||
$(el).find(".tango_btn").remove(); | ||
}); | ||
}); | ||
index += 1; | ||
return definition; | ||
}); | ||
chrome.runtime.sendMessage({ | ||
action: "set", | ||
params: { | ||
profile: 'sentence', | ||
definitions: definitions | ||
} | ||
},function(response) { | ||
console.log(response); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/sh | ||
|
||
ZIP=yomichan.zip | ||
rm yomichan_dicts.zip | ||
7z a yomichan_dicts.zip yomi_base/languages/japanese/dictionary.db yomi_base/languages/chinese/cedict_ts.u8 yomi_base/languages/korean/dictionary.db | ||
|
||
[ -f $ZIPFILE ] rm $ZIP | ||
7z a yomichan.zip -xr\!\*.pyc yomichan.py yomi_base | ||
rm yomichan_dict_european.zip | ||
7z a yomichan_dict_european.zip pattern | ||
|
||
rm tools.zip | ||
7z a tools.zip tools yomi_base/mplayer/subfont.ttf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rm yomichan.zip | ||
7z a yomichan.zip -x!pattern -x!yomi_base/languages/spanish/es-eng.txt -x!yomi_base/languages/german/de-eng.txt -x!yomi_base/languages/german/de-eng.txt.db -x!yomi_base/languages/japanese/dictionary.zip -x!yomi_base/languages/japanese/dictionary.db -x!yomi_base/languages/chinese/cedict_ts.u8 -x!yomi_base/languages/korean/dictionary.db -x!yomi_base/languages/korean/dictionary.zip -x!yomi_base/mplayer/subfont.ttf yomichan.py UserList.py yomi_base | ||
cd pysrt | ||
7z a ../yomichan.zip pysrt | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,8 @@ | |
c = { | ||
'appVersion': '0.17b', | ||
} | ||
|
||
extensions = { | ||
'text': ('.json','.txt'), | ||
'movie': ('.srt','.mkv','.mp4') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters