Git Product home page Git Product logo

stscoundrel / old-swedish-dictionary-next Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.82 MB

Next.js implementation of "Medieval Swedish Dictionary" by K.F. Söderwall

Home Page: https://old-swedish-dictionary.vercel.app

License: MIT License

JavaScript 0.97% TypeScript 83.55% SCSS 9.46% Scala 6.02%
dictionary medieval-languages medieval-studies medieval-swedish nextjs old-swedish serverless ssg swedish-language typescript

old-swedish-dictionary-next's Issues

Headwords with ä or ö: add alternative æ and ø forms

Old Swedish originally had æ and ø instead of ä and ö. The book seems to consistently use ä and ö in headwords, making it later spelling.

Add alternative forms, something like:

bekännilse (or bekænnilse)

Probably just simple util to replace known letters with older ones & outputted into wordpage

Add example of Old Swedish text

Could add example of Old Swedish text. Frontpage, footer, some other location.

One good candidate could be excerpt from Västgötalagen, as presented in wikipedia (early 13th century):

Dræpær maþar svænskan man eller smalenskæn, innan konongsrikis man, eigh væstgøskan, bøte firi atta ørtogher ok þrettan markær ok ænga ætar bot. [...] Dræpar maþær danskan man allæ noræn man, bøte niv markum. Dræpær maþær vtlænskan man, eigh ma frid flyia or landi sinu oc j æth hans. Dræpær maþær vtlænskæn prest, bøte sva mykit firi sum hærlænskan man. Præstær skal i bondalaghum væræ. Varþær suþærman dræpin ællær ænskær maþær, ta skal bøta firi marchum fiurum þem sakinæ søkir, ok tvar marchar konongi.

Add "similar entries" section

The dictionary source has many duplicate words, probably caused by combining original volumes with supplement volumes.

As quality and content of definitions per entry varies quite a lot, it would make sense to add links to other entries with identical name, but different slug. For example, fosterfadhir and fosterfadhir-2 should be crosslinked as something like:

Similar entries in dictionary:
- Fosterfadhir (II)

Add "written language" section to frontpage

The volumes of the books were mostly published during transition period from Modern Swedish (nysvensk) to Contemporary Swedish (nusvensk). While it could be considered simply nusvensk, the language in the dictionary may be old fashioned or use spellings that are uncommon today.

Add frontpage section explaining this.

Add abbreviations list for definitions content

Definitions contain abbreviated cites to various sources. They are mapped out in this library

Add:

  • Abbreviatrix hovers for abbreviated words
  • List of sources cited in entry page, based on abbreviations appearing in definitions
  • A page that lists all cited sources for whole dictionary. Essentially should just output whole mapping of the lib in some decent format.

Disable prefech on links.

Disable prefech on links. Currently majority of links in the site are prefetched on background. While it is generally a very nice behavior, changes in Vercel infra pricing make this uneconomical. Therefore:

  • Either use prefetch={false} in links to only fetch them on hover
  • Or replace them with plain old a links. Prefetch is pretty much the only advantage of next/link.

Search page wont load in Vercel

Seems Vercel (at least in free tier) has some limitations as to how large dataset of single page can be. Next.js will happily build the page & work with it, but Vercel seems to block it.

Alter search page to:

  • Handle search service portion in api route
  • Only handle search & criteria selection in frontend

This should offload the json dataset to backend and keep Vercel happy. Frankly, it is also reasonable when the dictionary dataset is this large.

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.