Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
deploy: ee56236
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Mar 29, 2024
1 parent 35af2c5 commit 152113e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file added assets/usage/languages/dicts_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/usage/languages/dicts_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -799,14 +799,14 @@ <h2 id="on-windows-with-pip"><a class="header" href="#on-windows-with-pip">On Wi
<p>Then add dictionaries, and you're pretty much set.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="dictionaries"><a class="header" href="#dictionaries">Dictionaries</a></h1>
<p>You can add multiple dictionaries for Term and Sentence lookups as part of your Language definition.</p>
<img width="100%" alt="Dictionaries" src="https://github.com/jzohrab/lute-manual/assets/1637133/10f66f09-bbb5-412d-abf6-8f0a4abc32d5">
<img width="100%" alt="Dictionaries" src="usage/languages/../../assets/usage/languages/dicts_01.png">
<p>Term dictionaries are shown as tabs in the term form.</p>
<p>Sentence dictionaries are used during sentence translation, when you hover over a term and hit the <code>t</code> hotkey. If you have multiple Sentence dictionaries, you can cycle through them by repeatedly hitting <code>t</code> (or <code>Shift + t</code> for the paragraph).</p>
<h2 id="embedded-or-popup"><a class="header" href="#embedded-or-popup">Embedded or Popup</a></h2>
<p>Dictionaries can either be configured to be "Embedded" or "Pop-up".</p>
<p>Some sites, like DeepL and Google Translate, don't work when embedded within sites. These sites have to be viewed in separate pop-up windows, outside of Lute itself.</p>
<p>You can test a dictionary by clicking the small "out arrow" icon next to the dictionary. For example, here I've tried to set DeepL.com as an embedded dictionary, which they don't allow:</p>
<img width="100%" alt="image" src="https://github.com/jzohrab/lute-manual/assets/1637133/48271adc-526f-420d-91f8-b1ff06ea92f7">
<img width="100%" alt="image" src="usage/languages/../../assets/usage/languages/dicts_02.png">
<h2 id="the-dictionary-url"><a class="header" href="#the-dictionary-url">The dictionary URL</a></h2>
<p>The dictionary link entry on the form must contain "###". Lute substitutes that with the actual term you're looking up.</p>
<p>Some dictionaries don't take parameters at all. For example, <code>https://www.cherokeedictionary.net/###</code> gives an error. In these cases, add a fake parameter, e.g. <code>https://www.cherokeedictionary.net?lute=###</code>.[^linkhack]</p>
Expand Down
4 changes: 2 additions & 2 deletions usage/languages/dictionaries.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ <h1 class="menu-title">Lute manual</h1>
<main>
<h1 id="dictionaries"><a class="header" href="#dictionaries">Dictionaries</a></h1>
<p>You can add multiple dictionaries for Term and Sentence lookups as part of your Language definition.</p>
<img width="100%" alt="Dictionaries" src="https://github.com/jzohrab/lute-manual/assets/1637133/10f66f09-bbb5-412d-abf6-8f0a4abc32d5">
<img width="100%" alt="Dictionaries" src="../../assets/usage/languages/dicts_01.png">
<p>Term dictionaries are shown as tabs in the term form.</p>
<p>Sentence dictionaries are used during sentence translation, when you hover over a term and hit the <code>t</code> hotkey. If you have multiple Sentence dictionaries, you can cycle through them by repeatedly hitting <code>t</code> (or <code>Shift + t</code> for the paragraph).</p>
<h2 id="embedded-or-popup"><a class="header" href="#embedded-or-popup">Embedded or Popup</a></h2>
<p>Dictionaries can either be configured to be "Embedded" or "Pop-up".</p>
<p>Some sites, like DeepL and Google Translate, don't work when embedded within sites. These sites have to be viewed in separate pop-up windows, outside of Lute itself.</p>
<p>You can test a dictionary by clicking the small "out arrow" icon next to the dictionary. For example, here I've tried to set DeepL.com as an embedded dictionary, which they don't allow:</p>
<img width="100%" alt="image" src="https://github.com/jzohrab/lute-manual/assets/1637133/48271adc-526f-420d-91f8-b1ff06ea92f7">
<img width="100%" alt="image" src="../../assets/usage/languages/dicts_02.png">
<h2 id="the-dictionary-url"><a class="header" href="#the-dictionary-url">The dictionary URL</a></h2>
<p>The dictionary link entry on the form must contain "###". Lute substitutes that with the actual term you're looking up.</p>
<p>Some dictionaries don't take parameters at all. For example, <code>https://www.cherokeedictionary.net/###</code> gives an error. In these cases, add a fake parameter, e.g. <code>https://www.cherokeedictionary.net?lute=###</code>.[^linkhack]</p>
Expand Down

0 comments on commit 152113e

Please sign in to comment.