diff --git a/README.md b/README.md
index 2e8d37d..8fbfb60 100644
--- a/README.md
+++ b/README.md
@@ -20,20 +20,20 @@ plugin that (unless you disabled it in options) will notify you when new version
1. Make sure you are running the latest version of Anki.
2. Open your vocab deck and note the fields that are used in your deck.
- ![Card layout dialog](http://foosoft.net/projects/yomichan/img/layout.png)
+ [![Card layout dialog](img/layout-thumb.png)](img/layout.png)
3. Launch Yomichan from the tools menu inside Anki.
4. Open the text file you want and you will see its contents in the Yomichan. Your layout and color scheme will look
different because the screenshot shows my personal settings.
- ![Reader dialog](http://foosoft.net/projects/yomichan/img/reader.png)
+ [![Reader dialog](img/reader-thumb.png)](img/reader.png)
5. To look up words hover your mouse over them while pressing the middle mouse button (usually this is your scroll
wheel). You can also press and hold shift instead if you like (or your mouse has no center button).
6. To set up your Anki deck for Yomichan select Preferences from the Edit menu and you should see a screen that looks
like this:
- ![Preferences dialog](http://foosoft.net/projects/yomichan/img/preferences.png)
+ [![Preferences dialog](img/preferences-thumb.png)](img/preferences.png)
7. Now you should add markers such as `{expression}`, `{reading}`, `{reading}` and `{sentence}` to specify how new
cards should be created. Card fields will vary depending on your deck model.
@@ -42,7 +42,7 @@ plugin that (unless you disabled it in options) will notify you when new version
Anki thinks you can't add a fact with those items*. This likely means that they would either be duplicates of
existing cards in the deck or that Yomichan hasn't been properly set up for your deck model.
- ![Icons](http://foosoft.net/projects/yomichan/img/icons.png)
+ [![Icons](img/icons-thumb.png)](img/icons.png)
Here is what the icons mean (in order from left to right):
* Add term in Kana form even it can be written in Kanji (e.g. べんきょうか).
@@ -53,14 +53,14 @@ plugin that (unless you disabled it in options) will notify you when new version
By request, I've added several keyboard shortcuts which make Yomichan even easier to use:
-| Shortcut | Command |
-|------------------------|-----------------------------------------------------|
-| `Shift` | Search under cursor |
-| `]` | Move search cursor forwards |
-| `[` | Move search cursor backwards |
-| `Shift` + `Ctrl` + `#` | Add current Kanji at index 0 - 9 to deck |
-| `Ctrl` + `#` | Add current term at index 0 - 9 to deck |
-| `Alt` + `#` | Add current term at index 0 - 9 to deck as Hiragana |
+| Shortcut | Command |
+|-----------------------------|-----------------------------------------------------|
+| Shift | Search under cursor |
+| ] | Move search cursor forwards |
+| [ | Move search cursor backwards |
+| Shift + Ctrl + # | Add current Kanji at index 0 - 9 to deck |
+| Ctrl + # | Add current term at index 0 - 9 to deck |
+| Alt + # | Add current term at index 0 - 9 to deck as Hiragana |
## Importing Vocabulary ##
diff --git a/img/icons-thumb.png b/img/icons-thumb.png
new file mode 100644
index 0000000..2d5d580
Binary files /dev/null and b/img/icons-thumb.png differ
diff --git a/img/icons.png b/img/icons.png
new file mode 100644
index 0000000..862ed0a
Binary files /dev/null and b/img/icons.png differ
diff --git a/img/layout-thumb.png b/img/layout-thumb.png
new file mode 100644
index 0000000..e5b1f5e
Binary files /dev/null and b/img/layout-thumb.png differ
diff --git a/img/layout.png b/img/layout.png
new file mode 100644
index 0000000..2ff64f1
Binary files /dev/null and b/img/layout.png differ
diff --git a/img/preferences-thumb.png b/img/preferences-thumb.png
new file mode 100644
index 0000000..6c0fe52
Binary files /dev/null and b/img/preferences-thumb.png differ
diff --git a/img/preferences.png b/img/preferences.png
new file mode 100644
index 0000000..431aec5
Binary files /dev/null and b/img/preferences.png differ
diff --git a/img/reader-thumb.png b/img/reader-thumb.png
new file mode 100644
index 0000000..9934919
Binary files /dev/null and b/img/reader-thumb.png differ
diff --git a/img/reader.png b/img/reader.png
new file mode 100644
index 0000000..df18a6e
Binary files /dev/null and b/img/reader.png differ
diff --git a/yomi_base/preferences.py b/yomi_base/preferences.py
index ef1499f..7a1c76c 100644
--- a/yomi_base/preferences.py
+++ b/yomi_base/preferences.py
@@ -105,7 +105,7 @@ class DialogPreferences(QtGui.QDialog, gen.preferences_ui.Ui_DialogPreferences):
self.comboBoxModel.blockSignals(False)
allowedTags = {
- 'vocab': ['expression', 'reading', 'glossary', 'sentence', 'translation'],
+ 'vocab': ['expression', 'reading', 'glossary', 'sentence'],
'kanji': ['character', 'onyomi', 'kunyomi', 'glossary'],
}[name]
diff --git a/yomi_base/reader.py b/yomi_base/reader.py
index 8e56778..2fd1c69 100644
--- a/yomi_base/reader.py
+++ b/yomi_base/reader.py
@@ -507,10 +507,9 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
lengthMatched = 0
if self.dockVocab.isVisible():
self.state.vocabDefs, lengthMatched = self.language.findTerm(contentSampleFlat)
- sentence, translation = reader_util.findSentence(content, samplePosStart)
+ sentence = reader_util.findSentence(content, samplePosStart)
for definition in self.state.vocabDefs:
definition['sentence'] = sentence
- definition['translation'] = translation
self.updateVocabDefs()
if self.dockKanji.isVisible():
diff --git a/yomi_base/reader_util.py b/yomi_base/reader_util.py
index 68ad7d1..014263f 100644
--- a/yomi_base/reader_util.py
+++ b/yomi_base/reader_util.py
@@ -78,14 +78,8 @@ def findSentence(content, position):
quoteStack.pop()
elif c in quotesFwd:
quoteStack.insert(0, quotesFwd[c])
- translation = ''
- translationStart = content.find('\t',end)
- if translationStart >= 0:
- translationEnd = content.find('\n',translationStart)
- if translationEnd == -1:
- translationEnd = len(content)
- translation = content[translationStart+1:translationEnd].strip()
- return content[start:end].strip(), translation
+
+ return content[start:end].strip()
def formatFields(fields, markup):
@@ -114,7 +108,6 @@ def markupVocabExp(definition):
'reading': definition['reading'] or unicode(),
'glossary': definition['glossary'],
'sentence': definition.get('sentence'),
- 'translation': definition.get('translation'),
'summary': summary
}
@@ -126,7 +119,6 @@ def markupVocabReading(definition):
'reading': unicode(),
'glossary': definition['glossary'],
'sentence': definition.get('sentence'),
- 'translation': definition.get('translation'),
'summary': definition['reading']
}