Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
at lambda-fork/main 1694 lines 102 kB view raw
1<!DOCTYPE html><html><head><title>Templates</title></head><body> 2 3<template id="shared-modals-template"> 4 <div id="dictionaries-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 5 <div class="modal-header"> 6 <div class="modal-title">Dictionaries</div> 7 <div class="modal-header-button-container"> 8 <div class="modal-header-button-group"> 9 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 10 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 11 </div> 12 </div> 13 </div> 14 <div id="dictionaries-modal-body" class="modal-body"> 15 <div class="settings-item"> 16 <div class="settings-item-inner"> 17 <div class="settings-item-left"> 18 <div class="settings-item-label"> 19 Enable support for prefix wildcard searches 20 <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">(?)</a> 21 </div> 22 </div> 23 <div class="settings-item-right"> 24 <label class="toggle"><input type="checkbox" data-setting="global.database.prefixWildcardsSupported" data-scope="global"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 25 </div> 26 </div> 27 <div class="settings-item-children more" hidden> 28 <p> 29 In order for dictionaries to support searches using prefix wildcards on the search page, 30 some additional data must be stored in the database. 31 Enabling this option will include this extra data for any new dictionaries that are imported. 32 </p> 33 <p class="warning-text"> 34 This option will not change any dictionaries that are already imported; 35 they must be re-imported for the option to take effect. 36 </p> 37 <p> 38 <a tabindex="0" class="more-toggle" data-parent-distance="3">Hide&hellip;</a> 39 </p> 40 </div> 41 </div> 42 43 <div class="warning-text margin-above no-dictionaries-installed-warning" hidden> 44 No dictionaries have been installed yet. 45 Visit the <a href="https://github.com/yomidevs/yomitan/blob/master/docs/dictionaries.md#dictionaries" target="_blank" rel="noopener noreferrer">Yomitan homepage</a> 46 for a list of free dictionaries or click the <em>Import</em> button below to select a dictionary file to import. 47 </div> 48 <div id="dictionary-error" class="danger-text margin-above" hidden></div> 49 <div id="dictionary-list" class="dictionary-list generic-list" data-count="0"> 50 <div class="dictionary-item-top"></div> 51 <label class="dictionary-item-top toggle dictionary-item-enabled-toggle-container"><input type="checkbox" id="all-dictionaries-enabled"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 52 <div class="dictionary-item-top dictionary-item-title-container">All</div> 53 <div class="dictionary-item-top dictionary-item-button-height"></div> 54 <div class="dictionary-item-top dictionary-item-button-height"></div> 55 <div class="dictionary-item-top dictionary-item-button-height"></div> 56 </div> 57 58 <div hidden><input type="file" id="dictionary-import-file-input" accept=".zip,application/zip" multiple></div> 59 </div> 60 <div class="modal-body-addon dictionary-delete-progress" hidden> 61 <div class="progress-labels"><div class="progress-info"></div><div class="progress-status"></div></div> 62 <div class="progress-bar-track"><div class="progress-bar danger"></div></div> 63 </div> 64 <div class="modal-body-addon dictionary-import-progress" hidden> 65 <div class="progress-labels"><div class="progress-info"></div><div class="progress-status"></div></div> 66 <div class="progress-bar-track"><div class="progress-bar"></div></div> 67 </div> 68 <div class="modal-footer"> 69 <button type="button" class="low-emphasis danger dictionary-database-mutating-input" id="dictionary-delete-all-button">Delete All</button> 70 <button type="button" class="low-emphasis dictionary-database-mutating-input advanced-only" id="dictionary-check-integrity">Check Integrity</button> 71 <button type="button" class="low-emphasis dictionary-database-mutating-input" id="dictionary-check-updates">Check for Updates</button> 72 <button type="button" class="low-emphasis dictionary-database-mutating-input" id="dictionary-import-button">Import</button> 73 <button type="button" data-modal-action="hide">Close</button> 74 </div> 75 </div></div> 76 77 <div id="dictionary-import-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-medium"> 78 <div class="modal-header"><div class="modal-title">Import Dictionaries</div></div> 79 <div class="modal-body"> 80 <div id="dictionary-drop-file-zone"> 81 <div id="dictionary-drag-drop-text"> 82 <span class="icon" data-icon="book"></span> 83 <h1>Drag and drop dictionaries (.zip)</h1> 84 <h5>or click here to upload</h5> 85 </div> 86 </div> 87 </div> 88 <div class="modal-footer"> 89 <button type="button" data-modal-action="hide" class="basic-only">Close</button> 90 </div> 91 <div class="modal-body advanced-only"> 92 <p>Import dictionaries from URLs:</p> 93 <textarea type="text" id="dictionary-import-url-text"></textarea> 94 </div> 95 <div class="modal-footer advanced-only"> 96 <button type="button" data-modal-action="hide" class="low-emphasis dictionary-database-mutating-input" id="dictionary-import-url-button">Import from URLs</button> 97 <button type="button" data-modal-action="hide">Close</button> 98 </div> 99 </div></div> 100 101 <div id="dictionary-confirm-delete-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 102 <div class="modal-header"><div class="modal-title">Confirm Dictionary Deletion</div></div> 103 <div class="modal-body"> 104 <p>Are you sure you want to delete the dictionary:</p> 105 <p><strong id="dictionary-confirm-delete-name"></strong>?</p> 106 <p id="dictionary-confirm-delete-used-profiles-text">This dictionary is currently used by the following profiles:</p> 107 <ul id="dictionary-confirm-delete-used-profiles"></ul> 108 <p class="danger-text">This action cannot be undone.</p> 109 </div> 110 <div class="modal-footer"> 111 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 112 <button type="button" class="danger" data-modal-action="hide" id="dictionary-confirm-delete-button">Delete</button> 113 </div> 114 </div></div> 115 116 <div id="dictionary-confirm-delete-all-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 117 <div class="modal-header"><div class="modal-title">Confirm Dictionary Deletion</div></div> 118 <div class="modal-body"> 119 <p>Are you sure you want to delete <strong>all dictionaries</strong>?</p> 120 <p class="danger-text">This action cannot be undone.</p> 121 </div> 122 <div class="modal-footer"> 123 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 124 <button type="button" class="danger" data-modal-action="hide" id="dictionary-confirm-delete-all-button">Delete</button> 125 </div> 126 </div></div> 127 128 <div id="dictionary-confirm-update-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 129 <div class="modal-header"><div class="modal-title">Confirm Dictionary Update</div></div> 130 <div class="modal-body"> 131 <p>Are you sure you want to update the dictionary:</p> 132 <p><strong id="dictionary-confirm-update-name"></strong>?</p> 133 <section> 134 Updating a dictionary involves: 135 <ul> 136 <li>Deleting the installed version</li> 137 <li>Downloading the latest version </li> 138 <li>Importing the latest version</li> 139 </ul> 140 <p class="warning-text">Especially for large dictionaries, this process can take a while, and downloading will use your network.</p> 141 </section> 142 </div> 143 <div class="modal-footer"> 144 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 145 <button type="button" class="danger" data-modal-action="hide" id="dictionary-confirm-update-button">Update</button> 146 </div> 147 </div></div> 148 149 <div id="secondary-search-dictionaries-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 150 <div class="modal-header"> 151 <div class="modal-title">Secondary Search Dictionaries</div> 152 <div class="modal-header-button-container"> 153 <div class="modal-header-button-group"> 154 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 155 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 156 </div> 157 </div> 158 </div> 159 <div class="modal-body"> 160 <p> 161 These dictionaries will be used to search for definitions of the related terms when the grouping mode is 162 <em>Group related terms</em>. 163 </p> 164 <div id="secondary-search-dictionary-list" class="secondary-search-dictionary-list"></div> 165 </div> 166 <div class="modal-footer"> 167 <button type="button" data-modal-action="hide">Close</button> 168 </div> 169 </div></div> 170 171 <div id="dictionary-details-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 172 <div class="modal-header"> 173 <div class="modal-title"><strong class="dictionary-title"></strong> <span class="light dictionary-revision"></span></div> 174 </div> 175 <div class="modal-body"> 176 <div class="settings-item dictionary-outdated-notification" hidden><div class="settings-item-children danger-text"> 177 This dictionary is outdated and may not support new extension features. 178 Re-import the dictionary to enable support for the latest features. 179 </div></div> 180 <div class="settings-item"> 181 <div class="settings-item-inner"> 182 <div class="settings-item-left"> 183 <div class="settings-item-label"> 184 Prefix wildcard searches supported 185 <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">(?)</a> 186 </div> 187 </div> 188 <div class="settings-item-right"> 189 <label class="toggle"><input type="checkbox" class="dictionary-prefix-wildcard-searches-supported" disabled><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 190 </div> 191 </div> 192 <div class="settings-item-children more" hidden> 193 <p class="warning-text"> 194 Changing this value requires the dictionary to be re-imported. 195 </p> 196 <p><a tabindex="0" class="more-toggle" data-parent-distance="3">Hide&hellip;</a></p> 197 </div> 198 </div> 199 <div class="settings-item dictionary-parts-of-speech-filter-setting" hidden> 200 <div class="settings-item-inner"> 201 <div class="settings-item-left"> 202 <div class="settings-item-label"> 203 Part of speech filtering 204 <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">(?)</a> 205 </div> 206 </div> 207 <div class="settings-item-right"> 208 <label class="toggle"><input type="checkbox" class="dictionary-parts-of-speech-filter-toggle"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 209 </div> 210 </div> 211 <div class="settings-item-children more" hidden> 212 When deinflecting words, only dictionary entries whose POS matches that expected by the deinflector will be shown. 213 <p><a tabindex="0" class="more-toggle" data-parent-distance="3">Hide&hellip;</a></p> 214 </div> 215 </div> 216 <div class="settings-item dictionary-use-deinflections-setting" hidden> 217 <div class="settings-item-inner"> 218 <div class="settings-item-left"> 219 <div class="settings-item-label"> 220 Use deinflections 221 <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">(?)</a> 222 </div> 223 </div> 224 <div class="settings-item-right"> 225 <label class="toggle"><input type="checkbox" class="dictionary-use-deinflections-toggle"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 226 </div> 227 </div> 228 <div class="settings-item-children more" hidden> 229 Deinflections from this dictionary will be used. 230 <p><a tabindex="0" class="more-toggle" data-parent-distance="3">Hide&hellip;</a></p> 231 </div> 232 </div> 233 <hr> 234 <div class="settings-item"><div class="settings-item-children"> 235 <div class="dictionary-details-table"></div> 236 </div></div> 237 </div> 238 <div class="modal-footer"> 239 <button type="button" data-modal-action="hide">Close</button> 240 </div> 241 </div></div> 242 243 <div id="dictionary-extra-data-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 244 <div class="modal-header"> 245 <div class="modal-title"> 246 <strong class="dictionary-title">Unassociated Data</strong> <span class="light dictionary-total-count"></span> 247 </div> 248 </div> 249 <div class="modal-body"> 250 <p class="warning-text"> 251 The database contains extra data which is not associated with any installed dictionary. 252 Purging the database can fix this issue. 253 </p> 254 <div class="settings-item"><div class="settings-item-children"> 255 <div class="dictionary-details-table"></div> 256 </div></div> 257 </div> 258 <div class="modal-footer"> 259 <button type="button" data-modal-action="hide">Close</button> 260 </div> 261 </div></div> 262 263 <div id="dictionary-move-location-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 264 <div class="modal-header"><div class="modal-title">Move Dictionary Options</div></div> 265 <div class="modal-body"> 266 <p>Input the location the dictionary <strong class="dictionary-title"></strong> should be moved to:</p> 267 <div class="margin-above"> 268 <input type="number" id="dictionary-move-location" min="1" step="1"> 269 </div> 270 </div> 271 <div class="modal-footer"> 272 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 273 <button type="button" data-modal-action="hide" id="dictionary-move-button">Move</button> 274 </div> 275 </div></div> 276 277 <div id="dictionary-set-alias-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 278 <div class="modal-header"><div class="modal-title">Rename</div></div> 279 <div class="modal-body"> 280 <p>Input the display name for <strong class="dictionary-title"></strong> dictionary:</p> 281 <div class="margin-above"> 282 <input type="text" id="dictionary-alias-input"> 283 </div> 284 </div> 285 <div class="modal-footer"> 286 <button type="button" class="low-emphasis" id="dictionary-reset-alias-button">Reset</button> 287 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 288 <button type="button" data-modal-action="hide" id="dictionary-set-alias-button">Save</button> 289 </div> 290 </div></div> 291 292 <div id="recommended-dictionaries-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 293 <div class="modal-header"> 294 <div class="modal-title">Recommended Dictionaries</div> 295 <div class="modal-header-button-container"> 296 <div class="modal-header-button-group"> 297 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 298 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 299 </div> 300 </div> 301 </div> 302 <div class="modal-body"> 303 <p> 304 For non-English dictionaries, please refer to the list of available 305 <a href="https://yomidevs.github.io/kaikki-to-yomitan/" target="_blank"> Kaikki dictionaries</a>. 306 </p> 307 <div id="recommended-term-dictionaries" hidden> 308 <h1 class="modal-title">Term Dictionaries</h1> 309 <div class="recommended-dictionary-list"></div> 310 </div> 311 <div id="recommended-kanji-dictionaries" hidden> 312 <h1 class="modal-title">Kanji Dictionaries</h1> 313 <div class="recommended-dictionary-list"></div> 314 </div> 315 <div id="recommended-frequency-dictionaries" hidden> 316 <h1 class="modal-title">Frequency Dictionaries</h1> 317 <div class="recommended-dictionary-list"></div> 318 </div> 319 <div id="recommended-grammar-dictionaries" hidden> 320 <h1 class="modal-title">Grammar Dictionaries</h1> 321 <div class="recommended-dictionary-list"></div> 322 </div> 323 <div id="recommended-pronunciation-dictionaries" hidden> 324 <h1 class="modal-title">Pronunciation Dictionaries</h1> 325 <div class="recommended-dictionary-list"></div> 326 </div> 327 </div> 328 <div class="modal-body-addon dictionary-delete-progress" hidden> 329 <div class="progress-labels"><div class="progress-info"></div><div class="progress-status"></div></div> 330 <div class="progress-bar-track"><div class="progress-bar danger"></div></div> 331 </div> 332 <div class="modal-body-addon dictionary-import-progress" hidden> 333 <div class="progress-labels"><div class="progress-info"></div><div class="progress-status"></div></div> 334 <div class="progress-bar-track"><div class="progress-bar"></div></div> 335 </div> 336 <div class="modal-footer"> 337 <button type="button" data-modal-action="hide">Close</button> 338 </div> 339 </div></div> 340 341 <!-- Recommended settings modal --> 342 <div id="recommended-settings-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 343 <div class="modal-header"> 344 <div class="modal-title">Recommended settings</div> 345 </div> 346 <div class="modal-body"> 347 <span>We recommend the following settings for your selected language</span> 348 <div id="recommended-settings-body"> 349 <div class="settings-item"> 350 <div class="settings-item-inner"> 351 <div class="settings-item-left"> 352 <div class="settings-item-label"><strong>Recommendations</strong></div> 353 </div> 354 </div> 355 </div> 356 <div id="recommended-settings-list"></div> 357 </div> 358 </div> 359 <div class="modal-footer"> 360 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 361 <button type="button" id="recommended-settings-apply-button">Apply</button> 362 </div> 363 </div></div> 364</template> 365 366<template id="settings-modals-template"> 367 <div id="profiles-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 368 <div class="modal-header"> 369 <div class="modal-title">Profiles</div> 370 <div class="modal-header-button-container"> 371 <div class="modal-header-button-group"> 372 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 373 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 374 </div> 375 </div> 376 </div> 377 <div class="modal-body"> 378 <div class="profile-entry-header"> 379 <div class="profile-entry-cell"></div> 380 <div class="profile-entry-cell"><span class="profile-entry-header-text">Default</span></div> 381 <div class="profile-entry-cell"><span class="profile-entry-header-text">Name</span></div> 382 <div class="profile-entry-cell"><span class="profile-entry-header-text">Conditions</span></div> 383 <div class="profile-entry-cell"></div> 384 </div> 385 <div class="profile-entry-list generic-list" id="profile-entry-list"></div> 386 <div class="profile-add-button-container"> 387 <button type="button" class="low-emphasis" id="profile-add-button">Add</button> 388 </div> 389 </div> 390 <div class="modal-footer"> 391 <button type="button" data-modal-action="hide">Close</button> 392 </div> 393 </div></div> 394 395 <div id="profile-conditions-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 396 <div class="modal-header"> 397 <div class="modal-title">Profile Conditions</div> 398 <div class="modal-header-button-container"> 399 <div class="modal-header-button-group"> 400 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 401 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 402 </div> 403 </div> 404 </div> 405 <div class="modal-body"> 406 <div class="settings-item"> 407 <div class="settings-item-inner"> 408 <div class="settings-item-left"> 409 <div class="settings-item-label"> 410 Conditions for profile <em id="profile-conditions-profile-name"></em>: 411 </div> 412 </div> 413 <div class="settings-item-right"> 414 <a tabindex="0" class="more-toggle more-only" data-parent-distance="3">Info&hellip;</a> 415 </div> 416 </div> 417 <div class="settings-item-children more" hidden> 418 <p> 419 Profile usage conditions are used to automatically select certain profiles based on context. 420 For example, different profiles can be used depending on the nested level of the popup, or based on the website's URL. 421 </p> 422 <p> 423 Conditions are organized into groups corresponding to the order in which they are checked. 424 If all of the conditions in any group of a profile are met, then that profile will be used for that context. 425 </p> 426 <p> 427 If no conditions are specified, the profile will only be used if it is selected as the default profile. 428 </p> 429 <p> 430 When using the Flags condition, <code>clipboard</code> is the only valid input. 431 This lets the search page apply another profile’s settings when text is copied, provided <code>Enable search page clipboard text monitoring</code> is enabled. 432 </p> 433 <p> 434 <a tabindex="0" class="more-toggle" data-parent-distance="3">Hide&hellip;</a> 435 </p> 436 </div> 437 </div> 438 <div class="profile-condition-groups" id="profile-condition-groups"></div> 439 <div class="profile-condition-group-list-info"> 440 <div class="profile-condition-groups-empty-info"><em>No conditions set up.</em></div> 441 <div class="profile-condition-group-list-info-space"></div> 442 <button type="button" class="low-emphasis" id="profile-add-condition-group">Add Group</button> 443 </div> 444 </div> 445 <div class="modal-footer"> 446 <button type="button" data-modal-action="hide">Close</button> 447 </div> 448 </div></div> 449 450 <div id="profile-copy-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 451 <div class="modal-header"> 452 <div class="modal-title">Copy Profile</div> 453 <div class="modal-header-button-container"> 454 <div class="modal-header-button-group"> 455 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 456 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 457 </div> 458 </div> 459 </div> 460 <div class="modal-body"> 461 <p>Select which profile to copy options from:</p> 462 <select class="form-control" id="profile-copy-source-select"></select> 463 </div> 464 <div class="modal-footer"> 465 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 466 <button type="button" id="profile-copy-confirm-button">Copy Profile</button> 467 </div> 468 </div></div> 469 470 <div id="profile-reset-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 471 <div class="modal-header"><div class="modal-title">Confirm Profile Reset</div></div> 472 <div class="modal-body"> 473 <p> 474 Are you sure you want to reset the profile <em id="profile-reset-name"></em> to default? 475 </p> 476 </div> 477 <div class="modal-footer"> 478 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 479 <button type="button" class="danger" id="profile-reset-confirm-button">Reset Profile</button> 480 </div> 481 </div></div> 482 483 <div id="profile-remove-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 484 <div class="modal-header"><div class="modal-title">Confirm Profile Deletion</div></div> 485 <div class="modal-body"> 486 <p> 487 Are you sure you want to delete the profile <em id="profile-remove-name"></em>? 488 </p> 489 </div> 490 <div class="modal-footer"> 491 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 492 <button type="button" class="danger" id="profile-remove-confirm-button">Remove Profile</button> 493 </div> 494 </div></div> 495 496 <div id="collapsible-dictionaries-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 497 <div class="modal-header"> 498 <div class="modal-title">Collapsible Dictionaries</div> 499 <div class="modal-header-button-container"> 500 <div class="modal-header-button-group"> 501 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 502 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 503 </div> 504 </div> 505 </div> 506 <div class="modal-body-addon"> 507 <p> 508 Dictionary definitions can be collapsed if they exceed a certain line count, 509 which may be useful for dictionaries with long definitions. 510 The appearance can be customized using custom CSS. 511 <a tabindex="0" data-modal-action="show,collapsible-dictionaries-info">More&hellip;</a> 512 </p> 513 </div> 514 <div class="modal-body"> 515 <div id="collapsible-dictionary-list" class="collapsible-dictionary-list"></div> 516 </div> 517 <div class="modal-footer"> 518 <button type="button" data-modal-action="hide">Close</button> 519 </div> 520 </div></div> 521 522 <div id="collapsible-dictionaries-info-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 523 <div class="modal-header"> 524 <div class="modal-title">Collapsible Dictionary Info</div> 525 <div class="modal-header-button-container"> 526 <div class="modal-header-button-group"> 527 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 528 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 529 </div> 530 </div> 531 </div> 532 <div class="modal-body"> 533 <p> 534 Dictionary definitions can be collapsed if they exceed a certain line count, 535 which may be useful for dictionaries with long definitions. 536 There are five different modes: 537 </p> 538 <ul> 539 <li> 540 <strong>Not collapsible</strong> - 541 Definitions will not be collapsed. 542 </li> 543 <li> 544 <strong>Collapsed</strong> - 545 Definitions will show a collapse button if their size exceeds the max height, 546 and they will be collapsed by default. 547 </li> 548 <li> 549 <strong>Expanded</strong> - 550 Definitions will show a collapse button if their size exceeds the max height, 551 and they will be expanded by default. 552 </li> 553 <li> 554 <strong>Force collapsed</strong> - 555 Definitions will always show a collapse button, 556 and they will be collapsed by default. 557 </li> 558 <li> 559 <strong>Force expanded</strong> - 560 Definitions will always show a collapse button, 561 and they will be expanded by default. 562 </li> 563 </ul> 564 <p> 565 By default, the number of lines shown for a definition is 3. 566 This can be configured by adjusting the <a tabindex="0" data-modal-action="show,custom-css">custom CSS</a>; 567 the value can be a unitless integer or decimal number. 568 </p> 569 <div class="code margin-above">/* Globally set the line count */ 570:root { 571 --collapsible-definition-line-count: 2; 572} 573:root { 574 --collapsible-kanji-glyph-data-line-count: 2; 575} 576 577/* Set the line count for a specific dictionary */ 578.definition-item[data-dictionary='JMdict'] { 579 --collapsible-definition-line-count: 2; 580} 581.kanji-entry[data-dictionary='KANJIDIC'] { 582 --collapsible-kanji-glyph-data-line-count: 2; 583} 584 585/* Spoiler-like functionality, use with <em>Force collapsed</em> mode */ 586.definition-item[data-dictionary='JMdict'] .definition-item-inner.collapsible.collapsed { 587 color: #000000; 588 background-color: #000000; 589} 590.kanji-entry[data-dictionary='KANJIDIC'] .kanji-glyph-data.collapsible.collapsed { 591 color: #000000; 592 background-color: #000000; 593} 594 </div> 595 </div> 596 <div class="modal-footer"> 597 <button type="button" data-modal-action="hide">Close</button> 598 </div> 599 </div></div> 600 601 <!-- Custom CSS modal --> 602 <div id="custom-css-modal" class="modal modal-left" tabindex="-1" role="dialog" hidden> 603 <div class="modal-content-container"> 604 <div class="modal-content-dimmer"></div> 605 <div class="modal-content"> 606 <div class="modal-header"> 607 <div class="modal-title">Custom CSS</div> 608 <div class="modal-header-button-container"> 609 <div class="modal-header-button-group"> 610 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 611 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 612 </div> 613 </div> 614 </div> 615 616 <div class="modal-body custom-popup-css-container"> 617 <div class="custom-popup-css-header">Popup CSS</div> 618 <textarea class="no-wrap" autocomplete="off" spellcheck="false" id="custom-popup-css" data-setting="general.customPopupCss" data-tab-action="indent,4"></textarea> 619 <div class="custom-popup-css-header margin-above">Popup outer CSS</div> 620 <textarea class="no-wrap" autocomplete="off" spellcheck="false" id="custom-popup-outer-css" data-setting="general.customPopupOuterCss" data-tab-action="indent,4"></textarea> 621 </div> 622 <div class="modal-footer"> 623 <button type="button" data-modal-action="hide">Close</button> 624 </div> 625 </div> 626 </div> 627 </div> 628 629 <!-- Audio sources modal --> 630 <div id="audio-sources-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 631 <div class="modal-header"> 632 <div class="modal-title">Audio Sources</div> 633 <div class="modal-header-button-container"> 634 <div class="modal-header-button-group"> 635 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 636 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 637 </div> 638 </div> 639 </div> 640 <div class="modal-body"> 641 <div class="settings-item"> 642 <div class="settings-item-inner"> 643 <div class="settings-item-left"> 644 <div class="settings-item-label">Enable Default Audio Sources</div> 645 <div class="settings-item-description" id="default-audio-sources-settings-list"></div> 646 </div> 647 <div class="settings-item-right"> 648 <label class="toggle"><input type="checkbox" data-setting="audio.enableDefaultAudioSources"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 649 </div> 650 </div> 651 </div> 652 <div class="settings-item"> 653 <div class="settings-item-inner"> 654 <div class="settings-item-left"> 655 <div class="settings-item-label"> 656 When searching for audio, the sources are checked in order until the first 657 valid source is found. This allows for selecting a fallback source if the 658 first choice is not available. 659 </div> 660 </div> 661 </div> 662 <div class="settings-item-children"> 663 <div id="audio-source-list" class="generic-list"></div> 664 <div id="audio-source-list-empty"> 665 No audio sources enabled 666 </div> 667 </div> 668 </div> 669 </div> 670 <div class="modal-footer"> 671 <button type="button" id="audio-source-add" class="low-emphasis">Add</button> 672 <button type="button" data-modal-action="hide">Close</button> 673 </div> 674 </div></div> 675 676 <div id="audio-source-help-custom-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 677 <div class="modal-header"> 678 <div class="modal-title">Audio Source - Custom URL</div> 679 </div> 680 <div class="modal-body"> 681 <p> 682 A custom URL can be used to play audio from any URL.<br> 683 The replacement tags <code data-select-on-click="">{term}</code> and <code data-select-on-click="">{reading}</code> 684 can be used to specify which term and reading is being looked up.<br> 685 <code data-select-on-click="">{language}</code> is also available for sources that require an iso language string.<br> 686 </p> 687 <p> 688 Example:<br> 689 <a tabindex="0" data-select-on-click="">http://localhost/audio.mp3?term={term}&amp;reading={reading}</a> 690 </p> 691 </div> 692 <div class="modal-footer"> 693 <button type="button" data-modal-action="hide">Close</button> 694 </div> 695 </div></div> 696 697 <div id="audio-source-help-custom-json-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 698 <div class="modal-header"> 699 <div class="modal-title">Audio Source - Custom URL (JSON)</div> 700 </div> 701 <div class="modal-body"> 702 <p> 703 A custom URL to a JSON file which lists one or more audio URLs for a given term. 704 The format of the JSON file is described in <a href="/data/schemas/custom-audio-list-schema.json" target="_blank" rel="noopener noreferrer">this schema file</a>. 705 </p> 706 <p> 707 The replacement tags <code data-select-on-click="">{term}</code> and <code data-select-on-click="">{reading}</code> 708 can be used to specify which term and reading is being looked up.<br> 709 <code data-select-on-click="">{language}</code> is also available for sources that require an iso language string.<br> 710 </p> 711 <p> 712 Example:<br> 713 <a tabindex="0" data-select-on-click="">http://localhost/audio.json?term={term}&amp;reading={reading}</a> 714 </p> 715 </div> 716 <div class="modal-footer"> 717 <button type="button" data-modal-action="hide">Close</button> 718 </div> 719 </div></div> 720 721 <div id="audio-source-help-text-to-speech-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 722 <div class="modal-header"> 723 <div class="modal-title">Audio Source - Text-to-speech</div> 724 </div> 725 <div class="modal-body"> 726 <p> 727 A synthesized voice will speak the given text, using either the term text or the reading. 728 </p> 729 <p class="warning-text"> 730 ⚠️ Note: Audio generated with text-to-speech cannot be captured for use in Anki card creation. 731 </p> 732 <div class="horizontal-flex margin-above"> 733 <input type="text" value="よみたん" id="text-to-speech-voice-test-text" autocomplete="off" lang="ja"> 734 <button type="button" id="text-to-speech-voice-test">Test</button> 735 </div> 736 </div> 737 <div class="modal-footer"> 738 <button type="button" data-modal-action="hide">Close</button> 739 </div> 740 </div></div> 741 742 <div id="audio-source-move-location-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 743 <div class="modal-header"><div class="modal-title">Move Audio Source Options</div></div> 744 <div class="modal-body"> 745 <p>Input the location the audio source should be moved to:</p> 746 <div class="margin-above"> 747 <input type="number" id="audio-source-move-location" min="1" step="1"> 748 </div> 749 </div> 750 <div class="modal-footer"> 751 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 752 <button type="button" data-modal-action="hide" id="audio-source-move-button">Move</button> 753 </div> 754 </div></div> 755 756 757 <!-- Scanning inputs modal --> 758 <div id="scanning-inputs-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 759 <div class="modal-header"> 760 <div class="modal-title">Scanning Inputs</div> 761 <div class="modal-header-button-container"> 762 <div class="modal-header-button-group"> 763 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 764 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 765 </div> 766 </div> 767 </div> 768 <div class="modal-body"> 769 <div> 770 <p> 771 Scanning inputs are used to define when text scanning should occur. 772 <a tabindex="0" class="more-toggle more-only" data-parent-distance="2">More&hellip;</a> 773 </p> 774 <div class="margin-above more" hidden> 775 <p> 776 Text scanning is performed when a pointer is moved and certain inputs are either pressed or not pressed. 777 The <em>Required inputs</em> field is used to define which inputs <em>must</em> be pressed, and 778 the <em>Excluded inputs</em> field is used to define which inputs <em>must not</em> be pressed. 779 If the <em>Required inputs</em> field is empty, text will be scanned whenever the pointer is moved. 780 </p> 781 <p> 782 The <em>Input types</em> group is used to define which types of pointer input that the 783 keyboard and button inputs are applied to. 784 Supported pointer types include the mouse cursor, touchscreen touches, and pen devices. 785 When using the <em>Pen</em> option, the defined inputs will correspond to buttons on the pen device. 786 </p> 787 <p> 788 Some additional scanning and search options can be configured by clicking the menu button and selecting 789 <em>Show advanced options</em>. 790 </p> 791 <ul> 792 <li>To assign keyboard keys, select the input field and press modifier keys on the keyboard.</li> 793 <li>To assign mouse or pen buttons, click on the button with the mouse icon using the desired button.</li> 794 <li> 795 To clear inputs, select the input field and press the <em>Escape</em> button, 796 or use the <em>Clear inputs</em> menu option. 797 </li> 798 </ul> 799 <p><a tabindex="0" class="more-toggle" data-parent-distance="3">Less&hellip;</a></p> 800 </div> 801 </div> 802 <div class="scan-input-list generic-list margin-above" id="scan-input-list"></div> 803 <div class="warning-text margin-above generic-list-empty-indicator"> 804 No scanning inputs have been defined yet. 805 Click the <em>Add</em> button to add a new input. 806 </div> 807 </div> 808 <div class="modal-footer"> 809 <button type="button" class="low-emphasis" id="scan-input-add">Add</button> 810 <button type="button" data-modal-action="hide">Close</button> 811 </div> 812 </div></div> 813 814 815 <!-- Input action prevention modal --> 816 <div id="input-action-prevention-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 817 <div class="modal-header"><div class="modal-title">Input Action Prevention</div></div> 818 <div class="modal-body"> 819 <div> 820 Prevent secondary mouse button actions on: 821 <a tabindex="0" class="more-toggle more-only" data-parent-distance="2">(?)</a> 822 </div> 823 <div class="more" hidden> 824 <p> 825 This option is used to disable the default action of the secondary mouse buttons in different contexts. 826 This can be useful for preventing actions that the middle button and buttons 4 and 5 are typically 827 mapped to (scrolling and back/forward, respectively), which are otherwise difficult to disable inside 828 extension pages via other means. 829 </p> 830 <p> 831 <a tabindex="0" class="more-toggle" data-parent-distance="3">Less&hellip;</a> 832 </p> 833 </div> 834 <div class="input-prevention-option-list"> 835 Middle mouse button: 836 <label class="input-prevention-option-list-item"> 837 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventMiddleMouse.onTextHover"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 838 <span>Text Hover</span> 839 </label> 840 <label class="input-prevention-option-list-item"> 841 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventMiddleMouse.onWebPages"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 842 <span>Webpages</span> 843 </label> 844 <label class="input-prevention-option-list-item"> 845 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventMiddleMouse.onPopupPages"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 846 <span>Popups</span> 847 </label> 848 <label class="input-prevention-option-list-item"> 849 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventMiddleMouse.onSearchPages"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 850 <span>Search page</span> 851 </label> 852 <label class="input-prevention-option-list-item"> 853 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventMiddleMouse.onSearchQuery"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 854 <span>Search query</span> 855 </label> 856 </div> 857 <div class="input-prevention-option-list"> 858 Back/forward mouse buttons: 859 <label class="input-prevention-option-list-item"> 860 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventBackForward.onTextHover"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 861 <span>Text Hover</span> 862 </label> 863 <label class="input-prevention-option-list-item"> 864 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventBackForward.onWebPages"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 865 <span>Webpages</span> 866 </label> 867 <label class="input-prevention-option-list-item"> 868 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventBackForward.onPopupPages"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 869 <span>Popups</span> 870 </label> 871 <label class="input-prevention-option-list-item"> 872 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventBackForward.onSearchPages"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 873 <span>Search page</span> 874 </label> 875 <label class="input-prevention-option-list-item"> 876 <label class="checkbox"><input type="checkbox" data-setting="scanning.preventBackForward.onSearchQuery"><span class="checkbox-body"><span class="checkbox-fill"></span><span class="checkbox-border"></span><span class="checkbox-check"></span></span></label> 877 <span>Search query</span> 878 </label> 879 </div> 880 </div> 881 <div class="modal-footer"> 882 <button type="button" data-modal-action="hide">Close</button> 883 </div> 884 </div></div> 885 886 887 <!-- Anki cards modal --> 888 <div id="anki-cards-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-full"> 889 <div class="modal-header"> 890 <div class="modal-title">Anki Cards</div> 891 </div> 892 <div> 893 <div class="anki-card-tabs-container"> 894 <div class="tabs" id="anki-cards-tabs"></div> 895 <div id="anki-cards-new-format" class="advanced-only"> 896 <button type="button" class="icon-button"><span class="icon-button-inner"><span class="icon" data-icon="plus-thick"></span></span></button> 897 </div> 898 </div> 899 <div class="modal-separator-line"></div> 900 </div> 901 <div class="modal-body anki-card" id="anki-card-primary" data-card-format-index="0" data-anki-card-menu="anki-card-term-field-menu"> 902 <div class="settings-item advanced-only"><div class="settings-item-inner"> 903 <div class="settings-item-left"> 904 <div class="settings-item-label">Name</div> 905 </div> 906 <div class="settings-item-right"> 907 <input type="text" class="anki-card-name" data-setting="anki.cardFormats.[0].name"> 908 </div> 909 </div></div> 910 <div class="settings-item advanced-only"><div class="settings-item-inner"> 911 <div class="settings-item-left"> 912 <div class="settings-item-label">Dictionary Type</div> 913 </div> 914 <div class="settings-item-right"> 915 <select class="anki-card-type"> 916 <option value="term">Term</option> 917 <option value="kanji">Kanji</option> 918 </select> 919 </div> 920 </div></div> 921 <div class="settings-item advanced-only"><div class="settings-item-inner"> 922 <div class="settings-item-left"> 923 <div class="settings-item-label">Button</div> 924 </div> 925 <div class="settings-item-right"> 926 <select class="anki-card-icon select-icon icon color-icon" data-icon="big-circle"> 927 <option value="big-circle">Big Circle</option> 928 <option value="small-circle">Small Circle</option> 929 <option value="big-square">Square</option> 930 <option value="big-diamond">Diamond</option> 931 </select> 932 </div> 933 </div></div> 934 <div class="settings-item"><div class="settings-item-inner"> 935 <div class="settings-item-left"> 936 <div class="settings-item-label">Deck</div> 937 </div> 938 <div class="settings-item-right"> 939 <select class="anki-card-deck"></select> 940 </div> 941 </div></div> 942 <div class="settings-item"><div class="settings-item-inner"> 943 <div class="settings-item-left"> 944 <div class="settings-item-label">Model</div> 945 </div> 946 <div class="settings-item-right"> 947 <select class="anki-card-model"></select> 948 </div> 949 </div></div> 950 <hr> 951 <div class="anki-card-fields"> 952 <div class="anki-card-field-name-header" data-persistent="true">Field</div> 953 <div class="anki-card-field-input-header" data-persistent="true">Value</div> 954 <div class="anki-card-field-overwrite-header" data-persistent="true">Overwrite</div> 955 </div> 956 </div> 957 <div class="modal-footer"> 958 <button type="button" class="danger anki-card-delete-format-button advanced-only">Delete Format</button> 959 <button type="button" class="low-emphasis" data-modal-action="show,anki-cards-info">Help</button> 960 <button type="button" data-modal-action="hide">Close</button> 961 </div> 962 </div></div> 963 964 <div id="anki-cards-info-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-full"> 965 <div class="modal-header"> 966 <div class="modal-title">Anki Card Information</div> 967 <div class="modal-header-button-container"> 968 <div class="modal-header-button-group"> 969 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 970 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 971 </div> 972 </div> 973 </div> 974 <div class="modal-body"> 975 <p> 976 Anki card fields can be populated with information about a term or kanji character by using field markers. 977 When a card is being generated, field markers are replaced with information about the term or kanji by using the installed dictionaries. 978 Several preset markers are available, which are described below. 979 Markers can be customized by adjusting the <a tabindex="0" data-modal-action="show,anki-card-templates">Anki card templates</a>. 980 </p> 981 <p> 982 Anki requires the first field in a model to be unique for a card; 983 therefore, it is recommended to use <code class="anki-field-marker">{expression}</code> as the marker for the first field of term cards, 984 or <code class="anki-field-marker">{character}</code> for kanji cards. 985 </p> 986 <table class="anki-field-marker-info-table margin-above"> 987 <tbody> 988 <tr class="anki-field-marker-info-table-heading"> 989 <td>Marker (for terms)</td> 990 <td>Description</td> 991 </tr> 992 993 <tr> 994 <td><code class="anki-field-marker">{audio}</code></td> 995 <td>Audio of the term's pronunciation from one of the audio sources (if available).</td> 996 </tr> 997 <tr> 998 <td><code class="anki-field-marker">{cloze-body-kana}</code></td> 999 <td>Kana reading for <code class="anki-field-marker">{cloze-body}</code>.</td> 1000 </tr> 1001 <tr> 1002 <td><code class="anki-field-marker">{conjugation}</code></td> 1003 <td>Conjugation path from the raw inflected term to the source term.</td> 1004 </tr> 1005 <tr> 1006 <td><code class="anki-field-marker">{expression}</code></td> 1007 <td>Term expressed using kanji. If kanji expression is not available, kana is used.</td> 1008 </tr> 1009 <tr> 1010 <td><code class="anki-field-marker">{furigana}</code></td> 1011 <td> 1012 Term expressed as kanji with furigana displayed above it. 1013 Example: <ruby>日本語<rt>にほんご</rt></ruby>. 1014 </td> 1015 </tr> 1016 <tr> 1017 <td><code class="anki-field-marker">{furigana-plain}</code></td> 1018 <td> 1019 Term expressed as kanji with furigana displayed next to it in brackets. 1020 Example: 日本語[にほんご]. 1021 </td> 1022 </tr> 1023 <tr> 1024 <td><code class="anki-field-marker">{glossary}</code></td> 1025 <td>List of definitions for the term.</td> 1026 </tr> 1027 <tr> 1028 <td><code class="anki-field-marker">{glossary-brief}</code></td> 1029 <td>List of definitions for the term in a more compact format.</td> 1030 </tr> 1031 <tr> 1032 <td><code class="anki-field-marker">{glossary-no-dictionary}</code></td> 1033 <td>List of definitions for the term, except the dictionary tag is omitted.</td> 1034 </tr> 1035 <tr> 1036 <td><code class="anki-field-marker">{glossary-first}</code></td> 1037 <td>First definition for the term.</td> 1038 </tr> 1039 <tr> 1040 <td><code class="anki-field-marker">{glossary-plain}</code></td> 1041 <td>List of definitions for the term with html only used for line breaks. This may break the formatting of some dictionaries.</td> 1042 </tr> 1043 <tr> 1044 <td><code class="anki-field-marker">{glossary-plain-no-dictionary}</code></td> 1045 <td><code class="anki-field-marker">{glossary-plain}</code> except the dictionary tag is omitted.</td> 1046 </tr> 1047 <tr> 1048 <td><code class="anki-field-marker">{glossary-first-brief}</code></td> 1049 <td>First definition for the term in a more compact format.</td> 1050 </tr> 1051 <tr> 1052 <td><code class="anki-field-marker">{glossary-first-no-dictionary}</code></td> 1053 <td>First definition for the term, except the dictionary tag is omitted.</td> 1054 </tr> 1055 <tr> 1056 <td><code class="anki-field-marker">{part-of-speech}</code></td> 1057 <td>Part of speech information for the term.</td> 1058 </tr> 1059 <tr> 1060 <td><code class="anki-field-marker">{phonetic-transcriptions}</code></td> 1061 <td>List of phonetic transcriptions for the term.</td> 1062 </tr> 1063 <tr> 1064 <td><code class="anki-field-marker">{pitch-accents}</code></td> 1065 <td>List of pitch accent downstep notations for the term.</td> 1066 </tr> 1067 <tr> 1068 <td><code class="anki-field-marker">{pitch-accent-graphs}</code></td> 1069 <td>List of pitch accent graphs for the term.</td> 1070 </tr> 1071 <tr> 1072 <td><code class="anki-field-marker">{pitch-accent-graphs-jj}</code></td> 1073 <td>List of pitch accent graphs for the term (styled after Jidoujisho).</td> 1074 </tr> 1075 <tr> 1076 <td><code class="anki-field-marker">{pitch-accent-positions}</code></td> 1077 <td>List of accent downstep positions for the term as a number.</td> 1078 </tr> 1079 <tr> 1080 <td><code class="anki-field-marker">{pitch-accent-categories}</code></td> 1081 <td>List of pitch accent categories for the term (e.g. heiban, kifuku, atamadaka, odaka, nakadaka).</td> 1082 </tr> 1083 <tr> 1084 <td><code class="anki-field-marker">{reading}</code></td> 1085 <td>Kana reading for the term, or empty for terms where the expression is the reading.</td> 1086 </tr> 1087 <tr> 1088 <td><code class="anki-field-marker">{single-glossary-DICT-NAME}</code></td> 1089 <td> 1090 Same as <code class="anki-field-marker">{glossary}</code>, but with entries from only a single dictionary. 1091 The dictionary name will likely be modified, use the options from the ▼ dropdown. 1092 </td> 1093 </tr> 1094 <tr> 1095 <td><code class="anki-field-marker">{single-glossary-DICT-NAME-brief}</code></td> 1096 <td> 1097 See <code class="anki-field-marker">{single-glossary-DICT-NAME}</code> and <code class="anki-field-marker">{glossary-brief}</code>. 1098 </td> 1099 </tr> 1100 <tr> 1101 <td><code class="anki-field-marker">{single-glossary-DICT-NAME-no-dictionary}</code></td> 1102 <td> 1103 See <code class="anki-field-marker">{single-glossary-DICT-NAME}</code> and <code class="anki-field-marker">{glossary-no-dictionary}</code>. 1104 </td> 1105 </tr> 1106 <tr> 1107 <td><code class="anki-field-marker">{single-glossary-DICT-NAME-plain}</code></td> 1108 <td> 1109 See <code class="anki-field-marker">{single-glossary-DICT-NAME}</code> and <code class="anki-field-marker">{glossary-plain}</code>. 1110 </td> 1111 </tr> 1112 <tr> 1113 <td><code class="anki-field-marker">{single-glossary-DICT-NAME-plain-no-dictionary}</code></td> 1114 <td> 1115 See <code class="anki-field-marker">{single-glossary-DICT-NAME}</code> and <code class="anki-field-marker">{glossary-plain-no-dictionary}</code>. 1116 </td> 1117 </tr> 1118 <tr> 1119 <td><code class="anki-field-marker">{tags}</code></td> 1120 <td>Grammar and usage tags providing information about the term.</td> 1121 </tr> 1122 1123 <tr class="anki-field-marker-info-table-heading"> 1124 <td>Marker (for kanji)</td> 1125 <td>Description</td> 1126 </tr> 1127 1128 <tr> 1129 <td><code class="anki-field-marker">{character}</code></td> 1130 <td>Unicode glyph representing the current kanji.</td> 1131 </tr> 1132 <tr> 1133 <td><code class="anki-field-marker">{glossary}</code></td> 1134 <td>List of definitions for the kanji.</td> 1135 </tr> 1136 <tr> 1137 <td><code class="anki-field-marker">{kunyomi}</code></td> 1138 <td>Kunyomi (Japanese reading) for the kanji, expressed as hiragana.</td> 1139 </tr> 1140 <tr> 1141 <td><code class="anki-field-marker">{onyomi}</code></td> 1142 <td>Onyomi (Chinese reading) for the kanji, expressed as katakana.</td> 1143 </tr> 1144 <tr> 1145 <td><code class="anki-field-marker">{onyomi-hiragana}</code></td> 1146 <td>Onyomi (Chinese reading) for the kanji, expressed as hiragana.</td> 1147 </tr> 1148 <tr> 1149 <td><code class="anki-field-marker">{stroke-count}</code></td> 1150 <td>Number of strokes that the kanji character has.</td> 1151 </tr> 1152 1153 <tr class="anki-field-marker-info-table-heading"> 1154 <td>Marker (for both)</td> 1155 <td>Description</td> 1156 </tr> 1157 1158 <tr> 1159 <td><code class="anki-field-marker">{clipboard-image}</code></td> 1160 <td>An image which is stored in the system clipboard, if available.</td> 1161 </tr> 1162 <tr> 1163 <td><code class="anki-field-marker">{clipboard-text}</code></td> 1164 <td>Text which is stored in the system clipboard, if available.</td> 1165 </tr> 1166 <tr> 1167 <td><code class="anki-field-marker">{cloze-body}</code></td> 1168 <td>Original inflected term as it appeared before being reduced to dictionary form by Yomitan.</td> 1169 </tr> 1170 <tr> 1171 <td><code class="anki-field-marker">{cloze-prefix}</code></td> 1172 <td>Fragment of the containing <code class="anki-field-marker">{sentence}</code> starting at the beginning of <code class="anki-field-marker">{sentence}</code> until the beginning of <code class="anki-field-marker">{cloze-body}</code>.</td> 1173 </tr> 1174 <tr> 1175 <td><code class="anki-field-marker">{cloze-suffix}</code></td> 1176 <td>Fragment of the containing <code class="anki-field-marker">{sentence}</code> starting at the end of <code class="anki-field-marker">{cloze-body}</code> until the end of <code class="anki-field-marker">{sentence}</code>.</td> 1177 </tr> 1178 <tr> 1179 <td><code class="anki-field-marker">{dictionary}</code></td> 1180 <td>Original name of the dictionary from which the card is being created.</td> 1181 </tr> 1182 <tr> 1183 <td><code class="anki-field-marker">{dictionary-alias}</code></td> 1184 <td>Display name of the dictionary from which the card is being created.</td> 1185 </tr> 1186 <tr> 1187 <td><code class="anki-field-marker">{document-title}</code></td> 1188 <td>Title of the web page that the term or kanji appeared in.</td> 1189 </tr> 1190 <tr> 1191 <td><code class="anki-field-marker">{frequencies}</code></td> 1192 <td> 1193 Frequency information for the term or kanji. 1194 </td> 1195 </tr> 1196 <tr> 1197 <td><code class="anki-field-marker">{frequency-harmonic-rank}</code></td> 1198 <td> 1199 The harmonic mean of frequency data for the current term or kanji.<br> 1200 Defaults to rank 9999999 when frequency data is not found, indicating extremely low rank-based term or kanji usage. 1201 </td> 1202 </tr> 1203 <tr> 1204 <td><code class="anki-field-marker">{frequency-harmonic-occurrence}</code></td> 1205 <td> 1206 The harmonic mean of frequency data for the current term or kanji.<br> 1207 Defaults to 0 occurrences when frequency data is not found, the lowest possible occurrence-based term or kanji usage. 1208 </td> 1209 </tr> 1210 <tr> 1211 <td><code class="anki-field-marker">{frequency-average-rank}</code></td> 1212 <td> 1213 The average of frequency data for the current term or kanji.<br> 1214 Defaults to rank 9999999 when frequency data is not found, indicating extremely low rank-based term or kanji usage. 1215 </td> 1216 </tr> 1217 <tr> 1218 <td><code class="anki-field-marker">{frequency-average-occurrence}</code></td> 1219 <td> 1220 The average of frequency data for the current term or kanji.<br> 1221 Defaults to 0 occurrences when frequency data is not found, the lowest possible occurrence-based term or kanji usage. 1222 </td> 1223 </tr> 1224 <tr> 1225 <td><code class="anki-field-marker">{single-frequency-DICT-NAME}</code></td> 1226 <td>All frequencies from the selected dictionary put in a list.</td> 1227 </tr> 1228 <tr> 1229 <td><code class="anki-field-marker">{single-frequency-number-DICT-NAME}</code></td> 1230 <td>A single frequency number from the selected dictionary with no formatting data.</td> 1231 </tr> 1232 <tr> 1233 <td><code class="anki-field-marker">{screenshot}</code></td> 1234 <td>Screenshot of the web page taken at the time the term or kanji was added.</td> 1235 </tr> 1236 <tr> 1237 <td><code class="anki-field-marker">{search-query}</code></td> 1238 <td>The full search query shown on the search page.</td> 1239 </tr> 1240 <tr> 1241 <td><code class="anki-field-marker">{popup-selection-text}</code></td> 1242 <td>The selected text on the search page or popup.</td> 1243 </tr> 1244 <tr> 1245 <td><code class="anki-field-marker">{sentence}</code></td> 1246 <td>Sentence, quote, or phrase that the term or kanji appears in from the source content.</td> 1247 </tr> 1248 <tr> 1249 <td><code class="anki-field-marker">{sentence-furigana}</code></td> 1250 <td>Sentence, quote, or phrase that the term or kanji appears in from the source content, with furigana added.</td> 1251 </tr> 1252 <tr> 1253 <td><code class="anki-field-marker">{sentence-furigana-plain}</code></td> 1254 <td>Sentence, quote, or phrase that the term or kanji appears in from the source content, with furigana added in brackets.</td> 1255 </tr> 1256 <tr> 1257 <td><code class="anki-field-marker">{url}</code></td> 1258 <td>Address of the web page in which the term or kanji appeared in.</td> 1259 </tr> 1260 </tbody> 1261 </table> 1262 </div> 1263 <div class="modal-footer"> 1264 <button type="button" data-modal-action="hide">Close</button> 1265 </div> 1266 </div></div> 1267 1268 <div id="anki-card-format-remove-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1269 <div class="modal-header"><div class="modal-title">Confirm Card Format Deletion</div></div> 1270 <div class="modal-body"> 1271 <p>Are you sure you want to delete the <em id="anki-card-format-remove-name"></em> card format?</p> 1272 </div> 1273 <div class="modal-footer"> 1274 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 1275 <button type="button" class="danger" id="anki-card-format-remove-confirm-button">Delete Format</button> 1276 </div> 1277 </div></div> 1278 1279 <div id="anki-add-card-format-maximum-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1280 <div class="modal-header"><div class="modal-title">Maximum Card Formats Reached</div></div> 1281 <div class="modal-body"> 1282 <p>The number of card formats is limited to 5.</p> 1283 </div> 1284 <div class="modal-footer"> 1285 <button type="button" class="low-emphasis" data-modal-action="hide">Close</button> 1286 </div> 1287 </div></div> 1288 1289 1290 1291 1292 <!-- Anki field template modals --> 1293 <div id="anki-card-templates-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-full"> 1294 <div class="modal-header"><div class="modal-title">Anki Card Templates</div></div> 1295 <div class="modal-body anki-card-templates-layout"> 1296 <div class="anki-card-templates-info"> 1297 <p> 1298 Anki card fields are formatted using the <a href="https://handlebarsjs.com/" target="_blank" rel="noopener noreferrer">Handlebars.js</a> 1299 template rendering engine. 1300 Advanced users can modify these templates for full control over what information is included in Anki cards. 1301 </p> 1302 <p> 1303 Consider copy-pasting the source into a code editor that supports syntax highlighting for easier editing. 1304 </p> 1305 </div> 1306 <textarea autocomplete="off" spellcheck="false" id="anki-card-templates-textarea" class="no-wrap margin-above" data-tab-action="indent,4"></textarea> 1307 <div id="anki-card-templates-compile-result" class="code danger-text margin-above" hidden></div> 1308 <div class="anki-card-templates-test-container margin-above"> 1309 <p> 1310 Card templates can be tested using the inputs below. 1311 </p> 1312 <div class="anki-card-templates-test-table margin-above"> 1313 <div class="anki-card-templates-test-table-header">Scanned text</div> 1314 <div class="anki-card-templates-test-table-header">Card field</div> 1315 <div></div> 1316 <input type="text" id="anki-card-templates-test-text-input" class="form-control" value="読め" placeholder="Preview text" autocomplete="off" lang="ja"> 1317 <div class="anki-card-templates-test-input-container input-group"> 1318 <input type="text" id="anki-card-templates-test-field-input" value="{expression}" placeholder="{marker}" autocomplete="off" spellcheck="false"> 1319 <button type="button" class="input-suffix input-suffix-icon-button light-icon" id="anki-card-templates-test-field-menu-button" data-menu="anki-card-all-field-menu" data-menu-position="below left"><span class="icon" data-icon="material-down-arrow"></span></button> 1320 </div> 1321 <button type="button" id="anki-card-templates-test-render-button">Test</button> 1322 </div> 1323 </div> 1324 <div class="code margin-above" id="anki-card-templates-render-result"><em>Card render result</em></div> 1325 </div> 1326 <div class="modal-footer"> 1327 <button type="button" class="danger" id="anki-card-templates-reset-button">Reset Templates</button> 1328 <button type="button" data-modal-action="hide">Close</button> 1329 </div> 1330 </div></div> 1331 1332 <div id="anki-card-templates-reset-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1333 <div class="modal-header"><div class="modal-title">Reset Anki Card Templates</div></div> 1334 <div class="modal-body"> 1335 <p class="danger-text"> 1336 Are you sure you want to reset the card templates to their default value? 1337 Any changes you made will be lost. 1338 </p> 1339 </div> 1340 <div class="modal-footer"> 1341 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 1342 <button type="button" class="danger" id="anki-card-templates-reset-button-confirm">Reset Templates</button> 1343 </div> 1344 </div></div> 1345 1346 <!-- Generate anki deck modal --> 1347 <div id="generate-anki-notes-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-full"> 1348 <div class="modal-header"><div class="modal-title">Anki Note Generator</div></div> 1349 <div class="modal-body generate-anki-notes-layout"> 1350 <div class="generate-anki-notes-info"> 1351 <p class="warning-text"> 1352 WARNING: This feature is experimental! 1353 </p> 1354 <p> 1355 Enter a newline separated list of terms below to send notes directly to an Anki deck or export to an Anki deck file in <code>Notes in plain text (.txt)</code> format. 1356 </p> 1357 <p> 1358 For more information check the <a href="https://yomitan.wiki/anki/#anki-note-generation">documentation</a>. 1359 </p> 1360 </div> 1361 <textarea autocomplete="off" spellcheck="false" id="generate-anki-notes-textarea" class="no-wrap margin-above" data-tab-action="indent,4"></textarea> 1362 <div class="generate-anki-notes-test-container margin-above"> 1363 <div id="generate-anki-notes-buttons-wrapper"> 1364 <div> 1365 <div>Active Anki Flashcard Format: <select id="generate-anki-flashcard-format"></select></div> 1366 <div>Active Anki deck: <code id="generate-anki-notes-active-deck"></code></div> 1367 <div>Active Anki model: <code id="generate-anki-notes-active-model"></code></div> 1368 </div> 1369 <div> 1370 <button type="button" class="low-emphasis" id="generate-anki-notes-parse-button" title="Split text into a newline separated list of words">Parse Words</button> 1371 <button type="button" class="low-emphasis" id="generate-anki-notes-dedupe-button" title="Remove duplicate lines">Dedupe Words</button> 1372 </div> 1373 </div> 1374 <div class="generate-anki-notes-test-table margin-above"> 1375 <div class="generate-anki-notes-test-table-header">Test word</div> 1376 <div></div> 1377 <input type="text" id="generate-anki-notes-test-text-input" class="form-control" value="読め" placeholder="Preview text" autocomplete="off" lang="ja"> 1378 <button type="button" id="generate-anki-notes-test-render-button">Preview Card</button> 1379 </div> 1380 </div> 1381 <div class="code margin-above" id="generate-anki-notes-render-result"><em>Card render result</em></div> 1382 </div> 1383 <div class="modal-footer"> 1384 <button type="button" class="low-emphasis" id="generate-anki-notes-send-to-anki-button">Send to Anki</button> 1385 <button type="button" class="low-emphasis" id="generate-anki-notes-export-button">Export to File</button> 1386 <button type="button" data-modal-action="hide">Close</button> 1387 </div> 1388 </div></div> 1389 1390 <div id="generate-anki-notes-send-to-anki-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1391 <div class="modal-header"><div class="modal-title">Send Notes to Anki</div></div> 1392 <div class="modal-body"> 1393 <p> 1394 Are you sure you want to send <strong id="generate-anki-notes-send-wordcount"></strong> terms to <code id="generate-anki-notes-active-deck-confirm"></code>? This action cannot be undone. 1395 </p> 1396 <div class="settings-item margin-above"><div class="settings-item-inner"> 1397 <div class="settings-item-left"> 1398 <div class="settings-item-label"> 1399 Add media to notes 1400 </div> 1401 <div class="settings-item-description"> 1402 Adding media increases processing time. 1403 </div> 1404 </div> 1405 <div class="settings-item-right"> 1406 <label class="toggle"><input type="checkbox" id="generate-anki-notes-add-media"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 1407 </div> 1408 </div></div> 1409 <div class="settings-item margin-above"><div class="settings-item-inner"> 1410 <div class="settings-item-left"> 1411 <div class="settings-item-label"> 1412 Prevent sending duplicate notes 1413 </div> 1414 <div class="settings-item-description"> 1415 Checking for duplicates increases processing time. 1416 </div> 1417 </div> 1418 <div class="settings-item-right"> 1419 <label class="toggle"><input type="checkbox" id="generate-anki-notes-disallow-duplicates"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 1420 </div> 1421 </div></div> 1422 </div> 1423 <div class="modal-body-addon generate-anki-notes-progress" hidden> 1424 <div class="progress-labels"><div class="progress-info"></div><div class="progress-status"></div></div> 1425 <div class="progress-bar-track"><div class="progress-bar"></div></div> 1426 </div> 1427 <div class="modal-footer"> 1428 <button type="button" class="low-emphasis" data-modal-action="hide" id="generate-anki-notes-send-to-anki-cancel-button">Cancel</button> 1429 <button type="button" class="danger" id="generate-anki-notes-send-button-confirm">Send to Anki</button> 1430 </div> 1431 </div></div> 1432 1433 <div id="generate-anki-notes-export-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1434 <div class="modal-header"><div class="modal-title">Export Notes to File</div></div> 1435 <div class="modal-body"> 1436 <p> 1437 Are you sure you want to export <strong id="generate-anki-notes-export-wordcount"></strong> terms to <code>Notes in plain text (.txt)</code> format? 1438 </p> 1439 </div> 1440 <div class="modal-body-addon generate-anki-notes-progress" hidden> 1441 <div class="progress-labels"><div class="progress-info"></div><div class="progress-status"></div></div> 1442 <div class="progress-bar-track"><div class="progress-bar"></div></div> 1443 </div> 1444 <div class="modal-footer"> 1445 <button type="button" class="low-emphasis" data-modal-action="hide" id="generate-anki-notes-export-cancel-button">Cancel</button> 1446 <button type="button" class="danger" id="generate-anki-notes-export-button-confirm">Export to File</button> 1447 </div> 1448 </div></div> 1449 1450 1451 <!-- Import/export modals --> 1452 <div id="settings-import-error-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1453 <div class="modal-header"><div class="modal-title">Import Error</div></div> 1454 <div class="modal-body"> 1455 <p>An error occurred while trying to import the settings file:</p> 1456 <p class="danger-text" id="settings-import-error-message"></p> 1457 <p>Additional info can be found in the developer console.</p> 1458 </div> 1459 <div class="modal-footer"> 1460 <button type="button" class="low-emphasis" data-modal-action="hide">Close</button> 1461 </div> 1462 </div></div> 1463 1464 <div id="settings-import-warning-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1465 <div class="modal-header"><div class="modal-title">Import Security Warning</div></div> 1466 <div class="modal-body"> 1467 <p> 1468 Settings file contains settings which may pose a security risk. 1469 Only import settings from sources you trust. 1470 </p> 1471 <ul class="danger-text" id="settings-import-warning-message"></ul> 1472 </div> 1473 <div class="modal-footer"> 1474 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 1475 <button type="button" class="danger settings-import-warning-import-button">Import</button> 1476 <button type="button" class="settings-import-warning-import-button" data-import-sanitize="true">Sanitize and Import</button> 1477 </div> 1478 </div></div> 1479 1480 <div id="settings-reset-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1481 <div class="modal-header"><div class="modal-title">Reset Settings</div></div> 1482 <div class="modal-body"> 1483 <p class="danger-text"> 1484 You are about to reset all Yomitan settings back to their default values. 1485 This will delete all custom profiles you may have created. 1486 <strong>This action cannot be undone.</strong> 1487 </p> 1488 <p> 1489 Consider making a backup using the <em>Export Settings</em> button before resetting 1490 if you want to be able to revert. 1491 </p> 1492 <p> 1493 Dictionary data will not be deleted, but any installed dictionaries 1494 will need to be re-enabled. 1495 </p> 1496 </div> 1497 <div class="modal-footer"> 1498 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 1499 <button type="button" class="danger" id="settings-reset-confirm-button">Reset All Settings</button> 1500 </div> 1501 </div></div> 1502 1503 1504 <!-- Translation modals --> 1505 <div id="translation-text-replacement-patterns-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 1506 <div class="modal-header"> 1507 <div class="modal-title">Custom Text Replacement Patterns</div> 1508 <div class="modal-header-button-container"> 1509 <div class="modal-header-button-group"> 1510 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 1511 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 1512 </div> 1513 </div> 1514 </div> 1515 <div class="modal-body"> 1516 <div class="settings-item"><div class="settings-item-inner"><div class="settings-item-left"><div class="settings-item-label"> 1517 Text replacement patterns are used to modify or remove text that matches certain patterns. 1518 Patterns are defined using 1519 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions" target="_blank" rel="noreferrer noopener">regular expression syntax</a>, 1520 and the replacement text can use certain 1521 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter" target="_blank" rel="noreferrer noopener">special replacement patterns</a>. 1522 </div></div></div></div> 1523 <div class="settings-item"><div class="settings-item-inner"> 1524 <div class="settings-item-left"> 1525 <div class="settings-item-label"> 1526 Search original text 1527 </div> 1528 <div class="settings-item-description"> 1529 The original unmodified text will also be searched for definitions. 1530 </div> 1531 </div> 1532 <div class="settings-item-right"> 1533 <label class="toggle"><input type="checkbox" data-setting="translation.textReplacements.searchOriginal"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> 1534 </div> 1535 </div></div> 1536 <div class="settings-item"> 1537 <div class="settings-item-inner"> 1538 <div class="settings-item-left"> 1539 <div class="settings-item-label">Text replacement patterns</div> 1540 </div> 1541 </div> 1542 <div class="settings-item-children"> 1543 <div id="translation-text-replacement-list" class="generic-list"></div> 1544 <div class="generic-list-empty-indicator"><em>None defined</em></div> 1545 </div> 1546 </div> 1547 </div> 1548 <div class="modal-footer"> 1549 <button type="button" id="translation-text-replacement-add" class="low-emphasis">Add</button> 1550 <button type="button" data-modal-action="hide">Close</button> 1551 </div> 1552 </div></div> 1553 1554 1555 <!-- Sentence parsing modal --> 1556 <div id="sentence-termination-characters-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 1557 <div class="modal-header"> 1558 <div class="modal-title">Sentence Termination Characters</div> 1559 <div class="modal-header-button-container"> 1560 <div class="modal-header-button-group"> 1561 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 1562 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 1563 </div> 1564 </div> 1565 </div> 1566 <div class="modal-body"> 1567 <p> 1568 Sentences are terminated by punctuation and quotation marks, which can both be configured below. 1569 </p> 1570 <table class="sentence-termination-character-list-table" id="sentence-termination-character-list-table" hidden> 1571 <thead><tr> 1572 <td>#</td> 1573 <td>Enabled</td> 1574 <td>Type</td> 1575 <td>Character 1</td> 1576 <td>Character 2</td> 1577 <td>Include character in sentence</td> 1578 <td></td> 1579 </tr></thead> 1580 <tbody class="sentence-termination-character-list generic-list" id="sentence-termination-character-list"></tbody> 1581 </table> 1582 <div id="sentence-termination-character-list-empty" hidden> 1583 No terminators defined. 1584 </div> 1585 </div> 1586 <div class="modal-footer"> 1587 <button type="button" class="low-emphasis danger" id="sentence-termination-character-list-reset">Reset</button> 1588 <button type="button" class="low-emphasis" id="sentence-termination-character-list-add">Add</button> 1589 <button type="button" data-modal-action="hide">Close</button> 1590 </div> 1591 </div></div> 1592 1593 1594 <!-- Keyboard shortcuts modal --> 1595 <div id="keyboard-shortcuts-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-full"> 1596 <div class="modal-header"> 1597 <div class="modal-title">Keyboard Shortcuts</div> 1598 <div class="modal-header-button-container"> 1599 <div class="modal-header-button-group"> 1600 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 1601 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 1602 </div> 1603 </div> 1604 </div> 1605 <div class="modal-body"> 1606 <div class="hotkey-list generic-list" id="hotkey-list"></div> 1607 <div class="hotkey-list-empty" id="hotkey-list-empty" hidden> 1608 No keyboard shortcuts defined. 1609 </div> 1610 </div> 1611 <div class="modal-footer"> 1612 <button type="button" class="low-emphasis danger" data-modal-action="show,keyboard-shortcuts-reset">Reset</button> 1613 <button type="button" class="low-emphasis" id="hotkey-list-add">Add</button> 1614 <button type="button" data-modal-action="hide">Close</button> 1615 </div> 1616 </div></div> 1617 1618 <div id="extension-keyboard-shortcuts-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content"> 1619 <div class="modal-header"> 1620 <div class="modal-title">Native Keyboard Shortcuts</div> 1621 <div class="modal-header-button-container"> 1622 <div class="modal-header-button-group"> 1623 <button type="button" class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> 1624 <button type="button" class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> 1625 </div> 1626 </div> 1627 </div> 1628 <div class="modal-body"> 1629 <div> 1630 <p data-show-for-browser="chrome edge"> 1631 The native keyboard shortcuts are listed below, 1632 but cannot be configured from within the extension on this browser. 1633 To configure these shortcuts: 1634 </p> 1635 1636 <p data-show-for-browser="firefox"> 1637 The native keyboard shortcuts can be configured below on this browser, 1638 or by doing the following: 1639 </p> 1640 1641 <ul data-show-for-browser="chrome"> 1642 <li>Open <a tabindex="0" data-special-url="chrome://extensions/shortcuts">chrome://extensions/shortcuts</a> in a new tab.</li> 1643 <li>Find the <em>Yomitan</em> section and configure the shortcuts.</li> 1644 </ul> 1645 1646 <ul data-show-for-browser="edge"> 1647 <li>Open <a tabindex="0" data-special-url="edge://extensions/shortcuts">edge://extensions/shortcuts</a> in a new tab.</li> 1648 <li>Find the <em>Yomitan</em> section and configure the shortcuts.</li> 1649 </ul> 1650 1651 <ul data-show-for-browser="firefox"> 1652 <li>Open the extensions page (<a tabindex="0" data-select-on-click="">about:addons</a>)</li> 1653 <li>Click the button on the right with the gear icon, then click <em>Manage Extension Shortcuts</em>.</li> 1654 <li>Find the <em>Yomitan</em> section and configure the shortcuts.</li> 1655 </ul> 1656 </div> 1657 <div class="modal-separator-line"></div> 1658 <div class="modal-settings-group" id="extension-hotkey-list"></div> 1659 </div> 1660 <div class="modal-footer"> 1661 <button type="button" class="low-emphasis danger" id="extension-hotkey-list-reset-all">Reset All</button> 1662 <button type="button" class="low-emphasis danger" id="extension-hotkey-list-clear-all">Clear All</button> 1663 <button type="button" data-modal-action="hide">Close</button> 1664 </div> 1665 </div></div> 1666 1667 <div id="keyboard-shortcuts-reset-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small"> 1668 <div class="modal-header"><div class="modal-title">Confirm Keyboard Shortcuts Reset</div></div> 1669 <div class="modal-body"> 1670 Are you sure you want to reset all keyboard shortcuts to their defaults? 1671 </div> 1672 <div class="modal-footer"> 1673 <button type="button" class="low-emphasis" data-modal-action="hide">Cancel</button> 1674 <button type="button" class="danger" id="hotkey-list-reset" data-modal-action="hide">Reset All</button> 1675 </div> 1676 </div></div> 1677 1678 <!-- Firefox Data Transmission Consent --> 1679 <div id="firefox-data-transmission-consent-modal" data-show-for-browser="firefox firefox-mobile" class="modal force-interact" tabindex="-1" role="dialog" hidden><div class="modal-content"> 1680 <div class="modal-header"><div class="modal-title">Data Transmission Consent</div></div> 1681 <div class="modal-body"> 1682 <p>To comply with <a href="https://extensionworkshop.com/documentation/publish/add-on-policies/">Firefox Add-On Policies</a>, Yomitan is required to get your verification that you are comfortable with any default data transmission the extension does.</p> 1683 <p>Yomitan does very little data transmission, as Yomitan data is stored locally on your device. Yomitan does not sell or externally collect any user data.</p> 1684 <p><b>The only place data transmission is done by default is when the audio icon in the Yomitan popup is clicked to play the audio for a term; in this case a request will be sent to the audio provider configured in your settings.</b></p> 1685 <p>This request may contain the term, reading, and/or language for the given dictionary entry term. <b>Personally identifying information is never sent.</b></p> 1686 <p>Full details on Yomitan's use of data transmission are provided in the <a href="https://addons.mozilla.org/en-US/firefox/addon/yomitan/privacy/">Yomitan Privacy Policy</a>.</p> </div> 1687 <div class="modal-footer modal-footer-spaced"> 1688 <button type="button" class="danger low-emphasis" data-modal-action="hide" id="decline-data-transmission">Decline data transmission<br>(disable audio playback)</button> 1689 <button type="button" class="low-emphasis" data-modal-action="hide" id="accept-data-transmission">Agree to data transmission<br>(enable audio playback)</button> 1690 </div> 1691 </div></div> 1692</template> 1693 1694</body></html>