yomichan/README.md

169 lines
10 KiB
Markdown
Raw Normal View History

2017-02-26 23:08:29 +00:00
# Yomichan #
2016-04-10 05:48:13 +00:00
2017-03-15 04:10:48 +00:00
Yomichan turns your web browser into a tool for building Japanese language literacy by helping you to decipher texts
which would be otherwise too difficult tackle. This extension is similar to
[Rikaichan](https://addons.mozilla.org/en-US/firefox/addon/rikaichan/) for Firefox and
[Rikaikun](https://chrome.google.com/webstore/detail/rikaikun/jipdnfibhldikgcjhfnomkfpcebammhp?hl=en) for Chrome, but it
stands apart in its goal of being a all-encompassing learning tool as opposed to a mere browser-based dictionary.
2016-05-30 18:46:15 +00:00
2017-03-15 04:10:48 +00:00
Yomichan provides advanced features not available in other browser-based dictionaries:
2016-07-10 20:39:47 +00:00
2017-03-15 04:10:48 +00:00
* Interactive popup definition window for displaying search results.
* On-demand audio playback for select dictionary definitions.
* Kanji stroke order diagrams are just a click away for most characters.
* Custom search page for easily executing custom search queries.
* Support for multiple dictionary formats including [EPWING](https://ja.wikipedia.org/wiki/EPWING) via
the [Yomichan Import](https://foosoft.net/projects/yomichan-import) tool.
* Automatic note creation for the [Anki](https://apps.ankiweb.net/) flashcard program via
the [AnkiConnect](https://foosoft.net/projects/anki-connect) plugin.
* Clean, modern code makes it easy for developers to [contribute](https://github.com/FooSoft/yomichan) new features.
2016-08-18 16:07:21 +00:00
2017-03-15 04:10:48 +00:00
## Browser Support ##
2016-08-18 16:07:21 +00:00
2017-03-15 04:10:48 +00:00
* Google Chrome (versions 45+)
2016-07-05 06:09:39 +00:00
2017-03-15 04:10:48 +00:00
[![](https://foosoft.net/projects/yomichan/img/chrome-web-store.png)](https://chrome.google.com/webstore/detail/yomichan/ogmnaimimemjmbakcfefmnahgdfhfami)
2016-07-10 20:39:47 +00:00
2017-03-15 04:10:48 +00:00
* Mozilla Firefox (versions 51+)
2016-05-30 18:46:15 +00:00
2017-03-15 04:10:48 +00:00
[![](https://foosoft.net/projects/yomichan/img/firefox-marketplace.png)](https://addons.mozilla.org/en-US/firefox/addon/yomichan/)
2016-05-19 00:03:51 +00:00
2017-03-15 04:10:48 +00:00
Yomichan is sitting in a queue to be reviewed and signed by Mozilla. This process can take months; if you wish to
use this extension today:
2017-03-06 03:00:05 +00:00
2017-03-15 04:10:48 +00:00
1. Type `about:config` into the browser address bar.
2. Skip past the "voiding your warranty" nag screen.
3. Type `xpinstall.signatures.required` into the search bar on top.
4. Double-click the displayed entry to set its value to `false`.
5. Install extension as usual from the [Firefox Marketplace](https://addons.mozilla.org/en-US/firefox/addon/yomichan/).
2017-03-06 03:00:05 +00:00
2017-03-15 04:10:48 +00:00
## Basic Features ##
2016-08-24 16:25:00 +00:00
2017-03-15 04:10:48 +00:00
1. Click on the ![](https://foosoft.net/projects/yomichan/img/logo.png) icon in the browser toolbar to open the Yomichan actions dialog.
2016-08-18 16:07:21 +00:00
2017-03-15 04:10:48 +00:00
[![Actions dialog](https://foosoft.net/projects/yomichan/img/ui-actions-thumb.png)](https://foosoft.net/projects/yomichan/img/ui-actions.png)
2. Click on the *monkey wrench* icon in the middle to open the options page.
3. Import the dictionaries you wish to use for term and Kanji searches. If you do not have any dictionaries installed
(or enabled), Yomichan will warn you that it is not ready for use by displaying an orange exclamation mark over its
icon. This exclamation mark will disappear once you have installed and enabled at least one dictionary.
[![Dictionary importer](https://foosoft.net/projects/yomichan/img/ui-import-thumb.png)](https://foosoft.net/projects/yomichan/img/ui-import.png)
4. Hold down the <kbd>Shift</kbd> key or the middle mouse button as you move your mouse over text to display a popup
window containing term definitions. This window will only be shown if definitions were found and it can be dismissed
by clicking anywhere outside of it.
[![Term search results](https://foosoft.net/projects/yomichan/img/ui-terms-thumb.png)](https://foosoft.net/projects/yomichan/img/ui-terms.png)
5. Click on the ![](https://foosoft.net/projects/yomichan/img/button-play-audio.png) icon to hear the term pronounced by a native speaker. If an audio sample is not
available, you will hear a short click instead.
6. Click on individual Kanji in the term definition results to view additional information about those characters
including readings, meanings, and a stroke order diagram.
[![Kanji search results](https://foosoft.net/projects/yomichan/img/ui-kanji-thumb.png)](https://foosoft.net/projects/yomichan/img/ui-kanji.png)
2016-12-30 01:34:58 +00:00
## Custom Dictionaries ##
2017-03-15 04:10:48 +00:00
Yomichan supports the use of custom dictionaries including the esoteric but popular
[EPWING](https://ja.wikipedia.org/wiki/EPWING) format. These dictionaries are often sought after by language learners
for their correctness and excellent coverage of the Japanese language.
2016-08-18 16:07:21 +00:00
2017-03-15 04:10:48 +00:00
Unfortunately, as most of the dictionaries released in this format are proprietary I am unable to bundle them with
Yomichan. You will need to procure these dictionaries yourself and import them with [Yomichan
Import](https://foosoft.net/projects/yomichan-import). Please see the project page for additional details.
2016-08-18 16:07:21 +00:00
2017-03-15 04:10:48 +00:00
[![Pocket dictionaries](https://foosoft.net/projects/yomichan/img/dictionary-thumb.png)](https://foosoft.net/projects/yomichan/img/dictionary.jpg)
2016-10-21 16:10:11 +00:00
2017-03-15 04:10:48 +00:00
## Anki Integration ##
2016-10-21 16:10:11 +00:00
2017-03-15 04:10:48 +00:00
Yomichan features automatic flashcard creation for [Anki](http://ankisrs.net/), a free application designed to help you
retain knowledge. This feature requires the prior installation of an Anki plugin called [AnkiConnect](https://foosoft.net/projects/anki-connect).
Please see the respective project page for more information about how to set up this software.
2016-10-21 16:10:11 +00:00
2016-10-26 02:16:28 +00:00
### Flashcard Configuration ###
2016-10-21 16:10:11 +00:00
2017-03-15 04:10:48 +00:00
Before flashcards can be automatically created, you must configure the templates used to create term and/or Kanji notes.
If you are unfamiliar with Anki deck and model management, this would be a good time to reference the [Anki
Manual](http://ankisrs.net/docs/manual.html). In short, you must specify what information should be included in the
flashcards that Yomichan creates through AnkiConnect. This can be accomplished with the following steps:
2016-10-21 16:10:11 +00:00
2017-03-15 04:10:48 +00:00
1. Open the Yomichan options page and scroll down to the section labeled *Anki Options*.
2. Tick the checkbox labeled *Enable Anki integration* (Anki must be running with [AnkiConnect](https://foosoft.net/projects/anki-connect) installed).
3. Select the type of template to configure by clicking on either the *Terms* or *Kanji* tabs.
4. Select the Anki deck and model to use for new creating new flashcards of this type.
5. Fill out the displayed model fields with markers representing the information you wish to include:
2016-10-26 02:16:28 +00:00
2017-01-28 20:06:18 +00:00
#### Markers for Term Cards ####
2016-10-26 02:16:28 +00:00
Marker | Description
-------|------------
`{audio}` | Audio sample of a native speaker's pronunciation in MP3 format (if available).
2017-01-28 20:06:18 +00:00
`{dictionary}` | Name of the dictionary from which the card is being created (unavailable in *grouped* mode).
`{expression}` | Term expressed as Kanji (will be displayed in Kana if Kanji is not available).
`{furigana}` | Term expressed as Kanji with Furigana displayed above it (e.g. <ruby>日本語<rt>にほんご</rt></ruby>).
`{glossary}` | List of definitions for the term (output format depends on whether running in *grouped* mode).
2016-10-26 02:16:28 +00:00
`{reading}` | Kana reading for the term (empty for terms where the expression is the reading).
`{sentence}` | Sentence, quote, or phrase in which the term appears in the source content.
2017-01-28 20:06:18 +00:00
`{tags}` | Grammar and usage tags providing information about the term (unavailable in *grouped* mode).
`{url}` | Address of the web page in which the term appeared in.
2016-10-26 02:16:28 +00:00
2017-01-28 20:06:18 +00:00
#### Markers for Kanji Cards ####
2016-10-26 02:16:28 +00:00
Marker | Description
-------|------------
`{character}` | Unicode glyph representing the current Kanji.
2017-01-28 20:06:18 +00:00
`{dictionary}` | Name of the dictionary from which the card is being created.
`{glossary}` | List of definitions for the Kanji.
`{kunyomi}` | Kunyomi (Japanese reading) for the Kanji expressed as Katakana.
`{onyomi}` | Onyomi (Chinese reading) for the Kanji expressed as Hiragana.
`{url}` | Address of the web page in which the Kanji appeared in.
2016-10-26 02:16:28 +00:00
2017-03-15 04:10:48 +00:00
### Flashcard Creation ###
Once Yomichan is configured, it becomes trivial to create new flashcards with a single click. You will see the following
icons next to term definitions.
* Clicking ![](https://foosoft.net/projects/yomichan/img/button-add-expression.png) adds the current expression as Kanji (e.g. 食べる).
* Clicking ![](https://foosoft.net/projects/yomichan/img/button-add-reading.png) adds the current expression as Hiragana or Katakana (e.g. たべる).
These icons will appear grayed out if a flashcard cannot be created for the current definition (it already exists in the
deck, for example). If all of the buttons appear grayed out then you should double-check your deck and model
configuration settings (see the Flashcard Configuration section above). If no icons appear at all, please make sure that
Anki is running in the background.
2016-08-18 16:07:21 +00:00
## Frequently Asked Questions ##
2017-01-12 04:41:44 +00:00
* **What happened to AnkiWeb integration? Why was it removed?**
The author of Anki wants to maintain tight control of AnkiWeb by restricting automated web requests, while at the
2017-01-28 20:06:18 +00:00
same time not providing an API for adding or removing flash cards. As circumventing these limitations led to account
restrictions placed on users of this extension, I was forced to remove this feature. Note that it is still possible
to automatically generate flashcards with the [AnkiConnect](https://foosoft.net/projects/anki-connect) plugin.
2017-01-12 04:41:44 +00:00
2016-09-25 02:28:39 +00:00
* **Is it possible to use Yomichan with files saved locally on my computer?**
2017-02-26 23:08:29 +00:00
It in order to be able use Yomichan with local files in Chrome, you must first tick the *Allow access to file URLs*
checkbox for Yomichan on the Chrome extensions page. Due to restrictions placed on browser extensions by Chrome, it
will likely never be possible to use Yomichan with PDF files.
2016-08-18 16:07:21 +00:00
* **When are you going to add support for $MYLANGUAGE?**
Developing Yomichan required a significant understanding of Japanese sentence structure and grammar. I presently
have no time to invest in learning yet another language; therefore other languages will not be supported. I will
also not be accepting pull request containing this functionality, as I will ultimately be the one maintaining your
code.
2016-05-19 00:03:51 +00:00
## Screenshots ##
2017-02-26 23:08:29 +00:00
[![Term definitions](https://foosoft.net/projects/yomichan/img/term-thumb.png)](https://foosoft.net/projects/yomichan/img/term.png)
[![Kanji information](https://foosoft.net/projects/yomichan/img/kanji-thumb.png)](https://foosoft.net/projects/yomichan/img/kanji.png)
[![General options](https://foosoft.net/projects/yomichan/img/options-general-thumb.png)](https://foosoft.net/projects/yomichan/img/options-general.png)
[![Anki options](https://foosoft.net/projects/yomichan/img/options-anki-thumb.png)](https://foosoft.net/projects/yomichan/img/options-anki.png)
2016-06-11 23:01:32 +00:00
2016-05-19 00:03:51 +00:00
## License ##
GPL