-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cb7278
commit c587a32
Showing
9 changed files
with
164 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Exporting | ||
|
||
Kalba can be configured to export words to Anki. | ||
To do so, the user needs to select the deck and note model they wish to use for exports. | ||
|
||
Then, each field of the model can be configured to include text. | ||
This text can take the form of variables, which are surrounded by curly braces ({}). | ||
Pressing the circle on the right will pull up a list where the user can select any of the potential variables. | ||
|
||
#### Default variables | ||
|
||
| Variable | Replacement | | ||
| ---------- | ------------------------------- | | ||
| {def} | All the definitions of the word | | ||
| {word} | The word itself | | ||
| {sentence} | The sentence with the word | | ||
|
||
Additionally, the contents of named dictionaries can be included with this syntax: `{def:NAME}`, where NAME is the name of the dictionary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Writing a Spyglys parser | ||
|
||
See the [README of Spyglys](https://github.com/BrewingWeasel/spyglys) | ||
|
||
WIP: More complete guide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Stanza | ||
|
||
Kalba comes with builtin Stanza integration. | ||
The primary feature that Stanza provides is intelligent grammatical parsing of the text. | ||
This parsing offers several benefits for [all of Stanza's supported languages](https://stanfordnlp.github.io/stanza/performance.html): | ||
|
||
- automatic identification of lemmas/root words | ||
- grammar information (this can be seen in the [reader view](reader.md)) | ||
- automatic identification of proper nouns (names, places, etc) | ||
- all proper nouns will automatically be marked as ignored | ||
|
||
Note that the first text read with Stanza each session will take several seconds to open. | ||
Future texts will open much quicker. | ||
|
||
## Requirements | ||
|
||
Installing and using Stanza has several requirements: | ||
|
||
- Python (version 3.8 or later) | ||
- Several gigabytes of storage | ||
- All other requirements listed by Stanza | ||
|
||
## Enabling | ||
|
||
Stanza can be enabled in the [Stanza settings](stanza_settings.md) page. | ||
The first time the user enables Stanza, Kalba will install the package, which will take several minutes and around 5 gigabytes of storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Stanza Settings | ||
|
||
This page allows both installing and toggling [Stanza](stanza.md) on and off. | ||
|
||
The [grammar page](grammar.md) of each individual profile can be used to set the stanza model used on a per-language basis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Word Knowledge Settings | ||
|
||
## Frequency | ||
|
||
If the user provides a frequency list in the [grammar settings](grammar.md), Kalba can automatically mark the N most common words as known. | ||
|
||
## Anki | ||
|
||
Kalba can link with Anki decks to automatically and automatically import up-to-date and accurate word knowledge. | ||
This requires the Anki app to be open and the Ankiconnect extension to be installed. | ||
|
||
The refresh button will automatically check all notes that may have been reviewed recently and update their knowledge levels. | ||
This is automatically run every time Kalba opens. | ||
|
||
Forced refreshes will update the word knowledge of every single card, regardless of the date it was reviewed. | ||
This can be useful when you want to update the parsing of every note. | ||
|
||
### Setup | ||
|
||
#### Decks | ||
|
||
To get started, click the plus button to add a deck, and select the deck you use for learning. | ||
You can add as many decks as needed. | ||
|
||
#### Parsers | ||
|
||
Each deck should include one note parser for each type of note in the deck. | ||
For example, if a deck includes notes with a note type of `Basic`, `Basic (and reversed)`, and a user defined note type, these should all have their own parser. | ||
Parsers can be added to a deck by clicking the plus button on the specific deck the parser corresponds to. | ||
|
||
Each parser must include a note type and the field of the note type in which the word appears. | ||
If needed, the parser can be configured to apply additional modifications to the contents of the field. | ||
|
||
In the future, users will be able to define Regex rules to have further control over the detection of the word. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
site_name: Kalba | ||
nav: | ||
- Home: "index.md" | ||
- "Word Knowledge": "word_knowledge.md" | ||
- Concepts: | ||
- "Word Knowledge": "word_knowledge.md" | ||
- Stanza: "stanza.md" | ||
- Usage: | ||
- Reader: "reader.md" | ||
- Configuration: | ||
- Profiles: "profiles.md" | ||
- Grammar: "grammar.md" | ||
- Dictionaries: "dictionaries.md" | ||
- "Word Knowledge": "word_knowledge_settings.md" | ||
- Exporting: "exporting.md" | ||
- Input: "input.md" | ||
- Stanza: "stanza_settings.md" | ||
- "Advanced Configuration": | ||
- "Writing a spyglys parser": "spyglys_parser.md" | ||
theme: readthedocs |