sschmidTU / mr-kanji-search-wtk

WTK-Search is a Kanji search engine using (multiple) Wanikani radicals or RTK names, on a RTK element dataset of 3000+ Kanji
https://sschmidtu.github.io/mr-kanji-search-wtk/
7 stars 2 forks source link

sync offline branch search.js (kanji info) from gh-pages #10

Closed sschmidTU closed 3 years ago

sschmidTU commented 3 years ago

the offline branch is often behind, because in the gh-pages branch, the .md files are edited, which in the offline branch are inlined as json in search.js.

you can take the json data from visiting the online version (gh-pages), finding the search.js in the sources, and applying a lot of regexes to make the formatting the same as the old search.js, and the diff clean.

I'll try to list the exact regex replacements next time i sync the data with gh-pages. (need to use some groups and dollars, like replacing ( )( keywordsWK:.*$) with $2 (second group), or ^.*elementsWK: "",.*\n with nothing, for example)

sschmidTU commented 3 years ago

offline branch kanji info is now on the state of gh-pages (online) v1.2.0.4.

Can be reopened for the next syncs.