This page is taking longer than expected to load.
Due to a bug in Safari, it may be necessary to click the Yomitan button in the browser bar to fully load the page
Enabling this option will sort search results using a specific dictionary. This can be beneficial when using multiple dictionaries which may not have consistent sorting information.
Dictionary frequency data can be represented in one of two ways:
The correct mode can be determined based on the contents of the dictionary; the Auto button attempts to auto-detect the correct value.
Web browsers will sometimes clear stored data if the device is running low on storage space. This can result in the imported dictionaries being deleted unexpectedly, causing Yomitan to stop functioning. Enabling persistent storage tells the browser that the data should not be deleted in those circumstances.
On Firefox and Firefox for Android, the storage information feature may be hidden behind a browser flag. To enable this flag, open about:config and search for dom.storageManager.enabled. Setting its value to true should allow storage information to be calculated.
It may not be possible to enable Persistent Storage on Firefox for Android.
Chromium-based browsers should not need to enable this setting since the Yomitan extension has
the unlimitedStorage
permission, which should prevent data deletion.[1]
A keyboard modifier key can be used to activate text scanning when the cursor is moved. Alternatively, the No key option can be used to scan text whenever the cursor is moved, without requiring any key to be held.
More advanced scanning input customization can be set up by enabling the Advanced option and clicking Configure advanced scanning inputs.
zoom
is used.
More…
The non-standard CSS zoom
property interferes with the normal calculation of the pointer coordinates when scanning webpages. This property is discouraged from being used and its use is rare, but some webpages may still use it.
Enabling this option, which is on by default, will take the value of this property into account when scanning webpage content. It is currently put behind an option in case there are unforeseen negative side effects.
This setting does not have any effect in Firefox, as it does not implement the zoom
property.
Rather than searching for the source text exactly, the text will only be required to be a prefix of an existing term. For example, scanning 読み will effectively search for 読み*, which may bring up additional results such as 読み方.
This will likely cause scanning and lookup to be slower, and the results may not be as relevant.
To enable text scanning when using devices with a touch screen, either the Touch inputs or the Pointer inputs option must be enabled. Touch inputs supports generic touches on a touch screen device, but do not distinguish between touch and pen inputs. Pointer inputs supports supports the detection pen devices, but may not work on all devices. If both options are enabled, Pointer inputs takes precedence.
The Pointer inputs option is only visible when the Advanced option is enabled.
By default, scanning text inside of an embeded <iframe>
element will open
a new popup inside of that frame, which can sometimes be limiting due to the frame's size.
When this option is enabled, the popup will be created in the root of the page, if possible.
Note that when this option is enabled, there is a possibility that the extension can interfere with the underlying webpage, since it must send messages to the webpage in order to determine the correct position of the popup. This typically does not cause issues, but if anything unexpected happens, this option could be the cause.
Pitch accents for terms and expressions can be shown if a dictionary supporting pitch accents is installed. There are currently three different ways that pitch accents can be presented:
Group related terms - Related terms that share the same definitions will be grouped together.
The Primary dictionary option should be assigned to a dictionary which contains related term information, and configuring the Secondary dictionaries will allow definitions for the related terms to be included from other dictionaries.
Not all dictionaries are able to be selected as the Primary dictionary.
The Default mode will position the popup relative to the scanned text. The Full Width mode will anchor the popup to the top or bottom of the screen and take up the full width of the screen, which can be useful on devices with touch screens.
Auto-scaling will scale the popup automatically based on the browser's zoom levels in order to keep the popup at a constant physical size, regardless of the zoom level. Zoom level uses the zoom level that is typically used on desktop browsers, and Viewport uses the zoom level that is typically used on mobile browsers.
Instead of showing definitions in a popup embedded into the webpage, a native browser window containing the popup content will be opened instead. This window will be shared across all tabs.
Yomitan is able to scan the sentence surrounding a term and parse individual words of the query on the search page. This information can also be added to Anki cards to provide additional context.
Yomitan's internal parser is a simple algorithm which can parse sentences using the installed dictionaries. It works by repeatedly detecting the longest term at the start of the sentence and advancing until no text remains. This provides decent results for the general case, but since grammatical structure is not taken into account, it can sometimes yield incorrect segmentation.
MeCab is a third-party program which uses its own dictionaries and parsing algorithm to decompose sentences into individual words. MeCab may provide more accurate parsing results than Yomitan's internal parser.
In order for Yomitan to use it, both MeCab and a native messaging component must be installed. A setup guide can be found here.
"A dog" → search for "A dog","A do", "A d", "A"
or"A dog" → "A dog", "A"
Yomitan supports automatic flashcard creation for Anki, a free application designed to assist in remembering information. This feature requires installation of the AnkiConnect plugin.
Attempting to connect to Anki can sometimes return an error message which includes "Invalid response", which may indicate that the value of the AnkiConnect server address option is incorrect. Resetting it to the default value may fix issues that are occurring.
Notice for macOS users: If Yomitan has issues connecting to AnkiConnect, it may be necessary to adjust some system settings. See this link for details.
The default address for a server on the same device is http://127.0.0.1:8765. If Anki is running and AnkiConnect is installed, clicking this URL should open a page showing the current version of AnkiConnect.
By default, duplicate checks are only performed for notes created with the same model. Enabling this option will check for duplicates across all model types.
A card is considered a duplicate if the value of the first field matches that of any other card. By default, this check will include cards across all decks in a collection, but this constraint can be relaxed by using either the Deck or Deck root option.
The Deck option will only check for duplicates in the target deck. The Deck root option will additionally check for duplicates in all child decks of the root deck. This allows adding cards that are unique for decks including a subdeck structure. For decks which don't have any parent-child hierarchy, both options function the same.
Overwriting a card can result in the loss of data.
Duplicate cards of a different note type cannot be overwritten. If there are multiple duplicate cards, the first card found will be overwritten.
Audio files can be downloaded from remote servers when creating Anki cards, and sometimes these downloads can stall due to server or internet connectivity issues. When this setting has a non-zero value, if a download has stalled for longer than the time specified, the download will be cancelled.
AnkiConnect releases after around 2022-05-29 support a new note editor window which can be shown when clicking the View added note button. This can be tested using the buttons below. If an error occurs, Anki and/or AnkiConnect may need to be updated.
When coming across a word that is already in an Anki deck, a button will appear that shows the tags the card has. If set to Non-standard, all tags that are included in the Card tags option will be filtered out from the list. If no tags remain after filtering, then the button will not be shown.
Yomitan can watch the system copy clipboard for Japanese text and automatically search the text on the search page. This can be useful for using Yomitan to scan text from external applications.
This feature requires Yomitan to have clipboard reading permissions, and when this option is enabled, the clipboard will be frequently checked for new text.
Yomitan has two categories of keyboard shortcuts:
Google Docs now uses canvas-based rendering to display content[2] which prevents Yomitan from being able to scan text using the standard methods. Enabling this option will force Google Docs webpages to expose some additional text information which should allow Yomitan to still work.
If any profile has this setting enabled, compatibility mode will be activated; profile conditions are ignored.
Google has changed this compatibility implementation several times, and the changes do not seem to be announced or documented. Therefore, it is possible that this feature could stop working at any time the future without warning.
On supported browsers,
a popup's iframe
element will be embeded inside of a container with a closed shadow DOM.
This container prevents scripts running on the underlying web page from being able to discover the iframe
,
which helps avoid situations where the web page might try to modify or use the Yomitan popup for an unintended purpose.
When this option is enabled, the URL of the iframe
element will be assigned by
directly changing the location of the iframe
's internal document, rather than using
the iframe
's src
attribute. This results in the extension URL not being exposed to the underling web page, and thus making it harder
to detect the presence of Yomitan.
Profile usage conditions are used to automatically select certain profiles based on context. For example, different profiles can be used depending on the nested level of the popup, or based on the website's URL.
Conditions are organized into groups corresponding to the order in which they are checked. If all of the conditions in any group of a profile are met, then that profile will be used for that context.
If no conditions are specified, the profile will only be used if it is selected as the default profile.
Select which profile to copy options from:
Are you sure you want to delete the profile ?
In order for dictionaries to support searches using prefix wildcards on the search page, some additional data must be stored in the database. Enabling this option will include this extra data for any new dictionaries that are imported.
This option will not change any dictionaries that are already imported; they must be re-imported for the option to take effect.
Import dictionaries from URLs:
Are you sure you want to delete the dictionary:
?
This action cannot be undone.
Are you sure you want to delete all dictionaries?
This action cannot be undone.
These dictionaries will be used to search for definitions of the related terms when the grouping mode is Group related terms.
Dictionary definitions can be collapsed if they exceed a certain line count, which may be useful for dictionaries with long definitions. The appearance can be customized using custom CSS. More…
Dictionary definitions can be collapsed if they exceed a certain line count, which may be useful for dictionaries with long definitions. There are five different modes:
By default, the number of lines shown for a definition is 3. This can be configured by adjusting the custom CSS; the value can be a unitless integer or decimal number.
Changing this value requires the dictionary to be re-imported.
The database contains extra data which is not associated with any installed dictionary. Purging the database can fix this issue.
Input the location the dictionary should be moved to:
A custom URL can be used to play audio from any URL.
The replacement tags {term}
and {reading}
can be used to specify which term and reading is being looked up.
Example:
http://localhost/audio.mp3?term={term}&reading={reading}
A custom URL to a JSON file which lists one or more audio URLs for a given term. The format of the JSON file is described in this schema file.
Example:
http://localhost/audio.json?term={term}&reading={reading}
A synthesized voice will speak the given text, using either the term text or the reading.
Scanning inputs are used to define when text scanning should occur. More…
Text scanning is performed when a pointer is moved and certain inputs are either pressed or not pressed. The Required inputs field is used to define which inputs must be pressed, and the Excluded inputs field is used to define which inputs must not be pressed. If the Required inputs field is empty, text will be scanned whenever the pointer is moved.
The Input types group is used to define which types of pointer input that the keyboard and button inputs are applied to. Supported pointer types include the mouse cursor, touchscreen touches, and pen devices. When using the Pen option, the defined inputs will correspond to buttons on the pen device.
Some additional scanning and search options can be configured by clicking the menu button and selecting Show advanced options.
This option is used to disable the default action of the middle mouse button in different contexts. This can be useful for preventing the scroll action that the middle mouse button is typically mapped to, which is otherwise difficult to disable inside extension pages via other means.
Anki card fields can be populated with information about a term or kanji character by using field markers. When a card is being generated, field markers are replaced with information about the term or kanji by using the installed dictionaries. Several preset markers are available, which are described below. Markers can be customized by adjusting the Anki card templates.
Anki requires the first field in a model to be unique for a card;
therefore, it is recommended to use {expression}
as the marker for the first field of term cards,
or {character}
for kanji cards.
Marker (for terms) | Description |
{audio} |
Audio of the term's pronunciation from one of the audio sources (if available). |
{cloze-body-kana} |
Kana reading for {cloze-body} . |
{conjugation} |
Conjugation path from the raw inflected term to the source term. |
{expression} |
Term expressed using kanji. If kanji expression is not available, kana is used. |
{furigana} |
Term expressed as kanji with furigana displayed above it. Example: 日本語. |
{furigana-plain} |
Term expressed as kanji with furigana displayed next to it in brackets. Example: 日本語[にほんご]. |
{glossary} |
List of definitions for the term. |
{glossary-brief} |
List of definitions for the term in a more compact format. |
{glossary-no-dictionary} |
List of definitions for the term, except the dictionary tag is omitted. |
{glossary} |
First definition for the term. |
{glossary-brief} |
First definition for the term in a more compact format. |
{glossary-no-dictionary} |
First definition for the term, except the dictionary tag is omitted. |
{part-of-speech} |
Part of speech information for the term. |
{phonetic-transcriptions} |
List of phonetic transcriptions for the term. |
{pitch-accents} |
List of pitch accent downstep notations for the term. |
{pitch-accent-graphs} |
List of pitch accent graphs for the term. |
{pitch-accent-graphs-jj} |
List of pitch accent graphs for the term (styled after Jidoujisho). |
{pitch-accent-positions} |
List of accent downstep positions for the term as a number. |
{pitch-accent-categories} |
List of pitch accent categories for the term (e.g. heiban, kifuku, atamadaka, odaka, nakadaka). |
{reading} |
Kana reading for the term, or empty for terms where the expression is the reading. |
{single-glossary-DICT-NAME} |
Same as {glossary} , but with entries from only a single dictionary.
The dictionary name will likely be modified, use the options from the ▼ dropdown.
|
{single-glossary-DICT-NAME-brief} |
See {single-glossary-DICT-NAME} and {glossary-brief} .
|
{single-glossary-DICT-NAME-no-dictionary} |
See {single-glossary-DICT-NAME} and {glossary-no-dictionary} .
|
{tags} |
Grammar and usage tags providing information about the term. |
Marker (for kanji) | Description |
{character} |
Unicode glyph representing the current kanji. |
{glossary} |
List of definitions for the kanji. |
{kunyomi} |
Kunyomi (Japanese reading) for the kanji, expressed as hiragana. |
{onyomi} |
Onyomi (Chinese reading) for the kanji, expressed as katakana. |
{onyomi-hiragana} |
Onyomi (Chinese reading) for the kanji, expressed as hiragana. |
{stroke-count} |
Number of strokes that the kanji character has. |
Marker (for both) | Description |
{clipboard-image} |
An image which is stored in the system clipboard, if available. |
{clipboard-text} |
Text which is stored in the system clipboard, if available. |
{cloze-body} |
Original inflected term as it appeared before being reduced to dictionary form by Yomitan. |
{cloze-prefix} |
Fragment of the containing {sentence} starting at the beginning of {sentence} until the beginning of {cloze-body} . |
{cloze-suffix} |
Fragment of the containing {sentence} starting at the end of {cloze-body} until the end of {sentence} . |
{dictionary} |
Name of the dictionary from which the card is being created. |
{document-title} |
Title of the web page that the term or kanji appeared in. |
{frequencies} |
Frequency information for the term or kanji. |
{frequency-harmonic-rank} |
The harmonic mean of frequency data for the current term or kanji. Defaults to rank 9999999 when frequency data is not found, indicating extremely low rank-based term or kanji usage. |
{frequency-harmonic-occurrence} |
The harmonic mean of frequency data for the current term or kanji. Defaults to 0 occurrences when frequency data is not found, the lowest possible occurrence-based term or kanji usage. |
{frequency-average-rank} |
The average of frequency data for the current term or kanji. Defaults to rank 9999999 when frequency data is not found, indicating extremely low rank-based term or kanji usage. |
{frequency-average-occurrence} |
The average of frequency data for the current term or kanji. Defaults to 0 occurrences when frequency data is not found, the lowest possible occurrence-based term or kanji usage. |
{screenshot} |
Screenshot of the web page taken at the time the term or kanji was added. |
{search-query} |
The full search query shown on the search page. |
{selection-text} |
The selected text on the search page or popup. |
{sentence} |
Sentence, quote, or phrase that the term or kanji appears in from the source content. |
{sentence-furigana} |
Sentence, quote, or phrase that the term or kanji appears in from the source content, with furigana added. |
{url} |
Address of the web page in which the term or kanji appeared in. |
Anki card fields are formatted using the Handlebars.js template rendering engine. Advanced users can modify these templates for full control over what information is included in Anki cards.
Consider copy-pasting the source into a code editor that supports syntax highlighting for easier editing.
Card templates can be tested using the inputs below.
Are you sure you want to reset the card templates to their default value? Any changes you made will be lost.
WARNING: This feature is experimental!
Enter a newline separated list of terms below to send notes directly to an Anki deck or export to an Anki deck file in Notes in plain text (.txt)
format.
For more information check the documentation.
Active Anki deck:
Active Anki model:
Are you sure you want to send terms to ? This action cannot be undone.
Are you sure you want to export terms to Notes in plain text (.txt)
format?
An error occurred while trying to import the settings file:
Additional info can be found in the developer console.
Settings file contains settings which may pose a security risk. Only import settings from sources you trust.
You are about to reset all Yomitan settings back to their default values. This will delete all custom profiles you may have created. This action cannot be undone.
Consider making a backup using the Export Settings button before resetting if you want to be able to revert.
Dictionary data will not be deleted, but any installed dictionaries will need to be re-enabled.
Sentences are terminated by punctuation and quotation marks, which can both be configured below.
# | Enabled | Type | Character 1 | Character 2 | Include character in sentence |
The native keyboard shortcuts are listed below, but cannot be configured from within the extension on this browser. To configure these shortcuts:
The native keyboard shortcuts can be configured below on this browser, or by doing the following: