gatsby-source-plugin-zoega

Gatsby Source plugin for Old Icelandic dictionary by Geir Zoëga. Exposes 29 000+ Old Icelandic words into Gatsby datalayer.

Usage no npm install needed!

<script type="module">
  import gatsbySourcePluginZoega from 'https://cdn.skypack.dev/gatsby-source-plugin-zoega';
</script>

README

Gatsby Source Plugin Zoega

Gatsby Source plugin for Old Icelandic dictionary by Geir Zoëga. Exposes 29 000+ Old Icelandic words into Gatsby datalayer.

Based on the "A Concise Dictionary of Old Icelandic" by Geir Zoëga. Depends on Node.js version of the dictionary.

Install

yarn add gatsby-source-plugin-zoega

Usage

The plugin adds new dictionaryEntry type into datalayer. Individual entries are in format of:

{
    word: String
    definitions: [String]
}

To use the plugin in your Gatsby project, just add it to plugins config:

// gatsby-config.js
module.exports {
  // Your other configs.
  plugins: [
    "gatsby-source-plugin-zoega"
  ]
}

If you're using default settings, dictionary entries will contain HTML markup like <strong> and <i> tags. If you wish to get dictionary data without any markup, you can register the plugin with custom settings.

// gatsby-config.js
module.exports {
  // Your other configs.
  plugins: [
    {
      resolve: "gatsby-source-plugin-zoega",
      options: {
        noMarkup: true,
      }
    }
  ]
}

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.