Giter Site home page Giter Site logo

stscoundrel / gatsby-source-cleasby-vigfusson Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 645 KB

Gatsby Source plugin for Cleasby & Vigfusson dictionary.

Home Page: https://www.gatsbyjs.com/plugins/gatsby-source-cleasby-vigfusson/

License: MIT License

JavaScript 8.70% TypeScript 91.30%
old-norse cleasby-vigfusson gatsby gatsby-plugin gatsby-source-plugin old-icelandic javascript typescript gatsby-source

gatsby-source-cleasby-vigfusson's Introduction

Gatsby Source Cleasby & Vigfusson

Gatsby Source plugin for Cleasby & Vigfusson dictionary. Exposes 35 000+ Old Norse words into Gatsby datalayer.

Based on the classic dictionary by Richard Cleasby and Gudbrand Vigfusson. Depends on Node.js version of the dictionary.

Install

yarn add gatsby-source-cleasby-vigfusson

Usage

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

{
    word: String
    definitions: [String]
    slug: String (=slugified, unique headword)
    startsWith: String (=one uppercase letter)
}

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-cleasby-vigfusson"
  ]
}

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-cleasby-vigfusson",
      options: {
        noMarkup: true,
      }
    }
  ]
}

About Cleasby & Vigfusson Dictionary

"Icelandic-English" dictionary was started by Richard Cleasby and finished by Gudbrand Vigfusson. It was published in 1874, which leads to there being many public domain versions of the book available.

gatsby-source-cleasby-vigfusson's People

Contributors

dependabot[bot] avatar stscoundrel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.