Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-icelandic-zoega-rs
Old Icelandic dictionary for Rust. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
https://github.com/stscoundrel/old-icelandic-zoega-rs
dictionary medieval-languages old-icelandic old-norse rust zoega
Last synced: 9 days ago
JSON representation
Old Icelandic dictionary for Rust. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
- Host: GitHub
- URL: https://github.com/stscoundrel/old-icelandic-zoega-rs
- Owner: stscoundrel
- License: mit
- Created: 2021-09-28T16:55:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T15:34:43.000Z (over 1 year ago)
- Last Synced: 2024-09-16T07:18:59.170Z (3 months ago)
- Topics: dictionary, medieval-languages, old-icelandic, old-norse, rust, zoega
- Language: Rust
- Homepage: https://crates.io/crates/old_icelandic_zoega
- Size: 3.19 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Icelandic Zoega
Old Icelandic dictionary for Rust. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga.
The dictionary consists of 29 000+ Old Icelandic words with English translations. Also available for [Node.js](https://github.com/stscoundrel/old-icelandic-zoega)
### Install
`cargo add old_icelandic_zoega`
Or add this to your `Cargo.toml`:
```toml
[dependencies]
old_icelandic_zoega = "1.1.0"
```### Usage
Dictionary comes in two variants: one with html markup, and one without.
```rust
// Ships two variants, plus DictionaryEntry.
use old_icelandic_zoega::{get_dictionary, get_no_markup_dictionary, DictionaryEntry};// Standard dictionary. Contains "strong" and "i" tags to match the printed book.
let dictionary = get_dictionary();// No-markup version. Contains no tags or additional markup.
let no_markup_dictionary = get_no_markup_dictionary();// Both methods return Result, which should always be safe to unwrap.
// Up to you if you wish to just unwrap, or use other error handling method.
let dictionary_content: Vec = dictionary.unwrap();
let no_markup_dictionary_content: Vec = no_markup_dictionary.unwrap();println!("A word from dictionary: {}. First definition for it is: {}", &dictionary_content[0].word, &dictionary_content[0].definitions[0])
```### About "A Concise Dictionary of Old Icelandic"
"A Concise Dictionary of Old Icelandic" dictionary was published in 1910 by Geir Zoëga, which leads to there being many public domain versions of the book available. Zoëgas attempt was to made easier-to-approach version of the more full Cleasby - Vigfusson dictionary, specifically for beginners and those interested in Old Icelandic prose writing.