From 4053d9b2fac82108f701788c511aedaf988de4c5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 12 Feb 2021 23:03:15 -0500 Subject: Move html files (#1375) * Move background.html to / * Move context.html to / * Move info.html to / * Move legal.html to / * Move permissions.html to / * Move pitch-accents-preview.html to / * Move popup-preview.html to / * Move search.html to / * Move settings.html to / * Move settings2.html to / * Move template-renderer.html to / * Move welcome.html to / * Move float.html to / * Move display-templates.html to / --- ext/bg/background.html | 60 - ext/bg/context.html | 97 - ext/bg/info.html | 75 - ext/bg/js/backend.js | 14 +- ext/bg/js/context-main.js | 8 +- ext/bg/js/settings/popup-preview-controller.js | 2 +- ext/bg/js/template-renderer-proxy.js | 2 +- ext/bg/legal.html | 227 -- ext/bg/permissions.html | 178 -- ext/bg/pitch-accents-preview.html | 63 - ext/bg/popup-preview.html | 62 - ext/bg/search.html | 117 - ext/bg/settings.html | 1334 ---------- ext/bg/settings2.html | 3260 ------------------------ ext/bg/template-renderer.html | 24 - ext/bg/welcome.html | 355 --- 16 files changed, 13 insertions(+), 5865 deletions(-) delete mode 100644 ext/bg/background.html delete mode 100644 ext/bg/context.html delete mode 100644 ext/bg/info.html delete mode 100644 ext/bg/legal.html delete mode 100644 ext/bg/permissions.html delete mode 100644 ext/bg/pitch-accents-preview.html delete mode 100644 ext/bg/popup-preview.html delete mode 100644 ext/bg/search.html delete mode 100644 ext/bg/settings.html delete mode 100644 ext/bg/settings2.html delete mode 100644 ext/bg/template-renderer.html delete mode 100644 ext/bg/welcome.html (limited to 'ext/bg') diff --git a/ext/bg/background.html b/ext/bg/background.html deleted file mode 100644 index 101bd09c..00000000 --- a/ext/bg/background.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Background - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/ext/bg/context.html b/ext/bg/context.html deleted file mode 100644 index 1b0072a6..00000000 --- a/ext/bg/context.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - Yomichan Action Popup - - - - - - - - - - - -
- - -
- -
-

Yomichan

- - - - Settings - - - - - - - Search - - - Help - -
- - - - - - - - - - - - - - - diff --git a/ext/bg/info.html b/ext/bg/info.html deleted file mode 100644 index 920f94a0..00000000 --- a/ext/bg/info.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - Yomichan Info - - - - - - - - - - - - - -
-
- - - -

Yomichan Info

- -

General

-
-
-
    -
  • Extension version:
  • -
  • Platform:
  • -
  • Browser:
  • -
  • Language:
  • -
  • User agent:
  • -
  • AnkiConnect version: ...
  • -
  • Installed dictionaries: ...
  • -
  • Export settings
  • -
-
-
- - -
-
- -
-
- - - -
-
- - - - - - - - - - - - - - - - - diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index a1f5e6d1..2fb290bb 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -559,7 +559,7 @@ class Backend { } async _onApiGetDisplayTemplatesHtml() { - return await this._fetchAsset('/mixed/display-templates.html'); + return await this._fetchAsset('/display-templates.html'); } _onApiGetZoom(params, sender) { @@ -678,7 +678,7 @@ class Backend { } async _onApiIsTabSearchPopup({tabId}) { - const baseUrl = chrome.runtime.getURL('/bg/search.html'); + const baseUrl = chrome.runtime.getURL('/search.html'); const tab = typeof tabId === 'number' ? await this._checkTabUrl(tabId, (url) => url.startsWith(baseUrl)) : null; return (tab !== null); } @@ -728,7 +728,7 @@ class Backend { async _onCommandOpenSearchPage(params) { const {mode='existingOrNewTab', query} = params || {}; - const baseUrl = chrome.runtime.getURL('/bg/search.html'); + const baseUrl = chrome.runtime.getURL('/search.html'); const queryParams = {}; if (query && query.length > 0) { queryParams.query = query; } const queryString = new URLSearchParams(queryParams).toString(); @@ -822,7 +822,7 @@ class Backend { async _getOrCreateSearchPopup2() { // Reuse same tab - const baseUrl = chrome.runtime.getURL('/bg/search.html'); + const baseUrl = chrome.runtime.getURL('/search.html'); if (this._searchPopupTabId !== null) { const tab = await this._checkTabUrl(this._searchPopupTabId, (url) => url.startsWith(baseUrl)); if (tab !== null) { @@ -1821,17 +1821,17 @@ class Backend { } async _openWelcomeGuidePage() { - await this._createTab(chrome.runtime.getURL('/bg/welcome.html')); + await this._createTab(chrome.runtime.getURL('/welcome.html')); } async _openInfoPage() { - await this._createTab(chrome.runtime.getURL('/bg/info.html')); + await this._createTab(chrome.runtime.getURL('/info.html')); } async _openSettingsPage(mode) { const {useSettingsV2} = this._options.global; const manifest = chrome.runtime.getManifest(); - const url = chrome.runtime.getURL(useSettingsV2 ? '/bg/settings2.html' : manifest.options_ui.page); + const url = chrome.runtime.getURL(useSettingsV2 ? '/settings.html' : manifest.options_ui.page); switch (mode) { case 'existingOrNewTab': if (useSettingsV2) { diff --git a/ext/bg/js/context-main.js b/ext/bg/js/context-main.js index a7ea1471..98716958 100644 --- a/ext/bg/js/context-main.js +++ b/ext/bg/js/context-main.js @@ -32,17 +32,17 @@ class DisplayController { this._showExtensionInfo(manifest); this._setupEnvironment(); - this._setupButtonEvents('.action-open-search', 'openSearchPage', chrome.runtime.getURL('/bg/search.html')); - this._setupButtonEvents('.action-open-info', 'openInfoPage', chrome.runtime.getURL('/bg/info.html')); + this._setupButtonEvents('.action-open-search', 'openSearchPage', chrome.runtime.getURL('/search.html')); + this._setupButtonEvents('.action-open-info', 'openInfoPage', chrome.runtime.getURL('/info.html')); const optionsFull = await api.optionsGetFull(); this._optionsFull = optionsFull; this._setupHotkeys(); - const optionsPageUrl = optionsFull.global.useSettingsV2 ? '/bg/settings2.html' : manifest.options_ui.page; + const optionsPageUrl = optionsFull.global.useSettingsV2 ? '/settings.html' : manifest.options_ui.page; this._setupButtonEvents('.action-open-settings', 'openSettingsPage', chrome.runtime.getURL(optionsPageUrl)); - this._setupButtonEvents('.action-open-permissions', null, chrome.runtime.getURL('/bg/permissions.html')); + this._setupButtonEvents('.action-open-permissions', null, chrome.runtime.getURL('/permissions.html')); const {profiles, profileCurrent} = optionsFull; const primaryProfile = (profileCurrent >= 0 && profileCurrent < profiles.length) ? profiles[profileCurrent] : null; diff --git a/ext/bg/js/settings/popup-preview-controller.js b/ext/bg/js/settings/popup-preview-controller.js index 06939bb4..f98b0679 100644 --- a/ext/bg/js/settings/popup-preview-controller.js +++ b/ext/bg/js/settings/popup-preview-controller.js @@ -80,7 +80,7 @@ class PopupPreviewController { customOuterCss.addEventListener('input', this._onCustomOuterCssChange.bind(this), false); this._settingsController.on('optionsContextChanged', this._onOptionsContextChange.bind(this)); - frame.src = '/bg/popup-preview.html'; + frame.src = '/popup-preview.html'; frame.id = 'settings-popup-preview-frame'; container.appendChild(frame); diff --git a/ext/bg/js/template-renderer-proxy.js b/ext/bg/js/template-renderer-proxy.js index 21d45a94..6a49832b 100644 --- a/ext/bg/js/template-renderer-proxy.js +++ b/ext/bg/js/template-renderer-proxy.js @@ -21,7 +21,7 @@ class TemplateRendererProxy { this._frameNeedsLoad = true; this._frameLoading = false; this._frameLoadPromise = null; - this._frameUrl = chrome.runtime.getURL('/bg/template-renderer.html'); + this._frameUrl = chrome.runtime.getURL('/template-renderer.html'); this._invocations = new Set(); } diff --git a/ext/bg/legal.html b/ext/bg/legal.html deleted file mode 100644 index b8c1f1c5..00000000 --- a/ext/bg/legal.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - Yomichan Legal - - - - - - - - - - - - - -
-
- - - -

Yomichan Legal

- -

Yomichan License

-
-
-Copyright (C) 2016-2021  Yomichan Authors
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <https://www.gnu.org/licenses/>.
-
-
- -

EDRDG License

-
-
-This package uses the EDICT and KANJIDIC dictionary files. These files are
-the property of the Electronic Dictionary Research and Development Group,
-and are used in conformance with the Group's licence.
-
-
- -

Bootstrap v3.3.7

-
-
-The MIT License (MIT)
-
-Copyright (c) 2011-2016 Twitter, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
- -

Handlebars v4.0.6

-
-
-Copyright (C) 2011-2016 by Yehuda Katz
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
- -

jQuery v3.2.1

-
-
-Copyright JS Foundation and other contributors, https://js.foundation/
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/jquery/jquery
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-All files located in the node_modules and external directories are
-externally maintained libraries used by this software which have their
-own licenses; we recommend you read them, as their terms may differ from
-the terms above.
-
-
- -

JSZip v3.1.3

-
-
-Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
- -

WanaKana v4.0.2

-
-
-The MIT License (MIT)
-
-Copyright (c) 2013 WaniKani Community Github
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
- -
-

parse5 v6.0.1

-
-
-Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
-
- - - -
-
- - - - - - - - diff --git a/ext/bg/permissions.html b/ext/bg/permissions.html deleted file mode 100644 index 2ea9f2a1..00000000 --- a/ext/bg/permissions.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - Yomichan Permissions - - - - - - - - - - - - - -
-
- - - -

Yomichan Permissions

- -

-
-
-
-
<all_urls>
-
- Yomichan requires access to all URLs in order to run scripts to scan text and show the definitions popup, - request audio for playback and download, and connect with Anki. -
-
-
-
-
-
storage and unlimitedStorage
-
- Yomichan uses storage permissions in order to save extension settings and dictionary data. - unlimitedStorage is used to help prevent web browsers from unexpectedly - deleting dictionary data. -
-
-
-
-
-
webRequest and webRequestBlocking
-
-

- Yomichan uses these permissions to ensure certain requests have valid and secure headers. - This sometimes involves removing or changing the Origin request header, - as this can be used to fingerprint browser configuration. -

-

- Example: Origin: -

-
-
-
-
-
-
declarativeNetRequest
-
-

- Yomichan uses this permission to ensure certain requests have valid and secure headers. - This sometimes involves removing or changing the Origin request header, - as this can be used to fingerprint browser configuration. -

-

- Example: Origin: -

-
-
-
-
-
-
scripting
-
- Yomichan will sometimes need to inject stylesheets into webpages in order to - properly display the search popup. -
-
-
-
-
-
clipboardWrite
-
- Yomichan supports simulating the Ctrl+C (copy to clipboard) keyboard shortcut - when a definitions popup is open and focused. -
-
-
-
-
-
clipboardRead (optional)
-
- Yomichan supports automatically opening a search window when Japanese text is copied to the clipboard - while the browser is running, depending on how certain settings are configured. - This allows Yomichan to support scanning text from external applications, provided there is a way - to copy text from those applications to the clipboard. -
-
-
- -
-
-
-
-
nativeMessaging (optional)
-
- Yomichan has the ability to communicate with an optional native messaging component in order to support - parsing large blocks of Japanese text using - MeCab. - The installation of this component is optional and is not included by default. -
-
-
- -
-
-
-
-
Allow in private windows (optional)
-
-

- When enabled, Yomichan is able to scan text and show definitions in private/incognito web browser windows. -

-

- This option can be configured from the web browser's extension settings pages. -

-
-
-
- -
-
-
-
-
Allow access to file URLs (optional)
-
-

- When enabled, Yomichan is able to scan text and show definitions on local HTML files located using the file://* scheme. -

-

- This option can be configured from the web browser's extension settings pages. -

-
-
-
- -
-
-
- - - -
-
- - - - - - - - - - - - - - - - - diff --git a/ext/bg/pitch-accents-preview.html b/ext/bg/pitch-accents-preview.html deleted file mode 100644 index b2885c92..00000000 --- a/ext/bg/pitch-accents-preview.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - Yomichan Pitch Accents Preview - - - - - - - - - - - - -
- -
    -
  • - Downstep notation - - - - -
  • -
  • - Downstep position - - - 1 - -
  • -
  • - Graph - - - - - - - - - - - - -
  • -
- -
- - - - - - - - - - - - - diff --git a/ext/bg/popup-preview.html b/ext/bg/popup-preview.html deleted file mode 100644 index 5a8da859..00000000 --- a/ext/bg/popup-preview.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - Yomichan Popup Preview - - - - - - - - - - - - -
-
-
-
- - 読め -
-
-
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ext/bg/search.html b/ext/bg/search.html deleted file mode 100644 index a949beff..00000000 --- a/ext/bg/search.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - Yomichan Search - - - - - - - - - - - - - -
-
-
-
-
-
- - - -
-

Yomichan Search

-
- -
-
- - - -
-
- - -
-
- - - -
- - - -
-
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ext/bg/settings.html b/ext/bg/settings.html deleted file mode 100644 index 3e3f1961..00000000 --- a/ext/bg/settings.html +++ /dev/null @@ -1,1334 +0,0 @@ - - - - - - Yomichan Options (Old) - - - - - - - - - - - - -
- - -
- This is the old version of the settings page, it will be removed in the next version. - Please use the new settings page - and feel free to share any feedback - on Github. -
- -
-

Profiles

- -

- Profiles allow you to create multiple configurations and quickly switch between them or use them in different contexts. -

- -
- - -
- -
- -
-
- - - - -
- -
- -
-
-
- -
- - -
- -
- - -

- Usage conditions can be assigned such that certain profiles are automatically used in different contexts. - For example, when Popup Content Scanning is enabled, different profiles can be used - depending on the level of the popup. -

- -

- Conditions are organized into groups which represent how the conditions are checked. - If all of the conditions in any group are met, then the profile will automatically be used for that context. - If no conditions are specified, the profile will only be used if it is selected as the Active profile. -

- -
-
-
- -
- - - - - - - -
- -
-

General Options

- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- - -
- -
- - -
- -
- - -
- -
-
-
- - -
-
- - -
-
-
- -
-
-
- - -
-
- - -
-
-
- -
-
-
- - -
-
- - -
-
-
- -
-
-
- - -
-
- - -
-
-
- -
-
-
- - -
-
- - -
-
-
- -
-
-
- - -
-
- - -
-
-
- -
-
-
- -
-
-
- -
-
-
-
- - - -
-
- -
-
-
-
- -
-

Audio Options

- -
- -
- -
- -
- -
- - -
- -
- -
- -
- -
-
- -
- -
- - -
- -
- -
-
- -
- - -
-
- -
-

Scanning Options

- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- Prevent middle mouse button actions on: -
-
-
-
-
-
-
- -
-
-
- - -
-
- - -
-
-
- -
- - -
- -
- - -
- -
- -
- - - -
-
- -
-

Translation Options

- -

- The following options can be used during the translation process to provide alternate versions of the input text to search for. - This can be helpful when the input text doesn't exactly match the term or expression found in the database. -

- -

- The conversion options below are listed in the order that the conversions are applied to the input text. - Conversions commonly have three possible values: -

- -
    -
  • - Disabled
    - This conversion will never be applied to the input text. -
  • -
  • - Enabled
    - This conversion will always be applied to the input text. -
  • -
  • - Use both variants
    - The translator will check the database for two variations: the raw input text and the converted input text. - When multiple options use variants, the translator will search for combinations of the converted text. -
  • -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
-
- - - -
-

Text Parsing Options

- -

- Yomichan can attempt to parse entire sentences or longer text blocks on the search page, - adding furigana above words and a small space between words. -

- -

- Two types of parsers are supported. The first one, enabled by default, works using the built-in - scanning functionality by automatically advancing in the sentence after a matching word. -

- -

- The second type is an external program called MeCab - that uses its own dictionaries and a special parsing algorithm. To get it working, you must first - install it and a native messaging component - that acts as a bridge between the program and Yomichan. -

- -
- -
- -
- -
- -
- -
- -
- - -
-
- -
-
- -

Dictionaries

-
- -

- Yomichan can import and use a variety of dictionary formats. Unneeded dictionaries can be disabled. -

- -
- - -
- - - - - -
-
- - - -
-

- Select a dictionary to import for use below. Please visit the Yomichan homepage to - download free dictionaries - for use with this extension and to learn about importing proprietary EPWING dictionaries. -

-
- - - -
- -
- -
-

Dictionary Options

-
- -
- -

- This option only applies to newly imported dictionaries. - Enabling this option will also cause dictionary data to take up slightly more storage space. -

-
- - - - - - - - - - -
- -
-
-

Storage

-
- - - -
-

- Yomichan is using an indeterminate amount of storage. -

- - -
- - - -
- If you are using Firefox for Android, you will have to make sure you have enough free space on your device to install dictionaries. -
- -
- - -
- -

- - -
- -
-
- -

Anki Options

-
- -

- Yomichan supports automatic flashcard creation for Anki, a free application - designed to help you remember. This feature requires installation of the - AnkiConnect plugin. -

- -
- -
- -
-
-
- Notice for Mac OS X users: - If Yomichan has issues connecting to AnkiConnect, you may have to tweak some system settings. - See this link for more details. -
-
- - - - - -
- - -
- -
- - -
- -
- - -
- -
-
-
-
- -
- - -
- -
- - -
- -
- - -
- -
-

- Specify the information you would like included in your flashcards in the field editor below. - As Anki requires the first field in the model to be unique, it is recommended - that you set it to {expression} for term flashcards and {character} for - Kanji flashcards. You can use multiple markers per field by typing them in directly. - See Flashcard Configuration - on the Yomichan homepage for descriptions of the available markers. -

- - - -
-
-
-
- - -
- -
- - -
-
- - - - -
FieldValue
-
- -
-
-
- - -
- -
- - -
-
- - - - -
FieldValue
-
-
- -
-

- Fields are formatted using the Handlebars.js template rendering - engine. Advanced users can modify these templates for ultimate control of what information gets included in - their Anki cards. If you encounter problems with your changes, you can always reset to the default template settings. -

-
- -
-
- -
-

- - -

Templates can be tested using the inputs below.

- -
-
-
- - -
-
- -
-
- -
- -
- - -
-
-
-
-
- -

- -
- - - - - - -
-
-
- -
-

Keyboard Shortcuts

- -

- Yomichan includes keyboard shortcuts for common actions which can be adjusted - using the web browser's settings. - Instructions on how to access this settings page are listed below for a few browsers. -

- -

Chrome

-
    -
  • Open the settings page (chrome://settings/)
  • -
  • Click the "Extensions" link in the left sidebar (chrome://extensions/)
  • -
  • Open the left side panel using the hamburger () menu button, then click "Keyboard shortcuts"
  • -
- -

Firefox

-
    -
  • Open the extensions page (about:addons)
  • -
  • Click the button on the right with the gear icon, then click "Manage Extension Shortcuts"
  • -
-
- - -
-

Backup

- -

- Yomichan can import and export settings files which can be used to restore settings, - share settings across devices, or help to debug problems. - These files will only contain settings and will not contain dictionaries. - Dictionaries must be imported separately. -

- -
- - - -
- - - - - - - - -
- -
-

Support Development

- -

- Yomichan is provided to you completely free of charge. Unlike numerous other "free" services, you are not - shown ads, pestered with "offers", or have your browser usage information analyzed and sold to third parties. -

-

- If you find Yomichan useful, please consider making a small donation as a way to show your appreciation for the - countless hours that I have devoted to this extension. -

-

- -

-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html deleted file mode 100644 index d0ba0b3c..00000000 --- a/ext/bg/settings2.html +++ /dev/null @@ -1,3260 +0,0 @@ - - - - - - Yomichan Settings - - - - - - - - - - - - - -
- -
- - - -

Yomichan Settings

- - -

-
-
-
-
- Notice: - This settings page is planned to replace - the old settings page.
- Questions, comments, and other feedback is welcome and can be shared - on Github. -
-
-
-
-
-
Use this new settings page by default
-
-
- -
-
-
- - -
-
- -
-
-
-
-
Default profile
-
Switch the primary profile that is used for scanning.
-
-
- -
-
-
-
-
Editing profile
-
Change which profile is being modified on this page.
-
-
- -
-
-
-
-
Configure profiles…
-
-
- -
-
-
- - -
-
-

Dictionaries (# installed, # enabled)

-
-
-
-
-
-
-
Configure installed and enabled dictionaries…
- -
-
-
-
- -
-
-
-
-
-
Storage
-
- - Yomichan is using an indeterminate amount of storage. - - - -
-
-
- -
-
-
-
-
-
-
Persistent storage
-
- Enable to help prevent the browser from unexpectedly clearing the database. - More… -
-
-
- -
-
- -
-
- - -
-
- -
-
-
-
-
Enable content scanning
-
-
- -
-
-
-
-
Show the welcome guide on browser startup
-
-
- -
-
-
-
-
-
Result grouping mode
-
- Change how related results are grouped. - More... -
-
-
- -
-
- - -
-
-
-
Maximum number of results
-
Adjust the maximum number of results shown for lookups.
-
-
- -
-
-
- - -
-
- -
-
-
-
-
-
Scan modifier key
-
- Hold a key while moving the cursor to scan text. - More… -
-
-
- -
-
- -
-
-
-
Scan using middle mouse button
-
Hold the middle mouse button while moving the cursor to scan text.
-
-
- -
-
-
-
-
Configure advanced scanning inputs… (# defined)
-
-
- -
-
-
-
-
-
Auto-hide search popup
-
When no definitions are found after scanning text, the popup will automatically hide.
-
-
- -
-
- -
-
-
-
Scan delay (in milliseconds)
-
Change the delay before scanning occurs when no modifier key is required.
-
-
- -
-
-
-
-
Select matched text
-
-
- -
-
-
-
-
Search text with non-Japanese characters
-
-
- -
-
-
-
-
Layout-aware scanning
-
Use webpage styling information to determine where line breaks are likely to be.
-
-
- -
-
-
-
-
Deep content scanning
-
Enable scanning text that is covered by other layers.
-
-
- -
-
-
-
-
Text scan length
-
Change how many characters are read when scanning for terms.
-
-
- -
-
-
-
-
-
- Support inputs for devices with touch screens - (?) -
-
-
-
- - -
-
-
- -
-
-
-
Configure input action prevention…
-
-
- -
-
-
- - -
-
- -
-
-
-
-
Allow scanning search page content
-
Text on the search page can be scanned for definitions, which will open a popup.
-
-
- -
-
-
-
-
-
Allow scanning popup content
-
Text inside of popups can be scanned for definitions, which will open a new popup.
-
-
- -
-
- -
-
-
-
Search terms when clicking text from the results list
-
-
- -
-
-
-
-
-
- Show iframe popups in the root frame - (?) -
-
-
- -
-
- -
-
- - - -
-
-
-
Theme
-
Adjust the style of the popup.
-
-
-
-
-
Body
- -
-
-
Shadow
- -
-
-
-
-
-
-
-
Action bar appearance
-
Control when and where the action bar is visible.
-
-
-
-
-
Visibility
- -
-
-
Location
- -
-
-
-
-
-
-
-
Compact glossaries
-
Display term glossaries using a more compact layout.
-
-
- -
-
-
-
-
Compact tags
-
Show fewer repeated tags for term glossaries.
-
-
- -
-
-
-
-
Show tags for expressions and their readings
-
These tags can be scanned if the options for popup content scanning are enabled.
-
-
- -
-
-
-
-
Show debug information
-
A link to log debugging information will be shown in the search results.
-
-
- -
-
-
-
-
-
Selection indicator style
-
Change how the selected definition entry is visually indicated.
-
-
- -
-
-
-
-
-
-
- Pitch accent display styles - (?) -
-
-
-
- - - -
-
-
- -
-
-
-
Configure custom CSS…
-
-
- -
-
-
- - - -
-
-
-
-
Display mode
-
- Change the layout of the popup. - More… -
-
-
- -
-
- -
-
-
-
-
Scale
-
Control the scaling factor of the popup.
-
-
- -
-
-
-
-
-
-
- Auto-scale - (?) -
-
-
-
- - -
-
-
- -
-
-
-
-
-
Size
-
Control the size of the popup, in pixels.
-
-
-
-
-
Width
- -
-
-
Height
- -
-
-
-
-
-
-
Horizontal text positioning
-
Change where the popup is positioned relative to horizontal text.
-
-
- -
-
-
-
-
Vertical text positioning
-
Change where the popup is positioned relative to vertical text.
-
-
- -
-
-
-
-
Horizontal text offset
-
Change the distance the popup is placed relative to horizontal text.
-
-
-
-
-
x
- -
-
-
y
- -
-
-
-
-
-
-
Vertical text offset
-
Change the distance the popup is placed relative to vertical text.
-
-
-
-
-
x
- -
-
-
y
- -
-
-
-
-
- - -
-
- - -
-
-
-
-
-
- Use a native browser window instead of an embedded popup - (?) -
-
-
- -
-
- -
-
-
-
Size
-
Control the size of the window, in pixels.
-
-
-
-
-
Width
- -
-
-
Height
- -
-
-
-
-
-
-
Left position
-
Control the left position of the window, in pixels.
-
-
-
- -
-
Mode
- -
-
-
-
-
-
-
Top position
-
Control the top position of the window, in pixels.
-
-
-
- -
-
Mode
- -
-
-
-
-
-
-
Window style
-
Change the appearance of the window.
-
-
-
-
-
Type
- -
-
-
State
- -
-
-
-
-
- - -
-
- -
-
-
-
-
Enable audio playback for terms
-
Show a clickable speaker icon next to search results.
-
-
- -
-
-
-
-
Auto-play search result audio
-
The audio for the first result will be played automatically.
-
-
- -
-
-
-
-
Audio volume
-
Adjust the volume audio is played at, in percent.
-
-
- -
-
-
-
-
Configure audio playback sources…
-
-
- -
-
-
- - -
- - -
-
-
-
-
Parse text using installed dictionaries
-
Words are scanned by automatically advancing in the sentence after a matching word.
-
-
- -
-
-
-
-
-
-
Parse text using MeCab
-
- Requires a native component to be installed that Yomichan will connect to. - More… -
-
-
- -
-
- -
-
-
-
Show space between parsed words
-
-
- -
-
-
-
-
Reading mode
-
Change what type of furigana is displayed for parsed text.
-
-
- -
-
-
- - -
- - -
-
-
-
-
Sentence scanning extent
-
Adjust how many characters are bidirectionally scanned to form a sentence.
-
-
- -
-
-
-
-
Enable sentence termination characters
-
-
- -
-
-
-
-
Configure sentence termination characters…
-
-
- -
-
-
- - -
- - -
-
-
-
-
Configure custom text replacement patterns…
-
-
- -
-
-
-
-
Convert half width characters to full width
-
ヨミチャン → ヨミチャン
-
-
- -
-
-
-
-
Convert numeric characters to full width
-
1234 → 1234
-
-
- -
-
-
-
-
Convert alphabetic characters to hiragana
-
yomichan → よみちゃん
-
-
- -
-
-
-
-
Convert hiragana to katakana
-
よみちゃん → ヨミチャン
-
-
- -
-
-
-
-
Convert katakana to hiragana
-
ヨミチャン → よみちゃん
-
-
- -
-
-
-
-
Collapse emphatic character sequences
-
すっっごーーい → すっごーい / すごい
-
-
- -
-
-
- - -
-
-
- - -
- -
-
-
-
-
-
Enable Anki integration
-
- Connection status: - -
-
-
- -
-
- -
-
-
-
-
AnkiConnect server address
-
- Change the URL of the AnkiConnect server. - More… -
-
-
- -
-
- -
-
-
-
Card tags
-
List of space or comma separated tags to add to the card.
-
-
- -
-
-
-
-
-
Check for card duplicates
-
When a card is detected as a duplicate, the add buttons will be disabled.
-
-
- -
-
- -
-
-
-
Screenshot format
-
Adjust the format and quality of screenshots created for cards.
-
-
-
- -
-
Format
- -
-
-
-
- -
-
-
Suspend new cards
-
New cards will be suspended when a note is added.
-
-
- -
-
-
-
-
Configure Anki card format…
-
-
- -
-
-
-
-
Configure Anki card templates…
-
-
- -
-
-
- - -
-
-
- - -
- -
-
-
-
-
-
Enable background clipboard text monitoring
-
Open the search page in a new window when the clipboard contains Japanese text.
-
-
- -
-
-
-
-
-
Enable search page clipboard text monitoring
-
The query on the search page will be automatically updated with text in the clipboard.
-
-
- -
-
-
-
-
Maximum clipboard text search length
-
Limit the number of characters used when searching clipboard text.
-
-
- -
-
-
-
-
Clipboard text search mode
-
Change how the search page reacts to new text in the clipboard.
-
-
- -
-
-
- - -
-
- -
-
-
-
-
-

- Yomichan has two categories of keyboard shortcuts: -

-
    -
  • - Standard keyboard shortcuts are controlled by the extension, and can be added, removed, - and configured to work on webpages that Yomichan functions on. -
  • -
  • - Native keyboard shortcuts are controlled by the web browser, and function globally - within the web browser or system-wide. -
  • -
-
-
-
-
-
-
Configure standard keyboard shortcuts…
-
-
- -
-
-
-
-
Configure native keyboard shortcuts…
-
-
- -
-
-
- - -
-
- -
-
-
-
-
- Yomichan can import and export settings files which can be used to restore settings, share settings across devices, and to help to debug problems. - These files will only contain settings and will not contain dictionaries. - Dictionaries must be imported separately. -
-
-
-
-
-
-
- - -
-
- -
-
- -
-
-
-
-
- - -
-
- -
-
-
-
-
-
- Use a secure container around popups - (?) -
-
-
- -
-
- -
-
-
-
-
- Use secure popup frame URL - (?) -
-
-
- -
-
- -
-
- - - -
-
-
-
- -
-
-
-
- - - -
- -
-
-
-
-
-
- -
-
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ext/bg/template-renderer.html b/ext/bg/template-renderer.html deleted file mode 100644 index 68cba889..00000000 --- a/ext/bg/template-renderer.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Yomichan Handlebars Sandbox - - - - - - - - - - - - - - - - - - diff --git a/ext/bg/welcome.html b/ext/bg/welcome.html deleted file mode 100644 index 53c386fd..00000000 --- a/ext/bg/welcome.html +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - Welcome to Yomichan! - - - - - - - - - - - - - -
-
- - - -

Welcome to Yomichan!

- -

Here are some basics to get started

-
-
-
- Clicking the Yomichan button in the browser bar will open the quick-actions popup. -
-
-
- The cog button will open the Settings page. -
-
- The magnifying glass button will open the Search page, - enabling text and terms to be looked up using the installed dictionaries. - This can even be used in offline mode! -
-
- The question mark button will open the Information page, - which has some helpful information and links about Yomichan. -
-
-
-
-
- Yomichan requires one or more dictionaries to be installed in order to look up terms, kanji, and other information. - Several downloadable dictionaries can be found on the Yomichan homepage, - allowing you to choose the dictionaries most relevant for you. - Dictionaries can be configured using the button below, - or later from the the Settings page. -
-
-
-
-
Install or remove dictionaries…
-
-
- -
-
-
-
-
-
- After dictionaries have been installed, webpage text can be scanned by moving the cursor while holding a modifier key. - The default key is Shift, which can be disabled or configured below. -
-
-
- Clicking the speaker button of an entry in the search results - will play an audio clip of a term's pronunciation using an online dictionary, if available. -
-
- Clicking on a kanji character in a term's definition will show additional information about that character. - (Requires a kanji dictionary to be installed.) -
-
-
-
-
- This startup notification can be turned off using the options below, or later from the Settings page. -
-
-
- -

Basic customization

-
-
-
-
Show this welcome guide on browser startup
-
-
- -
-
-
-
-
-
Scan modifier key
-
Hold a key while moving the cursor to scan text.
-
-
- -
-
-
-
-
-
Scan using middle mouse button
-
Hold the middle mouse button while moving the cursor to scan text.
-
-
- -
-
-
-
-
-
Auto-hide search popup
-
When no definitions are found after scanning text, the popup will automatically hide.
-
-
- -
-
- -
-
-
-
Scan delay (in milliseconds)
-
Change the delay before scanning occurs when no modifier key is required.
-
-
- -
-
-
-
-
Theme
-
Adjust the style of the popup.
-
-
- -
-
-
-
-
More customization options are available on the Settings page
-
-
- -
-
-
- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3