stscoundrel / cleasby-vigfusson-next Goto Github PK
View Code? Open in Web Editor NEWThe Cleasby & Vigfusson Old Norse Dictionary for Next.js
Home Page: https://cleasby-vigfusson-dictionary.vercel.app/
License: MIT License
The Cleasby & Vigfusson Old Norse Dictionary for Next.js
Home Page: https://cleasby-vigfusson-dictionary.vercel.app/
License: MIT License
Some definitions (probably incorretly) may have only one letter, rest of the definition being parsed into second definition,
While it matters little in the word definition page, it does not look great as the selected definition in the frontpage. Just add min length to the randomizer algorithm, producing entries that always have content
Some headwords are written in allcaps, while some are capitalized and some are lower case.
This generally does not matter much and does reflect the original source material, but the uppercase ones seem a bit odd in middle of sentences.
Either:
SEO, Schema & Link use example data from Dictionary dependency. While nice idea to use real data, whenever the dep changes the tests have to change too.
Copy / hardcode dictionary data that is to be used for those tests.
Integration tests build the whole thing, eg. ensure build works. No need to do it twice in GH actions.
Should request fail (=timeout, most likely), gather failed batches into retries. Run them with smaller batch size, like 100.
Word link just translates the word to a slug without making it lowercase. Should probably just use the 'slug' property from the word.
Could run cleasby-vigfusson-abbreviations through abbreviatrix to autoadd abbr tags to descriptions. See if makes sense.
Lighthouse seems to punish for large list of DOM nodes
Would be better to display content when searching
Should provide alternative avenue for building all ISR pages.
Current problem: many more pages that can be build & deployed to Vercel. There is hard limit of 16 00 files. Once the project is deployed, it can generate as many more as it needs. But it has to happen after deployment.
Current solution: use ISR to generate pages as users open them. Downside is that the first load can then be slow. Other approach is to use Gangleri, a tool to walk sitemaps, therefore triggering rebuilds. However, that is slow as it makes separate request for each and can be spammy.
New solution:
Info text for runes tends to put the rune at the end of screen. Often gets broken into next line, which hurts reading
Letterlist in mobile is kinda awkward. Hide behind hamburger.
Currently the "random entries" section in frontpage feels a bit weird. Some things that could improve it:
Should ignore casing when looking for results.
SWC seems to now support all Babel features used in the dictionary.
Add it under "dictionary project". Originally made for this particular use case
Some json-dl contains strings that are not present in content, make adjustements
When searching from main bar, criteria is unfilled
Currently can output same abbreviation many times, if it appears in different definitions
Using younger futhark, add possible runic inscriptions of headwords. Just transform letter by letter. Would vary from historical forms, but interesting
Cleasby & Vigfusson uses a lot of abbreviations. Scan definitions & output list of used appreviations at the end of page.
At least to single word page
O caudata (= ǫ) would be more accurate letter for words that use "ö" in the Cleasby Vigfusson book. Using "ö" in Old Norse is a more modern practice that is mostly based on modern Icelandic and/or lack of letter ǫ in all keyboard setups.
Should the word contain letter ö, offer alternative version with ǫ. When that is done, also offer an explanation as to why this alternative form exists. Similar work is done for Old Swedish dictionary in this PR.
Allow searching by headword or definitions
Currently generates on demand each time, but contents of the file haven't really changed from the start. Just use .txt file in public & drop the page path
Folks seem to search "english old norse dictionary" and the likes. An oversight in SEO is that frontpage wont mention what languages this dictionary maps.
Open it up for easier google results.
The Cleasby & Vigfusson title will still exist in sitename and all over content, but looks like the language itself would work better in SEO titles.
Nowadays Next.js supports having "src" folder instead of top level pages. Simplify top level by adding src folder
Similar to Old Swedish dictionary.
Similarly to how Old Norwegian dictionary (a sibling project) handles that. Out of context random runic inscription might not be too helpful.
Individual word page does not say where the definition is from, ie. the Cleasby/Vigfusson Dictionary. Add something like:
As defined by the Cleasby & Vigfusson Old Norse to English dictionary:
Schema description has tags depending on content. Filter out html.
Not a full rewrite, but deps & defs that let JS & TS play together. Much like Zoega version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.