switch back to LoveIt, other theme is deprectated
This commit is contained in:
parent
260b6803e7
commit
51fb029ca2
|
@ -4,8 +4,8 @@ cullmann.io website
|
||||||
|
|
||||||
# Update theme
|
# Update theme
|
||||||
|
|
||||||
rm -rf themes master
|
rm -rf themes
|
||||||
mkdir themes master
|
mkdir themes
|
||||||
git clone https://github.com/sunt-programator/CodeIT.git themes/CodeIT
|
git clone https://github.com/dillonzq/LoveIt.git themes/LoveIt
|
||||||
rm -rf themes/CodeIT/.git
|
rm -rf themes/LoveIt/.git
|
||||||
git add themes
|
git add themes
|
||||||
|
|
|
@ -5,7 +5,7 @@ baseURL = "https://cullmann.io/"
|
||||||
title = "Ignorance is bliss..."
|
title = "Ignorance is bliss..."
|
||||||
|
|
||||||
# theme hugo-coder
|
# theme hugo-coder
|
||||||
theme = "CodeIT"
|
theme = "LoveIt"
|
||||||
|
|
||||||
# content == english, Impressum is german
|
# content == english, Impressum is german
|
||||||
languagecode = "en"
|
languagecode = "en"
|
||||||
|
|
|
@ -1,472 +0,0 @@
|
||||||
{
|
|
||||||
"projectName": "CodeIT",
|
|
||||||
"projectOwner": "sunt-programator",
|
|
||||||
"repoType": "github",
|
|
||||||
"repoHost": "https://github.com",
|
|
||||||
"files": [
|
|
||||||
"README.md"
|
|
||||||
],
|
|
||||||
"imageSize": 100,
|
|
||||||
"commit": true,
|
|
||||||
"commitConvention": "angular",
|
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"login": "victor-pogor",
|
|
||||||
"name": "Victor Pogor",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/24962085?v=4",
|
|
||||||
"profile": "https://suntprogramator.dev/",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug",
|
|
||||||
"projectManagement"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "dillonzq",
|
|
||||||
"name": "Dillon",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/30786232?v=4",
|
|
||||||
"profile": "https://github.com/dillonzq",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug",
|
|
||||||
"projectManagement"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "Fastbyte01",
|
|
||||||
"name": "Giuseppe Pignataro",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/16869546?v=4",
|
|
||||||
"profile": "https://giuseppepignataro.eu/",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug",
|
|
||||||
"projectManagement"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "Programazing",
|
|
||||||
"name": "Christopher C. Johnson",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/11393826?v=4",
|
|
||||||
"profile": "http://www.thatamazingprogrammer.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug",
|
|
||||||
"doc"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "astropenguin",
|
|
||||||
"name": "Akio Taniguchi",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/13254278?v=4",
|
|
||||||
"profile": "https://astropengu.in/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "DaveA-W",
|
|
||||||
"name": "Dave A-W",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/6415842?v=4",
|
|
||||||
"profile": "https://www.holo.co.de/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "realsangil",
|
|
||||||
"name": "Sangil Park",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/15508203?v=4",
|
|
||||||
"profile": "https://blog.realsangil.net/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "youngxhui",
|
|
||||||
"name": "youngxhui",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/16971804?v=4",
|
|
||||||
"profile": "https://youngxhui.top/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "solarpowerinncr",
|
|
||||||
"name": "solarpowerinncr",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/37186560?v=4",
|
|
||||||
"profile": "https://github.com/solarpowerinncr",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "maxlefou",
|
|
||||||
"name": "Max le Fou",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/6705075?v=4",
|
|
||||||
"profile": "https://gitlab.com/maxlefou",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "edte",
|
|
||||||
"name": "edte",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/50194671?v=4",
|
|
||||||
"profile": "https://edte.github.io/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "Fedomn",
|
|
||||||
"name": "Fedomn",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/6177727?v=4",
|
|
||||||
"profile": "https://frankma.netlify.app/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "ziobron",
|
|
||||||
"name": "Łukasz Ziobroń",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4595135?v=4",
|
|
||||||
"profile": "https://coders.school/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "yoloyi",
|
|
||||||
"name": "余农场主",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/40978171?v=4",
|
|
||||||
"profile": "https://blog.yoloyi.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "wtchangdm",
|
|
||||||
"name": "W.T. Chang",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/1546333?v=4",
|
|
||||||
"profile": "https://blog.wtcx.dev/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "vanildosouto",
|
|
||||||
"name": "Vanildo Souto Mangueira",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/1603028?v=4",
|
|
||||||
"profile": "http://blog.toneladas.com.br/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "tomaja-linuxo",
|
|
||||||
"name": "tomaja",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/37209662?v=4",
|
|
||||||
"profile": "https://linuxo.org/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "tlereste",
|
|
||||||
"name": "Thibault Le Reste",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/12964583?v=4",
|
|
||||||
"profile": "https://thibault-lereste.fr/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "thejayhaykid",
|
|
||||||
"name": "Jake Hayes",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/9452325?v=4",
|
|
||||||
"profile": "https://github.com/thejayhaykid",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "sarathsp06",
|
|
||||||
"name": "Sarath Sadasivan Pillai",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/964542?v=4",
|
|
||||||
"profile": "https://sarathsp.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "ramrodo",
|
|
||||||
"name": "Rodolfo Martínez Vega",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/2797052?v=4",
|
|
||||||
"profile": "https://rodomar.mx/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "quyleanh",
|
|
||||||
"name": "quyleanh",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/9365035?v=4",
|
|
||||||
"profile": "https://github.com/quyleanh",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "onisuly",
|
|
||||||
"name": "onisuly",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/8399827?v=4",
|
|
||||||
"profile": "http://www.onisuly.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "nirgn975",
|
|
||||||
"name": "Nir Galon",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/3472902?v=4",
|
|
||||||
"profile": "https://nir.galon.io/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "markdluethje",
|
|
||||||
"name": "Mark-Daniel Lüthje",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/31922494?v=4",
|
|
||||||
"profile": "https://github.com/markdluethje",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "devandreacarratta",
|
|
||||||
"name": "Andrea Carratta",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/46504271?v=4",
|
|
||||||
"profile": "https://devandreacarratta.it/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "derelartwork",
|
|
||||||
"name": "Doğukan Erel",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19349444?v=4",
|
|
||||||
"profile": "https://dogukanerel.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "codedge",
|
|
||||||
"name": "codedge",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/4409904?v=4",
|
|
||||||
"profile": "https://www.codedge.de/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "cmpsoares91",
|
|
||||||
"name": "Carlos Manuel Soares",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/4914211?v=4",
|
|
||||||
"profile": "http://www.cmpsoares.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "anup92k",
|
|
||||||
"name": "Anup",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/51033013?v=4",
|
|
||||||
"profile": "https://www.scrample.xyz/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "SilkeHenderickx",
|
|
||||||
"name": "Silke Henderickx",
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/28140438?v=4",
|
|
||||||
"profile": "https://github.com/SilkeHenderickx",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "Ghosin",
|
|
||||||
"name": "Ghosin",
|
|
||||||
"avatar_url": "https://avatars1.githubusercontent.com/u/26043355?v=4",
|
|
||||||
"profile": "https://ghos.in/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "AutomationD",
|
|
||||||
"name": "Dmitry Kireev",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/1790594?v=4",
|
|
||||||
"profile": "https://automationd.com/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "michael0liver",
|
|
||||||
"name": "Michael Oliver",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/55017335?v=4",
|
|
||||||
"profile": "https://michaeloliver.dev",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "epogrebnyak",
|
|
||||||
"name": "Evgeny Pogrebnyak",
|
|
||||||
"avatar_url": "https://avatars3.githubusercontent.com/u/9265326?v=4",
|
|
||||||
"profile": "https://epogrebnyak.github.io",
|
|
||||||
"contributions": [
|
|
||||||
"bug",
|
|
||||||
"ideas"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "sosiristseng",
|
|
||||||
"name": "Wen Wei Tseng",
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/40054455?v=4",
|
|
||||||
"profile": "https://sosiristseng.github.io",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "sheldonhull",
|
|
||||||
"name": "sheldonhull",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/3526320?v=4",
|
|
||||||
"profile": "https://www.sheldonhull.com",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "jadmadi",
|
|
||||||
"name": "Madi",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/29486218?v=4",
|
|
||||||
"profile": "https://github.com/jadmadi",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "trmendes",
|
|
||||||
"name": "Thiago Mendes",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/16507629?v=4",
|
|
||||||
"profile": "https://tmendes.gitlab.io/28lbackpack",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "aiyasin",
|
|
||||||
"name": "Yasin",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/61509470?v=4",
|
|
||||||
"profile": "http://aimoon.top",
|
|
||||||
"contributions": [
|
|
||||||
"bug"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "aplatanado",
|
|
||||||
"name": "Jesús Torres",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/266452?v=4",
|
|
||||||
"profile": "http://www.jesustorres.es/",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "ktw717",
|
|
||||||
"name": "Karl Webster",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/19327709?v=4",
|
|
||||||
"profile": "https://github.com/ktw717",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"doc"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "OnlyFor",
|
|
||||||
"name": "OnlyFor",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/16849187?v=4",
|
|
||||||
"profile": "https://github.com/OnlyFor",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"doc"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "tbm98",
|
|
||||||
"name": "Minh Tran",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/52562340?v=4",
|
|
||||||
"profile": "https://tbm98.dev",
|
|
||||||
"contributions": [
|
|
||||||
"code",
|
|
||||||
"bug"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "aozaki-kuro",
|
|
||||||
"name": "Aozaki",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/28428951?v=4",
|
|
||||||
"profile": "https://github.com/aozaki-kuro",
|
|
||||||
"contributions": [
|
|
||||||
"bug",
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "deining",
|
|
||||||
"name": "Andreas Deininger",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/18169566?v=4",
|
|
||||||
"profile": "https://github.com/deining",
|
|
||||||
"contributions": [
|
|
||||||
"doc"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "Ashpex",
|
|
||||||
"name": "Ashpex",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/38400042?v=4",
|
|
||||||
"profile": "http://ashpex.eu.org",
|
|
||||||
"contributions": [
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "KHannibal",
|
|
||||||
"name": "KHannibal",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/3843004?v=4",
|
|
||||||
"profile": "https://github.com/KHannibal",
|
|
||||||
"contributions": [
|
|
||||||
"ideas"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"login": "xMicky24GIT",
|
|
||||||
"name": "xMicky24GIT",
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/31669768?v=4",
|
|
||||||
"profile": "https://gitlab.com/SonoMichele",
|
|
||||||
"contributions": [
|
|
||||||
"doc"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"contributorsPerLine": 7,
|
|
||||||
"skipCi": true
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,9 +0,0 @@
|
||||||
if [ -z "$SSH_AUTH_SOCK" ]; then
|
|
||||||
# Check for a currently running instance of the agent
|
|
||||||
RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
|
|
||||||
if [ "$RUNNING_AGENT" = "0" ]; then
|
|
||||||
# Launch a new instance of the agent
|
|
||||||
ssh-agent -s &> .ssh/ssh-agent
|
|
||||||
fi
|
|
||||||
eval `cat .ssh/ssh-agent`
|
|
||||||
fi
|
|
|
@ -1,113 +0,0 @@
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
|
||||||
|
|
||||||
# Set name of the theme to load --- if set to "random", it will
|
|
||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
|
||||||
# a theme from this variable instead of looking in $ZSH/themes/
|
|
||||||
# If set to an empty array, this variable will have no effect.
|
|
||||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
|
||||||
# CASE_SENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to use hyphen-insensitive completion.
|
|
||||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
|
||||||
# HYPHEN_INSENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to automatically update without prompting.
|
|
||||||
# DISABLE_UPDATE_PROMPT="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
|
||||||
# export UPDATE_ZSH_DAYS=13
|
|
||||||
|
|
||||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
|
||||||
# DISABLE_MAGIC_FUNCTIONS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable colors in ls.
|
|
||||||
# DISABLE_LS_COLORS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable auto-setting terminal title.
|
|
||||||
# DISABLE_AUTO_TITLE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
|
||||||
# ENABLE_CORRECTION="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
|
||||||
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
|
|
||||||
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
|
|
||||||
# COMPLETION_WAITING_DOTS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to disable marking untracked files
|
|
||||||
# under VCS as dirty. This makes repository status check for large repositories
|
|
||||||
# much, much faster.
|
|
||||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
|
||||||
# stamp shown in the history command output.
|
|
||||||
# You can set one of the optional three formats:
|
|
||||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
||||||
# or set a custom format using the strftime function format specifications,
|
|
||||||
# see 'man strftime' for details.
|
|
||||||
# HIST_STAMPS="mm/dd/yyyy"
|
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
||||||
|
|
||||||
# Which plugins would you like to load?
|
|
||||||
# Standard plugins can be found in $ZSH/plugins/
|
|
||||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
|
||||||
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
# User configuration
|
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
|
||||||
# export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
|
||||||
# export EDITOR='vim'
|
|
||||||
# else
|
|
||||||
# export EDITOR='mvim'
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# Compilation flags
|
|
||||||
# export ARCHFLAGS="-arch x86_64"
|
|
||||||
|
|
||||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
|
||||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
|
||||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
|
||||||
# For a full list of active aliases, run `alias`.
|
|
||||||
#
|
|
||||||
# Example aliases
|
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
||||||
|
|
||||||
export GPG_TTY=$(tty)
|
|
|
@ -1,69 +0,0 @@
|
||||||
FROM klakegg/hugo:ext-ubuntu
|
|
||||||
|
|
||||||
# Configure apt
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
# Install required packages
|
|
||||||
RUN apt update
|
|
||||||
RUN apt install -y curl
|
|
||||||
RUN apt install -y gnupg2
|
|
||||||
RUN apt install -y zsh
|
|
||||||
RUN apt install -y sudo
|
|
||||||
RUN apt install -y locales
|
|
||||||
RUN apt install -y vim
|
|
||||||
RUN apt install -y fontconfig
|
|
||||||
RUN locale-gen en_US.UTF-8
|
|
||||||
|
|
||||||
# Install Node.js
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
|
||||||
RUN apt install nodejs
|
|
||||||
|
|
||||||
# Switch back to dialog for any ad-hoc use of apt-get
|
|
||||||
ENV DEBIAN_FRONTEND=dialog
|
|
||||||
|
|
||||||
ENV USER_NAME vscode
|
|
||||||
ENV USER_PASSWORD password
|
|
||||||
|
|
||||||
# Add a user (--disabled-password: the user won't be able to use the account until the password is set)
|
|
||||||
RUN adduser --quiet --disabled-password --shell /bin/zsh --home /home/$USER_NAME --gecos "User" $USER_NAME
|
|
||||||
|
|
||||||
# Update the password
|
|
||||||
RUN echo "${USER_NAME}:${USER_PASSWORD}" | chpasswd && usermod -aG sudo $USER_NAME
|
|
||||||
RUN echo $USER_NAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USER_NAME && chmod 0440 /etc/sudoers.d/$USER_NAME
|
|
||||||
|
|
||||||
# Set home
|
|
||||||
ENV HOME /home/$USER_NAME
|
|
||||||
|
|
||||||
# Generate locale for agnoster
|
|
||||||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && /usr/sbin/locale-gen
|
|
||||||
|
|
||||||
# The user we're applying this too (otherwise it most likely install for root)
|
|
||||||
USER $USER_NAME
|
|
||||||
|
|
||||||
ENV TERM xterm
|
|
||||||
|
|
||||||
# Set the default shell to bash rather than sh
|
|
||||||
ENV SHELL /bin/zsh
|
|
||||||
|
|
||||||
# Install Cascadia Code Nerd Font
|
|
||||||
RUN mkdir -p ~/.local/share/fonts
|
|
||||||
RUN cd ~/.local/share/fonts && curl -fLo "Caskaydia Cove Regular Nerd Font Complete Mono.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete%20Mono.otf?raw=true
|
|
||||||
RUN cd ~/.local/share/fonts && curl -fLo "Caskaydia Cove Regular Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete.otf?raw=true
|
|
||||||
RUN fc-cache -fv
|
|
||||||
|
|
||||||
# Run the installation script
|
|
||||||
RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
|
||||||
|
|
||||||
# Install powerlevel10k theme
|
|
||||||
RUN git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
|
|
||||||
|
|
||||||
# Install syntax highlighting
|
|
||||||
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
|
||||||
|
|
||||||
# Install zsh autosuggestions
|
|
||||||
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
|
||||||
|
|
||||||
# Add .zsh configuration
|
|
||||||
ADD .p10k.zsh $HOME
|
|
||||||
ADD .zshrc $HOME
|
|
||||||
ADD .zprofile $HOME
|
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
"name": "Hugo CodeIT theme",
|
|
||||||
"dockerFile": "Dockerfile",
|
|
||||||
"settings": {
|
|
||||||
"resmon.show.battery": false,
|
|
||||||
"resmon.show.cpufreq": false,
|
|
||||||
"terminal.integrated.fontFamily": "CaskaydiaCove NF, Cascadia Mono, Consolas, 'Courier New', monospace",
|
|
||||||
"terminal.integrated.shell.linux": "/bin/zsh"
|
|
||||||
},
|
|
||||||
"extensions": [
|
|
||||||
"budparr.language-hugo-vscode",
|
|
||||||
"be5invis.toml",
|
|
||||||
"esbenp.prettier-vscode",
|
|
||||||
"visualstudioexptteam.vscodeintellicode",
|
|
||||||
"eamodio.gitlens",
|
|
||||||
"mutantdino.resourcemonitor",
|
|
||||||
"budparr.language-hugo-vscode",
|
|
||||||
"vscode-icons-team.vscode-icons"
|
|
||||||
],
|
|
||||||
"forwardPorts": [1313]
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"extends": ["eslint:recommended", "prettier"]
|
|
||||||
}
|
|
1
themes/CodeIT/.github/FUNDING.yml
vendored
1
themes/CodeIT/.github/FUNDING.yml
vendored
|
@ -1 +0,0 @@
|
||||||
custom: https://paypal.me/victorpogor
|
|
|
@ -1,36 +0,0 @@
|
||||||
## Pull request type
|
|
||||||
|
|
||||||
Please check the type of change your PR introduces:
|
|
||||||
|
|
||||||
- [ ] Bugfix
|
|
||||||
- [ ] Feature
|
|
||||||
- [ ] Code style update (formatting, renaming)
|
|
||||||
- [ ] Refactoring (no functional changes, no api changes)
|
|
||||||
- [ ] Build related changes
|
|
||||||
- [ ] Documentation content changes
|
|
||||||
- [ ] Other (please describe):
|
|
||||||
|
|
||||||
## What is the current behavior?
|
|
||||||
|
|
||||||
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
|
|
||||||
|
|
||||||
Issue Number: N/A
|
|
||||||
|
|
||||||
## What is the new behavior?
|
|
||||||
|
|
||||||
<!-- Please describe the behavior or changes that are being added by this PR. -->
|
|
||||||
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-
|
|
||||||
|
|
||||||
## Does this introduce a breaking change?
|
|
||||||
|
|
||||||
- [ ] Yes
|
|
||||||
- [ ] No
|
|
||||||
|
|
||||||
<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->
|
|
||||||
|
|
||||||
## Other information
|
|
||||||
|
|
||||||
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
|
|
|
@ -1,35 +0,0 @@
|
||||||
---
|
|
||||||
name: 🐛 Bug Report
|
|
||||||
about: Create a bug report
|
|
||||||
title: "[BUG] Some problem..."
|
|
||||||
labels: bug
|
|
||||||
---
|
|
||||||
|
|
||||||
## Describe the bug
|
|
||||||
|
|
||||||
Briefly describe the issue you are experiencing, what you were trying to do and what happened instead. Remember, this is _not_ a place to ask questions. For that, go to the [github discussions page!](https://github.com/sunt-programator/CodeIT/discussions)
|
|
||||||
|
|
||||||
## Expected behavior
|
|
||||||
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
## Screenshots
|
|
||||||
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
## Build Environment
|
|
||||||
|
|
||||||
- OS: [e.g. Windows 10, macOS, Ubuntu]
|
|
||||||
- Theme version/commit [e.g. 0.2.0, 2ccba79]
|
|
||||||
- Hugo version [e.g. 0.69.0]
|
|
||||||
|
|
||||||
Please try to use Hugo **extended** version before opening the issue.
|
|
||||||
|
|
||||||
## Preview Environment
|
|
||||||
|
|
||||||
- OS: [e.g. Windows 10, macOS, Ubuntu, iOS, Android]
|
|
||||||
- Browser [e.g. Chrome, Safari, Firefox]
|
|
||||||
|
|
||||||
## Additional Information
|
|
||||||
|
|
||||||
Configuration files or front matter code...
|
|
|
@ -1,5 +0,0 @@
|
||||||
blank_issues_enabled: false
|
|
||||||
contact_links:
|
|
||||||
- name: Theme Documentation
|
|
||||||
url: http://codeit.suntprogramator.dev/categories/documentation/
|
|
||||||
about: Please read the documentation carefully.
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
name: 🔮 Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: "[FEATURE] Some feature"
|
|
||||||
labels: enhancement
|
|
||||||
---
|
|
||||||
|
|
||||||
## Describe the feature you want
|
|
||||||
|
|
||||||
- Feature 1
|
|
||||||
I want this feature to solve ...
|
|
||||||
|
|
||||||
- Feature 2
|
|
||||||
I want this feature to solve ...
|
|
||||||
|
|
||||||
- ...
|
|
||||||
|
|
||||||
## Useful reference
|
|
||||||
|
|
||||||
If available, provide useful links to fulfill the feature.
|
|
|
@ -1,71 +0,0 @@
|
||||||
# For most projects, this workflow file will not need changing; you simply need
|
|
||||||
# to commit it to your repository.
|
|
||||||
#
|
|
||||||
# You may wish to alter this file to override the set of languages analyzed,
|
|
||||||
# or to provide custom queries or build logic.
|
|
||||||
name: "CodeQL"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
pull_request:
|
|
||||||
# The branches below must be a subset of the branches above
|
|
||||||
branches: [master]
|
|
||||||
schedule:
|
|
||||||
- cron: '0 14 * * 4'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
analyze:
|
|
||||||
name: Analyze
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
# Override automatic language detection by changing the below list
|
|
||||||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
|
|
||||||
language: ['javascript']
|
|
||||||
# Learn more...
|
|
||||||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# We must fetch at least the immediate parents so that if this is
|
|
||||||
# a pull request then we can checkout the head.
|
|
||||||
fetch-depth: 2
|
|
||||||
|
|
||||||
# If this run was triggered by a pull request event, then checkout
|
|
||||||
# the head of the pull request instead of the merge commit.
|
|
||||||
- run: git checkout HEAD^2
|
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v1
|
|
||||||
with:
|
|
||||||
languages: ${{ matrix.language }}
|
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
||||||
# By default, queries listed here will override any specified in a config file.
|
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
||||||
|
|
||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
|
||||||
- name: Autobuild
|
|
||||||
uses: github/codeql-action/autobuild@v1
|
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
|
||||||
# 📚 https://git.io/JvXDl
|
|
||||||
|
|
||||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
||||||
# and modify them (or add more) to build your code if your project
|
|
||||||
# uses a compiled language
|
|
||||||
|
|
||||||
#- run: |
|
|
||||||
# make bootstrap
|
|
||||||
# make release
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
|
||||||
uses: github/codeql-action/analyze@v1
|
|
33
themes/CodeIT/.github/workflows/deploy.yml
vendored
33
themes/CodeIT/.github/workflows/deploy.yml
vendored
|
@ -1,33 +0,0 @@
|
||||||
name: "Deploy status"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
jobs:
|
|
||||||
deploy-blog:
|
|
||||||
name: Deploying the static pages to the FTP server
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: CodeIT
|
|
||||||
steps:
|
|
||||||
- name: Set up Git repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: 'CodeIT'
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: 'latest'
|
|
||||||
extended: true
|
|
||||||
- name: Build static pages
|
|
||||||
run: hugo --source=exampleSite -v -e production
|
|
||||||
- name: Deploy static pages
|
|
||||||
uses: sebastianpopp/ftp-action@releases/v2
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.FTP_URL }}
|
|
||||||
user: ${{ secrets.FTP_USERNAME }}
|
|
||||||
password: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
localDir: "CodeIT/exampleSite/public"
|
|
||||||
remoteDir: "www/codeit.suntprogramator.dev"
|
|
21
themes/CodeIT/.github/workflows/pre-release.yml
vendored
21
themes/CodeIT/.github/workflows/pre-release.yml
vendored
|
@ -1,21 +0,0 @@
|
||||||
name: "Create pre-release"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
pre-release:
|
|
||||||
name: "Pre Release"
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- name: Set up Git repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: "CodeIT"
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
||||||
with:
|
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
automatic_release_tag: "latest"
|
|
||||||
prerelease: true
|
|
||||||
title: "Development Build"
|
|
31
themes/CodeIT/.github/workflows/pull-request.yml
vendored
31
themes/CodeIT/.github/workflows/pull-request.yml
vendored
|
@ -1,31 +0,0 @@
|
||||||
name: "Build and checks"
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- dev
|
|
||||||
jobs:
|
|
||||||
check_hugo_site:
|
|
||||||
name: Check Hugo site
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: CodeIT
|
|
||||||
steps:
|
|
||||||
- name: Set up Git repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: 'CodeIT'
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: 'latest'
|
|
||||||
extended: true
|
|
||||||
- name: Build static pages
|
|
||||||
run: hugo --source=exampleSite -v --gc
|
|
||||||
- name: Check HTML
|
|
||||||
uses: chabad360/htmlproofer@master
|
|
||||||
with:
|
|
||||||
directory: "CodeIT/exampleSite/public"
|
|
||||||
arguments: --check-html --allow-hash-href --empty-alt-ignore --disable-external
|
|
20
themes/CodeIT/.github/workflows/release.yml
vendored
20
themes/CodeIT/.github/workflows/release.yml
vendored
|
@ -1,20 +0,0 @@
|
||||||
name: "Create tagged release"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
jobs:
|
|
||||||
tagged-release:
|
|
||||||
name: "Tagged Release"
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Set up Git repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: "CodeIT"
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
||||||
with:
|
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
prerelease: false
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "lint-staged && npm run build && npm run copy && git add resources assets/js",
|
|
||||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"**/*.{js,css,scss,md}": "prettier --write"
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
# Ignore all minified files
|
|
||||||
**/*.min.*
|
|
||||||
|
|
||||||
# Node.js modules
|
|
||||||
node_modules/
|
|
||||||
|
|
||||||
# Example site public folders
|
|
||||||
exampleSite/public/
|
|
||||||
exampleSite/resources/
|
|
||||||
exampleSite/content/posts/basic-markdown-syntax
|
|
|
@ -1 +0,0 @@
|
||||||
{}
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"plugins": [
|
|
||||||
"stylelint-scss"
|
|
||||||
],
|
|
||||||
"extends": [
|
|
||||||
"stylelint-config-standard",
|
|
||||||
"stylelint-config-prettier"
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"at-rule-no-unknown": null,
|
|
||||||
"scss/at-rule-no-unknown": true
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"types": [
|
|
||||||
{ "type": "feat", "section": "Features" },
|
|
||||||
{ "type": "fix", "section": "Bug Fixes" },
|
|
||||||
{ "type": "chore", "section": "Other changes" },
|
|
||||||
{ "type": "docs", "section": "Documentation changes" },
|
|
||||||
{ "type": "style", "hidden": true },
|
|
||||||
{ "type": "refactor", "hidden": true },
|
|
||||||
{ "type": "perf", "section": "Performance improvements" },
|
|
||||||
{ "type": "test", "hidden": true },
|
|
||||||
{ "type": "build", "section": "Build changes" },
|
|
||||||
{ "type": "ci", "section": "CI/CD configuration changes" }
|
|
||||||
],
|
|
||||||
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}"
|
|
||||||
}
|
|
11
themes/CodeIT/.vscode/extensions.json
vendored
11
themes/CodeIT/.vscode/extensions.json
vendored
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"recommendations": [
|
|
||||||
"budparr.language-hugo-vscode",
|
|
||||||
"be5invis.toml",
|
|
||||||
"esbenp.prettier-vscode",
|
|
||||||
"visualstudioexptteam.vscodeintellicode",
|
|
||||||
"eamodio.gitlens",
|
|
||||||
"mutantdino.resourcemonitor",
|
|
||||||
"vscode-icons-team.vscode-icons"
|
|
||||||
]
|
|
||||||
}
|
|
10
themes/CodeIT/.vscode/settings.json
vendored
10
themes/CodeIT/.vscode/settings.json
vendored
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
".huskyrc": "json",
|
|
||||||
".stylelintrc": "json",
|
|
||||||
".lintstagedrc": "json",
|
|
||||||
".all-contributorsrc": "json",
|
|
||||||
},
|
|
||||||
"terminal.integrated.fontFamily": "CaskaydiaCove NF, Cascadia Mono, Consolas, 'Courier New', monospace",
|
|
||||||
"editor.fontLigatures": true
|
|
||||||
}
|
|
|
@ -1,652 +0,0 @@
|
||||||
# Changelog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
||||||
|
|
||||||
## [0.2.0](https://github.com/sunt-programator/CodeIT/compare/v0.1.2...v0.2.0) (2021-08-09)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **localstorage:** restricted adding the theme option when the cookie consent is disabled ([f4f46a8](https://github.com/sunt-programator/CodeIT/commit/f4f46a88ddd0189e42a0881ca18a489ecede9724)), closes [#145](https://github.com/sunt-programator/CodeIT/issues/145)
|
|
||||||
* **mapbox:** added the possibility to load geojson file ([d2fd6d7](https://github.com/sunt-programator/CodeIT/commit/d2fd6d75cbd4579b551f530b8cb7eed725f91ef8))
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **gist:** fixed the lost of indentation ([650a791](https://github.com/sunt-programator/CodeIT/commit/650a791a16af52d5743d09529d7fe089540b53bb)), closes [sunt-programator/CodeIT#173](https://github.com/sunt-programator/CodeIT/issues/173) [sunt-programator/CodeIT#173](https://github.com/sunt-programator/CodeIT/issues/173)
|
|
||||||
* **gist:** fixed the lost of indentation ([0f2081d](https://github.com/sunt-programator/CodeIT/commit/0f2081db3f83ae5983da5c57a096f6ffe000b69c))
|
|
||||||
* **katex:** added overflow to show correctly on mobile devices ([9f84d2f](https://github.com/sunt-programator/CodeIT/commit/9f84d2f507470d6021b37f59e75ab2f91fde748a)), closes [#194](https://github.com/sunt-programator/CodeIT/issues/194)
|
|
||||||
|
|
||||||
|
|
||||||
### Documentation changes
|
|
||||||
|
|
||||||
* update .all-contributorsrc [skip ci] ([588cc5d](https://github.com/sunt-programator/CodeIT/commit/588cc5ddd70d6e14f8dcab3ee0026eb367a93928))
|
|
||||||
* update .all-contributorsrc [skip ci] ([07abfa9](https://github.com/sunt-programator/CodeIT/commit/07abfa9a5823180a4f6ba6f68daf965ee65accb8))
|
|
||||||
* update .all-contributorsrc [skip ci] ([ac5914c](https://github.com/sunt-programator/CodeIT/commit/ac5914cc2857102c7f89f8b9bcfabe2b9c014988))
|
|
||||||
* update .all-contributorsrc [skip ci] ([a7c218c](https://github.com/sunt-programator/CodeIT/commit/a7c218cad0a17c186a63ccde75840b24fa639df3))
|
|
||||||
* update .all-contributorsrc [skip ci] ([25e10de](https://github.com/sunt-programator/CodeIT/commit/25e10deae075a0886f39196553c1ed1bb8052e6a))
|
|
||||||
* update README.md [skip ci] ([8700cd9](https://github.com/sunt-programator/CodeIT/commit/8700cd958aa6f3415fd82d3cd920ab188d8b0fc4))
|
|
||||||
* update README.md [skip ci] ([f89f119](https://github.com/sunt-programator/CodeIT/commit/f89f119b32fd1a8572fde1f2fac89a4a786db512))
|
|
||||||
* update README.md [skip ci] ([59fb620](https://github.com/sunt-programator/CodeIT/commit/59fb620d90e7d296afd872d89add17d4510e6c96))
|
|
||||||
* update README.md [skip ci] ([de65a1d](https://github.com/sunt-programator/CodeIT/commit/de65a1d2142f4c91d102ebbd7509d9f294d1b037))
|
|
||||||
* update README.md [skip ci] ([bd1368e](https://github.com/sunt-programator/CodeIT/commit/bd1368e1f75876f0528a56cf7ae4e00b9194586b))
|
|
||||||
|
|
||||||
|
|
||||||
### CI/CD configuration changes
|
|
||||||
|
|
||||||
* **dependabot:** removed automerge action ([049ea8b](https://github.com/sunt-programator/CodeIT/commit/049ea8b55f58f00e59e3589c0a7e4c997582f9ca))
|
|
||||||
* **deploy:** changed trigger event to tag pushing ([7a6850b](https://github.com/sunt-programator/CodeIT/commit/7a6850b5de8dbbb15522752724de563edb3f5a90))
|
|
||||||
|
|
||||||
|
|
||||||
### Build changes
|
|
||||||
|
|
||||||
* **js:** removed compiled js files ([ca7fcf5](https://github.com/sunt-programator/CodeIT/commit/ca7fcf5e228f9caf28587167b60cb92b19eb030c))
|
|
||||||
* **npm:** updated packages ([17b56f8](https://github.com/sunt-programator/CodeIT/commit/17b56f8ea48fbc76b8ca2b18b432cae5e7d63732))
|
|
||||||
* **npm:** updated packages ([daaadea](https://github.com/sunt-programator/CodeIT/commit/daaadeaded7649be9ffda6fc5074ff06b32b9c52))
|
|
||||||
* **npm:** updated packages ([2ceff1e](https://github.com/sunt-programator/CodeIT/commit/2ceff1e5cbfb42754f9b88d54068bcf0f38948f3))
|
|
||||||
* **npm:** updated packages ([131e1e9](https://github.com/sunt-programator/CodeIT/commit/131e1e9329a74b1d59c182d7c3602333f99bb2bd))
|
|
||||||
* **npm:** updated packages ([a74cdcf](https://github.com/sunt-programator/CodeIT/commit/a74cdcf1dfd2e1ceb0a997ae3a045c8b088abe24))
|
|
||||||
* ignored the 'missing Instagram AccessToken' error ([248048c](https://github.com/sunt-programator/CodeIT/commit/248048cbb46c93dc0f6775c7b8399f82965f5d9d))
|
|
||||||
* **npm:** updated packages ([01ed5d2](https://github.com/sunt-programator/CodeIT/commit/01ed5d28652d2710ccd6a83d07af1a7c0619ba70))
|
|
||||||
* **npm:** updated packages ([1fdda4d](https://github.com/sunt-programator/CodeIT/commit/1fdda4d4ca1ee54c56e95b307985170e330d9a49))
|
|
||||||
* **npm:** updated packages ([fab6811](https://github.com/sunt-programator/CodeIT/commit/fab6811bac4f6ab2bc4f7f7f67e4d9fa573555c4))
|
|
||||||
* **npm:** updated packages ([9904b35](https://github.com/sunt-programator/CodeIT/commit/9904b35243cdb10b1fc3fdb4690e362449b9d8b9))
|
|
||||||
* **npm:** updated packages ([fe9ee8c](https://github.com/sunt-programator/CodeIT/commit/fe9ee8cacb0f993579e955395cb93f6917b73769))
|
|
||||||
* **npm:** updated packages ([5cedad5](https://github.com/sunt-programator/CodeIT/commit/5cedad5958bc8196235b9bf9625222b1d7140bc4))
|
|
||||||
* **npm:** updated packages ([272899d](https://github.com/sunt-programator/CodeIT/commit/272899d77fb598902e1549e8fc49ceaf572f91f9))
|
|
||||||
|
|
||||||
|
|
||||||
### Other changes
|
|
||||||
|
|
||||||
* **devcontainer:** changed configurations ([a9f3d95](https://github.com/sunt-programator/CodeIT/commit/a9f3d95a37f0f6b177b3abd8c6e356582404a9e9))
|
|
||||||
* **gitignore:** ignored compiled js files ([fb48140](https://github.com/sunt-programator/CodeIT/commit/fb481403be14441d917ebc2b40d821c09dd7342b))
|
|
||||||
|
|
||||||
## [0.1.2](https://github.com/sunt-programator/CodeIT/compare/v0.1.0...v0.1.2) (2021-05-02)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **avatar:** added alt text ([dbd66ba](https://github.com/sunt-programator/CodeIT/commit/dbd66ba290571e474b6f67527fa755da4dc5b57c)), closes [#83](https://github.com/sunt-programator/CodeIT/issues/83)
|
|
||||||
* **orcid:** added ORCID social button ([57b4180](https://github.com/sunt-programator/CodeIT/commit/57b418061ca076d8dae4187edc94bf7432eae699)), closes [#82](https://github.com/sunt-programator/CodeIT/issues/82)
|
|
||||||
* **telegram:** added Telegram sharing option ([7614d2e](https://github.com/sunt-programator/CodeIT/commit/7614d2ef1ef0d548690bdf9ce2bdf55251d64b03)), closes [#93](https://github.com/sunt-programator/CodeIT/issues/93)
|
|
||||||
* 💄 add h3-h5 header-mark before style to improve header display on single page posts ([4b35855](https://github.com/sunt-programator/CodeIT/commit/4b35855c31069d2de03f14ec7f114b09cb294250))
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **icon:** fixed search icon shiftin on Firefox browser ([d46221c](https://github.com/sunt-programator/CodeIT/commit/d46221ce1148f1a9eeeef6c4d063632586d2a7e3)), closes [#76](https://github.com/sunt-programator/CodeIT/issues/76)
|
|
||||||
* **rss:** fixed wrong author value ([8d5b0dc](https://github.com/sunt-programator/CodeIT/commit/8d5b0dc1e7553fa09741485b22d0299967cd575e)), closes [#116](https://github.com/sunt-programator/CodeIT/issues/116)
|
|
||||||
* **style:** gist style improvements ([976eb12](https://github.com/sunt-programator/CodeIT/commit/976eb124d9949effd0922dfd38d60621be77a8cc))
|
|
||||||
* **style:** improve gist markdown file rendering ([da4ed46](https://github.com/sunt-programator/CodeIT/commit/da4ed46db8425b6da58b051298ce34b393dd796a))
|
|
||||||
* **style:** remove whitespace setting to preserve gist indentation ([0f37c69](https://github.com/sunt-programator/CodeIT/commit/0f37c69852e59d06f300e6d9e6cbada4442d3877))
|
|
||||||
|
|
||||||
|
|
||||||
### Build changes
|
|
||||||
|
|
||||||
* updated packages ([ea3e157](https://github.com/sunt-programator/CodeIT/commit/ea3e157be62f062b91ad29cd50ecabbc92909179))
|
|
||||||
* updated packages ([fc3ba71](https://github.com/sunt-programator/CodeIT/commit/fc3ba71577202db77123ebf340b697d658993055))
|
|
||||||
* updated packages ([16aa115](https://github.com/sunt-programator/CodeIT/commit/16aa115d89dcf4227499c09cd6495f9a1efb9b76))
|
|
||||||
* updated packages ([fa12232](https://github.com/sunt-programator/CodeIT/commit/fa12232ed47e9aaee3112b0e72b89feed21ae5e5))
|
|
||||||
|
|
||||||
|
|
||||||
### CI/CD configuration changes
|
|
||||||
|
|
||||||
* **dependabot:** added job ([0502b08](https://github.com/sunt-programator/CodeIT/commit/0502b0897b0f7e89e441bfd5317cbfaee0b6c6d5))
|
|
||||||
* changed dependabot action ([f79d41b](https://github.com/sunt-programator/CodeIT/commit/f79d41b4f7f77f8d17ba228e93912bdeca94d37a))
|
|
||||||
* **dependabot:** added auto merger action ([a8ada22](https://github.com/sunt-programator/CodeIT/commit/a8ada228915bcc79862dac952c85ca72db0ce386))
|
|
||||||
|
|
||||||
|
|
||||||
### Documentation changes
|
|
||||||
|
|
||||||
* update .all-contributorsrc [skip ci] ([ea1305c](https://github.com/sunt-programator/CodeIT/commit/ea1305c4721fa7e49583871c13089cc1ff8a8cd7))
|
|
||||||
* update README.md [skip ci] ([1d85835](https://github.com/sunt-programator/CodeIT/commit/1d858354647133235f932a26ce2cf014756330d7))
|
|
||||||
* **readme:** added emoji on titles ([7e49cdf](https://github.com/sunt-programator/CodeIT/commit/7e49cdf87197a674fc4b6b381dfff30a45324b38))
|
|
||||||
* **readme:** removed TOC since Github implemented it ([66812e2](https://github.com/sunt-programator/CodeIT/commit/66812e277920a80684c021617fa2a50893c7f67b))
|
|
||||||
* update .all-contributorsrc [skip ci] ([6245177](https://github.com/sunt-programator/CodeIT/commit/6245177a5a2b0ad1b8c5972d9e19a718b3313d42))
|
|
||||||
* update .all-contributorsrc [skip ci] ([8969557](https://github.com/sunt-programator/CodeIT/commit/8969557c24e8a967a25c47e7e783b98fe36031c1))
|
|
||||||
* update .all-contributorsrc [skip ci] ([1840013](https://github.com/sunt-programator/CodeIT/commit/18400135d2d8008280db405f5d9ad2208c8b2e37))
|
|
||||||
* update .all-contributorsrc [skip ci] ([f93fcac](https://github.com/sunt-programator/CodeIT/commit/f93fcac9ce8cd92b02ce82125e33c6394d820ebc))
|
|
||||||
* update .all-contributorsrc [skip ci] ([98b25de](https://github.com/sunt-programator/CodeIT/commit/98b25de39c6085408e231b7843ea14a933e7ba58))
|
|
||||||
* update .all-contributorsrc [skip ci] ([122cbf8](https://github.com/sunt-programator/CodeIT/commit/122cbf8058e0526e78a08b2da4a11ff02eb1582c))
|
|
||||||
* update .all-contributorsrc [skip ci] ([ac3042e](https://github.com/sunt-programator/CodeIT/commit/ac3042e6a3bd7ca65987611af34bc8e9a54a1fa2))
|
|
||||||
* update .all-contributorsrc [skip ci] ([e1df683](https://github.com/sunt-programator/CodeIT/commit/e1df683cc6c8e32e8856d0250b6f874c10fa3a80))
|
|
||||||
* update .all-contributorsrc [skip ci] ([e25e6eb](https://github.com/sunt-programator/CodeIT/commit/e25e6eb26a6d69c2e0654df5a64d33e31e563b96))
|
|
||||||
* update README.md [skip ci] ([2b1ff75](https://github.com/sunt-programator/CodeIT/commit/2b1ff750fc6deb0c849f1461d52cd68cb83cd071))
|
|
||||||
* update README.md [skip ci] ([058153e](https://github.com/sunt-programator/CodeIT/commit/058153ecef723aefaf38a4bbe809077270cb2eb6))
|
|
||||||
* update README.md [skip ci] ([b4f0d34](https://github.com/sunt-programator/CodeIT/commit/b4f0d34164b73c4dbc3a9d939e2c002d1827a003))
|
|
||||||
* update README.md [skip ci] ([6705912](https://github.com/sunt-programator/CodeIT/commit/6705912021d80b6fff61d4d2b64c402068ec925f))
|
|
||||||
* update README.md [skip ci] ([fb23183](https://github.com/sunt-programator/CodeIT/commit/fb23183bc63bf8cd934f21a0680145a5dc898a62))
|
|
||||||
* **preview-image:** changed preview image of the theme ([c832e33](https://github.com/sunt-programator/CodeIT/commit/c832e337d7861124f57584049c8a6cfd794ffb04)), closes [#29](https://github.com/sunt-programator/CodeIT/issues/29)
|
|
||||||
* update README.md [skip ci] ([c33db6b](https://github.com/sunt-programator/CodeIT/commit/c33db6bd71fc893e9f02688283c0385c77a4fb4d))
|
|
||||||
* update README.md [skip ci] ([c9589eb](https://github.com/sunt-programator/CodeIT/commit/c9589ebe9959df61d2304df74793b748e4ca9c3b))
|
|
||||||
* update README.md [skip ci] ([076ae7f](https://github.com/sunt-programator/CodeIT/commit/076ae7f54646980427932f927e8f5586f78e0f40))
|
|
||||||
* update README.md [skip ci] ([e844580](https://github.com/sunt-programator/CodeIT/commit/e844580eec5d75c9720238b91c983bc27f9d64f3))
|
|
||||||
|
|
||||||
|
|
||||||
### Other changes
|
|
||||||
|
|
||||||
* changed dev container configs ([b575a22](https://github.com/sunt-programator/CodeIT/commit/b575a22cfdcb512939b02eea024c32470bea5090))
|
|
||||||
* enabled fingerprint ([6ed8392](https://github.com/sunt-programator/CodeIT/commit/6ed8392c88e6036680f94239c6b63600d7f20d32))
|
|
||||||
* **release:** 0.1.1 ([f13aab5](https://github.com/sunt-programator/CodeIT/commit/f13aab53547d2bd31cad866c51e1d0e5bd0d37fc))
|
|
||||||
* **versionrc:** added compare URL format ([37fd853](https://github.com/sunt-programator/CodeIT/commit/37fd853cb108777d092d84991a9e7d9679b96f6b))
|
|
||||||
|
|
||||||
## [0.1.1](https://github.com/sunt-programator/CodeIT/compare/v0.1.0...v0.1.1) (2021-02-28)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* 💄 add h3-h5 header-mark before style to improve header display on single page posts ([4b35855](https://github.com/sunt-programator/CodeIT/commit/4b35855c31069d2de03f14ec7f114b09cb294250))
|
|
||||||
* **avatar:** added alt text ([dbd66ba](https://github.com/sunt-programator/CodeIT/commit/dbd66ba290571e474b6f67527fa755da4dc5b57c)), closes [#83](https://github.com/sunt-programator/CodeIT/issues/83)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **icon:** fixed search icon shiftin on Firefox browser ([d46221c](https://github.com/sunt-programator/CodeIT/commit/d46221ce1148f1a9eeeef6c4d063632586d2a7e3)), closes [#76](https://github.com/sunt-programator/CodeIT/issues/76)
|
|
||||||
|
|
||||||
|
|
||||||
### Documentation changes
|
|
||||||
|
|
||||||
* update .all-contributorsrc [skip ci] ([f93fcac](https://github.com/sunt-programator/CodeIT/commit/f93fcac9ce8cd92b02ce82125e33c6394d820ebc))
|
|
||||||
* update .all-contributorsrc [skip ci] ([98b25de](https://github.com/sunt-programator/CodeIT/commit/98b25de39c6085408e231b7843ea14a933e7ba58))
|
|
||||||
* update .all-contributorsrc [skip ci] ([122cbf8](https://github.com/sunt-programator/CodeIT/commit/122cbf8058e0526e78a08b2da4a11ff02eb1582c))
|
|
||||||
* update .all-contributorsrc [skip ci] ([ac3042e](https://github.com/sunt-programator/CodeIT/commit/ac3042e6a3bd7ca65987611af34bc8e9a54a1fa2))
|
|
||||||
* update .all-contributorsrc [skip ci] ([e1df683](https://github.com/sunt-programator/CodeIT/commit/e1df683cc6c8e32e8856d0250b6f874c10fa3a80))
|
|
||||||
* update .all-contributorsrc [skip ci] ([e25e6eb](https://github.com/sunt-programator/CodeIT/commit/e25e6eb26a6d69c2e0654df5a64d33e31e563b96))
|
|
||||||
* update README.md [skip ci] ([6705912](https://github.com/sunt-programator/CodeIT/commit/6705912021d80b6fff61d4d2b64c402068ec925f))
|
|
||||||
* update README.md [skip ci] ([fb23183](https://github.com/sunt-programator/CodeIT/commit/fb23183bc63bf8cd934f21a0680145a5dc898a62))
|
|
||||||
* **preview-image:** changed preview image of the theme ([c832e33](https://github.com/sunt-programator/CodeIT/commit/c832e337d7861124f57584049c8a6cfd794ffb04)), closes [#29](https://github.com/sunt-programator/CodeIT/issues/29)
|
|
||||||
* update README.md [skip ci] ([c33db6b](https://github.com/sunt-programator/CodeIT/commit/c33db6bd71fc893e9f02688283c0385c77a4fb4d))
|
|
||||||
* update README.md [skip ci] ([c9589eb](https://github.com/sunt-programator/CodeIT/commit/c9589ebe9959df61d2304df74793b748e4ca9c3b))
|
|
||||||
* update README.md [skip ci] ([076ae7f](https://github.com/sunt-programator/CodeIT/commit/076ae7f54646980427932f927e8f5586f78e0f40))
|
|
||||||
* update README.md [skip ci] ([e844580](https://github.com/sunt-programator/CodeIT/commit/e844580eec5d75c9720238b91c983bc27f9d64f3))
|
|
||||||
|
|
||||||
|
|
||||||
### Build changes
|
|
||||||
|
|
||||||
* updated packages ([ea3e157](https://github.com/sunt-programator/CodeIT/commit/ea3e157be62f062b91ad29cd50ecabbc92909179))
|
|
||||||
* updated packages ([fc3ba71](https://github.com/sunt-programator/CodeIT/commit/fc3ba71577202db77123ebf340b697d658993055))
|
|
||||||
* updated packages ([16aa115](https://github.com/sunt-programator/CodeIT/commit/16aa115d89dcf4227499c09cd6495f9a1efb9b76))
|
|
||||||
* updated packages ([fa12232](https://github.com/sunt-programator/CodeIT/commit/fa12232ed47e9aaee3112b0e72b89feed21ae5e5))
|
|
||||||
|
|
||||||
|
|
||||||
### Other changes
|
|
||||||
|
|
||||||
* **versionrc:** added compare URL format ([37fd853](https://github.com/sunt-programator/CodeIT/commit/37fd853cb108777d092d84991a9e7d9679b96f6b))
|
|
||||||
|
|
||||||
## 0.1.0 (2020-12-26)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Add Plausible Analytics option ([53e045c](https://github.com/sunt-programator/CodeIT/commit/53e045cb5d2249353910f1094e7bb9b31542a17a))
|
|
||||||
- added devcontainer ([02f046e](https://github.com/sunt-programator/CodeIT/commit/02f046e872ff9cdda531b49f9f4de7ef794b650d))
|
|
||||||
- **analytics:** update Google analytics.js to gtag.js ([#349](https://github.com/sunt-programator/CodeIT/issues/349)) ([83869e0](https://github.com/sunt-programator/CodeIT/commit/83869e0fc82356011bb155370d51a4ce3e6924c9))
|
|
||||||
- **button:** add 'comment' fixed button ([#169](https://github.com/sunt-programator/CodeIT/issues/169)) ([6e091b6](https://github.com/sunt-programator/CodeIT/commit/6e091b6fad270022f20003c7e13d7edf2496a44e))
|
|
||||||
- **CDN:** replace CDN config with CDN data file ([#353](https://github.com/sunt-programator/CodeIT/issues/353)) ([39159a9](https://github.com/sunt-programator/CodeIT/commit/39159a9a6d374396229d418ccabb45dbec49f1f6))
|
|
||||||
- **code:** add copy button for code ([#239](https://github.com/sunt-programator/CodeIT/issues/239)) ([8a0e610](https://github.com/sunt-programator/CodeIT/commit/8a0e61085cfc2f2d1a342697c73b10cbc1d27a68))
|
|
||||||
- **code:** add support for code block folding ([#259](https://github.com/sunt-programator/CodeIT/issues/259)) ([bcbc426](https://github.com/sunt-programator/CodeIT/commit/bcbc4268ea70465a3461c5bd9ef678e305dc4e95))
|
|
||||||
- **comment:** add comment for single page and emoji config for Valine ([#328](https://github.com/sunt-programator/CodeIT/issues/328)) ([2513afb](https://github.com/sunt-programator/CodeIT/commit/2513afbd54ed5b91663915173fc0d6cbc4b9b74c))
|
|
||||||
- **comment:** add Telegram Comments support ([#180](https://github.com/sunt-programator/CodeIT/issues/180)) ([01d814e](https://github.com/sunt-programator/CodeIT/commit/01d814ef6fa585e82991bcb9e24c27c908ee82f0))
|
|
||||||
- **comment:** add Utterances comment system ([#317](https://github.com/sunt-programator/CodeIT/issues/317)) ([7dfa964](https://github.com/sunt-programator/CodeIT/commit/7dfa964d3fd54b6490316c234e0694e7db74a004))
|
|
||||||
- **comments:** add commento.io comment system ([#255](https://github.com/sunt-programator/CodeIT/issues/255)) ([f588881](https://github.com/sunt-programator/CodeIT/commit/f5888812168b458294241eb5d433d9650670b904))
|
|
||||||
- **compatibility:** add config for compatibility (Polyfill.io and object-fit-images) ([c5a0ec6](https://github.com/sunt-programator/CodeIT/commit/c5a0ec61c9b5cc5a76dda784e1a39bbbc55ff8f7))
|
|
||||||
- **compatibility:** add polyfill.io to improve compatibility ([#236](https://github.com/sunt-programator/CodeIT/issues/236)) ([9f37d7b](https://github.com/sunt-programator/CodeIT/commit/9f37d7bc2a2580b19c211521b68194faecd3e736))
|
|
||||||
- **compatibility:** improve compatibility for Hugo basic version ([#352](https://github.com/sunt-programator/CodeIT/issues/352)) ([762a7e5](https://github.com/sunt-programator/CodeIT/commit/762a7e538d291e0ede8ca4d64b2fcf12ec5d8e9c))
|
|
||||||
- **content:** support complete local resource references ([#388](https://github.com/sunt-programator/CodeIT/issues/388)) ([aa48df5](https://github.com/sunt-programator/CodeIT/commit/aa48df5eddf17e220e1f2cfd84538399a14249d2))
|
|
||||||
- **cookies:** add Cookie consent banner ([#355](https://github.com/sunt-programator/CodeIT/issues/355)) ([0a9ec97](https://github.com/sunt-programator/CodeIT/commit/0a9ec9745073527c2d43c545ef8d228fb22a16fa))
|
|
||||||
- **fixed-btns:** add title for fixed buttons ([#176](https://github.com/sunt-programator/CodeIT/issues/176)) ([80db783](https://github.com/sunt-programator/CodeIT/commit/80db7833963a0b43bcca86cecfb7eb83a6e1aa50))
|
|
||||||
- **header:** add Logo, pre and post config for header title ([#252](https://github.com/sunt-programator/CodeIT/issues/252)) ([87fbb05](https://github.com/sunt-programator/CodeIT/commit/87fbb05e863c014b858eae042c890f1a52928df7))
|
|
||||||
- **header:** support header title typeit ([#306](https://github.com/sunt-programator/CodeIT/issues/306)) ([8c70654](https://github.com/sunt-programator/CodeIT/commit/8c706548c7e0e02921262de71024a434ed670bf8))
|
|
||||||
- **home:** add custom content for home page ([#248](https://github.com/sunt-programator/CodeIT/issues/248)) ([3c38d54](https://github.com/sunt-programator/CodeIT/commit/3c38d54a87fcc844075c4ee8efc1ce1d85ac5117))
|
|
||||||
- **home:** add disclaimer under social links on home page ([#175](https://github.com/sunt-programator/CodeIT/issues/175)) ([0ca8a4c](https://github.com/sunt-programator/CodeIT/commit/0ca8a4c85ba198b0614f360fe38145371b78fd80))
|
|
||||||
- **home:** home profile title support HTML format ([#356](https://github.com/sunt-programator/CodeIT/issues/356)) ([861350b](https://github.com/sunt-programator/CodeIT/commit/861350be32c785158847b9fc136ac2d0c62dc950))
|
|
||||||
- **i18n:** add Vietnamese translation ([#383](https://github.com/sunt-programator/CodeIT/issues/383)) ([7a942f2](https://github.com/sunt-programator/CodeIT/commit/7a942f2d56470d79e16a195369b2de3e37121f9c))
|
|
||||||
- **i18n:** added romanian and russian languages ([#335](https://github.com/sunt-programator/CodeIT/issues/335)) ([fcba159](https://github.com/sunt-programator/CodeIT/commit/fcba1590b666e50771e3440c5c702f868ce90196))
|
|
||||||
- **lib:** add normalize.css lib ([#235](https://github.com/sunt-programator/CodeIT/issues/235)) ([bc97c09](https://github.com/sunt-programator/CodeIT/commit/bc97c099ac2b53bfb9c9a34d21e8cd7ba9f73d20))
|
|
||||||
- **lunr:** some optimizing lib/lunr/\*.js ([#367](https://github.com/sunt-programator/CodeIT/issues/367)) ([c1016df](https://github.com/sunt-programator/CodeIT/commit/c1016df5d6ea4102baf117ec9599a1fcfbe7248f))
|
|
||||||
- **page:** add custom page library support (css and js) ([#357](https://github.com/sunt-programator/CodeIT/issues/357)) ([486d859](https://github.com/sunt-programator/CodeIT/commit/486d859cc8e9fab017bc57a15362474b486a9689))
|
|
||||||
- **profile:** Add optional title above subtitle ([#308](https://github.com/sunt-programator/CodeIT/issues/308)) ([67617b8](https://github.com/sunt-programator/CodeIT/commit/67617b82dcd4b6b42df543882b733f4d1bea87f6))
|
|
||||||
- **rss:** add rssFullText param for RSS ([#301](https://github.com/sunt-programator/CodeIT/issues/301)) ([e3e3bdf](https://github.com/sunt-programator/CodeIT/commit/e3e3bdf9ee64d8732216b2182ec2bac9f3d4e1e1))
|
|
||||||
- **search:** add absoluteURL config for search index ([#302](https://github.com/sunt-programator/CodeIT/issues/302)) ([971eff8](https://github.com/sunt-programator/CodeIT/commit/971eff815c8c1826a50ef85954714a429b96e990))
|
|
||||||
- **search:** add local search ([#231](https://github.com/sunt-programator/CodeIT/issues/231)) ([90184ca](https://github.com/sunt-programator/CodeIT/commit/90184ca3e7049188709bb804119833a6bfd263d4))
|
|
||||||
- **search:** add more params for search and improve search index ([#279](https://github.com/sunt-programator/CodeIT/issues/279)) ([16a4e94](https://github.com/sunt-programator/CodeIT/commit/16a4e94117f118a358d1c0184db48e70a0aa63a9))
|
|
||||||
- **search:** add snippetLength config for search results ([#296](https://github.com/sunt-programator/CodeIT/issues/296)) ([79df5c6](https://github.com/sunt-programator/CodeIT/commit/79df5c667ec596ac0137e1deefe8e94eef585923))
|
|
||||||
- **search:** improve search index ([108679e](https://github.com/sunt-programator/CodeIT/commit/108679e137bef428135aaba46bcb44b804c21489))
|
|
||||||
- **search:** improve search index ([26381b4](https://github.com/sunt-programator/CodeIT/commit/26381b498d09a26b0e7d4188e8e9295539b6f94d))
|
|
||||||
- **search:** improve search index by chunked separated by h2 and h3 ([#290](https://github.com/sunt-programator/CodeIT/issues/290)) ([3096ff6](https://github.com/sunt-programator/CodeIT/commit/3096ff623597d3af9a9c65525405b858ad547e7a))
|
|
||||||
- **search:** improve search index by rm line number in code block ([#294](https://github.com/sunt-programator/CodeIT/issues/294))) ([4191e04](https://github.com/sunt-programator/CodeIT/commit/4191e046d8763bfd7323a637508e47e3c7823c18))
|
|
||||||
- **SEO:** update SEO config ([#393](https://github.com/sunt-programator/CodeIT/issues/393)) ([89a526d](https://github.com/sunt-programator/CodeIT/commit/89a526d693211967765641a1f8458644f7f36966))
|
|
||||||
- **shortcode:** add link shortcode ([#179](https://github.com/sunt-programator/CodeIT/issues/179)) ([6b03c71](https://github.com/sunt-programator/CodeIT/commit/6b03c711ac8000b5bd09c23f3fea2a005389b230))
|
|
||||||
- **shortcode:** add mapbox shortcode ([#190](https://github.com/sunt-programator/CodeIT/issues/190)) ([aed8734](https://github.com/sunt-programator/CodeIT/commit/aed8734d83cf68df3b8dc62b27c37888c5cc9569))
|
|
||||||
- **shortcode:** add script shortcode ([#359](https://github.com/sunt-programator/CodeIT/issues/359)) ([d3d2d75](https://github.com/sunt-programator/CodeIT/commit/d3d2d751ecbb6f4e386c5235bac53fae9e28bbda))
|
|
||||||
- **shortcode:** refactor and improve image shortcode ([#187](https://github.com/sunt-programator/CodeIT/issues/187)) ([774e831](https://github.com/sunt-programator/CodeIT/commit/774e831a210e44aeca9848eb0d636aae5af009dd))
|
|
||||||
- **shortcodes:** add width and height params for echarts shortc… ([#192](https://github.com/sunt-programator/CodeIT/issues/192)) ([b6ce753](https://github.com/sunt-programator/CodeIT/commit/b6ce753ae7892839899962b879e2cc5808c60732))
|
|
||||||
- **sitemap:** improve priority ([#392](https://github.com/sunt-programator/CodeIT/issues/392)) ([2242e0c](https://github.com/sunt-programator/CodeIT/commit/2242e0c3c74a95afb5f11f366977ce1d9a0b16ba))
|
|
||||||
- **social:** improve social links ([#254](https://github.com/sunt-programator/CodeIT/issues/254)) ([c2197b7](https://github.com/sunt-programator/CodeIT/commit/c2197b7411d613d7fbd75346a9d241c81258cdd7))
|
|
||||||
- **style:** add header title style config ([#170](https://github.com/sunt-programator/CodeIT/issues/170)) ([ee1c5c2](https://github.com/sunt-programator/CodeIT/commit/ee1c5c22bc765660aad504c63c949239c454302e))
|
|
||||||
- **style:** adjust mobile TOC style ([#155](https://github.com/sunt-programator/CodeIT/issues/155)) ([344f2f8](https://github.com/sunt-programator/CodeIT/commit/344f2f809c2a90a3855020fd6b270f031469a92f))
|
|
||||||
- **style:** adjust style of header, tags and dynamic-to-top button ([3d9aad3](https://github.com/sunt-programator/CodeIT/commit/3d9aad32056567b292795e2941428d7ab157cc42))
|
|
||||||
- **style:** change custom style file path ([#360](https://github.com/sunt-programator/CodeIT/issues/360)) ([da9df3b](https://github.com/sunt-programator/CodeIT/commit/da9df3b0ce07472aa9a792b2f39b29aae1904c99))
|
|
||||||
- **style:** improve style shortcode to support nesting ([#263](https://github.com/sunt-programator/CodeIT/issues/263)) ([fc46fba](https://github.com/sunt-programator/CodeIT/commit/fc46fba6aa1a747d19c9d0b37b0a26e944cfbba3))
|
|
||||||
- **style:** improve toc style ([#167](https://github.com/sunt-programator/CodeIT/issues/167)) ([212e67c](https://github.com/sunt-programator/CodeIT/commit/212e67c2a59dff21dbcaf287565f161c6a0dd578))
|
|
||||||
- **style:** simplify blockquote style and rm fa-fw for fontawesome syntax ([#257](https://github.com/sunt-programator/CodeIT/issues/257)) ([41a92c6](https://github.com/sunt-programator/CodeIT/commit/41a92c61661145cf2f1777a50bf7ee7a2a50cc60))
|
|
||||||
- **subtitle:** add subtitle for posts ([#171](https://github.com/sunt-programator/CodeIT/issues/171)) ([9a7189c](https://github.com/sunt-programator/CodeIT/commit/9a7189c2a3f52792dfa5bbd96aaa7c8626ed457c))
|
|
||||||
- **syntax:** add fraction syntax ([#181](https://github.com/sunt-programator/CodeIT/issues/181)) ([84d48f3](https://github.com/sunt-programator/CodeIT/commit/84d48f37dcf35e9f414445e1eed3489c674fe1af))
|
|
||||||
- **TOC:** add keepStatic param for TOC ([#372](https://github.com/sunt-programator/CodeIT/issues/372)) ([9dd5230](https://github.com/sunt-programator/CodeIT/commit/9dd5230204491e2ac61514ae22079ff0b6cd4ec9))
|
|
||||||
- **typeit:** add some config for TypeIt ([#314](https://github.com/sunt-programator/CodeIT/issues/314)) ([e4c71ed](https://github.com/sunt-programator/CodeIT/commit/e4c71edddf1b22fa2cff897fb5f8a833106fcc82))
|
|
||||||
- improve browser compatibility for TypeIt and object-fit ([#293](https://github.com/sunt-programator/CodeIT/issues/293)) ([3040ffa](https://github.com/sunt-programator/CodeIT/commit/3040ffa107eccd45416a5b9c5f3b85fdd50d94d8))
|
|
||||||
- **twemoji:** add support for twemoji ([#264](https://github.com/sunt-programator/CodeIT/issues/264)) ([b46c810](https://github.com/sunt-programator/CodeIT/commit/b46c81053f7a4307945b82bee6944af7e6e13d1c))
|
|
||||||
- **valine:** add more params for new valine ([#272](https://github.com/sunt-programator/CodeIT/issues/272)) ([12546ba](https://github.com/sunt-programator/CodeIT/commit/12546ba9bff2ca2648b63e43c93aa0d9c58b6eea))
|
|
||||||
- add detection of the theme version and Hugo version ([#173](https://github.com/sunt-programator/CodeIT/issues/173)) ([41c2d3a](https://github.com/sunt-programator/CodeIT/commit/41c2d3a38e77b5a0db8ff9d8d3f49730355f554c))
|
|
||||||
- **404:** update 404.html style ([17bbe91](https://github.com/sunt-programator/CodeIT/commit/17bbe91c6fb88f77d5c81dbd9647cf20f8bd5242))
|
|
||||||
- **aplayer:** add dark-mode for APlayer and fix Typeit bug ([c8e612b](https://github.com/sunt-programator/CodeIT/commit/c8e612b888cf3bb16ac4b6f7f1ea911f98a6afc3))
|
|
||||||
- **assets:** add SRI config for stylesheet and script ([924692a](https://github.com/sunt-programator/CodeIT/commit/924692a07efd5fc430cefb3a1a2e3561570b9d33))
|
|
||||||
- **author:** add author_link and fix highlight bug ([8aa4b6d](https://github.com/sunt-programator/CodeIT/commit/8aa4b6dce6da9601411c7caa07e6352c98ddc4f4))
|
|
||||||
- **checkbox:** change checkbox style ([495f7e6](https://github.com/sunt-programator/CodeIT/commit/495f7e651f49f0b3e3e4fa1bd0766b244748c18b))
|
|
||||||
- **comment:** add enable for disqus and gitalk ([86c6972](https://github.com/sunt-programator/CodeIT/commit/86c6972cf21a92f86b1e659939e5fd1559146e47))
|
|
||||||
- **comments:** improve comments and add valine config meta ([2417eff](https://github.com/sunt-programator/CodeIT/commit/2417effc05f4a561f6f6fe1e0f7c416920e2aad8))
|
|
||||||
- **config:** add config for default theme light/dark ([095089f](https://github.com/sunt-programator/CodeIT/commit/095089fb3f05fd37e401ce407daef87224a96e0d))
|
|
||||||
- **countdown:** add style para for countdown shortcode ([6736670](https://github.com/sunt-programator/CodeIT/commit/6736670d1030ef283d7874fa0df41004124114dc))
|
|
||||||
- **css:** add admonition css variable ([b91ca3d](https://github.com/sunt-programator/CodeIT/commit/b91ca3d61ac77d3bec257325682a82729e00890d))
|
|
||||||
- **css:** add local fork-awesome css ([4c452aa](https://github.com/sunt-programator/CodeIT/commit/4c452aae124b9ec50938de4d895e9df4c4ea6411))
|
|
||||||
- **custom-css:** new custom css ([517b734](https://github.com/sunt-programator/CodeIT/commit/517b73434797dfb67435faa82c841fdc6382dc80))
|
|
||||||
- **environment:** use hugo.Environment to judge the production environment ([285efc0](https://github.com/sunt-programator/CodeIT/commit/285efc01bbd6ff84f025b1acc5060233185e2f01))
|
|
||||||
- **exampleSite:** add some posts to exampleSite ([437ef95](https://github.com/sunt-programator/CodeIT/commit/437ef95e14ed568fd26fd45a950561b8588da024))
|
|
||||||
- **exampleSite:** merge en and zh exampleSite ([20c9c81](https://github.com/sunt-programator/CodeIT/commit/20c9c812d070a99d6749399cfe4fcf318b80e0cd))
|
|
||||||
- **highlight:** improve syntax style ([aa01ece](https://github.com/sunt-programator/CodeIT/commit/aa01ececa012af5a1ed76c0927c94c6a42f8708b))
|
|
||||||
- **home:** improve default behavior of hiddenFromHomePage ([a276661](https://github.com/sunt-programator/CodeIT/commit/a276661f0a154938b4d7885e97979780253891a5))
|
|
||||||
- **i18n:** add select-menu for i18n ([1d1cae6](https://github.com/sunt-programator/CodeIT/commit/1d1cae6382228025a5d42f9e7e24e2cbe6060998))
|
|
||||||
- **i18n:** add switchTheme i18n ([7e62363](https://github.com/sunt-programator/CodeIT/commit/7e6236361f790ec76a1d282021e6507a8378f40f))
|
|
||||||
- **image:** add image lightgallery ([72a2e9b](https://github.com/sunt-programator/CodeIT/commit/72a2e9bdcfee2daba6503cd473609d5ea34f2b30))
|
|
||||||
- **KaTeX:** add copy-tex and mhchem for KaTeX ([d605de7](https://github.com/sunt-programator/CodeIT/commit/d605de7f061a7e48f293cc986ec000b65ba2adaf))
|
|
||||||
- **layout:** add animation for title and some style changed ([b97cd8c](https://github.com/sunt-programator/CodeIT/commit/b97cd8cdbca87847c0cae25b6663d0038a023588))
|
|
||||||
- **lib:** update mermaid to v8.4.2, echarts to v4.5.0, typeit to v6.1.1(modern) ([d056fd4](https://github.com/sunt-programator/CodeIT/commit/d056fd46d773f06da37902c1bbfa1b4c21b0e947))
|
|
||||||
- **lib:** upgrade libs and fix exampleSite bugs ([e8ee57c](https://github.com/sunt-programator/CodeIT/commit/e8ee57c2959cc452ee5a474de1795fbf0172afe7))
|
|
||||||
- **menu:** add menu pre ([8cd7e8d](https://github.com/sunt-programator/CodeIT/commit/8cd7e8d6724dcc25bd3c8313374956da2bc19054))
|
|
||||||
- **mermaid:** improve mermaid style and render ([2578aba](https://github.com/sunt-programator/CodeIT/commit/2578aba9ca8c4f45cbc6d379b57bca49ab9b9ea8))
|
|
||||||
- **paginate:** add param home_paginate for home post pages and fix relURL bug ([473900d](https://github.com/sunt-programator/CodeIT/commit/473900da79727f8c0a92e7500872f2062a585121))
|
|
||||||
- **partial:** add hook and image partial ([8aba226](https://github.com/sunt-programator/CodeIT/commit/8aba2262906628f38f114a9947783bc6c7fd7495))
|
|
||||||
- **shortcodes:** replace [align]/[float] with [style] and add [style] ([f8a7fd1](https://github.com/sunt-programator/CodeIT/commit/f8a7fd1df98f3a8c1426044b7d627306b91e6e7a))
|
|
||||||
- **socal:** add support for custom MastodonPrefix ([715cb00](https://github.com/sunt-programator/CodeIT/commit/715cb005c964e58553c8b3624eb935c5ae30b3bf))
|
|
||||||
- **social:** add bilibili social config ([edc53d7](https://github.com/sunt-programator/CodeIT/commit/edc53d7cd18e4e6f1e60bc69636c1b1dd9f13535))
|
|
||||||
- **speed:** improve loading speed of static resource ([836fe16](https://github.com/sunt-programator/CodeIT/commit/836fe1612f63417e1e5c8a52b9e0e6dfb3afc4da))
|
|
||||||
- **style:** add some custom styles ([c7e389c](https://github.com/sunt-programator/CodeIT/commit/c7e389c25a6c5d083065960f46676525d7fd0a5e))
|
|
||||||
- **style:** improve style for header and image ([26727fd](https://github.com/sunt-programator/CodeIT/commit/26727fd1933b30e6cdf4fd403bdefaa03ec73800))
|
|
||||||
- **style:** update toc link color style ([f629b62](https://github.com/sunt-programator/CodeIT/commit/f629b6217bebdac23092e04e3202a5872a2718cb))
|
|
||||||
- **theme:** add detecting system dark mode to set site theme ([88273f4](https://github.com/sunt-programator/CodeIT/commit/88273f439aaa763592087ba5cce494525b665721))
|
|
||||||
- **toc:** add custom TOC font size ([1894403](https://github.com/sunt-programator/CodeIT/commit/18944037943fa11e96265c58fba62ec0bbec3d68))
|
|
||||||
- **toc:** support fontawesome and ruby in TOC ([c8fee17](https://github.com/sunt-programator/CodeIT/commit/c8fee1783a27c17454b8e7a6b08eb5de099a4dc4))
|
|
||||||
- **valine:** add valine dark theme ([b9c7510](https://github.com/sunt-programator/CodeIT/commit/b9c7510260db961760c9912dd321b733c0289f45))
|
|
||||||
- **zh:** exampleSite-zh fit new theme ([8cdacbd](https://github.com/sunt-programator/CodeIT/commit/8cdacbd4e2221605f389b562414fa8e1610b4c20))
|
|
||||||
- add bilibili diagram echarts and improve style ([6981f1e](https://github.com/sunt-programator/CodeIT/commit/6981f1e28534cbec26405f65d4e7c900c1be54ed))
|
|
||||||
- add en/zh README and exampleSite files ([af3161f](https://github.com/sunt-programator/CodeIT/commit/af3161fff6b8598aff7140f81e2c28c1bf746a61))
|
|
||||||
- add Katex ([95aeca1](https://github.com/sunt-programator/CodeIT/commit/95aeca1c41d1971fa8f43bdd1a09e64ea9c92673))
|
|
||||||
- add site and page parameter for math(KaTeX) ([3b279e7](https://github.com/sunt-programator/CodeIT/commit/3b279e79812dbd2dfe10a0868a7617f7a12e37e0))
|
|
||||||
- add social link for RSS and some configs ([#250](https://github.com/sunt-programator/CodeIT/issues/250)) ([07b669c](https://github.com/sunt-programator/CodeIT/commit/07b669c826f9250e6593e880f80c63bf70f5a746))
|
|
||||||
- add subtitle typeit ([5e55b25](https://github.com/sunt-programator/CodeIT/commit/5e55b25c8ad04c8aa1af12d87b7fa47147996602))
|
|
||||||
- add TypeIt and CountDown ([0b85b03](https://github.com/sunt-programator/CodeIT/commit/0b85b03f62737bbc0b519102ceed05c4a482d4af))
|
|
||||||
- CDN for public js lib ([cf4b33a](https://github.com/sunt-programator/CodeIT/commit/cf4b33aed398a89011ec46887a36265b37acc518))
|
|
||||||
- faster, support custom lib cdn and more standardized code style ([934c3a5](https://github.com/sunt-programator/CodeIT/commit/934c3a515615c8e6cd44b8d8f86358738cf1295c))
|
|
||||||
- fit new themefix: fix style bugfix: fix style bug ([f4cda2e](https://github.com/sunt-programator/CodeIT/commit/f4cda2e602998b5f6e63acd74506a26bbb1d5e60))
|
|
||||||
- fontawesome, admonition and faster ([2653f1b](https://github.com/sunt-programator/CodeIT/commit/2653f1bc7cf20162d901a8625a993c01a433f91a))
|
|
||||||
- impove i18n and clean code ([c67a2a8](https://github.com/sunt-programator/CodeIT/commit/c67a2a86a187923b87ad56ffe523b29079206656))
|
|
||||||
- improve configuration ([#245](https://github.com/sunt-programator/CodeIT/issues/245)) ([f14301c](https://github.com/sunt-programator/CodeIT/commit/f14301c395ffd63ef72625bf8bfe887fa211d013))
|
|
||||||
- KeepIt => LoveIt ([96029ea](https://github.com/sunt-programator/CodeIT/commit/96029eac3250779ffb8ff0febcafe209afe4762d))
|
|
||||||
- new index and style update ([ee7c754](https://github.com/sunt-programator/CodeIT/commit/ee7c7549b5f0ccf4392b4c1637a280855e725091))
|
|
||||||
- new mobile toc ([3d8efd6](https://github.com/sunt-programator/CodeIT/commit/3d8efd63193b02d5749bd3de69f6b2cf58244b9b))
|
|
||||||
- new style and faster ([9433736](https://github.com/sunt-programator/CodeIT/commit/9433736edec4e30d31780ca55ce58b433931c202))
|
|
||||||
- new style fix nav ([a46456e](https://github.com/sunt-programator/CodeIT/commit/a46456ef0ae2480bfd0b6de6aa86f874e6e5ac06))
|
|
||||||
- new style update ([dcbc754](https://github.com/sunt-programator/CodeIT/commit/dcbc7547fcf63c62beedb42cd302d9f4d12ec906))
|
|
||||||
- smarter typeit shortcode ([a6bf8d8](https://github.com/sunt-programator/CodeIT/commit/a6bf8d8eae97980084fd47fef7f5c22656f7efaa))
|
|
||||||
- tidy style and layout ([5cc4fdb](https://github.com/sunt-programator/CodeIT/commit/5cc4fdbe46442abe7a6949e821c1bd19370570bf))
|
|
||||||
- update style / exampleSite files and compatible with Hugo 0.58 ([69068c7](https://github.com/sunt-programator/CodeIT/commit/69068c7cfc6b347a8299ac64d9de6ff917b63ad1))
|
|
||||||
- update style and exampleSite files ([42d50ae](https://github.com/sunt-programator/CodeIT/commit/42d50ae53cd09f0863a6b29639b57af255c9e461))
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- **search:** search icons position error on Safari Mobile ([e4d9796](https://github.com/sunt-programator/CodeIT/commit/e4d9796e47a38efe7898fc71faf045c437e275b2))
|
|
||||||
- **theme:** changed repository name ([8a099d9](https://github.com/sunt-programator/CodeIT/commit/8a099d921a14e1e0ab25f4986930914d90af5e61)), closes [#61](https://github.com/sunt-programator/CodeIT/issues/61)
|
|
||||||
- fix script CORS error ([#246](https://github.com/sunt-programator/CodeIT/issues/246)) ([a0ab272](https://github.com/sunt-programator/CodeIT/commit/a0ab272f7d22d1ca4dc9a6ceb467a1f6d8dcd8ae))
|
|
||||||
- fixed the description attribute of the meta tag ([2ba1dc1](https://github.com/sunt-programator/CodeIT/commit/2ba1dc1778a6388b6c55fb5eefa20b19e1b4bb4e)), closes [#57](https://github.com/sunt-programator/CodeIT/issues/57)
|
|
||||||
- search index content htmlEscape ([2ccba79](https://github.com/sunt-programator/CodeIT/commit/2ccba79cba656a5a220e7323519173db2d38b9ed))
|
|
||||||
- **404:** 404 page select language error ([#391](https://github.com/sunt-programator/CodeIT/issues/391)) ([f631e3d](https://github.com/sunt-programator/CodeIT/commit/f631e3de049ef36692ee056e38735dc1afd71a22))
|
|
||||||
- **code:** inline code overflow-wrap ([#280](https://github.com/sunt-programator/CodeIT/issues/280)) ([072b962](https://github.com/sunt-programator/CodeIT/commit/072b9624cdc731062fd15ffb440ea9ee600899d7))
|
|
||||||
- **codeql:** fixed potentially unsafe external link vulnerabilities ([e1e63d8](https://github.com/sunt-programator/CodeIT/commit/e1e63d89a435d29d44c9f8f8541fc38510ac01b9)), closes [#20](https://github.com/sunt-programator/CodeIT/issues/20)
|
|
||||||
- **compatibility:** compatibility for version 0.1.X ([#351](https://github.com/sunt-programator/CodeIT/issues/351)) ([7c4962e](https://github.com/sunt-programator/CodeIT/commit/7c4962e39af0de5a47f0dbd0cb1f8d31b0486e99))
|
|
||||||
- **docs:** fix some docs bug ([3ac6019](https://github.com/sunt-programator/CodeIT/commit/3ac60192397012aade0bdcfb7e3a0bfa656fcf6d))
|
|
||||||
- **docs:** link errors ([87312d5](https://github.com/sunt-programator/CodeIT/commit/87312d5de2534c6f338d40b21662e7763dea4657))
|
|
||||||
- **docs:** links error ([1af17ef](https://github.com/sunt-programator/CodeIT/commit/1af17ef1a36d9c3689ae77e63388eb63a75f9d61))
|
|
||||||
- **featuredImage:** featuredImagePreview doesn't work by itself ([6aa05a7](https://github.com/sunt-programator/CodeIT/commit/6aa05a7f3e4ab75d4c7847d15a4af36375d1c4f0))
|
|
||||||
- **format:** string format error ([#366](https://github.com/sunt-programator/CodeIT/issues/366)) ([acef6c1](https://github.com/sunt-programator/CodeIT/commit/acef6c143ed743415c194808f3e471edbe72a307))
|
|
||||||
- **git:** build panic without git ([#271](https://github.com/sunt-programator/CodeIT/issues/271)) ([d5bc3be](https://github.com/sunt-programator/CodeIT/commit/d5bc3be19d252b136ce444941acdf8a94ceae86e))
|
|
||||||
- **gitalk:** gitalk config error ([9e3949c](https://github.com/sunt-programator/CodeIT/commit/9e3949cfdd2cd956bf73b606c5db9ad90c90991a))
|
|
||||||
- **header:** header style and search dropdown ([#282](https://github.com/sunt-programator/CodeIT/issues/282)) ([fa4c567](https://github.com/sunt-programator/CodeIT/commit/fa4c567ac4ec6956268a5f4200591ad99ca03f7f))
|
|
||||||
- **hugo:** compatibility for Hugo basic version ([#315](https://github.com/sunt-programator/CodeIT/issues/315)) ([4190c79](https://github.com/sunt-programator/CodeIT/commit/4190c794915084508ee96d4c661882ebb372225f))
|
|
||||||
- **menu:** hide divider when no menus ([#307](https://github.com/sunt-programator/CodeIT/issues/307)) ([417851b](https://github.com/sunt-programator/CodeIT/commit/417851b1cd11c40c5e7b398a4b844fd4e415a56b))
|
|
||||||
- **paginate:** paginate error for empty content ([#350](https://github.com/sunt-programator/CodeIT/issues/350)) ([7d0603e](https://github.com/sunt-programator/CodeIT/commit/7d0603ece0d0e16c24063e9b30fc753ff8ac389d))
|
|
||||||
- **path:** broken tag/category link when containing a dot ([#368](https://github.com/sunt-programator/CodeIT/issues/368)) ([e5ae1d6](https://github.com/sunt-programator/CodeIT/commit/e5ae1d696ba1a7327431e3c97b3cc30dbb6a9d94))
|
|
||||||
- **README.md:** fix link errors ([#319](https://github.com/sunt-programator/CodeIT/issues/319)) ([c7dc889](https://github.com/sunt-programator/CodeIT/commit/c7dc889de2fbb27ce24714d49731d4394affb35f))
|
|
||||||
- **README.md:** fix link errors ([#320](https://github.com/sunt-programator/CodeIT/issues/320)) ([d2adeab](https://github.com/sunt-programator/CodeIT/commit/d2adeabe5adf8b19188bbe046ce53a6371a2526a))
|
|
||||||
- **rss:** fix self atom:link. ([#363](https://github.com/sunt-programator/CodeIT/issues/363)) ([36f59a7](https://github.com/sunt-programator/CodeIT/commit/36f59a72ee4c186cc525b67da6813498f43a711c))
|
|
||||||
- **search:** theme.js error when search is disabled ([#310](https://github.com/sunt-programator/CodeIT/issues/310)) ([09a7c95](https://github.com/sunt-programator/CodeIT/commit/09a7c953627dc6543cf6a1fc189d5c7604efec12))
|
|
||||||
- **shortcode:** style shortcode scss file path ([#327](https://github.com/sunt-programator/CodeIT/issues/327)) ([f4c9fe7](https://github.com/sunt-programator/CodeIT/commit/f4c9fe750de9ad242d68906b728efa0fb4b2c407))
|
|
||||||
- **social:** social links blocked by uBlock Origin ([#354](https://github.com/sunt-programator/CodeIT/issues/354)) ([8d49150](https://github.com/sunt-programator/CodeIT/commit/8d491509e02ff1a4a50f1a1b70e79e94c48bb2f6))
|
|
||||||
- **style:** comments div padding ([04b9366](https://github.com/sunt-programator/CodeIT/commit/04b93662f756d16eeae72c67af906004cbf3e3c7))
|
|
||||||
- **style:** global link hover color ([#288](https://github.com/sunt-programator/CodeIT/issues/288)) ([473238f](https://github.com/sunt-programator/CodeIT/commit/473238f8ad2228a5c013d2275c738789e323420d))
|
|
||||||
- **style:** lightgallery icons color ([9e54504](https://github.com/sunt-programator/CodeIT/commit/9e54504360ddaba50fcfac8d538acca9edc0e806))
|
|
||||||
- **style:** link color and wrap style ([#283](https://github.com/sunt-programator/CodeIT/issues/283)) ([4f96582](https://github.com/sunt-programator/CodeIT/commit/4f9658243ec687ac9c75f0137075da7028f04914))
|
|
||||||
- **style:** remove Google Font ([#394](https://github.com/sunt-programator/CodeIT/issues/394)) ([cded714](https://github.com/sunt-programator/CodeIT/commit/cded7145acf8de90ea8a53c9e8bb1d09ffb44fb3))
|
|
||||||
- **style:** valine dark style, header title and figure margin ([#285](https://github.com/sunt-programator/CodeIT/issues/285)) ([ab81038](https://github.com/sunt-programator/CodeIT/commit/ab81038df606e9fd899f03319d83d9cd4eb863e9))
|
|
||||||
- **title:** terms title error and change delimiter from "|" to "-" ([#299](https://github.com/sunt-programator/CodeIT/issues/299)) ([5b689bf](https://github.com/sunt-programator/CodeIT/commit/5b689bf29b6a74f1f26eecfae5cdeecbf45ab96c))
|
|
||||||
- **TOC:** scrollbar bug when keepStatic is true ([#382](https://github.com/sunt-programator/CodeIT/issues/382)) ([0c1f7d0](https://github.com/sunt-programator/CodeIT/commit/0c1f7d0ef82636e0e699fa7799f4dd5497ed1322))
|
|
||||||
- **typeit:** typeit code highlight ([#284](https://github.com/sunt-programator/CodeIT/issues/284)) ([56026f9](https://github.com/sunt-programator/CodeIT/commit/56026f934dae59688e649a804e81136cd12c7242))
|
|
||||||
- **typeit:** typeit shortcode newline error ([#330](https://github.com/sunt-programator/CodeIT/issues/330)) ([df6761f](https://github.com/sunt-programator/CodeIT/commit/df6761f64904a4453c2b44cfacf47bfe479ed5be))
|
|
||||||
- img height error in code block ([#277](https://github.com/sunt-programator/CodeIT/issues/277)) ([752c1b3](https://github.com/sunt-programator/CodeIT/commit/752c1b37f3fc5f66035fed1cb04e24ccd34ae3aa))
|
|
||||||
- simpleicons title override link title error ([#270](https://github.com/sunt-programator/CodeIT/issues/270)) ([9003e18](https://github.com/sunt-programator/CodeIT/commit/9003e18adaa5619e5a4b4a78396ff89fbbaa17db))
|
|
||||||
- **comment:** fix visitors count for valine ([629e2e5](https://github.com/sunt-programator/CodeIT/commit/629e2e5fda8038cf2012af6b01fca2c77d51af95))
|
|
||||||
- **git:** git info in footer ([66b76b5](https://github.com/sunt-programator/CodeIT/commit/66b76b599b13ac4d4afbf085ed01a1f0e8a68cb0))
|
|
||||||
- **image:** some image style bug ([b1990d0](https://github.com/sunt-programator/CodeIT/commit/b1990d00c4a238a47df2c55a88322fc3f367715d))
|
|
||||||
- **SEO:** some bad escape sequence in JSON-LD part 2 ([#202](https://github.com/sunt-programator/CodeIT/issues/202)) ([919f559](https://github.com/sunt-programator/CodeIT/commit/919f559fd03a49c6371c99d7b1513dc9b51e3a17))
|
|
||||||
- some title case bugs for section page and list page ([#251](https://github.com/sunt-programator/CodeIT/issues/251)) ([d90a2d9](https://github.com/sunt-programator/CodeIT/commit/d90a2d9406aa883548b48bb6da8e828d2d8e4dad))
|
|
||||||
- wrong URL of JS and CSS files on baseURL ([#249](https://github.com/sunt-programator/CodeIT/issues/249)) ([f5fb31e](https://github.com/sunt-programator/CodeIT/commit/f5fb31ec43e59765feb0b214895d3cee1039d02a))
|
|
||||||
- **animation:** lost animation ([9004e37](https://github.com/sunt-programator/CodeIT/commit/9004e375fddacf4002e903c46806ba296f203484))
|
|
||||||
- **docs:** fix some docs bug ([d19a0c0](https://github.com/sunt-programator/CodeIT/commit/d19a0c06731b35ec02b4bb86580421baa853f463))
|
|
||||||
- **fontawesome:** keep spaces on both sides of the fontawesome i… ([#178](https://github.com/sunt-programator/CodeIT/issues/178)) ([f9dba2e](https://github.com/sunt-programator/CodeIT/commit/f9dba2e36caef0c80666e79ce109621fd96ec9e8))
|
|
||||||
- **header:** fix select label ([12eb084](https://github.com/sunt-programator/CodeIT/commit/12eb08427d9021ed6e63d85f66fbca41f07bad02))
|
|
||||||
- **i18n:** fix mobile i18n link error and zh -> zh-CN ([cedd6f1](https://github.com/sunt-programator/CodeIT/commit/cedd6f17a225753e1b568dfea7cfadf41b2b7fb7))
|
|
||||||
- **link:** fix tags/categories link bug ([a0f31c3](https://github.com/sunt-programator/CodeIT/commit/a0f31c35febbcb7a0501fc657e84d1e86121d24e))
|
|
||||||
- **list:** fix list title humanize bug ([fbf7a3c](https://github.com/sunt-programator/CodeIT/commit/fbf7a3caf1e4b83bead82ca927819f33e76bbfe9))
|
|
||||||
- **SEO:** some bad escape sequence in JSON-LD ([984e58e](https://github.com/sunt-programator/CodeIT/commit/984e58ec0fe7391939bfb912fe047224d4f3a4fe))
|
|
||||||
- **shortcode:** fix new BV id for bilibili shortcode ([#232](https://github.com/sunt-programator/CodeIT/issues/232)) ([c56f219](https://github.com/sunt-programator/CodeIT/commit/c56f219b3eabbc296691bf9d3a96e8b326aff386))
|
|
||||||
- **srcatch:** fix srcatch bugs ([ae81e37](https://github.com/sunt-programator/CodeIT/commit/ae81e3767e125cb84f7fb216ade3cd2d406727c5))
|
|
||||||
- **style:** auto width problem caused by too long tags or site t… ([#168](https://github.com/sunt-programator/CodeIT/issues/168)) ([e4f81f9](https://github.com/sunt-programator/CodeIT/commit/e4f81f9e7f06c82cf57a8ac1db99482593629c26))
|
|
||||||
- **style:** dark mode for mermaid and valine ([92fc2bf](https://github.com/sunt-programator/CodeIT/commit/92fc2bf74f84d9cee06bc8a8677216b6b37c4424))
|
|
||||||
- **style:** dark mode for valine ([371150c](https://github.com/sunt-programator/CodeIT/commit/371150ceefb07eb33ca3e00feb3a17a6b19a7165))
|
|
||||||
- **style:** fix title style ([a4878c3](https://github.com/sunt-programator/CodeIT/commit/a4878c3e63e40eaec6029e5eecdf1b49c7b0b6ac))
|
|
||||||
- **style:** gist shortcode dark mode style ([e4e005d](https://github.com/sunt-programator/CodeIT/commit/e4e005d6fdd518f096e948f2b12545be4b776063))
|
|
||||||
- **style:** social link style error ([#162](https://github.com/sunt-programator/CodeIT/issues/162)) ([bf7c4b5](https://github.com/sunt-programator/CodeIT/commit/bf7c4b5173c3baba02b87a410ce04909c1b86cf6))
|
|
||||||
- **style:** style conflict between 'strong' and 'a' tag ([#156](https://github.com/sunt-programator/CodeIT/issues/156)) ([ca0996a](https://github.com/sunt-programator/CodeIT/commit/ca0996ab119b2ee64a0a673d826c395759ce5363))
|
|
||||||
- **summary:** use description as summary when summary is empty ([850e8f3](https://github.com/sunt-programator/CodeIT/commit/850e8f380e09e15350a03c95d73a57230dafde38))
|
|
||||||
- **toc:** unwanted arrow of mobile TOC in Firefox ([#154](https://github.com/sunt-programator/CodeIT/issues/154)) ([fc10c46](https://github.com/sunt-programator/CodeIT/commit/fc10c46d37646cb5d1874ba598de02a933ca83af))
|
|
||||||
- **typeit:** fix a TypeIt header link style bug ([7f228d6](https://github.com/sunt-programator/CodeIT/commit/7f228d61343a37850082deaaee2a1ac3f0d5f061))
|
|
||||||
- checkbox checked status opposite ([6690387](https://github.com/sunt-programator/CodeIT/commit/669038758e59e422a46642e7684c1e32cef5fae6))
|
|
||||||
- **aplayer:** fix aplayer dark style ([eb1daf1](https://github.com/sunt-programator/CodeIT/commit/eb1daf1619abd723589aed01a44656e29bc4624b))
|
|
||||||
- **check:** fix some html check bugs ([4b3addf](https://github.com/sunt-programator/CodeIT/commit/4b3addf634eabaf8dffd75f4b808cba55dd42b19))
|
|
||||||
- **ci:** fix circleci config bug ([ef06c4e](https://github.com/sunt-programator/CodeIT/commit/ef06c4e23fb28d6d7059016d13af763787a735b8))
|
|
||||||
- **ci:** fix circleci config version bug ([ca16439](https://github.com/sunt-programator/CodeIT/commit/ca1643957efcf003e511b89a9ef4c3f29d45880b))
|
|
||||||
- **config:** fix config menu name ([b20fe1b](https://github.com/sunt-programator/CodeIT/commit/b20fe1bb4f89c64b3bb82b31dbc0448ec565cd37))
|
|
||||||
- **css:** fix css code style ([1404509](https://github.com/sunt-programator/CodeIT/commit/14045099f0f500a82030a008e92938d49a1b7454))
|
|
||||||
- **css:** fix css code style ([cd1a058](https://github.com/sunt-programator/CodeIT/commit/cd1a05876306ea88c40bba5040c381abff3a9ca0))
|
|
||||||
- **css:** fix some css bugs ([344f0a9](https://github.com/sunt-programator/CodeIT/commit/344f0a9f411a9b28d6e5732e591f26953d9c1263))
|
|
||||||
- **exampleSite:** fix zh exampleSite bug ([76145b8](https://github.com/sunt-programator/CodeIT/commit/76145b84736f8d2b1fc059ddf963504e099fc753))
|
|
||||||
- **fork_awesome:** fix incompatibility of Fork Awesome and Font Awesome ([a2543e6](https://github.com/sunt-programator/CodeIT/commit/a2543e673daeebc27134f5eeb29935041346c384))
|
|
||||||
- **header:** fix mobile header height ([730ce7a](https://github.com/sunt-programator/CodeIT/commit/730ce7a1cabd23ab6d80bf36d045bceb434f4665))
|
|
||||||
- **i18n:** fix Valine Comment System i18n bug ([69aa0cd](https://github.com/sunt-programator/CodeIT/commit/69aa0cd779203599a3db1cb05845e8a7b6c71357))
|
|
||||||
- **image:** fix image safeURL bug ([77d2dec](https://github.com/sunt-programator/CodeIT/commit/77d2decf86ba9e1d3d8d8dab4b6c30c53e573664))
|
|
||||||
- **img:** fix loading image size bug ([4ada41f](https://github.com/sunt-programator/CodeIT/commit/4ada41fe00729be72da76eeb1e385ac72057b800))
|
|
||||||
- **link:** fix long words and URLs style bug ([917cf4a](https://github.com/sunt-programator/CodeIT/commit/917cf4a42754372aa8b1a9b10d12d07be6307e94))
|
|
||||||
- **music:** fix music shortcode ([097473e](https://github.com/sunt-programator/CodeIT/commit/097473ef2ad2f2a7029d3bc9e606d54dccca2da9))
|
|
||||||
- **paginator:** fix Paginator render bug ([e4627fe](https://github.com/sunt-programator/CodeIT/commit/e4627fe297162acd1b3905ddc8a4d15ae82918ab))
|
|
||||||
- **scripts:** fix CDN not work bug ([a207005](https://github.com/sunt-programator/CodeIT/commit/a20700595d3c9aeba0d8265e25e720e67c9641c5))
|
|
||||||
- **scripts:** fix jsonify bug ([39f4869](https://github.com/sunt-programator/CodeIT/commit/39f4869260077b974c4d26b7b4ef055afb0405c4))
|
|
||||||
- **social:** fix social link bug ([#81](https://github.com/sunt-programator/CodeIT/issues/81)) ([02919a7](https://github.com/sunt-programator/CodeIT/commit/02919a7d4866b3f68722363277f250db7e5a7bdd))
|
|
||||||
- **style:** fix active header menu item ([f3eb6fc](https://github.com/sunt-programator/CodeIT/commit/f3eb6fc520eca161e832465c3230392e594a68d3))
|
|
||||||
- **style:** fix summary font-size and padding style ([46eb00f](https://github.com/sunt-programator/CodeIT/commit/46eb00f784e99e6c05d163f3181bd8b920129a06))
|
|
||||||
- **style:** fix summary height ([3b833da](https://github.com/sunt-programator/CodeIT/commit/3b833daa30497862f6f6a1af3807e5b611e660de))
|
|
||||||
- **template:** fix the with function rebinds context issue that result in TypeIt cdn configuration not work. ([4879878](https://github.com/sunt-programator/CodeIT/commit/4879878de72b5147bd148986f8f0f79b60de922a))
|
|
||||||
- **toc:** fix inaccurate headerLinkTop calculation that result in activeTocIndex drift. ([440051e](https://github.com/sunt-programator/CodeIT/commit/440051ec80adc561e6779876bdd21be63713a54d))
|
|
||||||
- **toc:** fix toc link bug ([a4116f1](https://github.com/sunt-programator/CodeIT/commit/a4116f14a76b9f01dacbde6abdf2d0dab719e577))
|
|
||||||
- **toc:** fix toc script bug ([3bdf10f](https://github.com/sunt-programator/CodeIT/commit/3bdf10ffeaf5f895ce59f1bfddad172630432ab8))
|
|
||||||
- **typeit:** fix duplicated typeit bug ([#82](https://github.com/sunt-programator/CodeIT/issues/82)) ([b13bbc3](https://github.com/sunt-programator/CodeIT/commit/b13bbc368cefee63acd1ea54c979f130cad8375a))
|
|
||||||
- CDN ([0e31808](https://github.com/sunt-programator/CodeIT/commit/0e3180871222d9bfc56891ed959088804d32f283))
|
|
||||||
- CDN ([e38ad3c](https://github.com/sunt-programator/CodeIT/commit/e38ad3c80b8d93cdf136c330e6f1d9acf18a385e))
|
|
||||||
- custom css ([a4562eb](https://github.com/sunt-programator/CodeIT/commit/a4562eb83946a730bceb09c69c37ec1cebd972f8))
|
|
||||||
- fix baseURL bug ([4e58826](https://github.com/sunt-programator/CodeIT/commit/4e5882699b2364c6fa644ea382e84efb64ea8e96))
|
|
||||||
- fix css and js cros bug ([c8bb077](https://github.com/sunt-programator/CodeIT/commit/c8bb0770e9bca9d75771d8c397b744448c4e9647))
|
|
||||||
- fix css bug ([4ce4029](https://github.com/sunt-programator/CodeIT/commit/4ce4029715667700d569cb3f0769beba36041225))
|
|
||||||
- fix css bug ([76e7475](https://github.com/sunt-programator/CodeIT/commit/76e7475a877c03d44b14c044f479da7622b1efba))
|
|
||||||
- fix css bug ([9c796e0](https://github.com/sunt-programator/CodeIT/commit/9c796e081842906cb673233fb13912a3aea371eb))
|
|
||||||
- fix css bug ([8261719](https://github.com/sunt-programator/CodeIT/commit/8261719a6fd0c12bdb8079433f2fbd75745755aa))
|
|
||||||
- fix disqus feature and format ([1e709b5](https://github.com/sunt-programator/CodeIT/commit/1e709b5ba48256988de2140ffb2a84ca956b5887))
|
|
||||||
- fix i18n bug ([ca6d543](https://github.com/sunt-programator/CodeIT/commit/ca6d54387869403aede9db44bc316fd0b06375d9))
|
|
||||||
- fix icon css bug ([45c9281](https://github.com/sunt-programator/CodeIT/commit/45c9281131665719b9246b27056f5563c0489a76))
|
|
||||||
- fix iPad TOC orientation css bug ([f1ec275](https://github.com/sunt-programator/CodeIT/commit/f1ec275c9fba02bc50418f523b0849ad441cb3da))
|
|
||||||
- fix iPad TOC orientation css bug ([99d52da](https://github.com/sunt-programator/CodeIT/commit/99d52daf6926a133dc1be7813dd343a59b7c1671))
|
|
||||||
- fix iPad TOC orientation css bug ([87857b2](https://github.com/sunt-programator/CodeIT/commit/87857b200224c42ae28577000013786035b91e87))
|
|
||||||
- fix path bug ([7644bc2](https://github.com/sunt-programator/CodeIT/commit/7644bc25c7360ab6749fbe4deb9a71e3ddc7d78f))
|
|
||||||
- fix resource ([7639927](https://github.com/sunt-programator/CodeIT/commit/7639927bd515a5175e6a6ccb3fe49c410dea0f10))
|
|
||||||
- fix screen-splash bug under dark theme and orientationchange bug ([0788330](https://github.com/sunt-programator/CodeIT/commit/07883308192c47f432c04eac4ad54ea05e6a8e85))
|
|
||||||
- fix seo bug ([280ec37](https://github.com/sunt-programator/CodeIT/commit/280ec376f46a3e16e57cc7b4372b3c3d58ec1843))
|
|
||||||
- fix style bug ([bf7d694](https://github.com/sunt-programator/CodeIT/commit/bf7d69415163bd36659b5a34674265c7c2acfe58))
|
|
||||||
- fix style bug ([41a885e](https://github.com/sunt-programator/CodeIT/commit/41a885eba0bd1f0b4a30abb09e1bcd7836d48b9a))
|
|
||||||
- fix tag bug ([7218a98](https://github.com/sunt-programator/CodeIT/commit/7218a986187d5d2859483b2066a5a27e7fd5af63))
|
|
||||||
- fix tag bug ([30c3195](https://github.com/sunt-programator/CodeIT/commit/30c31959ed17fb698a73806d083892f701101e29))
|
|
||||||
- fix toc css bug ([a7f9fd4](https://github.com/sunt-programator/CodeIT/commit/a7f9fd49a0d6894df9d456452def635507ef2ce0))
|
|
||||||
- fix toc css bug ([9d2e810](https://github.com/sunt-programator/CodeIT/commit/9d2e810b440995d21faefc0ce48aabc7944a729e))
|
|
||||||
- fix toc css bug ([4f2ff40](https://github.com/sunt-programator/CodeIT/commit/4f2ff40ef9133dd008d51247243f543d2e2859ae))
|
|
||||||
- fix toc css bug ([36a9b75](https://github.com/sunt-programator/CodeIT/commit/36a9b75468e79b9c4dd9247beff67b4f7790265f))
|
|
||||||
- fix toc css bug ([1dc227f](https://github.com/sunt-programator/CodeIT/commit/1dc227f304f6534981c258bfd406926993b6f3d8))
|
|
||||||
- fix toc id bug ([d7d27e0](https://github.com/sunt-programator/CodeIT/commit/d7d27e0afb1fb19e8f1cd51890ba62cd43132d4e))
|
|
||||||
- fix valine bug ([00b6b7f](https://github.com/sunt-programator/CodeIT/commit/00b6b7f6ce5a8ce3c441afea5834e761d9fab458))
|
|
||||||
- mobile nav backgroud and new style ([6d0116b](https://github.com/sunt-programator/CodeIT/commit/6d0116b88354a9f3ea341b0c858cc45377eeba56))
|
|
||||||
- mobile-toc target offset ([f64c499](https://github.com/sunt-programator/CodeIT/commit/f64c499957764866a383819d9ec58cd80bed3fd9))
|
|
||||||
- rm a hover underline ([9e08c96](https://github.com/sunt-programator/CodeIT/commit/9e08c96b1080c6bbdcd160dc3349623dc534428e))
|
|
||||||
- rm extra js ([f1918f5](https://github.com/sunt-programator/CodeIT/commit/f1918f59bd17557297b953e66b40f88a88bbbe7a))
|
|
||||||
- smarter typeit shortcode ([a8bb44d](https://github.com/sunt-programator/CodeIT/commit/a8bb44da3a70c4ef8fa916ed26b22e43232f272e))
|
|
||||||
- smarter typeit shortcode ([0882180](https://github.com/sunt-programator/CodeIT/commit/0882180daacc179a2967522b319e9cfef11dede7))
|
|
||||||
- smarter typeit shortcode ([c0237f3](https://github.com/sunt-programator/CodeIT/commit/c0237f380544914f87eb487027bb8f1d733d0f4a))
|
|
||||||
|
|
||||||
### CI/CD configuration changes
|
|
||||||
|
|
||||||
- added deployment script ([654081c](https://github.com/sunt-programator/CodeIT/commit/654081c0859ef01944ed2938b1d893fab3324501)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added deployment script ([50c5484](https://github.com/sunt-programator/CodeIT/commit/50c5484ec9559801ce80cd9cf78745ed5f87797b)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added deployment script ([0371b6c](https://github.com/sunt-programator/CodeIT/commit/0371b6c534f578bdb57959e5a3510e286e9f4fa4)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added pull request checks ([ce40892](https://github.com/sunt-programator/CodeIT/commit/ce4089205e6fc1e05728e468f1220c676c80ece3)), closes [#33](https://github.com/sunt-programator/CodeIT/issues/33)
|
|
||||||
- added release creation scripts ([4ae07fb](https://github.com/sunt-programator/CodeIT/commit/4ae07fbab3b0bea126b5e311491374598494aead)), closes [#30](https://github.com/sunt-programator/CodeIT/issues/30)
|
|
||||||
- updated deployment script ([b91edc7](https://github.com/sunt-programator/CodeIT/commit/b91edc788a96851c660cc0fb72186b70ecfc77b0))
|
|
||||||
|
|
||||||
### Build changes
|
|
||||||
|
|
||||||
- **circleci:** removed circleci deployment file ([c17ff8c](https://github.com/sunt-programator/CodeIT/commit/c17ff8cd7daed4a3e7dd666fb4fb079612719916))
|
|
||||||
- **devcontainer:** changed zsh configs ([6985224](https://github.com/sunt-programator/CodeIT/commit/6985224dc83e40c9040b4f1380ea23cdb9c6e679))
|
|
||||||
- **husky:** moved the configs in the package.json file ([3805089](https://github.com/sunt-programator/CodeIT/commit/38050891f354feb30c7f34c2ae030fb4f6bc5144))
|
|
||||||
- **husky:** removed prepare-commit-msg hook ([11820f7](https://github.com/sunt-programator/CodeIT/commit/11820f7c65e867bd8e05afd7484ffcd6badf8595))
|
|
||||||
- **npm:** added all-contributors-cli package ([1d5134e](https://github.com/sunt-programator/CodeIT/commit/1d5134eec44392a849fbf1c9b77bf69bbdf7f0aa)), closes [#41](https://github.com/sunt-programator/CodeIT/issues/41)
|
|
||||||
- **npm:** changed configs ([39911c5](https://github.com/sunt-programator/CodeIT/commit/39911c53d94b175cb2a4f3c6659e00074bf5eaef)), closes [#6](https://github.com/sunt-programator/CodeIT/issues/6)
|
|
||||||
- **standard-version:** added configs ([e60d698](https://github.com/sunt-programator/CodeIT/commit/e60d6980beab4fc46efbce44b73e8e563a9d681a)), closes [#34](https://github.com/sunt-programator/CodeIT/issues/34)
|
|
||||||
- **standard-version:** added package ([3e0065a](https://github.com/sunt-programator/CodeIT/commit/3e0065a83e5c6a95a2df412782ac9068d85261fe)), closes [#34](https://github.com/sunt-programator/CodeIT/issues/34)
|
|
||||||
- **standard-version:** added posttag script ([961dc59](https://github.com/sunt-programator/CodeIT/commit/961dc59a209af659629d3bcc34633a7a8267b901)), closes [#34](https://github.com/sunt-programator/CodeIT/issues/34)
|
|
||||||
- **standard-version:** removed posttag script ([7632574](https://github.com/sunt-programator/CodeIT/commit/7632574695316e24ae5c75ecb1d035315cb9dd3e))
|
|
||||||
|
|
||||||
### Other changes
|
|
||||||
|
|
||||||
- **archetype:** rename show_description to description_as_summary ([d8854c7](https://github.com/sunt-programator/CodeIT/commit/d8854c7e4784fc924a4995923f200782a192ae8e))
|
|
||||||
- **devcontainer:** added VS Code extensions ([d0fe529](https://github.com/sunt-programator/CodeIT/commit/d0fe52933418cb1224d37e5387fd44c710f8bf7a))
|
|
||||||
- added linters ([0c809a2](https://github.com/sunt-programator/CodeIT/commit/0c809a2c6bc71259408a52faac2e23b8da538421)), closes [#43](https://github.com/sunt-programator/CodeIT/issues/43)
|
|
||||||
- **readme:** changed build documentation instructions ([6303d10](https://github.com/sunt-programator/CodeIT/commit/6303d10baf7f8167eaa40e539b5381daf689164f)), closes [#32](https://github.com/sunt-programator/CodeIT/issues/32)
|
|
||||||
- **release:** 0.0.1 ([3ae5254](https://github.com/sunt-programator/CodeIT/commit/3ae5254263ffb8d97f4d8a98df284d85a4e9dc38))
|
|
||||||
- added deployment status badge ([b2e6d8f](https://github.com/sunt-programator/CodeIT/commit/b2e6d8fa8dba19c533befae30ef857f908d78cc5))
|
|
||||||
- added issue template ([7baacdb](https://github.com/sunt-programator/CodeIT/commit/7baacdb6476baf0449941bed29eb27c5b3c98cc8)), closes [#31](https://github.com/sunt-programator/CodeIT/issues/31)
|
|
||||||
- added license ([6655d76](https://github.com/sunt-programator/CodeIT/commit/6655d763a949ad81350ec1a433a8969d6583c226))
|
|
||||||
- changed issue templates ([359f34a](https://github.com/sunt-programator/CodeIT/commit/359f34ad49f6624a067da7936d9ad1225c683836))
|
|
||||||
- changed readme file ([7260492](https://github.com/sunt-programator/CodeIT/commit/72604923ec4a8978b0f91f973b33594a882daae2))
|
|
||||||
- changed theme name in files ([61a49bb](https://github.com/sunt-programator/CodeIT/commit/61a49bb7d5b01389cc8ac4ffdf334ac3b9944b0f)), closes [#23](https://github.com/sunt-programator/CodeIT/issues/23)
|
|
||||||
- changed theme name in files ([ca63529](https://github.com/sunt-programator/CodeIT/commit/ca6352959462dd9ce73be2ca71cc7c9f53d14063)), closes [#23](https://github.com/sunt-programator/CodeIT/issues/23)
|
|
||||||
- cleaned comments in files ([f2770f2](https://github.com/sunt-programator/CodeIT/commit/f2770f2aae8e55428c29ece3214c1d59511382e0)), closes [#24](https://github.com/sunt-programator/CodeIT/issues/24)
|
|
||||||
- create config file for dependabot ([cf7d03d](https://github.com/sunt-programator/CodeIT/commit/cf7d03d18abfa73154a5e8644463a9ab0312a71c))
|
|
||||||
- fixed theme icon ([bdf8484](https://github.com/sunt-programator/CodeIT/commit/bdf848419b9900698c79c602ea4f39ed32201239))
|
|
||||||
- refactor some code ([8f53c99](https://github.com/sunt-programator/CodeIT/commit/8f53c999e524d6b4e5ff912c83c7be0ca9d36e62))
|
|
||||||
- update exampleSite config ([09e3b45](https://github.com/sunt-programator/CodeIT/commit/09e3b45f3698febcdd4b31ba91cde3c88f46bb4a))
|
|
||||||
- update packages ([c120204](https://github.com/sunt-programator/CodeIT/commit/c1202048c335b09d569d83d1579075bafa0ef81e))
|
|
||||||
- update project related information ([5bc843c](https://github.com/sunt-programator/CodeIT/commit/5bc843ca85fc58c510208b2403e7ce4cbf9ab79a))
|
|
||||||
- update scripts ([f62ccbf](https://github.com/sunt-programator/CodeIT/commit/f62ccbf6b5b8fee8f6eed402a9e68bcfd88e3542))
|
|
||||||
- update theme.js init ([4e3e54b](https://github.com/sunt-programator/CodeIT/commit/4e3e54bb2ad50f7aed6b8e398a7ee8381fe39d82))
|
|
||||||
- update version to v0.2.10 ([94b8e6b](https://github.com/sunt-programator/CodeIT/commit/94b8e6bf692804a596611df794f6738599790434))
|
|
||||||
- updated bug issue template ([9747fc0](https://github.com/sunt-programator/CodeIT/commit/9747fc082fbf75467dd23d30830c5f4f07d60662))
|
|
||||||
- updated feature issue template ([b90f036](https://github.com/sunt-programator/CodeIT/commit/b90f03625e36304f128a90c714d193931b713815))
|
|
||||||
- updated the deployment script name ([ac8be1d](https://github.com/sunt-programator/CodeIT/commit/ac8be1d9520d50837d50fcfc3a2eec73f17d3ff7))
|
|
||||||
- **ci:** add circleci config ([6be6295](https://github.com/sunt-programator/CodeIT/commit/6be6295031010b3bf25a597a8092987a313985ac))
|
|
||||||
- **ci:** hugo-loveit-en -> hugo-loveit ([5ccaec4](https://github.com/sunt-programator/CodeIT/commit/5ccaec40851626eac22d5aa62b3606bac69ba965))
|
|
||||||
- **ci:** update ci ([311570c](https://github.com/sunt-programator/CodeIT/commit/311570c80bc1f229b712a96d0c5097f542507af7))
|
|
||||||
- **codeql:** removed go language ([13f5eb6](https://github.com/sunt-programator/CodeIT/commit/13f5eb6de8ba3e970f6c9e908c618f1d678b0534))
|
|
||||||
- **comment:** add Valine config for exampleSite ([d94c5f1](https://github.com/sunt-programator/CodeIT/commit/d94c5f12588929be266b180c11d0f3bc35e4634a))
|
|
||||||
- **config:** update config name ([dd78d80](https://github.com/sunt-programator/CodeIT/commit/dd78d80fefed13cd0ab50563b6b40ca057811e3e))
|
|
||||||
- **config:** update exampleSite config ([8ef1edd](https://github.com/sunt-programator/CodeIT/commit/8ef1edd479b446b6e273d9361f5d16ef8d94172c))
|
|
||||||
- **deps:** remove jQuery ([2f8123b](https://github.com/sunt-programator/CodeIT/commit/2f8123bfa60411634af3b3bedb55aaa49de153f6))
|
|
||||||
- **deps-dev:** bump minimist from 1.2.0 to 1.2.2 ([#152](https://github.com/sunt-programator/CodeIT/issues/152)) ([ca13e7d](https://github.com/sunt-programator/CodeIT/commit/ca13e7d1b43a1082ba10480f783589b2ba3deaa0))
|
|
||||||
- **deps-dev:** bump minimist from 1.2.2 to 1.2.3 ([#216](https://github.com/sunt-programator/CodeIT/issues/216)) ([be0f0a6](https://github.com/sunt-programator/CodeIT/commit/be0f0a62115f2e1c31d9a0a71066e03d01c865a2))
|
|
||||||
- **doc:** add English "Theme Documentation - Basics" ([54a9920](https://github.com/sunt-programator/CodeIT/commit/54a99205d7f95f955fd0d5c26f7fe62b3756d833))
|
|
||||||
- **docs:** add images for config and front matter ([591f395](https://github.com/sunt-programator/CodeIT/commit/591f39588a87017a312aa0b6cfc134441f99cd90))
|
|
||||||
- **docs:** compress images in docs ([8a2bb03](https://github.com/sunt-programator/CodeIT/commit/8a2bb03e5f3ca114ab03b8535f1b5993297678ba))
|
|
||||||
- **docs:** update docs ([74a10e0](https://github.com/sunt-programator/CodeIT/commit/74a10e03508f931ec62162af26a197931ac79aa1))
|
|
||||||
- **docs:** update docs ([f3acc60](https://github.com/sunt-programator/CodeIT/commit/f3acc6066b324beec2dd3aafa2852b0f55a56d1e))
|
|
||||||
- **docs:** update docs ([49272df](https://github.com/sunt-programator/CodeIT/commit/49272df8e5462b89469e1068c087fd3d246ba6f5))
|
|
||||||
- **docs:** update docs ([f6f7d91](https://github.com/sunt-programator/CodeIT/commit/f6f7d91127c30c21156c972115506c8bd848ba41))
|
|
||||||
- **docs:** update docs ([#281](https://github.com/sunt-programator/CodeIT/issues/281)) ([7affd65](https://github.com/sunt-programator/CodeIT/commit/7affd65bba8440cb9fb716d39abefe06a3de6bf4))
|
|
||||||
- **docs:** update docs ([#287](https://github.com/sunt-programator/CodeIT/issues/287)) ([980b5d3](https://github.com/sunt-programator/CodeIT/commit/980b5d3d1f0dd36002238b2bfba885905e519fa1))
|
|
||||||
- **docs:** update docs and valine emoji style ([6e1e86e](https://github.com/sunt-programator/CodeIT/commit/6e1e86eade37ce299937d24a93398e516af0ef34))
|
|
||||||
- **docs:** update docs for i18n ([13b051b](https://github.com/sunt-programator/CodeIT/commit/13b051b5859157f61dd60f694f12fbe48ddbefb9))
|
|
||||||
- **docs:** update emoji docs ([9bb56fd](https://github.com/sunt-programator/CodeIT/commit/9bb56fd87f6a525565e51657ab110d544991be2f))
|
|
||||||
- **docs:** update shortcodes docs ([a0d222a](https://github.com/sunt-programator/CodeIT/commit/a0d222a1cea2138c8f233455cb3982a4530692d2))
|
|
||||||
- **docs:** update theme documentation basic ([413b73d](https://github.com/sunt-programator/CodeIT/commit/413b73df92d6e47c94050306b15ba7e08d17b765))
|
|
||||||
- **docs:** update theme preview ([#160](https://github.com/sunt-programator/CodeIT/issues/160)) ([7dbe1f8](https://github.com/sunt-programator/CodeIT/commit/7dbe1f83a24d27adab18dbc19d473e343bb201ad))
|
|
||||||
- **docs:** update zh-cn docs ([2ab3d97](https://github.com/sunt-programator/CodeIT/commit/2ab3d976c0d4d65bde7a951168f919030e2d4369))
|
|
||||||
- **forkawesome:** update forkawesome css ([933e32c](https://github.com/sunt-programator/CodeIT/commit/933e32c4e4bee463283e5691439f36ac05d8c1f1))
|
|
||||||
- **github:** add issue templates ([#276](https://github.com/sunt-programator/CodeIT/issues/276)) ([e71b373](https://github.com/sunt-programator/CodeIT/commit/e71b373f6d5dd2a6d6830ca69ba53599dcfccce3))
|
|
||||||
- **header:** remove all dummy-targets and update smooth scroll ([6968866](https://github.com/sunt-programator/CodeIT/commit/69688661f4f469b0c63790709037e78cf668b786))
|
|
||||||
- **hook:** add babel pre-commit hook ([d87af71](https://github.com/sunt-programator/CodeIT/commit/d87af711761d0ea8b2fc173407b45299e3314138))
|
|
||||||
- **i18n:** fix i18n files ([cbfc965](https://github.com/sunt-programator/CodeIT/commit/cbfc965c107301e12480023e08bc9c85ec8c479d))
|
|
||||||
- **i18n:** update Polish and docs ([#234](https://github.com/sunt-programator/CodeIT/issues/234)) ([6112b51](https://github.com/sunt-programator/CodeIT/commit/6112b510bfc0d6b0638d45c7541aac4c9ae5d9d2))
|
|
||||||
- **icon:** update line icon ([212e26c](https://github.com/sunt-programator/CodeIT/commit/212e26c553c45d96519ba2752aa3660559a74111))
|
|
||||||
- **js:** update typeit.js to v6.5.1 ([d25cbf6](https://github.com/sunt-programator/CodeIT/commit/d25cbf6cb68f8288cd96a254c320fccad63b1155))
|
|
||||||
- **lang:** removed fr and zh-cn languages ([cddfe7f](https://github.com/sunt-programator/CodeIT/commit/cddfe7f544f32052569aa9c82c554c81728ad90d))
|
|
||||||
- **lib:** refactor libs and update Font Awesome 5.11.2 -> 5.12.1 ([ef88651](https://github.com/sunt-programator/CodeIT/commit/ef88651fe4faaa4e94683c822646a6b98667fe1b))
|
|
||||||
- **lib:** remove ls.native-loading ([0dc5feb](https://github.com/sunt-programator/CodeIT/commit/0dc5feb7f39043a8ba00bcad683f3907cad0bf96))
|
|
||||||
- **lib:** update gitalk 1.6.0 -> 1.6.2 ([5d377ee](https://github.com/sunt-programator/CodeIT/commit/5d377ee74603214dadfb51ece3df0bda212eb524))
|
|
||||||
- **lib:** update libraries ([96cf051](https://github.com/sunt-programator/CodeIT/commit/96cf051546c4058e7330cba7a1301014bc499ad2))
|
|
||||||
- **lib:** update mapbox-gl and valine ([854e9e3](https://github.com/sunt-programator/CodeIT/commit/854e9e3d37f503c27ea117d0b898d589dfb7a988))
|
|
||||||
- **lib:** update mermaid 8.4.2 -> 8.4.8 echarts 4.5.0 -> 4.6.0 gitalk 1.5.0 -> 1.6.0 ([7e56922](https://github.com/sunt-programator/CodeIT/commit/7e56922f82a165759ba0ed852cdb4479f30bd233))
|
|
||||||
- **lib:** update simple-icons and twemoji ([84b0989](https://github.com/sunt-programator/CodeIT/commit/84b098909b2814f7246b17d2eacbc661c16c263c))
|
|
||||||
- **libs:** update libs ([#256](https://github.com/sunt-programator/CodeIT/issues/256)) ([7ab1c10](https://github.com/sunt-programator/CodeIT/commit/7ab1c1063912eca9e3202446959f1526055ce5c9))
|
|
||||||
- **netlify:** update netlify 404 redirects ([ea655d9](https://github.com/sunt-programator/CodeIT/commit/ea655d9871c0aa2f9859dd268bec8e45091abe0d))
|
|
||||||
- **partials:** refactor partials ([4e6fe22](https://github.com/sunt-programator/CodeIT/commit/4e6fe224cc1934aa0459b2d888f243463bb998f7))
|
|
||||||
- **readme:** added codeql badge ([e388cfe](https://github.com/sunt-programator/CodeIT/commit/e388cfe040d079060506d35021079f6e06f073b5))
|
|
||||||
- **readme:** update readme ([4aac6b9](https://github.com/sunt-programator/CodeIT/commit/4aac6b98a55115e472f836a47ceac1975808342a))
|
|
||||||
- **resources:** update resources ([7f2df7a](https://github.com/sunt-programator/CodeIT/commit/7f2df7a58f46f3a1faaefcc1c7fd02888b6f0d32))
|
|
||||||
- **shortcode:** make style shortcode toCSS outputStyle compressed ([c673353](https://github.com/sunt-programator/CodeIT/commit/c6733538dc9bbd97c227fcb6eee08650cacb666f))
|
|
||||||
- **style:** improve lightgallery style code ([286bf70](https://github.com/sunt-programator/CodeIT/commit/286bf7003cf5c9486e19011a51441f95758069ba))
|
|
||||||
- **version:** update version to 0.2.1 ([d24df51](https://github.com/sunt-programator/CodeIT/commit/d24df519506d8efd6a64fe3d2c1582750536bd1e))
|
|
||||||
- format code ([c16db32](https://github.com/sunt-programator/CodeIT/commit/c16db324fa0574c21cc7aa2a790437bd491d39a4))
|
|
||||||
- refactor code style ([12bd1e1](https://github.com/sunt-programator/CodeIT/commit/12bd1e1935584ab2fd77d47332e75931f0d71ed9))
|
|
||||||
- refactor scripts code style ([1088f86](https://github.com/sunt-programator/CodeIT/commit/1088f86b6da35a5d70fc6d9df831655648591fbf))
|
|
||||||
- update docs and style ([#269](https://github.com/sunt-programator/CodeIT/issues/269)) ([6805d69](https://github.com/sunt-programator/CodeIT/commit/6805d695f6ee1ba6b774a9ae518b85c8030bfa08))
|
|
||||||
- **style:** update code style ([2a7611b](https://github.com/sunt-programator/CodeIT/commit/2a7611b5aec71c5b42984be947934d4c074a092e))
|
|
||||||
- **style:** update css code style ([41a14bc](https://github.com/sunt-programator/CodeIT/commit/41a14bc2dc69adb16303952b0570f7f170ccb63a))
|
|
||||||
- add more README and resoures folder ([7aa65e7](https://github.com/sunt-programator/CodeIT/commit/7aa65e7414ff53be92561e62cf4e9c4b5c05f612))
|
|
||||||
- change resoures folder ([a53482e](https://github.com/sunt-programator/CodeIT/commit/a53482e26b73a6809c0d0d5b859d69a98e60a3b4))
|
|
||||||
- refactor css code style ([73b1250](https://github.com/sunt-programator/CodeIT/commit/73b1250cbf79a231c3ce82e20675578c3b9e29d7))
|
|
||||||
- rename ([6d188f2](https://github.com/sunt-programator/CodeIT/commit/6d188f2944d10e9ae140263bb72353878b9064c4))
|
|
||||||
- update i18n ([71fcef1](https://github.com/sunt-programator/CodeIT/commit/71fcef1c6c3d3e0c0128fbfb945727287ef0e7e8))
|
|
||||||
- **style:** update code style and add an i18n word ([52c7ad2](https://github.com/sunt-programator/CodeIT/commit/52c7ad29a60cc4ee6c51217d11bb4877ef0cf88a))
|
|
||||||
|
|
||||||
### Documentation changes
|
|
||||||
|
|
||||||
- added brief history of this theme ([41a2b25](https://github.com/sunt-programator/CodeIT/commit/41a2b257da4b12bd3fffb205f7d04386ec07f29c)), closes [#46](https://github.com/sunt-programator/CodeIT/issues/46)
|
|
||||||
- **readme:** removed zh-cn language ([3bbeb51](https://github.com/sunt-programator/CodeIT/commit/3bbeb513507cb95ed780edc423cb489287e9c2a4))
|
|
||||||
- add [@anup92k](https://github.com/anup92k) as a contributor ([631d091](https://github.com/sunt-programator/CodeIT/commit/631d091e31624e11c530d1a6e47c91fc7fe0f431))
|
|
||||||
- add [@astropenguin](https://github.com/astropenguin) as a contributor ([984c187](https://github.com/sunt-programator/CodeIT/commit/984c18763c0fae39267377a88f77fb714b761359))
|
|
||||||
- add [@cmpsoares91](https://github.com/cmpsoares91) as a contributor ([c1fa00f](https://github.com/sunt-programator/CodeIT/commit/c1fa00fafe4bbd769d54d9157a8cd805701a9a19))
|
|
||||||
- add [@codedge](https://github.com/codedge) as a contributor ([fc4e940](https://github.com/sunt-programator/CodeIT/commit/fc4e940b5699cb8414112ba5a51624b2deb401dc))
|
|
||||||
- add [@derelartwork](https://github.com/derelartwork) as a contributor ([b68d3d3](https://github.com/sunt-programator/CodeIT/commit/b68d3d3c2a99aacbf86a65a531287b12516aeede))
|
|
||||||
- add [@devandreacarratta](https://github.com/devandreacarratta) as a contributor ([498dea3](https://github.com/sunt-programator/CodeIT/commit/498dea33b5d2e102ca057f162e9c66dd6f106eb4))
|
|
||||||
- add [@dillonzq](https://github.com/dillonzq) as a contributor ([bf14a85](https://github.com/sunt-programator/CodeIT/commit/bf14a85c5ae9249fabd94e80bdce945f437faa35))
|
|
||||||
- add [@edte](https://github.com/edte) as a contributor ([2b9885e](https://github.com/sunt-programator/CodeIT/commit/2b9885e96fe105279b8094691199f612aab29a26))
|
|
||||||
- add [@markdluethje](https://github.com/markdluethje) as a contributor ([9005ca2](https://github.com/sunt-programator/CodeIT/commit/9005ca298cf0cc5a098affe6119a38d7f47a14d9))
|
|
||||||
- add [@maxlefou](https://github.com/maxlefou) as a contributor ([cc00adf](https://github.com/sunt-programator/CodeIT/commit/cc00adf77d9680ed4888f04c1adb33918082f5b9))
|
|
||||||
- add [@nirgn975](https://github.com/nirgn975) as a contributor ([e96bb12](https://github.com/sunt-programator/CodeIT/commit/e96bb1252ee79b95a3640df7ccdd766e3b2016c4))
|
|
||||||
- add [@onisuly](https://github.com/onisuly) as a contributor ([c7205ce](https://github.com/sunt-programator/CodeIT/commit/c7205ce5f4b30b3e73d09d9499e6616942b6c1b6))
|
|
||||||
- add [@quyleanh](https://github.com/quyleanh) as a contributor ([1343e89](https://github.com/sunt-programator/CodeIT/commit/1343e89627679d5ac0b8cb4c60edb8fb4cbdabbf))
|
|
||||||
- add [@ramrodo](https://github.com/ramrodo) as a contributor ([4c23b65](https://github.com/sunt-programator/CodeIT/commit/4c23b65075f533d3625bc886bd29d88cbaf42766))
|
|
||||||
- add [@realsangil](https://github.com/realsangil) as a contributor ([1c79289](https://github.com/sunt-programator/CodeIT/commit/1c79289e5a45503d759784fa7a11391e6359ce73))
|
|
||||||
- add [@sarathsp06](https://github.com/sarathsp06) as a contributor ([335e5d7](https://github.com/sunt-programator/CodeIT/commit/335e5d7ad2c12f49c4ce372d54fafa1063756f9f))
|
|
||||||
- add [@solarpowerinncr](https://github.com/solarpowerinncr) as a contributor ([2adac6a](https://github.com/sunt-programator/CodeIT/commit/2adac6a95c4758b8de340a2477145dd6c1707ef5))
|
|
||||||
- add [@thejayhaykid](https://github.com/thejayhaykid) as a contributor ([07c7543](https://github.com/sunt-programator/CodeIT/commit/07c75433e8283c734000da1fedd5bd44897a0095))
|
|
||||||
- add [@tlereste](https://github.com/tlereste) as a contributor ([031afe0](https://github.com/sunt-programator/CodeIT/commit/031afe0f63e0690911ada06037d0be0b6465ff2a))
|
|
||||||
- add [@tomaja-linuxo](https://github.com/tomaja-linuxo) as a contributor ([3d1e7df](https://github.com/sunt-programator/CodeIT/commit/3d1e7dfb76f85e856fb133273f9b16255e486ec9))
|
|
||||||
- add [@vanildosouto](https://github.com/vanildosouto) as a contributor ([f1ae522](https://github.com/sunt-programator/CodeIT/commit/f1ae52275a28a2fa1b98127201afb24989ed9b9b))
|
|
||||||
- add [@victor-pogor](https://github.com/victor-pogor) as a contributor ([af588e2](https://github.com/sunt-programator/CodeIT/commit/af588e2c3ad4f04918ad9448e48a40046adccfc6))
|
|
||||||
- add [@wtchangdm](https://github.com/wtchangdm) as a contributor ([9c64ab0](https://github.com/sunt-programator/CodeIT/commit/9c64ab0f1b855102afdd1663439ee8463b7ebcd7))
|
|
||||||
- add [@yoloyi](https://github.com/yoloyi) as a contributor ([69bee3f](https://github.com/sunt-programator/CodeIT/commit/69bee3ff68c3ef451a9c23a7e71f352ec5a212d4))
|
|
||||||
- add [@youngxhui](https://github.com/youngxhui) as a contributor ([2516121](https://github.com/sunt-programator/CodeIT/commit/2516121f4f74d8c4bc1385790a4f93af559a1965))
|
|
||||||
- add [@ziobron](https://github.com/ziobron) as a contributor ([80d14b8](https://github.com/sunt-programator/CodeIT/commit/80d14b8e681a395fd66a2ec83094e8e8ff64b72b))
|
|
||||||
- add @AutomationD as a contributor ([50b16dd](https://github.com/sunt-programator/CodeIT/commit/50b16dd9b90c2daf9ba64667379d8233d8c3d005))
|
|
||||||
- add @DaveA-W as a contributor ([2800a93](https://github.com/sunt-programator/CodeIT/commit/2800a9339aafbc3c7e66cc5772df246ffb25ba52))
|
|
||||||
- add @Fastbyte01 as a contributor ([f81e8ec](https://github.com/sunt-programator/CodeIT/commit/f81e8ec83889f294b4856a08b6ace0f8cbc6fe0c))
|
|
||||||
- add @Fedomn as a contributor ([093d1b7](https://github.com/sunt-programator/CodeIT/commit/093d1b73ddf2d92646c3ebdf0a535b855391e025))
|
|
||||||
- add @Ghosin as a contributor ([fef8ddf](https://github.com/sunt-programator/CodeIT/commit/fef8ddfb1d5c6b5039dc218ff586c4004908f028))
|
|
||||||
- add @Programazing as a contributor ([bba6993](https://github.com/sunt-programator/CodeIT/commit/bba6993fb986158127f7dc9ff9c6d6e7c9019650))
|
|
||||||
- add @SilkeHenderickx as a contributor ([2d2587b](https://github.com/sunt-programator/CodeIT/commit/2d2587ba674bd7aef1d563b3b6ca51999bbcade6))
|
|
||||||
- fix echarts shortcodes error ([d42f15b](https://github.com/sunt-programator/CodeIT/commit/d42f15b058d3af8e02fbd2f312a4907dda662440))
|
|
||||||
- improve version used for docs ([#188](https://github.com/sunt-programator/CodeIT/issues/188)) ([a9850f7](https://github.com/sunt-programator/CodeIT/commit/a9850f7df3184f4f0cbb7e2415377e1705b9671d))
|
|
||||||
- removed old documentation changes ([1c82984](https://github.com/sunt-programator/CodeIT/commit/1c829848cdde85e09bf26ad9e139f0a0cf7f1aff))
|
|
||||||
- rm useless spaces ([c592156](https://github.com/sunt-programator/CodeIT/commit/c592156be79a55654b16bbb42da82643af6a7cb0))
|
|
||||||
- update [@victor-pogor](https://github.com/victor-pogor) as a contributor ([2f1ada3](https://github.com/sunt-programator/CodeIT/commit/2f1ada3496270834d55429fe1bb3ad8e5b3eb986))
|
|
||||||
- update theme preview and translation ([#262](https://github.com/sunt-programator/CodeIT/issues/262)) ([19c7da3](https://github.com/sunt-programator/CodeIT/commit/19c7da333dc7244aca79dd5d70d3359fbf0da7f5))
|
|
||||||
- update theme preview image and fix some docs error ([#151](https://github.com/sunt-programator/CodeIT/issues/151)) ([61d76c5](https://github.com/sunt-programator/CodeIT/commit/61d76c54b4a2b603eb1f8bf854cb176e74babe99))
|
|
||||||
- **badge:** update badge ([1fbbc9a](https://github.com/sunt-programator/CodeIT/commit/1fbbc9a74aee5b9d6271739939a411dabcf685ee))
|
|
||||||
- update zh-CN docs and fix some bugs ([fb9a9e7](https://github.com/sunt-programator/CodeIT/commit/fb9a9e73243a61f66a57ac94588497390f8955c9))
|
|
||||||
- webp -> jpg ([8c5f4c0](https://github.com/sunt-programator/CodeIT/commit/8c5f4c0136f9c581d04d4ae256914618679dec03))
|
|
||||||
|
|
||||||
## 0.0.1 (2020-11-25)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- added devcontainer ([214f454](https://github.com/mokkapps/changelog-generator-demo/commits/214f454677db2c8047aa43eeaca43271a9fc07b5))
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
- **codeql:** fixed potentially unsafe external link vulnerabilities ([3e1d0f3](https://github.com/mokkapps/changelog-generator-demo/commits/3e1d0f3f443876dd9ffbf7c5d60fbb078f9f0b7b)), closes [#20](https://github.com/sunt-programator/CodeIT/issues/20)
|
|
||||||
|
|
||||||
### Other changes
|
|
||||||
|
|
||||||
- **readme:** changed build documentation instructions ([6893033](https://github.com/mokkapps/changelog-generator-demo/commits/6893033b1a6dfc5232cbdd4d4015872568b3868e)), closes [#32](https://github.com/sunt-programator/CodeIT/issues/32)
|
|
||||||
- added deployment status badge ([035f4c9](https://github.com/mokkapps/changelog-generator-demo/commits/035f4c9424333f1163e5261dd22b711f81c97451))
|
|
||||||
- added issue template ([e653cdc](https://github.com/mokkapps/changelog-generator-demo/commits/e653cdc3ba38cb3948f7fe6e7a28d159207450d1)), closes [#31](https://github.com/sunt-programator/CodeIT/issues/31)
|
|
||||||
- added license ([1031e2c](https://github.com/mokkapps/changelog-generator-demo/commits/1031e2c9917f49bb6a03289ca41ffc7ded2d0cbb))
|
|
||||||
- changed issue templates ([b95b727](https://github.com/mokkapps/changelog-generator-demo/commits/b95b727a82e2fa77c76d4214d7e4457a2851d427))
|
|
||||||
- changed readme file ([5434a4d](https://github.com/mokkapps/changelog-generator-demo/commits/5434a4da88e770f78576ff7c4e3b16d41a2e62a1))
|
|
||||||
- changed theme name in files ([c1bd293](https://github.com/mokkapps/changelog-generator-demo/commits/c1bd29304d0b38cf47ab04b38e96d2610d426931)), closes [#23](https://github.com/sunt-programator/CodeIT/issues/23)
|
|
||||||
- changed theme name in files ([c673765](https://github.com/mokkapps/changelog-generator-demo/commits/c67376577bfb20b630b18e91bfe1838fa325c5b8)), closes [#23](https://github.com/sunt-programator/CodeIT/issues/23)
|
|
||||||
- cleaned comments in files ([46ce494](https://github.com/mokkapps/changelog-generator-demo/commits/46ce4942623f4c08028818239a4b13edd96e43a1)), closes [#24](https://github.com/sunt-programator/CodeIT/issues/24)
|
|
||||||
- create config file for dependabot ([79e845d](https://github.com/mokkapps/changelog-generator-demo/commits/79e845d9fd51bfac8bea241d003bbe9ca5d128ce))
|
|
||||||
- fixed theme icon ([0bd96ce](https://github.com/mokkapps/changelog-generator-demo/commits/0bd96ceb62686647187bafe5baaf681810530409))
|
|
||||||
- fixed theme icon ([ed956af](https://github.com/mokkapps/changelog-generator-demo/commits/ed956afb981030eea17db13c56dd099fbcf54e3c))
|
|
||||||
- update packages ([e00ebd2](https://github.com/mokkapps/changelog-generator-demo/commits/e00ebd20caae13fb591c9235df0c26b4f473da13))
|
|
||||||
- updated bug issue template ([caf826d](https://github.com/mokkapps/changelog-generator-demo/commits/caf826d81e3014cd0641bf5eddaf566c97c24701))
|
|
||||||
- updated feature issue template ([076f1c4](https://github.com/mokkapps/changelog-generator-demo/commits/076f1c4bfbddba3faf49e31f09712feb6dc927fd))
|
|
||||||
- updated the deployment script name ([c41103c](https://github.com/mokkapps/changelog-generator-demo/commits/c41103cfed82bc13fd3dbe2e6f3d727e9bddacab))
|
|
||||||
- **codeql:** removed go language ([4d67402](https://github.com/mokkapps/changelog-generator-demo/commits/4d674020c3f6c6d5522dd4c9182a7928e9b8987c))
|
|
||||||
- **lang:** removed fr and zh-cn languages ([5d9c7de](https://github.com/mokkapps/changelog-generator-demo/commits/5d9c7de488f0dd040131c145b7d9a2ad08aae8e0))
|
|
||||||
- **readme:** added codeql badge ([934b17b](https://github.com/mokkapps/changelog-generator-demo/commits/934b17bd922f503a5f17a6d5a99bc981a171e24e))
|
|
||||||
|
|
||||||
### CI/CD configuration changes
|
|
||||||
|
|
||||||
- added deployment script ([705026d](https://github.com/mokkapps/changelog-generator-demo/commits/705026d013805aa7f7768736867bb859d64f65d4)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added deployment script ([00a25b9](https://github.com/mokkapps/changelog-generator-demo/commits/00a25b9ff2b31006bb4aff02f5fac87ca1f7a03f)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added deployment script ([8753d1c](https://github.com/mokkapps/changelog-generator-demo/commits/8753d1c12bf0776a88c664135b99d655918d1c9e)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added deployment script ([b0a84fa](https://github.com/mokkapps/changelog-generator-demo/commits/b0a84faa5aa59c1c9d5a98885d3754318dc29a72)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added deployment script ([6d3eb4f](https://github.com/mokkapps/changelog-generator-demo/commits/6d3eb4f6e7347be8518d4e9aeb6f1d2d182e8875)), closes [#28](https://github.com/sunt-programator/CodeIT/issues/28)
|
|
||||||
- added pull request checks ([29f919e](https://github.com/mokkapps/changelog-generator-demo/commits/29f919e3b55499be66f75edd51d6dd5bf8b0eaad)), closes [#33](https://github.com/sunt-programator/CodeIT/issues/33)
|
|
||||||
- added release creation scripts ([ce6fb60](https://github.com/mokkapps/changelog-generator-demo/commits/ce6fb60cbb3114b7e3bd3a3b0cd8d9fad71d895b)), closes [#30](https://github.com/sunt-programator/CodeIT/issues/30)
|
|
||||||
- updated deployment script ([f266f5d](https://github.com/mokkapps/changelog-generator-demo/commits/f266f5d94d52abd2f489177590465c3a96a5a2eb))
|
|
||||||
|
|
||||||
### Build changes
|
|
||||||
|
|
||||||
- **circleci:** removed circleci deployment file ([17fb375](https://github.com/mokkapps/changelog-generator-demo/commits/17fb375841f5fa523544adcaf2cab64564f7bbb1))
|
|
||||||
- **devcontainer:** changed zsh configs ([b132d45](https://github.com/mokkapps/changelog-generator-demo/commits/b132d45b629752e478a46d977e721c387988e049))
|
|
||||||
- **husky:** moved the configs in the package.json file ([ff44b8c](https://github.com/mokkapps/changelog-generator-demo/commits/ff44b8c477f693414697f3533df985add3c5bfe9))
|
|
||||||
- **husky:** removed prepare-commit-msg hook ([adaa2d8](https://github.com/mokkapps/changelog-generator-demo/commits/adaa2d868ea9b1ee297a6e687d34cd8c06c9f1d2))
|
|
||||||
- **npm:** changed configs ([1054277](https://github.com/mokkapps/changelog-generator-demo/commits/1054277d6b07f75be6973ff980dad27ca812689d)), closes [#6](https://github.com/sunt-programator/CodeIT/issues/6)
|
|
||||||
- **standard-version:** added configs ([5660036](https://github.com/mokkapps/changelog-generator-demo/commits/56600367ca931a7a33f6b4bc0112a2117c9598b9)), closes [#34](https://github.com/sunt-programator/CodeIT/issues/34)
|
|
||||||
- **standard-version:** added package ([0392198](https://github.com/mokkapps/changelog-generator-demo/commits/03921984f1216f460232854b42116854d701ae9a)), closes [#34](https://github.com/sunt-programator/CodeIT/issues/34)
|
|
||||||
- **standard-version:** added posttag script ([2c78c48](https://github.com/mokkapps/changelog-generator-demo/commits/2c78c483a3310045bee2c2912eb747eb342a1cbf)), closes [#34](https://github.com/sunt-programator/CodeIT/issues/34)
|
|
||||||
- **standard-version:** removed posttag script ([b6254af](https://github.com/mokkapps/changelog-generator-demo/commits/b6254af64b0aa54ba5ae52444027f50d67a14035))
|
|
|
@ -1,300 +0,0 @@
|
||||||
# CodeIT Theme | Hugo
|
|
||||||
|
|
||||||
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/sunt-programator/CodeIT)](https://github.com/sunt-programator/CodeIT/releases)
|
|
||||||
[![Hugo](https://img.shields.io/badge/Hugo-%5E0.78.1-blue)](https://gohugo.io/)
|
|
||||||
[![License](https://img.shields.io/github/license/sunt-programator/CodeIT)](https://github.com/sunt-programator/CodeIT/blob/master/LICENSE)
|
|
||||||
[![CodeQL](https://github.com/sunt-programator/CodeIT/workflows/CodeQL/badge.svg)](https://github.com/sunt-programator/CodeIT/actions?query=workflow%3ACodeQL)
|
|
||||||
[![Deploy status](https://github.com/sunt-programator/CodeIT/workflows/Deploy%20status/badge.svg)](https://github.com/sunt-programator/CodeIT/actions?query=workflow%3A%22Deploy+status%22)
|
|
||||||
![GitHub All Contributors](https://img.shields.io/github/all-contributors/sunt-programator/CodeIT)
|
|
||||||
|
|
||||||
> **CodeIT** is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/).
|
|
||||||
|
|
||||||
It is based on the original [LoveIt Theme](https://github.com/dillonzq/LoveIt), [LeaveIt Theme](https://github.com/liuzc/LeaveIt), and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
|
|
||||||
|
|
||||||
Since the three themes have a similar look, if you have questions about their differences,
|
|
||||||
read [Why to choose CodeIT](#question-why-choose-CodeIT) so that you can choose the one that works best for you.
|
|
||||||
|
|
||||||
![Hugo Theme CodeIT](https://github.com/sunt-programator/CodeIT/raw/master/images/Apple-Devices-Preview.png)
|
|
||||||
|
|
||||||
## :hourglass_flowing_sand: Brief history
|
|
||||||
|
|
||||||
This theme is based on the original [LoveIt](https://github.com/dillonzq/LoveIt) theme. The original theme was loved by many users, but since May 2020 it has not been maintained.
|
|
||||||
|
|
||||||
We tried to contact the theme [owner](https://github.com/dillonzq), but without success. The contributors have opened an [issue](https://github.com/dillonzq/LoveIt/issues/514) and asked if the theme is still supported, but we also did not receive any response.
|
|
||||||
|
|
||||||
So we decided to create and maintain the theme with a new name, keeping the original style, but continuously improving it. Feel free to contribute to this theme 😊.
|
|
||||||
|
|
||||||
## :computer: Demo Site
|
|
||||||
|
|
||||||
To see this theme in action, here is a live [demo site](https://codeit.suntprogramator.dev/) that is rendered with the **CodeIT** theme.
|
|
||||||
|
|
||||||
## :question: Why choose CodeIT
|
|
||||||
|
|
||||||
Compared to the original LeaveIt theme and the KeepIt theme, the CodeIT theme has the following modifications.
|
|
||||||
|
|
||||||
- Custom **Header**
|
|
||||||
- Custom **CSS Style**
|
|
||||||
- A new **home page**, compatible with the latest version of Hugo
|
|
||||||
- A lot of **style detail adjustments,** including color, font size, margins, code preview style
|
|
||||||
- More readable **dark mode**
|
|
||||||
- Some beautiful **CSS animations**
|
|
||||||
- Easy-to-use and self-expanding **table of contents**
|
|
||||||
- More **social links**, **share sites**, and **comment system**
|
|
||||||
- **Search** supported by [Lunr.js](https://lunrjs.com/) or [Algolia](https://www.algolia.com/)
|
|
||||||
- **Copy code** to the clipboard with one click
|
|
||||||
- Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
|
|
||||||
- Extended Markdown syntax for **ruby annotation**
|
|
||||||
- Extended Markdown syntax for **fractions**
|
|
||||||
- **Mathematical formula** supported by [KaTeX](https://katex.org/)
|
|
||||||
- **Diagram syntax** shortcode supported by [mermaids](https://github.com/knsv/mermaid)
|
|
||||||
- **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
|
|
||||||
- **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
|
||||||
- Embedded **music player** supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
|
|
||||||
- **Bilibili** player supported
|
|
||||||
- Kinds of **admonitions** shortcode supported
|
|
||||||
- Custom style shortcodes supported
|
|
||||||
- **CDN** for all third-party libraries supported
|
|
||||||
- ...
|
|
||||||
|
|
||||||
In short,
|
|
||||||
if you prefer the design language and freedom of the CodeIT theme,
|
|
||||||
if you want to use the extended Font Awesome icons conveniently,
|
|
||||||
if you want to embed mathematical formulas, flowcharts, music, or Bilibili videos in your posts,
|
|
||||||
the CodeIT theme may be more suitable for you.
|
|
||||||
|
|
||||||
I hope you will CodeIT 👩💻!
|
|
||||||
|
|
||||||
## :open_book: Features
|
|
||||||
|
|
||||||
### :zap: Performance and SEO
|
|
||||||
|
|
||||||
- Optimized for **performance**: 99/100 on mobile and 100/100 on the desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights)
|
|
||||||
- Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
|
||||||
- **[Google Analytics](https://analytics.google.com/analytics)** supported
|
|
||||||
- **[Fathom Analytics](https://usefathom.com/)** supported
|
|
||||||
- **[Plausible Analytics](https://plausible.io/)** supported
|
|
||||||
- Search engine **verification** supported (Google, Bind, Yandex, and Baidu)
|
|
||||||
- **CDN** for third-party libraries supported
|
|
||||||
- Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
|
||||||
|
|
||||||
### :desktop_computer: Appearance and Layout
|
|
||||||
|
|
||||||
- **Responsive** layout
|
|
||||||
- **Light/Dark** mode
|
|
||||||
- Globally consistent **design language**
|
|
||||||
- **Pagination** supported
|
|
||||||
- Easy-to-use and self-expanding **table of contents**
|
|
||||||
- **Multilanguage** supported and i18n ready
|
|
||||||
- Beautiful **CSS animation**
|
|
||||||
|
|
||||||
### :thought_balloon: Social and Comment Systems
|
|
||||||
|
|
||||||
- **Gravatar** supported by [Gravatar](https://gravatar.com)
|
|
||||||
- Local **Avatar** supported
|
|
||||||
- Up to **64** social links supported
|
|
||||||
- Up to **28** share sites supported
|
|
||||||
- **Disqus** comment system supported by [Disqus](https://disqus.com)
|
|
||||||
- **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk)
|
|
||||||
- **Valine** comment system supported by [Valine](https://valine.js.org/)
|
|
||||||
- **Facebook comments** system supported by [Facebook](https://developers.facebook.com/docs/plugins/comments/)
|
|
||||||
- **Telegram comments** system supported by [Telegram Comments](https://comments.app/)
|
|
||||||
- **Commento** comment system supported by [Commento](https://commento.io/)
|
|
||||||
- **Utterances** comment system supported by [Utterances](https://utteranc.es/)
|
|
||||||
- **Waline** comment system supported by [Waline](https://waline.js.org/)
|
|
||||||
- **Twikoo** comment system supported by [Twikoo](https://twikoo.js.org/)
|
|
||||||
|
|
||||||
### :sparkles: Extended Features
|
|
||||||
|
|
||||||
- **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
|
|
||||||
- **Twemoji** supported
|
|
||||||
- Automatically **highlighting** code
|
|
||||||
- **Copy code** to the clipboard with one click
|
|
||||||
- **Images gallery** supported by [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
|
|
||||||
- Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
|
|
||||||
- Extended Markdown syntax for **ruby annotation**
|
|
||||||
- Extended Markdown syntax for **fractions**
|
|
||||||
- **Mathematical formula** supported by [KaTeX](https://katex.org/)
|
|
||||||
- **Diagrams** shortcode supported by [mermaids](https://github.com/knsv/mermaid)
|
|
||||||
- **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
|
|
||||||
- **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
|
||||||
- **Music player** shortcode supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
|
|
||||||
- **Bilibili player** shortcode
|
|
||||||
- Kinds of **admonitions** shortcode
|
|
||||||
- **Custom style** shortcode
|
|
||||||
- **Custom script** shortcode
|
|
||||||
- **Animated typing** supported by [TypeIt](https://typeitjs.com/)
|
|
||||||
- **Dynamic scroll** supported by [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
|
|
||||||
- **Cookie consent banner** supported by [cookieconsent](https://github.com/osano/cookieconsent)
|
|
||||||
- ...
|
|
||||||
|
|
||||||
## :dart: Add the theme to your blog
|
|
||||||
|
|
||||||
First, download the theme from GitHub and add it to your site’s themes directory:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd your-hugo-blog-directory
|
|
||||||
git init
|
|
||||||
git submodule add https://github.com/sunt-programator/CodeIT.git themes/CodeIT
|
|
||||||
```
|
|
||||||
|
|
||||||
_Note for non-git users:_
|
|
||||||
|
|
||||||
If you do not have git installed, you can download the archive of the latest version of this theme from the [release page](https://github.com/sunt-programator/CodeIT/releases) of this repository.
|
|
||||||
|
|
||||||
Extract the `.zip` file to get a `CodeIT-latest` directory.
|
|
||||||
Rename that directory to `CodeIT`, and move it into the `themes/` directory.
|
|
||||||
Then, add the theme to the site configuration:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo 'theme = "CodeIT"' >> config.toml
|
|
||||||
```
|
|
||||||
|
|
||||||
## :page_facing_up: [Build documentation instructions](https://codeit.suntprogramator.dev/categories/documentation/)
|
|
||||||
|
|
||||||
You can build the theme documentation locally by using a [devcontainer](https://code.visualstudio.com/docs/remote/containers) or by manually install the [`Hugo`](https://gohugo.io/getting-started/installing).
|
|
||||||
The main advantage of the `devcontainer` is that you will have a preconfigured container with all tools required for developing and building the theme documentation.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hugo server --source=exampleSite
|
|
||||||
```
|
|
||||||
|
|
||||||
## :earth_africa: Multilingual and i18n
|
|
||||||
|
|
||||||
CodeIT supports the following languages:
|
|
||||||
|
|
||||||
- English
|
|
||||||
- Simplified Chinese
|
|
||||||
- French
|
|
||||||
- Polish
|
|
||||||
- Brazilian Portuguese
|
|
||||||
- Italian
|
|
||||||
- Spanish
|
|
||||||
- German
|
|
||||||
- Serbian
|
|
||||||
- Russian
|
|
||||||
- Romanian
|
|
||||||
- Vietnamese
|
|
||||||
- [Contribute with a new language](https://github.com/sunt-programator/CodeIT/pulls)
|
|
||||||
|
|
||||||
[Languages Compatibility](https://codeit.suntprogramator.dev/theme-documentation-basics/#language-compatibility)
|
|
||||||
|
|
||||||
## :question: Questions, ideas, bugs, pull requests
|
|
||||||
|
|
||||||
All feedback is welcome! Head over to the [issue tracker](https://github.com/sunt-programator/CodeIT/issues).
|
|
||||||
|
|
||||||
## :scroll: License
|
|
||||||
|
|
||||||
CodeIT is licensed under the **MIT** license. Check the [LICENSE file](https://github.com/sunt-programator/CodeIT/blob/master/LICENSE) for details.
|
|
||||||
|
|
||||||
Thanks to the authors of the following resources included in the theme:
|
|
||||||
|
|
||||||
- [normalize.css](https://github.com/necolas/normalize.css)
|
|
||||||
- [Font Awesome](https://fontawesome.com/)
|
|
||||||
- [Simple Icons](https://github.com/simple-icons/simple-icons)
|
|
||||||
- [Animate.css](https://daneden.github.io/animate.css/)
|
|
||||||
- [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
|
|
||||||
- [autocomplete.js](https://github.com/algolia/autocomplete.js)
|
|
||||||
- [Lunr.js](https://lunrjs.com/)
|
|
||||||
- [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript)
|
|
||||||
- [lazysizes](https://github.com/aFarkas/lazysizes)
|
|
||||||
- [object-fit-images](https://github.com/fregante/object-fit-images)
|
|
||||||
- [Twemoji](https://github.com/twitter/twemoji)
|
|
||||||
- [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
|
|
||||||
- [clipboard.js](https://github.com/zenorocha/clipboard.js)
|
|
||||||
- [Sharer.js](https://github.com/ellisonleao/sharer.js)
|
|
||||||
- [TypeIt](https://typeitjs.com/)
|
|
||||||
- [KaTeX](https://katex.org/)
|
|
||||||
- [mermaid](https://github.com/knsv/mermaid)
|
|
||||||
- [ECharts](https://echarts.apache.org/)
|
|
||||||
- [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
|
||||||
- [APlayer](https://github.com/MoePlayer/APlayer)
|
|
||||||
- [MetingJS](https://github.com/metowolf/MetingJS)
|
|
||||||
- [Gitalk](https://github.com/gitalk/gitalk)
|
|
||||||
- [Valine](https://valine.js.org/)
|
|
||||||
- [cookieconsent](https://github.com/osano/cookieconsent)
|
|
||||||
|
|
||||||
## :moneybag: Sponsor
|
|
||||||
|
|
||||||
If you enjoy the theme, please consider buying me a coffee ☕️.
|
|
||||||
|
|
||||||
- [PayPal](https://paypal.me/victorpogor)
|
|
||||||
|
|
||||||
## :tada: Contributors
|
|
||||||
|
|
||||||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
||||||
<!-- prettier-ignore-start -->
|
|
||||||
<!-- markdownlint-disable -->
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://suntprogramator.dev/"><img src="https://avatars1.githubusercontent.com/u/24962085?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Victor Pogor</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=victor-pogor" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Avictor-pogor" title="Bug reports">🐛</a> <a href="#projectManagement-victor-pogor" title="Project Management">📆</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/dillonzq"><img src="https://avatars1.githubusercontent.com/u/30786232?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dillon</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=dillonzq" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Adillonzq" title="Bug reports">🐛</a> <a href="#projectManagement-dillonzq" title="Project Management">📆</a></td>
|
|
||||||
<td align="center"><a href="https://giuseppepignataro.eu/"><img src="https://avatars0.githubusercontent.com/u/16869546?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Giuseppe Pignataro</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Fastbyte01" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3AFastbyte01" title="Bug reports">🐛</a> <a href="#projectManagement-Fastbyte01" title="Project Management">📆</a></td>
|
|
||||||
<td align="center"><a href="http://www.thatamazingprogrammer.com/"><img src="https://avatars0.githubusercontent.com/u/11393826?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christopher C. Johnson</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3AProgramazing" title="Bug reports">🐛</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Documentation">📖</a></td>
|
|
||||||
<td align="center"><a href="https://astropengu.in/"><img src="https://avatars2.githubusercontent.com/u/13254278?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akio Taniguchi</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=astropenguin" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://www.holo.co.de/"><img src="https://avatars0.githubusercontent.com/u/6415842?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dave A-W</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=DaveA-W" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://blog.realsangil.net/"><img src="https://avatars1.githubusercontent.com/u/15508203?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sangil Park</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=realsangil" title="Code">💻</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://youngxhui.top/"><img src="https://avatars2.githubusercontent.com/u/16971804?v=4?s=100" width="100px;" alt=""/><br /><sub><b>youngxhui</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=youngxhui" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/solarpowerinncr"><img src="https://avatars0.githubusercontent.com/u/37186560?v=4?s=100" width="100px;" alt=""/><br /><sub><b>solarpowerinncr</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=solarpowerinncr" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://gitlab.com/maxlefou"><img src="https://avatars1.githubusercontent.com/u/6705075?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Max le Fou</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=maxlefou" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://edte.github.io/"><img src="https://avatars1.githubusercontent.com/u/50194671?v=4?s=100" width="100px;" alt=""/><br /><sub><b>edte</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=edte" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://frankma.netlify.app/"><img src="https://avatars3.githubusercontent.com/u/6177727?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fedomn</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Fedomn" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://coders.school/"><img src="https://avatars0.githubusercontent.com/u/4595135?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Łukasz Ziobroń</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=ziobron" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://blog.yoloyi.com/"><img src="https://avatars1.githubusercontent.com/u/40978171?v=4?s=100" width="100px;" alt=""/><br /><sub><b>余农场主</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=yoloyi" title="Code">💻</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://blog.wtcx.dev/"><img src="https://avatars3.githubusercontent.com/u/1546333?v=4?s=100" width="100px;" alt=""/><br /><sub><b>W.T. Chang</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=wtchangdm" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="http://blog.toneladas.com.br/"><img src="https://avatars1.githubusercontent.com/u/1603028?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vanildo Souto Mangueira</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=vanildosouto" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://linuxo.org/"><img src="https://avatars2.githubusercontent.com/u/37209662?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tomaja</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=tomaja-linuxo" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://thibault-lereste.fr/"><img src="https://avatars2.githubusercontent.com/u/12964583?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Thibault Le Reste</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=tlereste" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/thejayhaykid"><img src="https://avatars0.githubusercontent.com/u/9452325?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jake Hayes</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=thejayhaykid" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://sarathsp.com/"><img src="https://avatars0.githubusercontent.com/u/964542?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sarath Sadasivan Pillai</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sarathsp06" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://rodomar.mx/"><img src="https://avatars2.githubusercontent.com/u/2797052?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rodolfo Martínez Vega</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=ramrodo" title="Code">💻</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://github.com/quyleanh"><img src="https://avatars1.githubusercontent.com/u/9365035?v=4?s=100" width="100px;" alt=""/><br /><sub><b>quyleanh</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=quyleanh" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="http://www.onisuly.com/"><img src="https://avatars1.githubusercontent.com/u/8399827?v=4?s=100" width="100px;" alt=""/><br /><sub><b>onisuly</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=onisuly" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://nir.galon.io/"><img src="https://avatars3.githubusercontent.com/u/3472902?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nir Galon</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=nirgn975" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/markdluethje"><img src="https://avatars2.githubusercontent.com/u/31922494?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mark-Daniel Lüthje</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=markdluethje" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://devandreacarratta.it/"><img src="https://avatars3.githubusercontent.com/u/46504271?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrea Carratta</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=devandreacarratta" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://dogukanerel.com/"><img src="https://avatars3.githubusercontent.com/u/19349444?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Doğukan Erel</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=derelartwork" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://www.codedge.de/"><img src="https://avatars3.githubusercontent.com/u/4409904?v=4?s=100" width="100px;" alt=""/><br /><sub><b>codedge</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=codedge" title="Code">💻</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="http://www.cmpsoares.com/"><img src="https://avatars2.githubusercontent.com/u/4914211?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Carlos Manuel Soares</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=cmpsoares91" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://www.scrample.xyz/"><img src="https://avatars3.githubusercontent.com/u/51033013?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Anup</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=anup92k" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/SilkeHenderickx"><img src="https://avatars0.githubusercontent.com/u/28140438?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Silke Henderickx</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=SilkeHenderickx" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://ghos.in/"><img src="https://avatars1.githubusercontent.com/u/26043355?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ghosin</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Ghosin" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://automationd.com/"><img src="https://avatars2.githubusercontent.com/u/1790594?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dmitry Kireev</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=AutomationD" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://michaeloliver.dev"><img src="https://avatars3.githubusercontent.com/u/55017335?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michael Oliver</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=michael0liver" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://epogrebnyak.github.io"><img src="https://avatars3.githubusercontent.com/u/9265326?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Evgeny Pogrebnyak</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Aepogrebnyak" title="Bug reports">🐛</a> <a href="#ideas-epogrebnyak" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://sosiristseng.github.io"><img src="https://avatars2.githubusercontent.com/u/40054455?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Wen Wei Tseng</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sosiristseng" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://www.sheldonhull.com"><img src="https://avatars.githubusercontent.com/u/3526320?v=4?s=100" width="100px;" alt=""/><br /><sub><b>sheldonhull</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sheldonhull" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Asheldonhull" title="Bug reports">🐛</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/jadmadi"><img src="https://avatars.githubusercontent.com/u/29486218?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Madi</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=jadmadi" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Ajadmadi" title="Bug reports">🐛</a></td>
|
|
||||||
<td align="center"><a href="https://tmendes.gitlab.io/28lbackpack"><img src="https://avatars.githubusercontent.com/u/16507629?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Thiago Mendes</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=trmendes" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="http://aimoon.top"><img src="https://avatars.githubusercontent.com/u/61509470?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yasin</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Aaiyasin" title="Bug reports">🐛</a></td>
|
|
||||||
<td align="center"><a href="http://www.jesustorres.es/"><img src="https://avatars.githubusercontent.com/u/266452?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jesús Torres</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=aplatanado" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/ktw717"><img src="https://avatars.githubusercontent.com/u/19327709?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Karl Webster</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=ktw717" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=ktw717" title="Documentation">📖</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://github.com/OnlyFor"><img src="https://avatars.githubusercontent.com/u/16849187?v=4?s=100" width="100px;" alt=""/><br /><sub><b>OnlyFor</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=OnlyFor" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=OnlyFor" title="Documentation">📖</a></td>
|
|
||||||
<td align="center"><a href="https://tbm98.dev"><img src="https://avatars.githubusercontent.com/u/52562340?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Minh Tran</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=tbm98" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Atbm98" title="Bug reports">🐛</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/aozaki-kuro"><img src="https://avatars.githubusercontent.com/u/28428951?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aozaki</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Aaozaki-kuro" title="Bug reports">🐛</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=aozaki-kuro" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/deining"><img src="https://avatars.githubusercontent.com/u/18169566?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andreas Deininger</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=deining" title="Documentation">📖</a></td>
|
|
||||||
<td align="center"><a href="http://ashpex.eu.org"><img src="https://avatars.githubusercontent.com/u/38400042?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ashpex</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Ashpex" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/KHannibal"><img src="https://avatars.githubusercontent.com/u/3843004?v=4?s=100" width="100px;" alt=""/><br /><sub><b>KHannibal</b></sub></a><br /><a href="#ideas-KHannibal" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
||||||
<td align="center"><a href="https://gitlab.com/SonoMichele"><img src="https://avatars.githubusercontent.com/u/31669768?v=4?s=100" width="100px;" alt=""/><br /><sub><b>xMicky24GIT</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=xMicky24GIT" title="Documentation">📖</a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- markdownlint-restore -->
|
|
||||||
<!-- prettier-ignore-end -->
|
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
||||||
|
|
||||||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
|
||||||
subtitle: ""
|
|
||||||
date: {{ .Date }}
|
|
||||||
lastmod: {{ .Date }}
|
|
||||||
draft: true
|
|
||||||
author: ""
|
|
||||||
authorLink: ""
|
|
||||||
description: ""
|
|
||||||
|
|
||||||
tags: []
|
|
||||||
categories: []
|
|
||||||
|
|
||||||
hiddenFromHomePage: false
|
|
||||||
hiddenFromSearch: false
|
|
||||||
|
|
||||||
featuredImage: ""
|
|
||||||
featuredImagePreview: ""
|
|
||||||
|
|
||||||
toc:
|
|
||||||
enable: true
|
|
||||||
math:
|
|
||||||
enable: false
|
|
||||||
lightgallery: false
|
|
||||||
license: ""
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--more-->
|
|
|
@ -1,55 +0,0 @@
|
||||||
html {
|
|
||||||
font-family: $global-font-family;
|
|
||||||
font-weight: $global-font-weight;
|
|
||||||
font-display: swap;
|
|
||||||
font-size: $global-font-size;
|
|
||||||
line-height: $global-line-height;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* scrollbar, only support webkit */
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 0.5rem;
|
|
||||||
height: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background-color: $scrollbar-color;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: $scrollbar-hover-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
::selection {
|
|
||||||
background-color: $selection-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background-color: $selection-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: $global-background-color;
|
|
||||||
color: $global-font-color;
|
|
||||||
@include overflow-wrap(break-word);
|
|
||||||
scrollbar-color: auto;
|
|
||||||
|
|
||||||
&[theme="dark"] {
|
|
||||||
color: $global-font-color-dark;
|
|
||||||
background-color: $global-background-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include ms;
|
|
||||||
@include link(true, true);
|
|
||||||
|
|
||||||
@import "../_partial/mask";
|
|
||||||
@import "../_partial/icon";
|
|
||||||
@import "../_partial/details";
|
|
||||||
@import "../_partial/fixed-button";
|
|
||||||
@import "../_partial/cookieconsent";
|
|
||||||
|
|
||||||
img {
|
|
||||||
@include object-fit(contain);
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
@mixin link($light, $dark) {
|
|
||||||
a,
|
|
||||||
a::before,
|
|
||||||
a::after {
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
color: if($light, $global-link-color, $single-link-color);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: if($dark, $global-link-color-dark, $single-link-color-dark);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a:active,
|
|
||||||
a:hover {
|
|
||||||
color: if($light, $global-link-hover-color, $single-link-hover-color);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: if(
|
|
||||||
$dark,
|
|
||||||
$global-link-hover-color-dark,
|
|
||||||
$single-link-hover-color-dark
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
.page {
|
|
||||||
position: relative;
|
|
||||||
max-width: 800px;
|
|
||||||
width: 60%;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
[header-desktop] & {
|
|
||||||
padding-top: $header-height;
|
|
||||||
}
|
|
||||||
|
|
||||||
[header-desktop="normal"] & {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include blur;
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "_single";
|
|
||||||
@import "_special";
|
|
||||||
@import "_archive";
|
|
||||||
@import "_home";
|
|
||||||
@import "_404";
|
|
|
@ -1,345 +0,0 @@
|
||||||
@import "../_partial/_single/toc";
|
|
||||||
|
|
||||||
.single {
|
|
||||||
.single-title {
|
|
||||||
margin: 1rem 0 0.5rem;
|
|
||||||
font-size: 1.6rem;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 140%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.single-subtitle {
|
|
||||||
margin: 0.4rem 0;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: italic;
|
|
||||||
line-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-meta {
|
|
||||||
font-size: 0.875rem;
|
|
||||||
color: $global-font-secondary-color;
|
|
||||||
|
|
||||||
span {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include link(false, true);
|
|
||||||
|
|
||||||
.author {
|
|
||||||
font-size: 1.05rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.featured-image {
|
|
||||||
margin: 0.5rem 0 1rem 0;
|
|
||||||
|
|
||||||
img {
|
|
||||||
display: block;
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
margin: 0 auto;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.lazyloaded {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
> h2 {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
|
|
||||||
& code {
|
|
||||||
font-size: 1.25rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> h3 {
|
|
||||||
font-size: 1.375rem;
|
|
||||||
|
|
||||||
& code {
|
|
||||||
font-size: 1.125rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> h4 {
|
|
||||||
font-size: 1.25rem;
|
|
||||||
|
|
||||||
& code {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> h5 {
|
|
||||||
font-size: 1.125rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
> h6 {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2,
|
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 1.2rem 0;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> h2,
|
|
||||||
> h3,
|
|
||||||
> h4,
|
|
||||||
> h5,
|
|
||||||
> h6 {
|
|
||||||
> .header-mark::before {
|
|
||||||
content: "|";
|
|
||||||
margin-right: 0.3125rem;
|
|
||||||
color: $single-link-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $single-link-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> h2 > .header-mark::before {
|
|
||||||
content: "#";
|
|
||||||
}
|
|
||||||
> h3 > .header-mark::before {
|
|
||||||
content: "##";
|
|
||||||
}
|
|
||||||
> h4 > .header-mark::before {
|
|
||||||
content: "###";
|
|
||||||
}
|
|
||||||
> h5 > .header-mark::before {
|
|
||||||
content: "####";
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
b,
|
|
||||||
strong {
|
|
||||||
font-weight: bold;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include link(false, false);
|
|
||||||
|
|
||||||
a {
|
|
||||||
@include overflow-wrap(break-word);
|
|
||||||
|
|
||||||
[theme="dark"] & b,
|
|
||||||
[theme="dark"] & strong {
|
|
||||||
color: $single-link-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[theme="dark"] a:hover b,
|
|
||||||
[theme="dark"] a:hover strong {
|
|
||||||
color: $single-link-hover-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul,
|
|
||||||
ol {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
padding-left: 2.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
list-style-type: disc;
|
|
||||||
}
|
|
||||||
|
|
||||||
ruby {
|
|
||||||
background: $code-background-color;
|
|
||||||
|
|
||||||
rt {
|
|
||||||
color: $global-font-secondary-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background: $code-background-color-dark;
|
|
||||||
|
|
||||||
rt {
|
|
||||||
color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-wrapper {
|
|
||||||
overflow-x: auto;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
background-color: $table-background-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background-color: $table-background-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> table {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
margin: 0.625rem 0;
|
|
||||||
border-spacing: 0;
|
|
||||||
background: $table-background-color;
|
|
||||||
border-collapse: collapse;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background: $table-background-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
thead {
|
|
||||||
background: $table-thead-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background-color: $table-thead-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
th,
|
|
||||||
td {
|
|
||||||
padding: 0.3rem 1rem;
|
|
||||||
border: 1px solid darken($table-thead-color, 2%);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
border-color: darken($table-thead-color-dark, 2%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
max-width: 100%;
|
|
||||||
min-height: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
|
||||||
margin: 0.5rem;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
.image-caption:not(:empty) {
|
|
||||||
min-width: 20%;
|
|
||||||
max-width: 80%;
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0.5rem;
|
|
||||||
margin: 0 auto;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
color: #969696;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
display: block;
|
|
||||||
height: auto;
|
|
||||||
margin: 0 auto;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.lazyloading {
|
|
||||||
@include object-fit(none);
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
display: block;
|
|
||||||
border-left: 0.5rem solid $blockquote-color;
|
|
||||||
background-color: rgba($blockquote-color, 0.2);
|
|
||||||
padding: 0.25rem 0.75rem;
|
|
||||||
margin: 1rem 0;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
border-left-color: $blockquote-color-dark;
|
|
||||||
background-color: rgba($blockquote-color-dark, 0.2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.footnotes {
|
|
||||||
color: $global-font-secondary-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0.25rem 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "../_partial/_single/code";
|
|
||||||
@import "../_partial/_single/instagram";
|
|
||||||
@import "../_partial/_single/admonition";
|
|
||||||
@import "../_partial/_single/echarts";
|
|
||||||
@import "../_partial/_single/mapbox";
|
|
||||||
@import "../_partial/_single/music";
|
|
||||||
@import "../_partial/_single/bilibili";
|
|
||||||
@import "../_partial/_single/katex";
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin: 1rem 0;
|
|
||||||
position: relative;
|
|
||||||
border-top: 1px dashed $global-border-color;
|
|
||||||
border-bottom: none;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
border-top: 1px dashed $global-border-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
kbd {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0.25rem;
|
|
||||||
background-color: $global-background-color;
|
|
||||||
border: 1px solid $global-border-color;
|
|
||||||
border-bottom-color: $global-border-color;
|
|
||||||
@include border-radius(3px);
|
|
||||||
@include box-shadow(inset 0 -1px 0 $global-border-color);
|
|
||||||
font-size: 0.8rem;
|
|
||||||
font-family: $code-font-family;
|
|
||||||
color: $code-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background-color: $global-background-color-dark;
|
|
||||||
border: 1px solid $global-border-color-dark;
|
|
||||||
border-bottom-color: $global-border-color-dark;
|
|
||||||
@include box-shadow(inset 0 -1px 0 $global-border-color-dark);
|
|
||||||
color: $code-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.typeit {
|
|
||||||
.code {
|
|
||||||
padding: 0.375rem;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
font-family: $code-font-family;
|
|
||||||
font-weight: bold;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.version {
|
|
||||||
height: 1.25em;
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "../_partial/_single/footer";
|
|
||||||
@import "../_partial/_single/comment";
|
|
||||||
}
|
|
||||||
|
|
||||||
.lg-toolbar .lg-icon::after {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
.special {
|
|
||||||
.single-title,
|
|
||||||
.single-subtitle {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
.cc-window.cc-banner {
|
|
||||||
.cc-btn {
|
|
||||||
color: $global-font-color;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
background-color: #ccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-color;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
footer {
|
|
||||||
height: 2rem;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 1.25rem;
|
|
||||||
padding: 1rem 0;
|
|
||||||
|
|
||||||
.footer-container {
|
|
||||||
font-size: 0.875rem;
|
|
||||||
|
|
||||||
.footer-line {
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
.icp-br {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include blur;
|
|
||||||
}
|
|
|
@ -1,70 +0,0 @@
|
||||||
.admonition {
|
|
||||||
position: relative;
|
|
||||||
margin: 1rem 0;
|
|
||||||
padding: 0 0.75rem;
|
|
||||||
background-color: map-get($admonition-background-color-map, "note");
|
|
||||||
border-left: 0.25rem solid map-get($admonition-color-map, "note");
|
|
||||||
overflow: auto;
|
|
||||||
|
|
||||||
.admonition-title {
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 0 -0.75rem;
|
|
||||||
padding: 0.25rem 1.8rem;
|
|
||||||
border-bottom: 1px solid map-get($admonition-background-color-map, "note");
|
|
||||||
background-color: opacify(
|
|
||||||
map-get($admonition-background-color-map, "note"),
|
|
||||||
0.15
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.open .admonition-title {
|
|
||||||
background-color: map-get($admonition-background-color-map, "note");
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition-content {
|
|
||||||
padding: 0.5rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
i.icon {
|
|
||||||
font-size: 0.85rem;
|
|
||||||
color: map-get($admonition-color-map, "note");
|
|
||||||
position: absolute;
|
|
||||||
top: 0.6rem;
|
|
||||||
left: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
i.details-icon {
|
|
||||||
position: absolute;
|
|
||||||
top: 0.6rem;
|
|
||||||
right: 0.3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@each $type, $color in $admonition-color-map {
|
|
||||||
&.#{$type} {
|
|
||||||
border-left-color: $color;
|
|
||||||
|
|
||||||
i.icon {
|
|
||||||
color: $color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@each $type, $color in $admonition-background-color-map {
|
|
||||||
&.#{$type} {
|
|
||||||
background-color: $color;
|
|
||||||
|
|
||||||
.admonition-title {
|
|
||||||
border-bottom-color: $color;
|
|
||||||
background-color: opacify($color, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.open .admonition-title {
|
|
||||||
background-color: $color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
margin-bottom: 0.75rem;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,415 +0,0 @@
|
||||||
code {
|
|
||||||
display: inline-block;
|
|
||||||
max-width: 100%;
|
|
||||||
padding: 0 0.4rem;
|
|
||||||
@include overflow-wrap(break-word);
|
|
||||||
@include line-break(anywhere);
|
|
||||||
font-size: $code-font-size;
|
|
||||||
font-family: $code-font-family;
|
|
||||||
color: $code-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $code-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0.25rem 0 0.25rem 0.5rem;
|
|
||||||
@include tab-size(4);
|
|
||||||
|
|
||||||
code {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
min-height: 1em;
|
|
||||||
max-height: 1.2em;
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
code,
|
|
||||||
pre,
|
|
||||||
.highlight table,
|
|
||||||
.highlight tr,
|
|
||||||
.highlight td {
|
|
||||||
background: $code-background-color !important;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background: $code-background-color-dark !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight,
|
|
||||||
.gist {
|
|
||||||
font-family: $code-font-family;
|
|
||||||
font-size: $code-font-size;
|
|
||||||
|
|
||||||
.table-wrapper {
|
|
||||||
> table,
|
|
||||||
> table thead,
|
|
||||||
> table tr,
|
|
||||||
> table td {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
border: none !important;
|
|
||||||
white-space: pre;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight {
|
|
||||||
line-height: 1.4em;
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
|
|
||||||
> .chroma {
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.code-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 100%;
|
|
||||||
font-family: $global-font-family;
|
|
||||||
font-weight: bold;
|
|
||||||
color: $code-info-color;
|
|
||||||
background: darken($code-background-color, 8%);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $code-info-color-dark;
|
|
||||||
background: darken($code-background-color-dark, 6%);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.code-title {
|
|
||||||
width: 100%;
|
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.code-title::after {
|
|
||||||
padding-left: 0.2rem;
|
|
||||||
content: "Code";
|
|
||||||
}
|
|
||||||
|
|
||||||
@each $type, $text in $code-type-map {
|
|
||||||
&.#{$type} .code-title::after {
|
|
||||||
content: $text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.lntd:first-child {
|
|
||||||
min-width: 1.6rem;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lntd:last-child {
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
pre {
|
|
||||||
@include max-content(min-width);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.ln {
|
|
||||||
padding-right: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hl {
|
|
||||||
display: block;
|
|
||||||
background-color: darken($code-background-color, 10%);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background-color: darken($code-background-color-dark, 5%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.ln,
|
|
||||||
.lnt {
|
|
||||||
color: $global-font-secondary-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow {
|
|
||||||
padding: 0 0.2rem;
|
|
||||||
@include transition(transform 0.2s ease);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ellipses {
|
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.copy {
|
|
||||||
display: none;
|
|
||||||
padding: 0.4rem;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
color: $global-link-hover-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-link-hover-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-wrapper {
|
|
||||||
max-height: 0;
|
|
||||||
overflow-y: hidden;
|
|
||||||
@include details-transition-open;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.open {
|
|
||||||
.code-header {
|
|
||||||
background: darken($code-background-color, 3%);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background: darken($code-background-color-dark, 3%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-wrapper {
|
|
||||||
max-height: $MAX_LENGTH;
|
|
||||||
@include details-transition-close;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow {
|
|
||||||
@include transform(rotate(90deg));
|
|
||||||
}
|
|
||||||
|
|
||||||
.ellipses {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.copy {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Comment */
|
|
||||||
.c,
|
|
||||||
/* CommentHashbang */ .ch,
|
|
||||||
/* CommentMultiline */ .cm,
|
|
||||||
/* CommentSingle */ .c1,
|
|
||||||
/* CommentSpecial */ .cs,
|
|
||||||
/* CommentPreproc */ .cp,
|
|
||||||
/* CommentPreprocFile */ .cpf {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
/* GenericUnderline */
|
|
||||||
.gl {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
@each $class, $color in $code-highlight-color-map {
|
|
||||||
.#{$class} {
|
|
||||||
color: $color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
@each $class, $color in $code-highlight-color-map-dark {
|
|
||||||
.#{$class} {
|
|
||||||
color: $color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.gist {
|
|
||||||
.gist-file,
|
|
||||||
.gist-data,
|
|
||||||
.gist-meta {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gist-file {
|
|
||||||
border-color: $global-font-secondary-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
border-color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.gist-meta {
|
|
||||||
padding: 0.4rem 0.8rem;
|
|
||||||
background-color: darken($code-background-color, 5%);
|
|
||||||
|
|
||||||
@include link(false, false);
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
background-color: darken($code-background-color-dark, 5%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
color: $global-font-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-color-dark;
|
|
||||||
|
|
||||||
// imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css
|
|
||||||
.highlight {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
.blob-num,
|
|
||||||
.blob-code-inner,
|
|
||||||
.highlight,
|
|
||||||
.pl-enm,
|
|
||||||
.pl-ko,
|
|
||||||
.pl-mo,
|
|
||||||
.pl-mp1 .pl-sf,
|
|
||||||
.pl-ms,
|
|
||||||
.pl-pdc1,
|
|
||||||
.pl-scp,
|
|
||||||
.pl-smc,
|
|
||||||
.pl-som,
|
|
||||||
.pl-va,
|
|
||||||
.pl-vpf,
|
|
||||||
.pl-vpu,
|
|
||||||
.pl-mdr {
|
|
||||||
color: #aab1bf;
|
|
||||||
}
|
|
||||||
.pl-mb,
|
|
||||||
.pl-pdb {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
.pl-c,
|
|
||||||
.pl-c span,
|
|
||||||
.pl-pdc {
|
|
||||||
color: #5b6270;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.pl-sr .pl-cce {
|
|
||||||
color: #56b5c2;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
.pl-ef,
|
|
||||||
.pl-en,
|
|
||||||
.pl-enf,
|
|
||||||
.pl-eoai,
|
|
||||||
.pl-kos,
|
|
||||||
.pl-mh .pl-pdh,
|
|
||||||
.pl-mr {
|
|
||||||
color: #61afef;
|
|
||||||
}
|
|
||||||
.pl-ens,
|
|
||||||
.pl-vi {
|
|
||||||
color: #be5046;
|
|
||||||
}
|
|
||||||
.pl-enti,
|
|
||||||
.pl-mai .pl-sf,
|
|
||||||
.pl-ml,
|
|
||||||
.pl-sf,
|
|
||||||
.pl-sr,
|
|
||||||
.pl-sr .pl-sra,
|
|
||||||
.pl-src,
|
|
||||||
.pl-st,
|
|
||||||
.pl-vo {
|
|
||||||
color: #56b5c2;
|
|
||||||
}
|
|
||||||
.pl-eoi,
|
|
||||||
.pl-mri,
|
|
||||||
.pl-pds,
|
|
||||||
.pl-pse .pl-s1,
|
|
||||||
.pl-s,
|
|
||||||
.pl-s1 {
|
|
||||||
color: #97c279;
|
|
||||||
}
|
|
||||||
.pl-k,
|
|
||||||
.pl-kolp,
|
|
||||||
.pl-mc,
|
|
||||||
.pl-pde {
|
|
||||||
color: #c578dd;
|
|
||||||
}
|
|
||||||
.pl-mi,
|
|
||||||
.pl-pdi {
|
|
||||||
color: #c578dd;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.pl-mp,
|
|
||||||
.pl-stp {
|
|
||||||
color: #818896;
|
|
||||||
}
|
|
||||||
.pl-mdh,
|
|
||||||
.pl-mdi,
|
|
||||||
.pl-mdr {
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
.pl-mdht,
|
|
||||||
.pl-mi1 {
|
|
||||||
color: #97c279;
|
|
||||||
background: #020;
|
|
||||||
}
|
|
||||||
.pl-md,
|
|
||||||
.pl-mdhf {
|
|
||||||
color: #df6b75;
|
|
||||||
background: #200;
|
|
||||||
}
|
|
||||||
.pl-corl {
|
|
||||||
color: #df6b75;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
.pl-ib {
|
|
||||||
background: #df6b75;
|
|
||||||
}
|
|
||||||
.pl-ii {
|
|
||||||
background: #e0c184;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.pl-iu {
|
|
||||||
background: #e05151;
|
|
||||||
}
|
|
||||||
.pl-ms1 {
|
|
||||||
color: #aab1bf;
|
|
||||||
background: #373b41;
|
|
||||||
}
|
|
||||||
.pl-c1,
|
|
||||||
.pl-cn,
|
|
||||||
.pl-e,
|
|
||||||
.pl-eoa,
|
|
||||||
.pl-eoac,
|
|
||||||
.pl-eoac .pl-pde,
|
|
||||||
.pl-kou,
|
|
||||||
.pl-mm,
|
|
||||||
.pl-mp .pl-s3,
|
|
||||||
.pl-mq,
|
|
||||||
.pl-s3,
|
|
||||||
.pl-sok,
|
|
||||||
.pl-sv,
|
|
||||||
.pl-mb {
|
|
||||||
color: #d19965;
|
|
||||||
}
|
|
||||||
.pl-enc,
|
|
||||||
.pl-entc,
|
|
||||||
.pl-pse .pl-s2,
|
|
||||||
.pl-s2,
|
|
||||||
.pl-sc,
|
|
||||||
.pl-smp,
|
|
||||||
.pl-sr .pl-sre,
|
|
||||||
.pl-stj,
|
|
||||||
.pl-v,
|
|
||||||
.pl-pdb {
|
|
||||||
color: #e4bf7a;
|
|
||||||
}
|
|
||||||
.pl-ent,
|
|
||||||
.pl-entl,
|
|
||||||
.pl-entm,
|
|
||||||
.pl-mh,
|
|
||||||
.pl-pdv,
|
|
||||||
.pl-smi,
|
|
||||||
.pl-sol,
|
|
||||||
.pl-mdh,
|
|
||||||
.pl-mdi {
|
|
||||||
color: #df6b75;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
#comments {
|
|
||||||
padding: 8rem 0 2rem;
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
.echarts {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
|
@ -1,98 +0,0 @@
|
||||||
.post-footer {
|
|
||||||
margin-top: 3rem;
|
|
||||||
|
|
||||||
.post-info {
|
|
||||||
border-bottom: 1px solid $global-border-color;
|
|
||||||
padding: 1rem 0 0.3rem;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
border-bottom: 1px solid $global-border-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-info-line {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
|
|
||||||
.post-info-mod {
|
|
||||||
font-size: 0.8em;
|
|
||||||
color: $global-font-secondary-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include link(false, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-info-license {
|
|
||||||
font-size: 0.8em;
|
|
||||||
color: $global-font-secondary-color;
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
color: $global-font-secondary-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include link(false, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-info-md {
|
|
||||||
font-size: 0.8rem;
|
|
||||||
width: 8rem;
|
|
||||||
|
|
||||||
@include link(false, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-info-share {
|
|
||||||
a * {
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-info-more {
|
|
||||||
padding: 0.3rem 0 1rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags {
|
|
||||||
max-width: 65%;
|
|
||||||
|
|
||||||
* {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-nav {
|
|
||||||
&::before,
|
|
||||||
&::after {
|
|
||||||
content: " ";
|
|
||||||
display: table;
|
|
||||||
}
|
|
||||||
|
|
||||||
& a.prev,
|
|
||||||
& a.next {
|
|
||||||
font-size: 1rem;
|
|
||||||
font-weight: 600;
|
|
||||||
@include transition(all 0.3s ease-out);
|
|
||||||
}
|
|
||||||
|
|
||||||
& a.prev {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
& a.prev:hover {
|
|
||||||
@include transform(translateX(-4px));
|
|
||||||
}
|
|
||||||
|
|
||||||
& a.next {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
& a.next:hover {
|
|
||||||
@include transform(translateX(4px));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
iframe.instagram-media {
|
|
||||||
[theme="dark"] & {
|
|
||||||
border: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
.katex, .katex-display{
|
|
||||||
overflow-x: auto;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
.mapbox {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
padding: 0.5rem 0;
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
meting-js {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
}
|
|
|
@ -1,369 +0,0 @@
|
||||||
// ==============================
|
|
||||||
// Variables
|
|
||||||
// ==============================
|
|
||||||
|
|
||||||
// ========== Global ========== //
|
|
||||||
// Font and Line Height
|
|
||||||
$global-font-family: system-ui, -apple-system, BlinkMacSystemFont, PingFang SC,
|
|
||||||
Microsoft YaHei UI, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans,
|
|
||||||
Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif !default;
|
|
||||||
$global-font-size: 16px;
|
|
||||||
$global-font-weight: 400;
|
|
||||||
$global-line-height: 1.5rem;
|
|
||||||
|
|
||||||
// Color of the background
|
|
||||||
$global-background-color: #fff !default;
|
|
||||||
$global-background-color-dark: #292a2d !default;
|
|
||||||
|
|
||||||
// Color of the text
|
|
||||||
$global-font-color: #161209 !default;
|
|
||||||
$global-font-color-dark: #a9a9b3 !default;
|
|
||||||
|
|
||||||
// Color of the secondary text
|
|
||||||
$global-font-secondary-color: #a9a9b3 !default;
|
|
||||||
$global-font-secondary-color-dark: #5d5d5f !default;
|
|
||||||
|
|
||||||
// Color of the link
|
|
||||||
$global-link-color: #161209 !default;
|
|
||||||
$global-link-color-dark: #a9a9b3 !default;
|
|
||||||
|
|
||||||
// Color of the hover link
|
|
||||||
$global-link-hover-color: #2d96bd !default;
|
|
||||||
$global-link-hover-color-dark: #fff !default;
|
|
||||||
|
|
||||||
// Color of the border
|
|
||||||
$global-border-color: #f0f0f0 !default;
|
|
||||||
$global-border-color-dark: #363636 !default;
|
|
||||||
// ========== Global ========== //
|
|
||||||
|
|
||||||
// ========== Scrollbar ========== //
|
|
||||||
// Color of the scrollbar
|
|
||||||
$scrollbar-color: #87878d !default;
|
|
||||||
|
|
||||||
// Color of the hover scrollbar
|
|
||||||
$scrollbar-hover-color: #a9a9b3 !default;
|
|
||||||
// ========== Scrollbar ========== //
|
|
||||||
|
|
||||||
// ========== Selection ========== //
|
|
||||||
// Color of the selected text
|
|
||||||
$selection-color: rgba(53, 166, 247, 0.25) !default;
|
|
||||||
$selection-color-dark: rgba(50, 112, 194, 0.4) !default;
|
|
||||||
// ========== Selection ========== //
|
|
||||||
|
|
||||||
// ========== Header ========== //
|
|
||||||
// Height of the header
|
|
||||||
$header-height: 3.5rem !default;
|
|
||||||
|
|
||||||
// Color of the header background
|
|
||||||
$header-background-color: #f8f8f8 !default;
|
|
||||||
$header-background-color-dark: #252627 !default;
|
|
||||||
|
|
||||||
// Font style of the header title
|
|
||||||
$header-title-font-family: $global-font-family !default;
|
|
||||||
$header-title-font-size: 1.5rem !default;
|
|
||||||
|
|
||||||
// Color of the hover header item
|
|
||||||
$header-hover-color: #161209 !default;
|
|
||||||
$header-hover-color-dark: #fff !default;
|
|
||||||
|
|
||||||
// Color of the search background
|
|
||||||
$search-background-color: #e9e9e9 !default;
|
|
||||||
$search-background-color-dark: #363636 !default;
|
|
||||||
// ========== Header ========== //
|
|
||||||
|
|
||||||
// ========== Single Content ========== //
|
|
||||||
// Font size of the TOC
|
|
||||||
$toc-title-font-size: 1.2rem !default;
|
|
||||||
$toc-content-font-size: 1rem !default;
|
|
||||||
|
|
||||||
// Color of the single link
|
|
||||||
$single-link-color: #2d96bd !default;
|
|
||||||
$single-link-color-dark: #55bde2 !default;
|
|
||||||
|
|
||||||
// Color of the hover single link
|
|
||||||
$single-link-hover-color: #ef3982 !default;
|
|
||||||
$single-link-hover-color-dark: #bdebfc !default;
|
|
||||||
|
|
||||||
// Color of the table background
|
|
||||||
$table-background-color: #fff !default;
|
|
||||||
$table-background-color-dark: #272c34 !default;
|
|
||||||
|
|
||||||
// Color of the table thead
|
|
||||||
$table-thead-color: #ededed !default;
|
|
||||||
$table-thead-color-dark: #20252b !default;
|
|
||||||
|
|
||||||
// Color of the blockquote
|
|
||||||
$blockquote-color: #6bd6fd !default;
|
|
||||||
$blockquote-color-dark: #59c5ec !default;
|
|
||||||
// ========== Single Content ========== //
|
|
||||||
|
|
||||||
// ========== Pagination ========== //
|
|
||||||
// Color of the link in pagination
|
|
||||||
$pagination-link-color: #2d96bd !default;
|
|
||||||
$pagination-link-color-dark: #a9a9b3 !default;
|
|
||||||
|
|
||||||
// Color of the hover link in pagination
|
|
||||||
$pagination-link-hover-color: #000 !default;
|
|
||||||
$pagination-link-hover-color-dark: #fff !default;
|
|
||||||
// ========== Pagination ========== //
|
|
||||||
|
|
||||||
// ========== Code ========== //
|
|
||||||
// Color of the code
|
|
||||||
$code-color: #e74c3c !default;
|
|
||||||
$code-color-dark: #e5bf78 !default;
|
|
||||||
|
|
||||||
// Color of the code background
|
|
||||||
$code-background-color: #f5f5f5 !default;
|
|
||||||
$code-background-color-dark: #272c34 !default;
|
|
||||||
|
|
||||||
$code-info-color: #9c9c9c !default;
|
|
||||||
$code-info-color-dark: #b1b0b0 !default;
|
|
||||||
|
|
||||||
// Font size of the code
|
|
||||||
$code-font-size: 0.875rem !default;
|
|
||||||
|
|
||||||
// Font family of the code
|
|
||||||
$code-font-family: Source Code Pro, Menlo, Consolas, Monaco, monospace,
|
|
||||||
$global-font-family !default;
|
|
||||||
|
|
||||||
// Code type map
|
|
||||||
$code-type-map: (
|
|
||||||
// Custom code type
|
|
||||||
language-bash: "Bash",
|
|
||||||
language-c: "C",
|
|
||||||
language-cs: "C#",
|
|
||||||
language-cpp: "C++",
|
|
||||||
language-clojure: "Clojure",
|
|
||||||
language-coffeescript: "CoffeeScript",
|
|
||||||
language-css: "CSS",
|
|
||||||
language-dart: "Dart",
|
|
||||||
language-diff: "Diff",
|
|
||||||
language-erlang: "Erlang",
|
|
||||||
language-go: "Go",
|
|
||||||
language-go-html-template: "Go HTML Template",
|
|
||||||
language-groovy: "Groovy",
|
|
||||||
language-haskell: "Haskell",
|
|
||||||
language-html: "HTML",
|
|
||||||
language-http: "HTTP",
|
|
||||||
language-xml: "XML",
|
|
||||||
language-java: "Java",
|
|
||||||
language-js: "JavaScript",
|
|
||||||
language-javascript: "JavaScript",
|
|
||||||
language-json: "JSON",
|
|
||||||
language-kotlin: "Kotlin",
|
|
||||||
language-latex: "LaTeX",
|
|
||||||
language-less: "Less",
|
|
||||||
language-lisp: "Lisp",
|
|
||||||
language-lua: "Lua",
|
|
||||||
language-makefile: "Makefile",
|
|
||||||
language-markdown: "Markdown",
|
|
||||||
language-matlab: "Matlab",
|
|
||||||
language-objectivec: "Objective-C",
|
|
||||||
language-php: "PHP",
|
|
||||||
language-perl: "Perl",
|
|
||||||
language-python: "Python",
|
|
||||||
language-r: "R",
|
|
||||||
language-ruby: "Ruby",
|
|
||||||
language-rust: "Rust",
|
|
||||||
language-scala: "Scala",
|
|
||||||
language-scss: "Scss",
|
|
||||||
language-shell: "Shell",
|
|
||||||
language-sql: "SQL",
|
|
||||||
language-swift: "Swift",
|
|
||||||
language-tex: "TeX",
|
|
||||||
language-toml: "TOML",
|
|
||||||
language-ts: "TypeScript",
|
|
||||||
language-typescript: "TypeScript",
|
|
||||||
language-vue: "Vue",
|
|
||||||
language-yml: "YAML",
|
|
||||||
language-yaml: "YAML"
|
|
||||||
) !default;
|
|
||||||
|
|
||||||
// Color map of the code highlight
|
|
||||||
$code-highlight-color-map: (
|
|
||||||
/* Parentheses */ "p": #a9a9b3,
|
|
||||||
/* Keyword */ "k": #b501a9,
|
|
||||||
/* KeywordConstant */ "kc": #b501a9,
|
|
||||||
/* KeywordDeclaration */ "kd": #b501a9,
|
|
||||||
/* KeywordNamespace */ "kn": #b501a9,
|
|
||||||
/* KeywordPseudo */ "kp": #b501a9,
|
|
||||||
/* KeywordReserved */ "kr": #b501a9,
|
|
||||||
/* KeywordType */ "kt": #b501a9,
|
|
||||||
/* Name */ "n": #333333,
|
|
||||||
/* NameAttribute */ "na": #2b77fa,
|
|
||||||
/* NameBuiltin */ "nb": #f74840,
|
|
||||||
/* NameBuiltinPseudo */ "bp": #f74840,
|
|
||||||
/* NameClass */ "nc": #cb8100,
|
|
||||||
/* NameConstant */ "no": #2b77fa,
|
|
||||||
/* NameDecorator */ "nd": #0086c1,
|
|
||||||
/* NameEntity */ "ni": #2b77fa,
|
|
||||||
/* NameException */ "ne": #2b77fa,
|
|
||||||
/* NameFunction */ "nf": #2b77fa,
|
|
||||||
/* NameFunctionMagic */ "fm": #1ccad6,
|
|
||||||
/* NameLabel */ "nl": #2b77fa,
|
|
||||||
/* NameNamespace */ "nn": #2b77fa,
|
|
||||||
/* NameOther */ "nx": #333333,
|
|
||||||
/* NameProperty */ "py": #2b77fa,
|
|
||||||
/* NameTag */ "nt": #2b77fa,
|
|
||||||
/* NameVariable */ "nv": #2b77fa,
|
|
||||||
/* NameVariableClass */ "vc": #2b77fa,
|
|
||||||
/* NameVariableGlobal */ "vg": #2b77fa,
|
|
||||||
/* NameVariableInstance */ "vi": #2b77fa,
|
|
||||||
/* NameVariableMagic */ "vm": #2b77fa,
|
|
||||||
/* Literal */ "l": #2aa198,
|
|
||||||
/* LiteralDate */ "ld": #2aa198,
|
|
||||||
/* LiteralString */ "s": #24a443,
|
|
||||||
/* LiteralStringAffix */ "sa": #24a443,
|
|
||||||
/* LiteralStringBacktick */ "sb": #24a443,
|
|
||||||
/* LiteralStringChar */ "sc": #24a443,
|
|
||||||
/* LiteralStringDelimiter */ "dl": #24a443,
|
|
||||||
/* LiteralStringDoc */ "sd": #24a443,
|
|
||||||
/* LiteralStringDouble */ "s2": #24a443,
|
|
||||||
/* LiteralStringEscape */ "se": #24a443,
|
|
||||||
/* LiteralStringHeredoc */ "sh": #24a443,
|
|
||||||
/* LiteralStringInterpol */ "si": #24a443,
|
|
||||||
/* LiteralStringOther */ "sx": #24a443,
|
|
||||||
/* LiteralStringRegex */ "sr": #24a443,
|
|
||||||
/* LiteralStringSingle */ "s1": #24a443,
|
|
||||||
/* LiteralStringSymbol */ "ss": #24a443,
|
|
||||||
/* LiteralNumber */ "m": #e2893c,
|
|
||||||
/* LiteralNumberBin */ "mb": #e2893c,
|
|
||||||
/* LiteralNumberFloat */ "mf": #e2893c,
|
|
||||||
/* LiteralNumberHex */ "mh": #e2893c,
|
|
||||||
/* LiteralNumberInteger */ "mi": #e2893c,
|
|
||||||
/* LiteralNumberIntegerLong */ "il": #e2893c,
|
|
||||||
/* LiteralNumberOct */ "mo": #e2893c,
|
|
||||||
/* Operator */ "o": #f19b04,
|
|
||||||
/* OperatorWord */ "ow": #b501a9,
|
|
||||||
/* Comment */ "c": #a0a1a8,
|
|
||||||
/* CommentHashbang */ "ch": #a0a1a8,
|
|
||||||
/* CommentMultiline */ "cm": #a0a1a8,
|
|
||||||
/* CommentSingle */ "c1": #a0a1a8,
|
|
||||||
/* CommentSpecial */ "cs": #a0a1a8,
|
|
||||||
/* CommentPreproc */ "cp": #a0a1a8,
|
|
||||||
/* CommentPreprocFile */ "cpf": #a0a1a8,
|
|
||||||
/* Generic */ "g": #e72d40,
|
|
||||||
/* GenericDeleted */ "gd": #e72d40,
|
|
||||||
/* GenericEmph */ "ge": #e72d40,
|
|
||||||
/* GenericError */ "gr": #e72d40,
|
|
||||||
/* GenericHeading */ "gh": #e72d40,
|
|
||||||
/* GenericInserted */ "gi": #e72d40,
|
|
||||||
/* GenericOutput */ "go": #e72d40,
|
|
||||||
/* GenericPrompt */ "gp": #e72d40,
|
|
||||||
/* GenericStrong */ "gs": #e72d40,
|
|
||||||
/* GenericSubheading */ "gu": #e72d40,
|
|
||||||
/* GenericTraceback */ "gt": #e72d40,
|
|
||||||
/* TextWhitespace */ "w": #bbbbbb
|
|
||||||
) !default;
|
|
||||||
$code-highlight-color-map-dark: (
|
|
||||||
/* Parentheses */ "p": #a9a9b3,
|
|
||||||
/* Keyword */ "k": #d371e3,
|
|
||||||
/* KeywordConstant */ "kc": #d371e3,
|
|
||||||
/* KeywordDeclaration */ "kd": #d371e3,
|
|
||||||
/* KeywordNamespace */ "kn": #d371e3,
|
|
||||||
/* KeywordPseudo */ "kp": #d371e3,
|
|
||||||
/* KeywordReserved */ "kr": #d371e3,
|
|
||||||
/* KeywordType */ "kt": #d371e3,
|
|
||||||
/* Name */ "n": #a9b2c0,
|
|
||||||
/* NameAttribute */ "na": #41b0f5,
|
|
||||||
/* NameBuiltin */ "nb": #19b9c4,
|
|
||||||
/* NameBuiltinPseudo */ "bp": #ecbf6f,
|
|
||||||
/* NameClass */ "nc": #ecbf6f,
|
|
||||||
/* NameConstant */ "no": #41b0f5,
|
|
||||||
/* NameDecorator */ "nd": #ecbf6f,
|
|
||||||
/* NameEntity */ "ni": #41b0f5,
|
|
||||||
/* NameException */ "ne": #41b0f5,
|
|
||||||
/* NameFunction */ "nf": #41b0f5,
|
|
||||||
/* NameFunctionMagic */ "fm": #19b9c4,
|
|
||||||
/* NameLabel */ "nl": #41b0f5,
|
|
||||||
/* NameNamespace */ "nn": #41b0f5,
|
|
||||||
/* NameOther */ "nx": #a9a9b3,
|
|
||||||
/* NameProperty */ "py": #41b0f5,
|
|
||||||
/* NameTag */ "nt": #41b0f5,
|
|
||||||
/* NameVariable */ "nv": #41b0f5,
|
|
||||||
/* NameVariableClass */ "vc": #41b0f5,
|
|
||||||
/* NameVariableGlobal */ "vg": #41b0f5,
|
|
||||||
/* NameVariableInstance */ "vi": #41b0f5,
|
|
||||||
/* NameVariableMagic */ "vm": #41b0f5,
|
|
||||||
/* Literal */ "l": #2aa198,
|
|
||||||
/* LiteralDate */ "ld": #2aa198,
|
|
||||||
/* LiteralString */ "s": #8cc570,
|
|
||||||
/* LiteralStringAffix */ "sa": #8cc570,
|
|
||||||
/* LiteralStringBacktick */ "sb": #8cc570,
|
|
||||||
/* LiteralStringChar */ "sc": #8cc570,
|
|
||||||
/* LiteralStringDelimiter */ "dl": #8cc570,
|
|
||||||
/* LiteralStringDoc */ "sd": #8cc570,
|
|
||||||
/* LiteralStringDouble */ "s2": #8cc570,
|
|
||||||
/* LiteralStringEscape */ "se": #8cc570,
|
|
||||||
/* LiteralStringHeredoc */ "sh": #8cc570,
|
|
||||||
/* LiteralStringInterpol */ "si": #8cc570,
|
|
||||||
/* LiteralStringOther */ "sx": #8cc570,
|
|
||||||
/* LiteralStringRegex */ "sr": #8cc570,
|
|
||||||
/* LiteralStringSingle */ "s1": #8cc570,
|
|
||||||
/* LiteralStringSymbol */ "ss": #8cc570,
|
|
||||||
/* LiteralNumber */ "m": #db985c,
|
|
||||||
/* LiteralNumberBin */ "mb": #db985c,
|
|
||||||
/* LiteralNumberFloat */ "mf": #db985c,
|
|
||||||
/* LiteralNumberHex */ "mh": #db985c,
|
|
||||||
/* LiteralNumberInteger */ "mi": #db985c,
|
|
||||||
/* LiteralNumberIntegerLong */ "il": #db985c,
|
|
||||||
/* LiteralNumberOct */ "mo": #db985c,
|
|
||||||
/* Operator */ "o": #ecbf6f,
|
|
||||||
/* OperatorWord */ "ow": #d371e3,
|
|
||||||
/* Comment */ "c": #7e848f,
|
|
||||||
/* CommentHashbang */ "ch": #7e848f,
|
|
||||||
/* CommentMultiline */ "cm": #7e848f,
|
|
||||||
/* CommentSingle */ "c1": #7e848f,
|
|
||||||
/* CommentSpecial */ "cs": #7e848f,
|
|
||||||
/* CommentPreproc */ "cp": #7e848f,
|
|
||||||
/* CommentPreprocFile */ "cpf": #7e848f,
|
|
||||||
/* Generic */ "g": #f16372,
|
|
||||||
/* GenericDeleted */ "gd": #f16372,
|
|
||||||
/* GenericEmph */ "ge": #f16372,
|
|
||||||
/* GenericError */ "gr": #f16372,
|
|
||||||
/* GenericHeading */ "gh": #f16372,
|
|
||||||
/* GenericInserted */ "gi": #f16372,
|
|
||||||
/* GenericOutput */ "go": #f16372,
|
|
||||||
/* GenericPrompt */ "gp": #f16372,
|
|
||||||
/* GenericStrong */ "gs": #f16372,
|
|
||||||
/* GenericSubheading */ "gu": #f16372,
|
|
||||||
/* GenericTraceback */ "gt": #f16372,
|
|
||||||
/* TextWhitespace */ "w": #bbbbbb
|
|
||||||
) !default;
|
|
||||||
// ========== Code ========== //
|
|
||||||
|
|
||||||
// ========== Admonition ========== //
|
|
||||||
// Color map of the admonition
|
|
||||||
$admonition-color-map: (
|
|
||||||
"note": #448aff,
|
|
||||||
"abstract": #00b0ff,
|
|
||||||
"info": #00b8d4,
|
|
||||||
"tip": #00bfa5,
|
|
||||||
"success": #00c853,
|
|
||||||
"question": #64dd17,
|
|
||||||
"warning": #ff9100,
|
|
||||||
"failure": #ff5252,
|
|
||||||
"danger": #ff1744,
|
|
||||||
"bug": #f50057,
|
|
||||||
"example": #651fff,
|
|
||||||
"quote": #9e9e9e,
|
|
||||||
) !default;
|
|
||||||
|
|
||||||
// Color map of the admonition background
|
|
||||||
$admonition-background-color-map: (
|
|
||||||
"note": rgba(68, 138, 255, 0.1),
|
|
||||||
"abstract": rgba(0, 176, 255, 0.1),
|
|
||||||
"info": rgba(0, 184, 212, 0.1),
|
|
||||||
"tip": rgba(0, 191, 165, 0.1),
|
|
||||||
"success": rgba(0, 200, 83, 0.1),
|
|
||||||
"question": rgba(100, 221, 23, 0.1),
|
|
||||||
"warning": rgba(255, 145, 0, 0.1),
|
|
||||||
"failure": rgba(255, 82, 82, 0.1),
|
|
||||||
"danger": rgba(255, 23, 68, 0.1),
|
|
||||||
"bug": rgba(245, 0, 87, 0.1),
|
|
||||||
"example": rgba(101, 31, 255, 0.1),
|
|
||||||
"quote": rgba(159, 159, 159, 0.1),
|
|
||||||
) !default;
|
|
||||||
// ========== Admonition ========== //
|
|
||||||
|
|
||||||
$MAX_LENGTH: 12000px;
|
|
|
@ -1,19 +0,0 @@
|
||||||
@charset "utf-8";
|
|
||||||
|
|
||||||
@import "_variables";
|
|
||||||
@import "_override";
|
|
||||||
|
|
||||||
@import "_mixin/index";
|
|
||||||
|
|
||||||
@import "_core/base";
|
|
||||||
@import "_core/layout";
|
|
||||||
|
|
||||||
@import "_page/index";
|
|
||||||
|
|
||||||
@import "_partial/header";
|
|
||||||
@import "_partial/footer";
|
|
||||||
@import "_partial/pagination";
|
|
||||||
|
|
||||||
@import "_core/media";
|
|
||||||
|
|
||||||
@import "_custom";
|
|
|
@ -1,70 +0,0 @@
|
||||||
prefix:
|
|
||||||
libFiles: https://cdn.jsdelivr.net/npm/
|
|
||||||
# simple-icons@2.14.0 https://github.com/simple-icons/simple-icons
|
|
||||||
simpleIcons: https://cdn.jsdelivr.net/npm/simple-icons@2.14.0/icons/
|
|
||||||
libFiles:
|
|
||||||
# normalize.css@8.0.1 https://github.com/necolas/normalize.css
|
|
||||||
normalizeCSS: normalize.css@8.0.1/normalize.min.css
|
|
||||||
# fontawesome-free@5.13.0 https://fontawesome.com/
|
|
||||||
fontawesomeFreeCSS: '@fortawesome/fontawesome-free@5.13.0/css/all.min.css'
|
|
||||||
# animate.css@3.7.2 https://github.com/daneden/animate.css
|
|
||||||
animateCSS: animate.css@3.7.2/animate.min.css
|
|
||||||
# smooth-scroll@16.1.3 https://github.com/cferdinandi/smooth-scroll
|
|
||||||
smoothScrollJS: smooth-scroll@16.1.3/dist/smooth-scroll.min.js
|
|
||||||
# autocomplete.js@0.37.1 https://github.com/algolia/autocomplete.js
|
|
||||||
autocompleteJS: autocomplete.js@0.37.1/dist/autocomplete.min.js
|
|
||||||
# lunr.js@2.3.8 https://lunrjs.com/
|
|
||||||
lunrJS: lunr@2.3.8/lunr.min.js
|
|
||||||
# algoliasearch@4.2.0 https://github.com/algolia/algoliasearch-client-javascript
|
|
||||||
algoliasearchJS: algoliasearch@4.2.0/dist/algoliasearch-lite.umd.min.js
|
|
||||||
# lazysizes@5.2.2 https://github.com/aFarkas/lazysizes
|
|
||||||
lazysizesJS: lazysizes@5.2.2/lazysizes.min.js
|
|
||||||
# object-fit-images@3.2.4 https://github.com/fregante/object-fit-images
|
|
||||||
objectFitImagesJS: object-fit-images@3.2.4/dist/ofi.min.js
|
|
||||||
# twemoji@13.0.0 https://github.com/twitter/twemoji
|
|
||||||
twemojiJS: twemoji@13.0.0/dist/twemoji.min.js
|
|
||||||
# lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js
|
|
||||||
# lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js
|
|
||||||
# lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
|
|
||||||
lightgalleryCSS: lightgallery.js@1.2.0/dist/css/lightgallery.min.css
|
|
||||||
lightgalleryJS: lightgallery.js@1.2.0/dist/js/lightgallery.min.js
|
|
||||||
lightgalleryThumbnailJS: lg-thumbnail.js@1.2.0/dist/lg-thumbnail.min.js
|
|
||||||
lightgalleryZoomJS: lg-zoom.js@1.2.0/dist/lg-zoom.min.js
|
|
||||||
# clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js
|
|
||||||
clipboardJS: clipboard@2.0.6/dist/clipboard.min.js
|
|
||||||
# sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js
|
|
||||||
sharerJS: sharer.js@0.4.0/sharer.min.js
|
|
||||||
# typeit@7.0.4 https://github.com/alexmacarthur/typeit
|
|
||||||
typeitJS: typeit@7.0.4/dist/typeit.min.js
|
|
||||||
# katex@0.11.1 https://katex.org/
|
|
||||||
katexCSS: katex@0.13.11/dist/katex.min.css
|
|
||||||
katexJS: katex@0.13.11/dist/katex.min.js
|
|
||||||
katexAutoRenderJS: katex@0.13.11/dist/contrib/auto-render.min.js
|
|
||||||
katexCopyTexCSS: katex@0.13.11/dist/contrib/copy-tex.min.css
|
|
||||||
katexCopyTexJS: katex@0.13.11/dist/contrib/copy-tex.min.js
|
|
||||||
katexMhchemJS: katex@0.13.11/dist/contrib/mhchem.min.js
|
|
||||||
# mermaid@8.5.1 https://github.com/knsv/mermaid
|
|
||||||
mermaidJS: mermaid@8.5.1/dist/mermaid.min.js
|
|
||||||
# echarts@4.8.0 https://echarts.apache.org/
|
|
||||||
echartsJS: echarts@4.8.0/dist/echarts.min.js
|
|
||||||
echartsMacaronsJS: echarts@4.8.0/theme/macarons.min.js
|
|
||||||
# mapbox-gl@1.10.1 https://docs.mapbox.com/mapbox-gl-js
|
|
||||||
mapboxGLCSS: mapbox-gl@1.10.1/dist/mapbox-gl.min.css
|
|
||||||
mapboxGLJS: mapbox-gl@1.10.1/dist/mapbox-gl.min.js
|
|
||||||
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
|
||||||
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
|
|
||||||
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
|
|
||||||
# meting@2.0.1 https://github.com/metowolf/MetingJS
|
|
||||||
metingJS: meting@2.0.1/dist/Meting.min.js
|
|
||||||
# gitalk@1.6.2 https://github.com/gitalk/gitalk
|
|
||||||
gitalkCSS: gitalk@1.6.2/dist/gitalk.min.css
|
|
||||||
gitalkJS: gitalk@1.6.2/dist/gitalk.min.js
|
|
||||||
# valine@1.4.14 https://valine.js.org/
|
|
||||||
valineJS: valine@1.4.14/dist/Valine.min.js
|
|
||||||
# cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
|
||||||
cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css
|
|
||||||
cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js
|
|
||||||
# twikoo@1.4.3 https://github.com/imaegoo/twikoo
|
|
||||||
twikooJS: twikoo@1.4.3/dist/twikoo.all.min.js
|
|
||||||
# waline@1.3.3 https://github.com/walinejs/waline
|
|
||||||
walineJS: waline/client@1.3.3/dist/Waline.min.js
|
|
3
themes/CodeIT/assets/js/theme.min.js
vendored
3
themes/CodeIT/assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,28 +0,0 @@
|
||||||
normalize.css@8.0.1 https://github.com/necolas/normalize.css
|
|
||||||
fontawesome-free@5.13.0 https://fontawesome.com/
|
|
||||||
simple-icons@2.14.0 https://github.com/simple-icons/simple-icons
|
|
||||||
animate.css@3.7.2 https://github.com/daneden/animate.css
|
|
||||||
smooth-scroll@16.1.3 https://github.com/cferdinandi/smooth-scroll
|
|
||||||
autocomplete.js@0.37.1 https://github.com/algolia/autocomplete.js
|
|
||||||
lunr.js@2.3.8 https://lunrjs.com/
|
|
||||||
algoliasearch@4.2.0 https://github.com/algolia/algoliasearch-client-javascript
|
|
||||||
lazysizes@5.2.2 https://github.com/aFarkas/lazysizes
|
|
||||||
object-fit-images@3.2.4 https://github.com/fregante/object-fit-images
|
|
||||||
twemoji@13.0.0 https://github.com/twitter/twemoji
|
|
||||||
lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js
|
|
||||||
lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js
|
|
||||||
lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
|
|
||||||
clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js
|
|
||||||
sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js
|
|
||||||
typeit@7.0.4 https://github.com/alexmacarthur/typeit
|
|
||||||
katex@0.13.11 https://katex.org/
|
|
||||||
mermaid@8.5.1 https://github.com/knsv/mermaid
|
|
||||||
echarts@4.8.0 https://echarts.apache.org/
|
|
||||||
mapbox-gl@1.10.1 https://github.com/mapbox/mapbox-gl-js
|
|
||||||
aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
|
||||||
meting@2.0.1 https://github.com/metowolf/MetingJS
|
|
||||||
gitalk@1.6.2 https://github.com/gitalk/gitalk
|
|
||||||
valine@1.4.14 https://valine.js.org/
|
|
||||||
cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
|
||||||
twikoo@1.4.3 https://github.com/imaegoo/twikoo
|
|
||||||
waline@1.3.3 https://github.com/walinejs/waline
|
|
File diff suppressed because one or more lines are too long
11
themes/CodeIT/assets/lib/animate/animate.min.css
vendored
11
themes/CodeIT/assets/lib/animate/animate.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -1,136 +0,0 @@
|
||||||
[theme="dark"] .aplayer {
|
|
||||||
background: #212121;
|
|
||||||
|
|
||||||
&.aplayer-withlist {
|
|
||||||
.aplayer-info {
|
|
||||||
border-bottom-color: #5c5c5c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.aplayer-fixed {
|
|
||||||
.aplayer-list {
|
|
||||||
border-color: #5c5c5c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-body {
|
|
||||||
background-color: #212121;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-info {
|
|
||||||
border-top-color: #212121;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-info {
|
|
||||||
.aplayer-music {
|
|
||||||
.aplayer-title {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-author {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-controller {
|
|
||||||
.aplayer-time {
|
|
||||||
color: #eee;
|
|
||||||
|
|
||||||
.aplayer-icon {
|
|
||||||
path {
|
|
||||||
fill: #eee;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-list {
|
|
||||||
background-color: #212121;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
|
||||||
background-color: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb:hover {
|
|
||||||
background-color: #bbb;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
|
||||||
color: #fff;
|
|
||||||
border-top-color: #666;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: #4e4e4e;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.aplayer-list-light {
|
|
||||||
background: #6c6c6c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-list-index {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-list-author {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-lrc {
|
|
||||||
text-shadow: -1px -1px 0 #666;
|
|
||||||
|
|
||||||
&:before {
|
|
||||||
background: -moz-linear-gradient(
|
|
||||||
top,
|
|
||||||
rgba(33, 33, 33, 1) 0%,
|
|
||||||
rgba(33, 33, 33, 0) 100%
|
|
||||||
);
|
|
||||||
background: -webkit-linear-gradient(
|
|
||||||
top,
|
|
||||||
rgba(33, 33, 33, 1) 0%,
|
|
||||||
rgba(33, 33, 33, 0) 100%
|
|
||||||
);
|
|
||||||
background: linear-gradient(
|
|
||||||
to bottom,
|
|
||||||
rgba(33, 33, 33, 1) 0%,
|
|
||||||
rgba(33, 33, 33, 0) 100%
|
|
||||||
);
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#212121', endColorstr='#00212121',GradientType=0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
background: -moz-linear-gradient(
|
|
||||||
top,
|
|
||||||
rgba(33, 33, 33, 0) 0%,
|
|
||||||
rgba(33, 33, 33, 0.8) 100%
|
|
||||||
);
|
|
||||||
background: -webkit-linear-gradient(
|
|
||||||
top,
|
|
||||||
rgba(33, 33, 33, 0) 0%,
|
|
||||||
rgba(33, 33, 33, 0.8) 100%
|
|
||||||
);
|
|
||||||
background: linear-gradient(
|
|
||||||
to bottom,
|
|
||||||
rgba(33, 33, 33, 0) 0%,
|
|
||||||
rgba(33, 33, 33, 0.8) 100%
|
|
||||||
);
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00212121', endColorstr='#cc212121',GradientType=0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.aplayer-miniswitcher {
|
|
||||||
background: #484848;
|
|
||||||
|
|
||||||
.aplayer-icon {
|
|
||||||
path {
|
|
||||||
fill: #eee;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
22
themes/CodeIT/assets/lib/echarts/echarts.min.js
vendored
22
themes/CodeIT/assets/lib/echarts/echarts.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,240 +0,0 @@
|
||||||
/*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(["exports", "echarts"], factory);
|
|
||||||
} else if (
|
|
||||||
typeof exports === "object" &&
|
|
||||||
typeof exports.nodeName !== "string"
|
|
||||||
) {
|
|
||||||
// CommonJS
|
|
||||||
factory(exports, require("echarts"));
|
|
||||||
} else {
|
|
||||||
// Browser globals
|
|
||||||
factory({}, root.echarts);
|
|
||||||
}
|
|
||||||
})(this, function (exports, echarts) {
|
|
||||||
var log = function (msg) {
|
|
||||||
if (typeof console !== "undefined") {
|
|
||||||
console && console.error && console.error(msg);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
if (!echarts) {
|
|
||||||
log("ECharts is not Loaded");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var colorPalette = [
|
|
||||||
"#2ec7c9",
|
|
||||||
"#b6a2de",
|
|
||||||
"#5ab1ef",
|
|
||||||
"#ffb980",
|
|
||||||
"#d87a80",
|
|
||||||
"#8d98b3",
|
|
||||||
"#e5cf0d",
|
|
||||||
"#97b552",
|
|
||||||
"#95706d",
|
|
||||||
"#dc69aa",
|
|
||||||
"#07a2a4",
|
|
||||||
"#9a7fd1",
|
|
||||||
"#588dd5",
|
|
||||||
"#f5994e",
|
|
||||||
"#c05050",
|
|
||||||
"#59678c",
|
|
||||||
"#c9ab00",
|
|
||||||
"#7eb00a",
|
|
||||||
"#6f5553",
|
|
||||||
"#c14089",
|
|
||||||
];
|
|
||||||
|
|
||||||
var theme = {
|
|
||||||
color: colorPalette,
|
|
||||||
|
|
||||||
title: {
|
|
||||||
textStyle: {
|
|
||||||
fontWeight: "normal",
|
|
||||||
color: "#008acd",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
visualMap: {
|
|
||||||
itemWidth: 15,
|
|
||||||
color: ["#5ab1ef", "#e0ffff"],
|
|
||||||
},
|
|
||||||
|
|
||||||
toolbox: {
|
|
||||||
iconStyle: {
|
|
||||||
normal: {
|
|
||||||
borderColor: colorPalette[0],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
tooltip: {
|
|
||||||
backgroundColor: "rgba(50,50,50,0.5)",
|
|
||||||
axisPointer: {
|
|
||||||
type: "line",
|
|
||||||
lineStyle: {
|
|
||||||
color: "#008acd",
|
|
||||||
},
|
|
||||||
crossStyle: {
|
|
||||||
color: "#008acd",
|
|
||||||
},
|
|
||||||
shadowStyle: {
|
|
||||||
color: "rgba(200,200,200,0.2)",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
dataZoom: {
|
|
||||||
dataBackgroundColor: "#efefff",
|
|
||||||
fillerColor: "rgba(182,162,222,0.2)",
|
|
||||||
handleColor: "#008acd",
|
|
||||||
},
|
|
||||||
|
|
||||||
grid: {
|
|
||||||
borderColor: "#eee",
|
|
||||||
},
|
|
||||||
|
|
||||||
categoryAxis: {
|
|
||||||
axisLine: {
|
|
||||||
lineStyle: {
|
|
||||||
color: "#008acd",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
splitLine: {
|
|
||||||
lineStyle: {
|
|
||||||
color: ["#eee"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
valueAxis: {
|
|
||||||
axisLine: {
|
|
||||||
lineStyle: {
|
|
||||||
color: "#008acd",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
splitArea: {
|
|
||||||
show: true,
|
|
||||||
areaStyle: {
|
|
||||||
color: ["rgba(250,250,250,0.1)", "rgba(200,200,200,0.1)"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
splitLine: {
|
|
||||||
lineStyle: {
|
|
||||||
color: ["#eee"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
timeline: {
|
|
||||||
lineStyle: {
|
|
||||||
color: "#008acd",
|
|
||||||
},
|
|
||||||
controlStyle: {
|
|
||||||
color: "#008acd",
|
|
||||||
borderColor: "#008acd",
|
|
||||||
},
|
|
||||||
symbol: "emptyCircle",
|
|
||||||
symbolSize: 3,
|
|
||||||
},
|
|
||||||
|
|
||||||
line: {
|
|
||||||
smooth: true,
|
|
||||||
symbol: "emptyCircle",
|
|
||||||
symbolSize: 3,
|
|
||||||
},
|
|
||||||
|
|
||||||
candlestick: {
|
|
||||||
itemStyle: {
|
|
||||||
color: "#d87a80",
|
|
||||||
color0: "#2ec7c9",
|
|
||||||
},
|
|
||||||
lineStyle: {
|
|
||||||
width: 1,
|
|
||||||
color: "#d87a80",
|
|
||||||
color0: "#2ec7c9",
|
|
||||||
},
|
|
||||||
areaStyle: {
|
|
||||||
color: "#2ec7c9",
|
|
||||||
color0: "#b6a2de",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
scatter: {
|
|
||||||
symbol: "circle",
|
|
||||||
symbolSize: 4,
|
|
||||||
},
|
|
||||||
|
|
||||||
map: {
|
|
||||||
itemStyle: {
|
|
||||||
color: "#ddd",
|
|
||||||
},
|
|
||||||
areaStyle: {
|
|
||||||
color: "#fe994e",
|
|
||||||
},
|
|
||||||
label: {
|
|
||||||
color: "#d87a80",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
graph: {
|
|
||||||
itemStyle: {
|
|
||||||
color: "#d87a80",
|
|
||||||
},
|
|
||||||
linkStyle: {
|
|
||||||
color: "#2ec7c9",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
gauge: {
|
|
||||||
axisLine: {
|
|
||||||
lineStyle: {
|
|
||||||
color: [
|
|
||||||
[0.2, "#2ec7c9"],
|
|
||||||
[0.8, "#5ab1ef"],
|
|
||||||
[1, "#d87a80"],
|
|
||||||
],
|
|
||||||
width: 10,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
axisTick: {
|
|
||||||
splitNumber: 10,
|
|
||||||
length: 15,
|
|
||||||
lineStyle: {
|
|
||||||
color: "auto",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
splitLine: {
|
|
||||||
length: 22,
|
|
||||||
lineStyle: {
|
|
||||||
color: "auto",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
pointer: {
|
|
||||||
width: 5,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
echarts.registerTheme("macarons", theme);
|
|
||||||
});
|
|
File diff suppressed because one or more lines are too long
35
themes/CodeIT/assets/lib/gitalk/gitalk.min.js
vendored
35
themes/CodeIT/assets/lib/gitalk/gitalk.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
.katex,.katex-display{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}
|
|
|
@ -1 +0,0 @@
|
||||||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var l in n)("object"==typeof exports?exports:e)[l]=n[l]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={},t={inline:["$","$"],display:["$$","$$"]},n=function(e,n){void 0===n&&(n=t);for(var l=e.querySelectorAll(".katex-mathml + .katex-html"),r=0;r<l.length;r++){var i=l[r];i.remove?i.remove(null):i.parentNode.removeChild(i)}for(var o=e.querySelectorAll(".katex-mathml"),a=0;a<o.length;a++){var d=o[a],f=d.querySelector("annotation");f&&(d.replaceWith?d.replaceWith(f):d.parentNode.replaceChild(f,d),f.innerHTML=n.inline[0]+f.innerHTML+n.inline[1])}for(var c=e.querySelectorAll(".katex-display annotation"),s=0;s<c.length;s++){var p=c[s];p.innerHTML=n.display[0]+p.innerHTML.substr(n.inline[0].length,p.innerHTML.length-n.inline[0].length-n.inline[1].length)+n.display[1]}return e};return document.addEventListener("copy",(function(e){var t=window.getSelection();if(!t.isCollapsed){var l=t.getRangeAt(0).cloneContents();if(l.querySelector(".katex-mathml")){for(var r=[],i=0;i<l.childNodes.length;i++)r.push(l.childNodes[i].outerHTML);e.clipboardData.setData("text/html",r.join("")),e.clipboardData.setData("text/plain",n(l).textContent),e.preventDefault()}}})),e=e.default}()}));
|
|
1
themes/CodeIT/assets/lib/katex/katex.min.css
vendored
1
themes/CodeIT/assets/lib/katex/katex.min.css
vendored
File diff suppressed because one or more lines are too long
1
themes/CodeIT/assets/lib/katex/katex.min.js
vendored
1
themes/CodeIT/assets/lib/katex/katex.min.js
vendored
File diff suppressed because one or more lines are too long
1
themes/CodeIT/assets/lib/katex/mhchem.min.js
vendored
1
themes/CodeIT/assets/lib/katex/mhchem.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
|
@ -1,449 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Arabic` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2018, Dalia Al-Shahrabi
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Kazem Taghva, Rania Elkhoury, and Jeffrey Coombs (2005)
|
|
||||||
* Meryeme Hadni, Abdelmonaime Lachkar, and S. Alaoui Ouatik (2012)
|
|
||||||
*
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.ar = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.ar.trimmer,
|
|
||||||
lunr.ar.stopWordFilter,
|
|
||||||
lunr.ar.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.ar.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.ar.wordCharacters = "\u0621-\u065b\u0671\u0640";
|
|
||||||
lunr.ar.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.ar.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ar.trimmer, "trimmer-ar");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.ar.stemmer = (function () {
|
|
||||||
var self = this;
|
|
||||||
var word = "";
|
|
||||||
self.result = false;
|
|
||||||
self.preRemoved = false;
|
|
||||||
self.sufRemoved = false;
|
|
||||||
|
|
||||||
//prefix data
|
|
||||||
self.pre = {
|
|
||||||
pre1: "ف ك ب و س ل ن ا ي ت",
|
|
||||||
pre2: "ال لل",
|
|
||||||
pre3: "بال وال فال تال كال ولل",
|
|
||||||
pre4: "فبال كبال وبال وكال",
|
|
||||||
};
|
|
||||||
|
|
||||||
//suffix data
|
|
||||||
self.suf = {
|
|
||||||
suf1: "ه ك ت ن ا ي",
|
|
||||||
suf2:
|
|
||||||
"نك نه ها وك يا اه ون ين تن تم نا وا ان كم كن ني نن ما هم هن تك ته ات يه",
|
|
||||||
suf3:
|
|
||||||
"تين كهم نيه نهم ونه وها يهم ونا ونك وني وهم تكم تنا تها تني تهم كما كها ناه نكم هنا تان يها",
|
|
||||||
suf4: "كموه ناها ونني ونهم تكما تموه تكاه كماه ناكم ناهم نيها وننا",
|
|
||||||
};
|
|
||||||
|
|
||||||
//arabic language patterns and alternative mapping for patterns
|
|
||||||
self.patterns = JSON.parse(
|
|
||||||
'{"pt43":[{"pt":[{"c":"ا","l":1}]},{"pt":[{"c":"ا,ت,ن,ي","l":0}],"mPt":[{"c":"ف","l":0,"m":1},{"c":"ع","l":1,"m":2},{"c":"ل","l":2,"m":3}]},{"pt":[{"c":"و","l":2}],"mPt":[{"c":"ف","l":0,"m":0},{"c":"ع","l":1,"m":1},{"c":"ل","l":2,"m":3}]},{"pt":[{"c":"ا","l":2}]},{"pt":[{"c":"ي","l":2}],"mPt":[{"c":"ف","l":0,"m":0},{"c":"ع","l":1,"m":1},{"c":"ا","l":2},{"c":"ل","l":3,"m":3}]},{"pt":[{"c":"م","l":0}]}],"pt53":[{"pt":[{"c":"ت","l":0},{"c":"ا","l":2}]},{"pt":[{"c":"ا,ن,ت,ي","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":0},{"c":"ا","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":3},{"c":"ل","l":3,"m":4},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":0},{"c":"ا","l":3}],"mPt":[{"c":"ف","l":0,"m":1},{"c":"ع","l":1,"m":2},{"c":"ل","l":2,"m":4}]},{"pt":[{"c":"ا","l":3},{"c":"ن","l":4}]},{"pt":[{"c":"ت","l":0},{"c":"ي","l":3}]},{"pt":[{"c":"م","l":0},{"c":"و","l":3}]},{"pt":[{"c":"ا","l":1},{"c":"و","l":3}]},{"pt":[{"c":"و","l":1},{"c":"ا","l":2}]},{"pt":[{"c":"م","l":0},{"c":"ا","l":3}]},{"pt":[{"c":"م","l":0},{"c":"ي","l":3}]},{"pt":[{"c":"ا","l":2},{"c":"ن","l":3}]},{"pt":[{"c":"م","l":0},{"c":"ن","l":1}],"mPt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ف","l":2,"m":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"م","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"م","l":0},{"c":"ا","l":2}]},{"pt":[{"c":"م","l":1},{"c":"ا","l":3}]},{"pt":[{"c":"ي,ت,ا,ن","l":0},{"c":"ت","l":1}],"mPt":[{"c":"ف","l":0,"m":2},{"c":"ع","l":1,"m":3},{"c":"ا","l":2},{"c":"ل","l":3,"m":4}]},{"pt":[{"c":"ت,ي,ا,ن","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":2},{"c":"ي","l":3}]},{"pt":[{"c":"ا,ي,ت,ن","l":0},{"c":"ن","l":1}],"mPt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ف","l":2,"m":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":3},{"c":"ء","l":4}]}],"pt63":[{"pt":[{"c":"ا","l":0},{"c":"ت","l":2},{"c":"ا","l":4}]},{"pt":[{"c":"ا,ت,ن,ي","l":0},{"c":"س","l":1},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ف","l":3,"m":3},{"c":"ع","l":4,"m":4},{"c":"ا","l":5},{"c":"ل","l":6,"m":5}]},{"pt":[{"c":"ا,ن,ت,ي","l":0},{"c":"و","l":3}]},{"pt":[{"c":"م","l":0},{"c":"س","l":1},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ف","l":3,"m":3},{"c":"ع","l":4,"m":4},{"c":"ا","l":5},{"c":"ل","l":6,"m":5}]},{"pt":[{"c":"ي","l":1},{"c":"ي","l":3},{"c":"ا","l":4},{"c":"ء","l":5}]},{"pt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ا","l":4}]}],"pt54":[{"pt":[{"c":"ت","l":0}]},{"pt":[{"c":"ا,ي,ت,ن","l":0}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":2},{"c":"ل","l":3,"m":3},{"c":"ر","l":4,"m":4},{"c":"ا","l":5},{"c":"ر","l":6,"m":4}]},{"pt":[{"c":"م","l":0}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":2},{"c":"ل","l":3,"m":3},{"c":"ر","l":4,"m":4},{"c":"ا","l":5},{"c":"ر","l":6,"m":4}]},{"pt":[{"c":"ا","l":2}]},{"pt":[{"c":"ا","l":0},{"c":"ن","l":2}]}],"pt64":[{"pt":[{"c":"ا","l":0},{"c":"ا","l":4}]},{"pt":[{"c":"م","l":0},{"c":"ت","l":1}]}],"pt73":[{"pt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ا","l":5}]}],"pt75":[{"pt":[{"c":"ا","l":0},{"c":"ا","l":5}]}]}'
|
|
||||||
);
|
|
||||||
|
|
||||||
self.execArray = [
|
|
||||||
"cleanWord",
|
|
||||||
"removeDiacritics",
|
|
||||||
"cleanAlef",
|
|
||||||
"removeStopWords",
|
|
||||||
"normalizeHamzaAndAlef",
|
|
||||||
"removeStartWaw",
|
|
||||||
"removePre432",
|
|
||||||
"removeEndTaa",
|
|
||||||
"wordCheck",
|
|
||||||
];
|
|
||||||
|
|
||||||
self.stem = function () {
|
|
||||||
var counter = 0;
|
|
||||||
self.result = false;
|
|
||||||
self.preRemoved = false;
|
|
||||||
self.sufRemoved = false;
|
|
||||||
while (counter < self.execArray.length && self.result != true) {
|
|
||||||
self.result = self[self.execArray[counter]]();
|
|
||||||
counter++;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
self.setCurrent = function (word) {
|
|
||||||
self.word = word;
|
|
||||||
};
|
|
||||||
|
|
||||||
self.getCurrent = function () {
|
|
||||||
return self.word;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*remove elongating character and test that the word does not contain non-arabic characters.
|
|
||||||
If the word contains special characters, don't stem. */
|
|
||||||
self.cleanWord = function () {
|
|
||||||
var wordCharacters = "\u0621-\u065b\u0671\u0640";
|
|
||||||
var testRegex = new RegExp("[^" + wordCharacters + "]");
|
|
||||||
self.word = self.word.replace("\u0640", "");
|
|
||||||
if (testRegex.test(word)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
self.removeDiacritics = function () {
|
|
||||||
var diacriticsRegex = new RegExp("[\u064b-\u065b]");
|
|
||||||
self.word = self.word.replace(/[\u064b-\u065b]/gi, "");
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*Replace all variations of alef (آأإٱى) to a plain alef (ا)*/
|
|
||||||
self.cleanAlef = function () {
|
|
||||||
var alefRegex = new RegExp("[\u0622\u0623\u0625\u0671\u0649]");
|
|
||||||
self.word = self.word.replace(alefRegex, "\u0627");
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* if the word is a stop word, don't stem*/
|
|
||||||
self.removeStopWords = function () {
|
|
||||||
var stopWords = "، اض امين اه اها اي ا اب اجل اجمع اخ اخذ اصبح اضحى اقبل اقل اكثر الا ام اما امامك امامك امسى اما ان انا انت انتم انتما انتن انت انشا انى او اوشك اولئك اولئكم اولاء اولالك اوه اي ايا اين اينما اي ان اي اف اذ اذا اذا اذما اذن الى اليكم اليكما اليكن اليك اليك الا اما ان انما اي اياك اياكم اياكما اياكن ايانا اياه اياها اياهم اياهما اياهن اياي ايه ان ا ابتدا اثر اجل احد اخرى اخلولق اذا اربعة ارتد استحال اطار اعادة اعلنت اف اكثر اكد الالاء الالى الا الاخيرة الان الاول الاولى التى التي الثاني الثانية الذاتي الذى الذي الذين السابق الف اللائي اللاتي اللتان اللتيا اللتين اللذان اللذين اللواتي الماضي المقبل الوقت الى اليوم اما امام امس ان انبرى انقلب انه انها او اول اي ايار ايام ايضا ب بات باسم بان بخ برس بسبب بس بشكل بضع بطان بعد بعض بك بكم بكما بكن بل بلى بما بماذا بمن بن بنا به بها بي بيد بين بس بله بئس تان تانك تبدل تجاه تحول تلقاء تلك تلكم تلكما تم تينك تين ته تي ثلاثة ثم ثم ثمة ثم جعل جلل جميع جير حار حاشا حاليا حاي حتى حرى حسب حم حوالى حول حيث حيثما حين حي حبذا حتى حذار خلا خلال دون دونك ذا ذات ذاك ذانك ذان ذلك ذلكم ذلكما ذلكن ذو ذوا ذواتا ذواتي ذيت ذينك ذين ذه ذي راح رجع رويدك ريث رب زيارة سبحان سرعان سنة سنوات سوف سوى ساء ساءما شبه شخصا شرع شتان صار صباح صفر صه صه ضد ضمن طاق طالما طفق طق ظل عاد عام عاما عامة عدا عدة عدد عدم عسى عشر عشرة علق على عليك عليه عليها عل عن عند عندما عوض عين عدس عما غدا غير ف فان فلان فو فى في فيم فيما فيه فيها قال قام قبل قد قط قلما قوة كانما كاين كاي كاين كاد كان كانت كذا كذلك كرب كل كلا كلاهما كلتا كلم كليكما كليهما كلما كلا كم كما كي كيت كيف كيفما كان كخ لئن لا لات لاسيما لدن لدى لعمر لقاء لك لكم لكما لكن لكنما لكي لكيلا للامم لم لما لما لن لنا له لها لو لوكالة لولا لوما لي لست لست لستم لستما لستن لست لسن لعل لكن ليت ليس ليسا ليستا ليست ليسوا لسنا ما ماانفك مابرح مادام ماذا مازال مافتئ مايو متى مثل مذ مساء مع معاذ مقابل مكانكم مكانكما مكانكن مكانك مليار مليون مما ممن من منذ منها مه مهما من من نحن نحو نعم نفس نفسه نهاية نخ نعما نعم ها هاؤم هاك هاهنا هب هذا هذه هكذا هل هلم هلا هم هما هن هنا هناك هنالك هو هي هيا هيت هيا هؤلاء هاتان هاتين هاته هاتي هج هذا هذان هذين هذه هذي هيهات و وا واحد واضاف واضافت واكد وان واها واوضح وراءك وفي وقال وقالت وقد وقف وكان وكانت ولا ولم ومن وهو وهي ويكان وي وشكان يكون يمكن يوم ايان".split(
|
|
||||||
" "
|
|
||||||
);
|
|
||||||
if (stopWords.indexOf(self.word) >= 0) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* changes ؤ ئ to ء and removes alef if at the end of the word*/
|
|
||||||
self.normalizeHamzaAndAlef = function () {
|
|
||||||
self.word = self.word.replace("\u0624", "\u0621");
|
|
||||||
self.word = self.word.replace("\u0626", "\u0621");
|
|
||||||
self.word = self.word.replace(/([\u0627])\1+/gi, "\u0627");
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*remove end taa marboota ة*/
|
|
||||||
self.removeEndTaa = function () {
|
|
||||||
if (self.word.length > 2) {
|
|
||||||
self.word = self.word.replace(/[\u0627]$/, "");
|
|
||||||
self.word = self.word.replace("\u0629", "");
|
|
||||||
return false;
|
|
||||||
} else return true;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* if the word starts with double waw وو keep only one of them */
|
|
||||||
self.removeStartWaw = function () {
|
|
||||||
if (
|
|
||||||
self.word.length > 3 &&
|
|
||||||
self.word[0] == "\u0648" &&
|
|
||||||
self.word[1] == "\u0648"
|
|
||||||
) {
|
|
||||||
self.word = self.word.slice(1);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* remove prefixes of size 4, 3 and 2 characters */
|
|
||||||
self.removePre432 = function () {
|
|
||||||
var word = self.word;
|
|
||||||
if (self.word.length >= 7) {
|
|
||||||
var pre4Regex = new RegExp(
|
|
||||||
"^(" + self.pre.pre4.split(" ").join("|") + ")"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(pre4Regex, "");
|
|
||||||
}
|
|
||||||
if (self.word == word && self.word.length >= 6) {
|
|
||||||
var pre3Regex = new RegExp(
|
|
||||||
"^(" + self.pre.pre3.split(" ").join("|") + ")"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(pre3Regex, "");
|
|
||||||
}
|
|
||||||
if (self.word == word && self.word.length >= 5) {
|
|
||||||
var pre2Regex = new RegExp(
|
|
||||||
"^(" + self.pre.pre2.split(" ").join("|") + ")"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(pre2Regex, "");
|
|
||||||
}
|
|
||||||
if (word != self.word) self.preRemoved = true;
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* check the word against word patterns. If the word matches a pattern, map it to the
|
|
||||||
alternative pattern if available then stop stemming. */
|
|
||||||
self.patternCheck = function (pattern) {
|
|
||||||
var patternMatch = false;
|
|
||||||
for (var i = 0; i < pattern.length; i++) {
|
|
||||||
var currentPatternCheck = true;
|
|
||||||
for (var j = 0; j < pattern[i].pt.length; j++) {
|
|
||||||
var chars = pattern[i].pt[j].c.split(",");
|
|
||||||
var charMatch = false;
|
|
||||||
chars.forEach(function (el) {
|
|
||||||
if (self.word[pattern[i].pt[j].l] == el) {
|
|
||||||
charMatch = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (!charMatch) {
|
|
||||||
currentPatternCheck = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (currentPatternCheck == true) {
|
|
||||||
if (pattern[i].mPt) {
|
|
||||||
var newWord = [];
|
|
||||||
for (var k = 0; k < pattern[i].mPt.length; k++) {
|
|
||||||
if (pattern[i].mPt[k].m != null) {
|
|
||||||
newWord[pattern[i].mPt[k].l] = self.word[pattern[i].mPt[k].m];
|
|
||||||
} else {
|
|
||||||
newWord[pattern[i].mPt[k].l] = pattern[i].mPt[k].c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
self.word = newWord.join("");
|
|
||||||
}
|
|
||||||
self.result = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* remove prefixes of size 1 char*/
|
|
||||||
self.removePre1 = function () {
|
|
||||||
var word = self.word;
|
|
||||||
if (self.preRemoved == false)
|
|
||||||
if (self.word.length > 3) {
|
|
||||||
var pre1Regex = new RegExp(
|
|
||||||
"^(" + self.pre.pre1.split(" ").join("|") + ")"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(pre1Regex, "");
|
|
||||||
}
|
|
||||||
if (word != self.word) self.preRemoved = true;
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*remove suffixes of size 1 char */
|
|
||||||
self.removeSuf1 = function () {
|
|
||||||
var word = self.word;
|
|
||||||
if (self.sufRemoved == false)
|
|
||||||
if (self.word.length > 3) {
|
|
||||||
var suf1Regex = new RegExp(
|
|
||||||
"(" + self.suf.suf1.split(" ").join("|") + ")$"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(suf1Regex, "");
|
|
||||||
}
|
|
||||||
if (word != self.word) self.sufRemoved = true;
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*remove suffixes of size 4, 3 and 2 chars*/
|
|
||||||
self.removeSuf432 = function () {
|
|
||||||
var word = self.word;
|
|
||||||
if (self.word.length >= 6) {
|
|
||||||
var suf4Regex = new RegExp(
|
|
||||||
"(" + self.suf.suf4.split(" ").join("|") + ")$"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(suf4Regex, "");
|
|
||||||
}
|
|
||||||
if (self.word == word && self.word.length >= 5) {
|
|
||||||
var suf3Regex = new RegExp(
|
|
||||||
"(" + self.suf.suf3.split(" ").join("|") + ")$"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(suf3Regex, "");
|
|
||||||
}
|
|
||||||
if (self.word == word && self.word.length >= 4) {
|
|
||||||
var suf2Regex = new RegExp(
|
|
||||||
"(" + self.suf.suf2.split(" ").join("|") + ")$"
|
|
||||||
);
|
|
||||||
self.word = self.word.replace(suf2Regex, "");
|
|
||||||
}
|
|
||||||
if (word != self.word) self.sufRemoved = true;
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*check the word length and decide what is the next step accordingly*/
|
|
||||||
self.wordCheck = function () {
|
|
||||||
var word = self.word;
|
|
||||||
var word7Exec = [self.removeSuf432, self.removeSuf1, self.removePre1];
|
|
||||||
var counter = 0;
|
|
||||||
var patternChecked = false;
|
|
||||||
while (
|
|
||||||
self.word.length >= 7 &&
|
|
||||||
!self.result &&
|
|
||||||
counter < word7Exec.length
|
|
||||||
) {
|
|
||||||
if (self.word.length == 7 && !patternChecked) {
|
|
||||||
self.checkPattern73();
|
|
||||||
patternChecked = true;
|
|
||||||
} else {
|
|
||||||
word7Exec[counter]();
|
|
||||||
counter++;
|
|
||||||
patternChecked = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var word6Exec = [
|
|
||||||
self.checkPattern63,
|
|
||||||
self.removeSuf432,
|
|
||||||
self.removeSuf1,
|
|
||||||
self.removePre1,
|
|
||||||
self.checkPattern64,
|
|
||||||
];
|
|
||||||
counter = 0;
|
|
||||||
while (
|
|
||||||
self.word.length == 6 &&
|
|
||||||
!self.result &&
|
|
||||||
counter < word6Exec.length
|
|
||||||
) {
|
|
||||||
word6Exec[counter]();
|
|
||||||
counter++;
|
|
||||||
}
|
|
||||||
|
|
||||||
var word5Exec = [
|
|
||||||
self.checkPattern53,
|
|
||||||
self.removeSuf432,
|
|
||||||
self.removeSuf1,
|
|
||||||
self.removePre1,
|
|
||||||
self.checkPattern54,
|
|
||||||
];
|
|
||||||
counter = 0;
|
|
||||||
while (
|
|
||||||
self.word.length == 5 &&
|
|
||||||
!self.result &&
|
|
||||||
counter < word5Exec.length
|
|
||||||
) {
|
|
||||||
word5Exec[counter]();
|
|
||||||
counter++;
|
|
||||||
}
|
|
||||||
|
|
||||||
var word4Exec = [
|
|
||||||
self.checkPattern43,
|
|
||||||
self.removeSuf1,
|
|
||||||
self.removePre1,
|
|
||||||
self.removeSuf432,
|
|
||||||
];
|
|
||||||
counter = 0;
|
|
||||||
while (
|
|
||||||
self.word.length == 4 &&
|
|
||||||
!self.result &&
|
|
||||||
counter < word4Exec.length
|
|
||||||
) {
|
|
||||||
word4Exec[counter]();
|
|
||||||
counter++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
|
|
||||||
self.checkPattern43 = function () {
|
|
||||||
self.patternCheck(self.patterns.pt43);
|
|
||||||
};
|
|
||||||
self.checkPattern53 = function () {
|
|
||||||
self.patternCheck(self.patterns.pt53);
|
|
||||||
};
|
|
||||||
self.checkPattern54 = function () {
|
|
||||||
self.patternCheck(self.patterns.pt54);
|
|
||||||
};
|
|
||||||
self.checkPattern63 = function () {
|
|
||||||
self.patternCheck(self.patterns.pt63);
|
|
||||||
};
|
|
||||||
self.checkPattern64 = function () {
|
|
||||||
self.patternCheck(self.patterns.pt64);
|
|
||||||
};
|
|
||||||
self.checkPattern73 = function () {
|
|
||||||
self.patternCheck(self.patterns.pt73);
|
|
||||||
};
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
self.setCurrent(word);
|
|
||||||
self.stem();
|
|
||||||
return self.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
self.setCurrent(token);
|
|
||||||
self.stem();
|
|
||||||
return self.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ar.stemmer, "stemmer-ar");
|
|
||||||
|
|
||||||
lunr.ar.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"، اض امين اه اها اي ا اب اجل اجمع اخ اخذ اصبح اضحى اقبل اقل اكثر الا ام اما امامك امامك امسى اما ان انا انت انتم انتما انتن انت انشا انى او اوشك اولئك اولئكم اولاء اولالك اوه اي ايا اين اينما اي ان اي اف اذ اذا اذا اذما اذن الى اليكم اليكما اليكن اليك اليك الا اما ان انما اي اياك اياكم اياكما اياكن ايانا اياه اياها اياهم اياهما اياهن اياي ايه ان ا ابتدا اثر اجل احد اخرى اخلولق اذا اربعة ارتد استحال اطار اعادة اعلنت اف اكثر اكد الالاء الالى الا الاخيرة الان الاول الاولى التى التي الثاني الثانية الذاتي الذى الذي الذين السابق الف اللائي اللاتي اللتان اللتيا اللتين اللذان اللذين اللواتي الماضي المقبل الوقت الى اليوم اما امام امس ان انبرى انقلب انه انها او اول اي ايار ايام ايضا ب بات باسم بان بخ برس بسبب بس بشكل بضع بطان بعد بعض بك بكم بكما بكن بل بلى بما بماذا بمن بن بنا به بها بي بيد بين بس بله بئس تان تانك تبدل تجاه تحول تلقاء تلك تلكم تلكما تم تينك تين ته تي ثلاثة ثم ثم ثمة ثم جعل جلل جميع جير حار حاشا حاليا حاي حتى حرى حسب حم حوالى حول حيث حيثما حين حي حبذا حتى حذار خلا خلال دون دونك ذا ذات ذاك ذانك ذان ذلك ذلكم ذلكما ذلكن ذو ذوا ذواتا ذواتي ذيت ذينك ذين ذه ذي راح رجع رويدك ريث رب زيارة سبحان سرعان سنة سنوات سوف سوى ساء ساءما شبه شخصا شرع شتان صار صباح صفر صه صه ضد ضمن طاق طالما طفق طق ظل عاد عام عاما عامة عدا عدة عدد عدم عسى عشر عشرة علق على عليك عليه عليها عل عن عند عندما عوض عين عدس عما غدا غير ف فان فلان فو فى في فيم فيما فيه فيها قال قام قبل قد قط قلما قوة كانما كاين كاي كاين كاد كان كانت كذا كذلك كرب كل كلا كلاهما كلتا كلم كليكما كليهما كلما كلا كم كما كي كيت كيف كيفما كان كخ لئن لا لات لاسيما لدن لدى لعمر لقاء لك لكم لكما لكن لكنما لكي لكيلا للامم لم لما لما لن لنا له لها لو لوكالة لولا لوما لي لست لست لستم لستما لستن لست لسن لعل لكن ليت ليس ليسا ليستا ليست ليسوا لسنا ما ماانفك مابرح مادام ماذا مازال مافتئ مايو متى مثل مذ مساء مع معاذ مقابل مكانكم مكانكما مكانكن مكانك مليار مليون مما ممن من منذ منها مه مهما من من نحن نحو نعم نفس نفسه نهاية نخ نعما نعم ها هاؤم هاك هاهنا هب هذا هذه هكذا هل هلم هلا هم هما هن هنا هناك هنالك هو هي هيا هيت هيا هؤلاء هاتان هاتين هاته هاتي هج هذا هذان هذين هذه هذي هيهات وا واحد واضاف واضافت واكد وان واها واوضح وراءك وفي وقال وقالت وقد وقف وكان وكانت ولا ولم ومن وهو وهي ويكان وي وشكان يكون يمكن يوم ايان".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ar.stopWordFilter, "stopWordFilter-ar");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,349 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Danish` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.da = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.da.trimmer,
|
|
||||||
lunr.da.stopWordFilter,
|
|
||||||
lunr.da.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.da.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.da.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.da.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.da.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.da.trimmer, "trimmer-da");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.da.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function DanishStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("hed", -1, 1),
|
|
||||||
new Among("ethed", 0, 1),
|
|
||||||
new Among("ered", -1, 1),
|
|
||||||
new Among("e", -1, 1),
|
|
||||||
new Among("erede", 3, 1),
|
|
||||||
new Among("ende", 3, 1),
|
|
||||||
new Among("erende", 5, 1),
|
|
||||||
new Among("ene", 3, 1),
|
|
||||||
new Among("erne", 3, 1),
|
|
||||||
new Among("ere", 3, 1),
|
|
||||||
new Among("en", -1, 1),
|
|
||||||
new Among("heden", 10, 1),
|
|
||||||
new Among("eren", 10, 1),
|
|
||||||
new Among("er", -1, 1),
|
|
||||||
new Among("heder", 13, 1),
|
|
||||||
new Among("erer", 13, 1),
|
|
||||||
new Among("s", -1, 2),
|
|
||||||
new Among("heds", 16, 1),
|
|
||||||
new Among("es", 16, 1),
|
|
||||||
new Among("endes", 18, 1),
|
|
||||||
new Among("erendes", 19, 1),
|
|
||||||
new Among("enes", 18, 1),
|
|
||||||
new Among("ernes", 18, 1),
|
|
||||||
new Among("eres", 18, 1),
|
|
||||||
new Among("ens", 16, 1),
|
|
||||||
new Among("hedens", 24, 1),
|
|
||||||
new Among("erens", 24, 1),
|
|
||||||
new Among("ers", 16, 1),
|
|
||||||
new Among("ets", 16, 1),
|
|
||||||
new Among("erets", 28, 1),
|
|
||||||
new Among("et", -1, 1),
|
|
||||||
new Among("eret", 30, 1),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("gd", -1, -1),
|
|
||||||
new Among("dt", -1, -1),
|
|
||||||
new Among("gt", -1, -1),
|
|
||||||
new Among("kt", -1, -1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("ig", -1, 1),
|
|
||||||
new Among("lig", 0, 1),
|
|
||||||
new Among("elig", 1, 1),
|
|
||||||
new Among("els", -1, 1),
|
|
||||||
new Among("l\u00F8st", -1, 2),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
48,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
],
|
|
||||||
g_s_ending = [
|
|
||||||
239,
|
|
||||||
254,
|
|
||||||
42,
|
|
||||||
3,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
16,
|
|
||||||
],
|
|
||||||
I_x,
|
|
||||||
I_p1,
|
|
||||||
S_ch,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1,
|
|
||||||
c = sbp.cursor + 3;
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
if (0 <= c && c <= sbp.limit) {
|
|
||||||
I_x = c;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 248)) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (v_1 >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 248)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (I_p1 < I_x) I_p1 = I_x;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_main_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_0, 32);
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (sbp.in_grouping_b(g_s_ending, 97, 229)) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_consonant_pair() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_2 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_1, 4)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
} else sbp.limit_backward = v_2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_other_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "st")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ig")) sbp.slice_del();
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_2 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 5);
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
r_consonant_pair();
|
|
||||||
sbp.cursor = sbp.limit - v_3;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("l\u00F8s");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_undouble() {
|
|
||||||
var v_1;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_v, 97, 248)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
S_ch = sbp.slice_to(S_ch);
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (sbp.eq_v_b(S_ch)) sbp.slice_del();
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_main_suffix();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_consonant_pair();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_other_suffix();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_undouble();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.da.stemmer, "stemmer-da");
|
|
||||||
|
|
||||||
lunr.da.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"ad af alle alt anden at blev blive bliver da de dem den denne der deres det dette dig din disse dog du efter eller en end er et for fra ham han hans har havde have hende hendes her hos hun hvad hvis hvor i ikke ind jeg jer jo kunne man mange med meget men mig min mine mit mod ned noget nogle nu når og også om op os over på selv sig sin sine sit skal skulle som sådan thi til ud under var vi vil ville vor være været".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.da.stopWordFilter, "stopWordFilter-da");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,418 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `German` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.de = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.de.trimmer,
|
|
||||||
lunr.de.stopWordFilter,
|
|
||||||
lunr.de.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.de.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.de.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.de.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.de.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.de.trimmer, "trimmer-de");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.de.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function GermanStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 6),
|
|
||||||
new Among("U", 0, 2),
|
|
||||||
new Among("Y", 0, 1),
|
|
||||||
new Among("\u00E4", 0, 3),
|
|
||||||
new Among("\u00F6", 0, 4),
|
|
||||||
new Among("\u00FC", 0, 5),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("e", -1, 2),
|
|
||||||
new Among("em", -1, 1),
|
|
||||||
new Among("en", -1, 2),
|
|
||||||
new Among("ern", -1, 1),
|
|
||||||
new Among("er", -1, 1),
|
|
||||||
new Among("s", -1, 3),
|
|
||||||
new Among("es", 5, 2),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("en", -1, 1),
|
|
||||||
new Among("er", -1, 1),
|
|
||||||
new Among("st", -1, 2),
|
|
||||||
new Among("est", 2, 1),
|
|
||||||
],
|
|
||||||
a_3 = [new Among("ig", -1, 1), new Among("lich", -1, 1)],
|
|
||||||
a_4 = [
|
|
||||||
new Among("end", -1, 1),
|
|
||||||
new Among("ig", -1, 2),
|
|
||||||
new Among("ung", -1, 1),
|
|
||||||
new Among("lich", -1, 3),
|
|
||||||
new Among("isch", -1, 2),
|
|
||||||
new Among("ik", -1, 2),
|
|
||||||
new Among("heit", -1, 3),
|
|
||||||
new Among("keit", -1, 4),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
32,
|
|
||||||
8,
|
|
||||||
],
|
|
||||||
g_s_ending = [117, 30, 5],
|
|
||||||
g_st_ending = [117, 30, 4],
|
|
||||||
I_x,
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function habr1(c1, c2, v_1) {
|
|
||||||
if (sbp.eq_s(1, c1)) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
sbp.slice_from(c2);
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var v_1 = sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3,
|
|
||||||
v_4,
|
|
||||||
v_5;
|
|
||||||
while (true) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
sbp.bra = v_2;
|
|
||||||
if (sbp.eq_s(1, "\u00DF")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
sbp.slice_from("ss");
|
|
||||||
} else {
|
|
||||||
if (v_2 >= sbp.limit) break;
|
|
||||||
sbp.cursor = v_2 + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
while (true) {
|
|
||||||
v_3 = sbp.cursor;
|
|
||||||
while (true) {
|
|
||||||
v_4 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
v_5 = sbp.cursor;
|
|
||||||
sbp.bra = v_5;
|
|
||||||
if (habr1("u", "U", v_4)) break;
|
|
||||||
sbp.cursor = v_5;
|
|
||||||
if (habr1("y", "Y", v_4)) break;
|
|
||||||
}
|
|
||||||
if (v_4 >= sbp.limit) {
|
|
||||||
sbp.cursor = v_3;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_4 + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
I_p2 = I_p1;
|
|
||||||
var c = sbp.cursor + 3;
|
|
||||||
if (0 <= c && c <= sbp.limit) {
|
|
||||||
I_x = c;
|
|
||||||
if (!habr2()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (I_p1 < I_x) I_p1 = I_x;
|
|
||||||
if (!habr2()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var, v_1;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
sbp.bra = v_1;
|
|
||||||
among_var = sbp.find_among(a_0, 6);
|
|
||||||
if (!among_var) return;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("y");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 5:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("o");
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3,
|
|
||||||
v_4;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_1, 7);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "s")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(3, "nis")) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (sbp.in_grouping_b(g_s_ending, 98, 116)) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 4);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (sbp.in_grouping_b(g_st_ending, 98, 116)) {
|
|
||||||
var c = sbp.cursor - 3;
|
|
||||||
if (sbp.limit_backward <= c && c <= sbp.limit) {
|
|
||||||
sbp.cursor = c;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 8);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ig")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.cursor = sbp.limit - v_3;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
v_4 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(2, "er")) {
|
|
||||||
sbp.cursor = sbp.limit - v_4;
|
|
||||||
if (!sbp.eq_s_b(2, "en")) break;
|
|
||||||
}
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 2);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2() && among_var == 1) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_standard_suffix();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.de.stemmer, "stemmer-de");
|
|
||||||
|
|
||||||
lunr.de.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"aber alle allem allen aller alles als also am an ander andere anderem anderen anderer anderes anderm andern anderr anders auch auf aus bei bin bis bist da damit dann das dasselbe dazu daß dein deine deinem deinen deiner deines dem demselben den denn denselben der derer derselbe derselben des desselben dessen dich die dies diese dieselbe dieselben diesem diesen dieser dieses dir doch dort du durch ein eine einem einen einer eines einig einige einigem einigen einiger einiges einmal er es etwas euch euer eure eurem euren eurer eures für gegen gewesen hab habe haben hat hatte hatten hier hin hinter ich ihm ihn ihnen ihr ihre ihrem ihren ihrer ihres im in indem ins ist jede jedem jeden jeder jedes jene jenem jenen jener jenes jetzt kann kein keine keinem keinen keiner keines können könnte machen man manche manchem manchen mancher manches mein meine meinem meinen meiner meines mich mir mit muss musste nach nicht nichts noch nun nur ob oder ohne sehr sein seine seinem seinen seiner seines selbst sich sie sind so solche solchem solchen solcher solches soll sollte sondern sonst um und uns unse unsem unsen unser unses unter viel vom von vor war waren warst was weg weil weiter welche welchem welchen welcher welches wenn werde werden wie wieder will wir wird wirst wo wollen wollte während würde würden zu zum zur zwar zwischen über".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.de.stopWordFilter, "stopWordFilter-de");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,496 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Dutch` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.warn(
|
|
||||||
'[Lunr Languages] Please use the "nl" instead of the "du". The "nl" code is the standard code for Dutch language, and "du" will be removed in the next major versions.'
|
|
||||||
);
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.du = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.du.trimmer,
|
|
||||||
lunr.du.stopWordFilter,
|
|
||||||
lunr.du.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.du.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.du.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.du.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.du.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.du.trimmer, "trimmer-du");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.du.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function DutchStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 6),
|
|
||||||
new Among("\u00E1", 0, 1),
|
|
||||||
new Among("\u00E4", 0, 1),
|
|
||||||
new Among("\u00E9", 0, 2),
|
|
||||||
new Among("\u00EB", 0, 2),
|
|
||||||
new Among("\u00ED", 0, 3),
|
|
||||||
new Among("\u00EF", 0, 3),
|
|
||||||
new Among("\u00F3", 0, 4),
|
|
||||||
new Among("\u00F6", 0, 4),
|
|
||||||
new Among("\u00FA", 0, 5),
|
|
||||||
new Among("\u00FC", 0, 5),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("", -1, 3),
|
|
||||||
new Among("I", 0, 2),
|
|
||||||
new Among("Y", 0, 1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("dd", -1, -1),
|
|
||||||
new Among("kk", -1, -1),
|
|
||||||
new Among("tt", -1, -1),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ene", -1, 2),
|
|
||||||
new Among("se", -1, 3),
|
|
||||||
new Among("en", -1, 2),
|
|
||||||
new Among("heden", 2, 1),
|
|
||||||
new Among("s", -1, 3),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("end", -1, 1),
|
|
||||||
new Among("ig", -1, 2),
|
|
||||||
new Among("ing", -1, 1),
|
|
||||||
new Among("lijk", -1, 3),
|
|
||||||
new Among("baar", -1, 4),
|
|
||||||
new Among("bar", -1, 5),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("aa", -1, -1),
|
|
||||||
new Among("ee", -1, -1),
|
|
||||||
new Among("oo", -1, -1),
|
|
||||||
new Among("uu", -1, -1),
|
|
||||||
],
|
|
||||||
g_v = [17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128],
|
|
||||||
g_v_I = [
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
],
|
|
||||||
g_v_j = [17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128],
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
B_e_found,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_0, 11);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
continue;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("o");
|
|
||||||
continue;
|
|
||||||
case 5:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
continue;
|
|
||||||
case 6:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
sbp.bra = v_1;
|
|
||||||
if (sbp.eq_s(1, "y")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
sbp.slice_from("Y");
|
|
||||||
} else sbp.cursor = v_1;
|
|
||||||
while (true) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 232)) {
|
|
||||||
v_3 = sbp.cursor;
|
|
||||||
sbp.bra = v_3;
|
|
||||||
if (sbp.eq_s(1, "i")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 232)) {
|
|
||||||
sbp.slice_from("I");
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
sbp.cursor = v_3;
|
|
||||||
if (sbp.eq_s(1, "y")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
sbp.slice_from("Y");
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
} else if (habr1(v_2)) break;
|
|
||||||
}
|
|
||||||
} else if (habr1(v_2)) break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr1(v_1) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (v_1 >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
I_p2 = I_p1;
|
|
||||||
if (!habr2()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (I_p1 < 3) I_p1 = 3;
|
|
||||||
if (!habr2()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 232)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 232)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_1, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("y");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_undouble() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_2, 3)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_e_ending() {
|
|
||||||
var v_1;
|
|
||||||
B_e_found = false;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_v, 97, 232)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.slice_del();
|
|
||||||
B_e_found = true;
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_en_ending() {
|
|
||||||
var v_1;
|
|
||||||
if (r_R1()) {
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_v, 97, 232)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (!sbp.eq_s_b(3, "gem")) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.slice_del();
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3,
|
|
||||||
v_4,
|
|
||||||
v_5,
|
|
||||||
v_6;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 5);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R1()) sbp.slice_from("heid");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
r_en_ending();
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (r_R1() && sbp.out_grouping_b(g_v_j, 97, 232))
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
r_e_ending();
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(4, "heid")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "c")) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "en")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
r_en_ending();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 6);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ig")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
v_4 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.cursor = sbp.limit - v_4;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_3;
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (r_R2()) {
|
|
||||||
v_5 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.cursor = sbp.limit - v_5;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
r_e_ending();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (r_R2() && B_e_found) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (sbp.out_grouping_b(g_v_I, 73, 232)) {
|
|
||||||
v_6 = sbp.limit - sbp.cursor;
|
|
||||||
if (
|
|
||||||
sbp.find_among_b(a_5, 4) &&
|
|
||||||
sbp.out_grouping_b(g_v, 97, 232)
|
|
||||||
) {
|
|
||||||
sbp.cursor = sbp.limit - v_6;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_standard_suffix();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.du.stemmer, "stemmer-du");
|
|
||||||
|
|
||||||
lunr.du.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
" aan al alles als altijd andere ben bij daar dan dat de der deze die dit doch doen door dus een eens en er ge geen geweest haar had heb hebben heeft hem het hier hij hoe hun iemand iets ik in is ja je kan kon kunnen maar me meer men met mij mijn moet na naar niet niets nog nu of om omdat onder ons ook op over reeds te tegen toch toen tot u uit uw van veel voor want waren was wat werd wezen wie wil worden wordt zal ze zelf zich zij zijn zo zonder zou".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.du.stopWordFilter, "stopWordFilter-du");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,706 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Spanish` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.es = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.es.trimmer,
|
|
||||||
lunr.es.stopWordFilter,
|
|
||||||
lunr.es.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.es.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.es.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.es.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.es.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.es.trimmer, "trimmer-es");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.es.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function SpanishStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 6),
|
|
||||||
new Among("\u00E1", 0, 1),
|
|
||||||
new Among("\u00E9", 0, 2),
|
|
||||||
new Among("\u00ED", 0, 3),
|
|
||||||
new Among("\u00F3", 0, 4),
|
|
||||||
new Among("\u00FA", 0, 5),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("la", -1, -1),
|
|
||||||
new Among("sela", 0, -1),
|
|
||||||
new Among("le", -1, -1),
|
|
||||||
new Among("me", -1, -1),
|
|
||||||
new Among("se", -1, -1),
|
|
||||||
new Among("lo", -1, -1),
|
|
||||||
new Among("selo", 5, -1),
|
|
||||||
new Among("las", -1, -1),
|
|
||||||
new Among("selas", 7, -1),
|
|
||||||
new Among("les", -1, -1),
|
|
||||||
new Among("los", -1, -1),
|
|
||||||
new Among("selos", 10, -1),
|
|
||||||
new Among("nos", -1, -1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("ando", -1, 6),
|
|
||||||
new Among("iendo", -1, 6),
|
|
||||||
new Among("yendo", -1, 7),
|
|
||||||
new Among("\u00E1ndo", -1, 2),
|
|
||||||
new Among("i\u00E9ndo", -1, 1),
|
|
||||||
new Among("ar", -1, 6),
|
|
||||||
new Among("er", -1, 6),
|
|
||||||
new Among("ir", -1, 6),
|
|
||||||
new Among("\u00E1r", -1, 3),
|
|
||||||
new Among("\u00E9r", -1, 4),
|
|
||||||
new Among("\u00EDr", -1, 5),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ic", -1, -1),
|
|
||||||
new Among("ad", -1, -1),
|
|
||||||
new Among("os", -1, -1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("able", -1, 1),
|
|
||||||
new Among("ible", -1, 1),
|
|
||||||
new Among("ante", -1, 1),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("ic", -1, 1),
|
|
||||||
new Among("abil", -1, 1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("ica", -1, 1),
|
|
||||||
new Among("ancia", -1, 2),
|
|
||||||
new Among("encia", -1, 5),
|
|
||||||
new Among("adora", -1, 2),
|
|
||||||
new Among("osa", -1, 1),
|
|
||||||
new Among("ista", -1, 1),
|
|
||||||
new Among("iva", -1, 9),
|
|
||||||
new Among("anza", -1, 1),
|
|
||||||
new Among("log\u00EDa", -1, 3),
|
|
||||||
new Among("idad", -1, 8),
|
|
||||||
new Among("able", -1, 1),
|
|
||||||
new Among("ible", -1, 1),
|
|
||||||
new Among("ante", -1, 2),
|
|
||||||
new Among("mente", -1, 7),
|
|
||||||
new Among("amente", 13, 6),
|
|
||||||
new Among("aci\u00F3n", -1, 2),
|
|
||||||
new Among("uci\u00F3n", -1, 4),
|
|
||||||
new Among("ico", -1, 1),
|
|
||||||
new Among("ismo", -1, 1),
|
|
||||||
new Among("oso", -1, 1),
|
|
||||||
new Among("amiento", -1, 1),
|
|
||||||
new Among("imiento", -1, 1),
|
|
||||||
new Among("ivo", -1, 9),
|
|
||||||
new Among("ador", -1, 2),
|
|
||||||
new Among("icas", -1, 1),
|
|
||||||
new Among("ancias", -1, 2),
|
|
||||||
new Among("encias", -1, 5),
|
|
||||||
new Among("adoras", -1, 2),
|
|
||||||
new Among("osas", -1, 1),
|
|
||||||
new Among("istas", -1, 1),
|
|
||||||
new Among("ivas", -1, 9),
|
|
||||||
new Among("anzas", -1, 1),
|
|
||||||
new Among("log\u00EDas", -1, 3),
|
|
||||||
new Among("idades", -1, 8),
|
|
||||||
new Among("ables", -1, 1),
|
|
||||||
new Among("ibles", -1, 1),
|
|
||||||
new Among("aciones", -1, 2),
|
|
||||||
new Among("uciones", -1, 4),
|
|
||||||
new Among("adores", -1, 2),
|
|
||||||
new Among("antes", -1, 2),
|
|
||||||
new Among("icos", -1, 1),
|
|
||||||
new Among("ismos", -1, 1),
|
|
||||||
new Among("osos", -1, 1),
|
|
||||||
new Among("amientos", -1, 1),
|
|
||||||
new Among("imientos", -1, 1),
|
|
||||||
new Among("ivos", -1, 9),
|
|
||||||
],
|
|
||||||
a_7 = [
|
|
||||||
new Among("ya", -1, 1),
|
|
||||||
new Among("ye", -1, 1),
|
|
||||||
new Among("yan", -1, 1),
|
|
||||||
new Among("yen", -1, 1),
|
|
||||||
new Among("yeron", -1, 1),
|
|
||||||
new Among("yendo", -1, 1),
|
|
||||||
new Among("yo", -1, 1),
|
|
||||||
new Among("yas", -1, 1),
|
|
||||||
new Among("yes", -1, 1),
|
|
||||||
new Among("yais", -1, 1),
|
|
||||||
new Among("yamos", -1, 1),
|
|
||||||
new Among("y\u00F3", -1, 1),
|
|
||||||
],
|
|
||||||
a_8 = [
|
|
||||||
new Among("aba", -1, 2),
|
|
||||||
new Among("ada", -1, 2),
|
|
||||||
new Among("ida", -1, 2),
|
|
||||||
new Among("ara", -1, 2),
|
|
||||||
new Among("iera", -1, 2),
|
|
||||||
new Among("\u00EDa", -1, 2),
|
|
||||||
new Among("ar\u00EDa", 5, 2),
|
|
||||||
new Among("er\u00EDa", 5, 2),
|
|
||||||
new Among("ir\u00EDa", 5, 2),
|
|
||||||
new Among("ad", -1, 2),
|
|
||||||
new Among("ed", -1, 2),
|
|
||||||
new Among("id", -1, 2),
|
|
||||||
new Among("ase", -1, 2),
|
|
||||||
new Among("iese", -1, 2),
|
|
||||||
new Among("aste", -1, 2),
|
|
||||||
new Among("iste", -1, 2),
|
|
||||||
new Among("an", -1, 2),
|
|
||||||
new Among("aban", 16, 2),
|
|
||||||
new Among("aran", 16, 2),
|
|
||||||
new Among("ieran", 16, 2),
|
|
||||||
new Among("\u00EDan", 16, 2),
|
|
||||||
new Among("ar\u00EDan", 20, 2),
|
|
||||||
new Among("er\u00EDan", 20, 2),
|
|
||||||
new Among("ir\u00EDan", 20, 2),
|
|
||||||
new Among("en", -1, 1),
|
|
||||||
new Among("asen", 24, 2),
|
|
||||||
new Among("iesen", 24, 2),
|
|
||||||
new Among("aron", -1, 2),
|
|
||||||
new Among("ieron", -1, 2),
|
|
||||||
new Among("ar\u00E1n", -1, 2),
|
|
||||||
new Among("er\u00E1n", -1, 2),
|
|
||||||
new Among("ir\u00E1n", -1, 2),
|
|
||||||
new Among("ado", -1, 2),
|
|
||||||
new Among("ido", -1, 2),
|
|
||||||
new Among("ando", -1, 2),
|
|
||||||
new Among("iendo", -1, 2),
|
|
||||||
new Among("ar", -1, 2),
|
|
||||||
new Among("er", -1, 2),
|
|
||||||
new Among("ir", -1, 2),
|
|
||||||
new Among("as", -1, 2),
|
|
||||||
new Among("abas", 39, 2),
|
|
||||||
new Among("adas", 39, 2),
|
|
||||||
new Among("idas", 39, 2),
|
|
||||||
new Among("aras", 39, 2),
|
|
||||||
new Among("ieras", 39, 2),
|
|
||||||
new Among("\u00EDas", 39, 2),
|
|
||||||
new Among("ar\u00EDas", 45, 2),
|
|
||||||
new Among("er\u00EDas", 45, 2),
|
|
||||||
new Among("ir\u00EDas", 45, 2),
|
|
||||||
new Among("es", -1, 1),
|
|
||||||
new Among("ases", 49, 2),
|
|
||||||
new Among("ieses", 49, 2),
|
|
||||||
new Among("abais", -1, 2),
|
|
||||||
new Among("arais", -1, 2),
|
|
||||||
new Among("ierais", -1, 2),
|
|
||||||
new Among("\u00EDais", -1, 2),
|
|
||||||
new Among("ar\u00EDais", 55, 2),
|
|
||||||
new Among("er\u00EDais", 55, 2),
|
|
||||||
new Among("ir\u00EDais", 55, 2),
|
|
||||||
new Among("aseis", -1, 2),
|
|
||||||
new Among("ieseis", -1, 2),
|
|
||||||
new Among("asteis", -1, 2),
|
|
||||||
new Among("isteis", -1, 2),
|
|
||||||
new Among("\u00E1is", -1, 2),
|
|
||||||
new Among("\u00E9is", -1, 1),
|
|
||||||
new Among("ar\u00E9is", 64, 2),
|
|
||||||
new Among("er\u00E9is", 64, 2),
|
|
||||||
new Among("ir\u00E9is", 64, 2),
|
|
||||||
new Among("ados", -1, 2),
|
|
||||||
new Among("idos", -1, 2),
|
|
||||||
new Among("amos", -1, 2),
|
|
||||||
new Among("\u00E1bamos", 70, 2),
|
|
||||||
new Among("\u00E1ramos", 70, 2),
|
|
||||||
new Among("i\u00E9ramos", 70, 2),
|
|
||||||
new Among("\u00EDamos", 70, 2),
|
|
||||||
new Among("ar\u00EDamos", 74, 2),
|
|
||||||
new Among("er\u00EDamos", 74, 2),
|
|
||||||
new Among("ir\u00EDamos", 74, 2),
|
|
||||||
new Among("emos", -1, 1),
|
|
||||||
new Among("aremos", 78, 2),
|
|
||||||
new Among("eremos", 78, 2),
|
|
||||||
new Among("iremos", 78, 2),
|
|
||||||
new Among("\u00E1semos", 78, 2),
|
|
||||||
new Among("i\u00E9semos", 78, 2),
|
|
||||||
new Among("imos", -1, 2),
|
|
||||||
new Among("ar\u00E1s", -1, 2),
|
|
||||||
new Among("er\u00E1s", -1, 2),
|
|
||||||
new Among("ir\u00E1s", -1, 2),
|
|
||||||
new Among("\u00EDs", -1, 2),
|
|
||||||
new Among("ar\u00E1", -1, 2),
|
|
||||||
new Among("er\u00E1", -1, 2),
|
|
||||||
new Among("ir\u00E1", -1, 2),
|
|
||||||
new Among("ar\u00E9", -1, 2),
|
|
||||||
new Among("er\u00E9", -1, 2),
|
|
||||||
new Among("ir\u00E9", -1, 2),
|
|
||||||
new Among("i\u00F3", -1, 2),
|
|
||||||
],
|
|
||||||
a_9 = [
|
|
||||||
new Among("a", -1, 1),
|
|
||||||
new Among("e", -1, 2),
|
|
||||||
new Among("o", -1, 1),
|
|
||||||
new Among("os", -1, 1),
|
|
||||||
new Among("\u00E1", -1, 1),
|
|
||||||
new Among("\u00E9", -1, 2),
|
|
||||||
new Among("\u00ED", -1, 1),
|
|
||||||
new Among("\u00F3", -1, 1),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
17,
|
|
||||||
4,
|
|
||||||
10,
|
|
||||||
],
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
I_pV,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function habr1() {
|
|
||||||
if (sbp.out_grouping(g_v, 97, 252)) {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2() {
|
|
||||||
if (sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
if (habr1()) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (!sbp.in_grouping(g_v, 97, 252)) return true;
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr3() {
|
|
||||||
var v_1 = sbp.cursor,
|
|
||||||
v_2;
|
|
||||||
if (habr2()) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (!sbp.out_grouping(g_v, 97, 252)) return;
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (habr1()) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (!sbp.in_grouping(g_v, 97, 252) || sbp.cursor >= sbp.limit)
|
|
||||||
return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr4() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
I_pV = sbp.limit;
|
|
||||||
I_p1 = I_pV;
|
|
||||||
I_p2 = I_pV;
|
|
||||||
habr3();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (habr4()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (habr4()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_0, 6);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
continue;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("o");
|
|
||||||
continue;
|
|
||||||
case 5:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
continue;
|
|
||||||
case 6:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_RV() {
|
|
||||||
return I_pV <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_attached_pronoun() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_1, 13)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 11);
|
|
||||||
if (among_var && r_RV())
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("iendo");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("ando");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("ar");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("er");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("ir");
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
if (sbp.eq_s_b(1, "u")) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr5(a, n) {
|
|
||||||
if (!r_R2()) return true;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
var among_var = sbp.find_among_b(a, n);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1 && r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr6(c1) {
|
|
||||||
if (!r_R2()) return true;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, c1)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 46);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (habr6("ic")) return false;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("log");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("ente");
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (!r_R1()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 4);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
if (among_var == 1) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
if (habr5(a_4, 3)) return false;
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
if (habr5(a_5, 3)) return false;
|
|
||||||
break;
|
|
||||||
case 9:
|
|
||||||
if (habr6("at")) return false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_y_verb_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor >= I_pV) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 12);
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) {
|
|
||||||
if (!sbp.eq_s_b(1, "u")) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_verb_suffix() {
|
|
||||||
var among_var, v_1, v_2, v_3;
|
|
||||||
if (sbp.cursor >= I_pV) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_8, 96);
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "u")) {
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "g")) sbp.cursor = sbp.limit - v_3;
|
|
||||||
else sbp.cursor = sbp.limit - v_2;
|
|
||||||
} else sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_residual_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_9, 8);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_RV()) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (r_RV()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "u")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "g")) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (r_RV()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_attached_pronoun();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_standard_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_y_verb_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_verb_suffix();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_residual_suffix();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.es.stemmer, "stemmer-es");
|
|
||||||
|
|
||||||
lunr.es.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"a al algo algunas algunos ante antes como con contra cual cuando de del desde donde durante e el ella ellas ellos en entre era erais eran eras eres es esa esas ese eso esos esta estaba estabais estaban estabas estad estada estadas estado estados estamos estando estar estaremos estará estarán estarás estaré estaréis estaría estaríais estaríamos estarían estarías estas este estemos esto estos estoy estuve estuviera estuvierais estuvieran estuvieras estuvieron estuviese estuvieseis estuviesen estuvieses estuvimos estuviste estuvisteis estuviéramos estuviésemos estuvo está estábamos estáis están estás esté estéis estén estés fue fuera fuerais fueran fueras fueron fuese fueseis fuesen fueses fui fuimos fuiste fuisteis fuéramos fuésemos ha habida habidas habido habidos habiendo habremos habrá habrán habrás habré habréis habría habríais habríamos habrían habrías habéis había habíais habíamos habían habías han has hasta hay haya hayamos hayan hayas hayáis he hemos hube hubiera hubierais hubieran hubieras hubieron hubiese hubieseis hubiesen hubieses hubimos hubiste hubisteis hubiéramos hubiésemos hubo la las le les lo los me mi mis mucho muchos muy más mí mía mías mío míos nada ni no nos nosotras nosotros nuestra nuestras nuestro nuestros o os otra otras otro otros para pero poco por porque que quien quienes qué se sea seamos sean seas seremos será serán serás seré seréis sería seríais seríamos serían serías seáis sido siendo sin sobre sois somos son soy su sus suya suyas suyo suyos sí también tanto te tendremos tendrá tendrán tendrás tendré tendréis tendría tendríais tendríamos tendrían tendrías tened tenemos tenga tengamos tengan tengas tengo tengáis tenida tenidas tenido tenidos teniendo tenéis tenía teníais teníamos tenían tenías ti tiene tienen tienes todo todos tu tus tuve tuviera tuvierais tuvieran tuvieras tuvieron tuviese tuvieseis tuviesen tuvieses tuvimos tuviste tuvisteis tuviéramos tuviésemos tuvo tuya tuyas tuyo tuyos tú un una uno unos vosotras vosotros vuestra vuestras vuestro vuestros y ya yo él éramos".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.es.stopWordFilter, "stopWordFilter-es");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,617 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Finnish` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.fi = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.fi.trimmer,
|
|
||||||
lunr.fi.stopWordFilter,
|
|
||||||
lunr.fi.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.fi.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.fi.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.fi.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.fi.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fi.trimmer, "trimmer-fi");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.fi.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function FinnishStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("pa", -1, 1),
|
|
||||||
new Among("sti", -1, 2),
|
|
||||||
new Among("kaan", -1, 1),
|
|
||||||
new Among("han", -1, 1),
|
|
||||||
new Among("kin", -1, 1),
|
|
||||||
new Among("h\u00E4n", -1, 1),
|
|
||||||
new Among("k\u00E4\u00E4n", -1, 1),
|
|
||||||
new Among("ko", -1, 1),
|
|
||||||
new Among("p\u00E4", -1, 1),
|
|
||||||
new Among("k\u00F6", -1, 1),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("lla", -1, -1),
|
|
||||||
new Among("na", -1, -1),
|
|
||||||
new Among("ssa", -1, -1),
|
|
||||||
new Among("ta", -1, -1),
|
|
||||||
new Among("lta", 3, -1),
|
|
||||||
new Among("sta", 3, -1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("ll\u00E4", -1, -1),
|
|
||||||
new Among("n\u00E4", -1, -1),
|
|
||||||
new Among("ss\u00E4", -1, -1),
|
|
||||||
new Among("t\u00E4", -1, -1),
|
|
||||||
new Among("lt\u00E4", 3, -1),
|
|
||||||
new Among("st\u00E4", 3, -1),
|
|
||||||
],
|
|
||||||
a_3 = [new Among("lle", -1, -1), new Among("ine", -1, -1)],
|
|
||||||
a_4 = [
|
|
||||||
new Among("nsa", -1, 3),
|
|
||||||
new Among("mme", -1, 3),
|
|
||||||
new Among("nne", -1, 3),
|
|
||||||
new Among("ni", -1, 2),
|
|
||||||
new Among("si", -1, 1),
|
|
||||||
new Among("an", -1, 4),
|
|
||||||
new Among("en", -1, 6),
|
|
||||||
new Among("\u00E4n", -1, 5),
|
|
||||||
new Among("ns\u00E4", -1, 3),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("aa", -1, -1),
|
|
||||||
new Among("ee", -1, -1),
|
|
||||||
new Among("ii", -1, -1),
|
|
||||||
new Among("oo", -1, -1),
|
|
||||||
new Among("uu", -1, -1),
|
|
||||||
new Among("\u00E4\u00E4", -1, -1),
|
|
||||||
new Among("\u00F6\u00F6", -1, -1),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("a", -1, 8),
|
|
||||||
new Among("lla", 0, -1),
|
|
||||||
new Among("na", 0, -1),
|
|
||||||
new Among("ssa", 0, -1),
|
|
||||||
new Among("ta", 0, -1),
|
|
||||||
new Among("lta", 4, -1),
|
|
||||||
new Among("sta", 4, -1),
|
|
||||||
new Among("tta", 4, 9),
|
|
||||||
new Among("lle", -1, -1),
|
|
||||||
new Among("ine", -1, -1),
|
|
||||||
new Among("ksi", -1, -1),
|
|
||||||
new Among("n", -1, 7),
|
|
||||||
new Among("han", 11, 1),
|
|
||||||
new Among("den", 11, -1, r_VI),
|
|
||||||
new Among("seen", 11, -1, r_LONG),
|
|
||||||
new Among("hen", 11, 2),
|
|
||||||
new Among("tten", 11, -1, r_VI),
|
|
||||||
new Among("hin", 11, 3),
|
|
||||||
new Among("siin", 11, -1, r_VI),
|
|
||||||
new Among("hon", 11, 4),
|
|
||||||
new Among("h\u00E4n", 11, 5),
|
|
||||||
new Among("h\u00F6n", 11, 6),
|
|
||||||
new Among("\u00E4", -1, 8),
|
|
||||||
new Among("ll\u00E4", 22, -1),
|
|
||||||
new Among("n\u00E4", 22, -1),
|
|
||||||
new Among("ss\u00E4", 22, -1),
|
|
||||||
new Among("t\u00E4", 22, -1),
|
|
||||||
new Among("lt\u00E4", 26, -1),
|
|
||||||
new Among("st\u00E4", 26, -1),
|
|
||||||
new Among("tt\u00E4", 26, 9),
|
|
||||||
],
|
|
||||||
a_7 = [
|
|
||||||
new Among("eja", -1, -1),
|
|
||||||
new Among("mma", -1, 1),
|
|
||||||
new Among("imma", 1, -1),
|
|
||||||
new Among("mpa", -1, 1),
|
|
||||||
new Among("impa", 3, -1),
|
|
||||||
new Among("mmi", -1, 1),
|
|
||||||
new Among("immi", 5, -1),
|
|
||||||
new Among("mpi", -1, 1),
|
|
||||||
new Among("impi", 7, -1),
|
|
||||||
new Among("ej\u00E4", -1, -1),
|
|
||||||
new Among("mm\u00E4", -1, 1),
|
|
||||||
new Among("imm\u00E4", 10, -1),
|
|
||||||
new Among("mp\u00E4", -1, 1),
|
|
||||||
new Among("imp\u00E4", 12, -1),
|
|
||||||
],
|
|
||||||
a_8 = [new Among("i", -1, -1), new Among("j", -1, -1)],
|
|
||||||
a_9 = [new Among("mma", -1, 1), new Among("imma", 0, -1)],
|
|
||||||
g_AEI = [17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8],
|
|
||||||
g_V1 = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
32,
|
|
||||||
],
|
|
||||||
g_V2 = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
32,
|
|
||||||
],
|
|
||||||
g_particle_end = [
|
|
||||||
17,
|
|
||||||
97,
|
|
||||||
24,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
32,
|
|
||||||
],
|
|
||||||
B_ending_removed,
|
|
||||||
S_x,
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
I_p2 = I_p1;
|
|
||||||
if (!habr1()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (!habr1()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr1() {
|
|
||||||
var v_1;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_V1, 97, 246)) break;
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (v_1 >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
while (!sbp.out_grouping(g_V1, 97, 246)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_particle_etc() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_0, 10);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!sbp.in_grouping_b(g_particle_end, 97, 246)) return;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (!r_R2()) return;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_possessive() {
|
|
||||||
var among_var, v_1, v_2;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 9);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "k")) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(3, "kse")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("ksi");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (sbp.find_among_b(a_1, 6)) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (sbp.find_among_b(a_2, 6)) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (sbp.find_among_b(a_3, 2)) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_LONG() {
|
|
||||||
return sbp.find_among_b(a_5, 7);
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_VI() {
|
|
||||||
return sbp.eq_s_b(1, "i") && sbp.in_grouping_b(g_V2, 97, 246);
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_case_ending() {
|
|
||||||
var among_var, v_1, v_2;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 30);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!sbp.eq_s_b(1, "a")) return;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 9:
|
|
||||||
if (!sbp.eq_s_b(1, "e")) return;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (!sbp.eq_s_b(1, "i")) return;
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (!sbp.eq_s_b(1, "o")) return;
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (!sbp.eq_s_b(1, "\u00E4")) return;
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (!sbp.eq_s_b(1, "\u00F6")) return;
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (!r_LONG()) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
if (!sbp.eq_s_b(2, "ie")) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
if (sbp.cursor <= sbp.limit_backward) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
if (
|
|
||||||
!sbp.in_grouping_b(g_V1, 97, 246) ||
|
|
||||||
!sbp.out_grouping_b(g_V1, 97, 246)
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
B_ending_removed = true;
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_other_endings() {
|
|
||||||
var among_var, v_1, v_2;
|
|
||||||
if (sbp.cursor >= I_p2) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p2;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 14);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (among_var == 1) {
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "po")) return;
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_i_plural() {
|
|
||||||
var v_1;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_8, 2)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.slice_del();
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_t_plural() {
|
|
||||||
var among_var, v_1, v_2, v_3, v_4, v_5;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "t")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.in_grouping_b(g_V1, 97, 246)) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.cursor >= I_p2) {
|
|
||||||
sbp.cursor = I_p2;
|
|
||||||
v_4 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = sbp.cursor;
|
|
||||||
sbp.cursor = sbp.limit - v_3;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_9, 2);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_4;
|
|
||||||
if (among_var == 1) {
|
|
||||||
v_5 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "po")) return;
|
|
||||||
sbp.cursor = sbp.limit - v_5;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_tidy() {
|
|
||||||
var v_1, v_2, v_3, v_4;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (r_LONG()) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping_b(g_AEI, 97, 228)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_V1, 97, 246)) sbp.slice_del();
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "j")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "o")) {
|
|
||||||
sbp.cursor = sbp.limit - v_3;
|
|
||||||
if (sbp.eq_s_b(1, "u")) sbp.slice_del();
|
|
||||||
} else sbp.slice_del();
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "o")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "j")) sbp.slice_del();
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
while (true) {
|
|
||||||
v_4 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_V1, 97, 246)) {
|
|
||||||
sbp.cursor = sbp.limit - v_4;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_4;
|
|
||||||
if (sbp.cursor <= sbp.limit_backward) return;
|
|
||||||
sbp.cursor--;
|
|
||||||
}
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
S_x = sbp.slice_to();
|
|
||||||
if (sbp.eq_v_b(S_x)) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_mark_regions();
|
|
||||||
B_ending_removed = false;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_particle_etc();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_possessive();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_case_ending();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_other_endings();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (B_ending_removed) {
|
|
||||||
r_i_plural();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
} else {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_t_plural();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
}
|
|
||||||
r_tidy();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fi.stemmer, "stemmer-fi");
|
|
||||||
|
|
||||||
lunr.fi.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"ei eivät emme en et ette että he heidän heidät heihin heille heillä heiltä heissä heistä heitä hän häneen hänelle hänellä häneltä hänen hänessä hänestä hänet häntä itse ja johon joiden joihin joiksi joilla joille joilta joina joissa joista joita joka joksi jolla jolle jolta jona jonka jos jossa josta jota jotka kanssa keiden keihin keiksi keille keillä keiltä keinä keissä keistä keitä keneen keneksi kenelle kenellä keneltä kenen kenenä kenessä kenestä kenet ketkä ketkä ketä koska kuin kuka kun me meidän meidät meihin meille meillä meiltä meissä meistä meitä mihin miksi mikä mille millä miltä minkä minkä minua minulla minulle minulta minun minussa minusta minut minuun minä minä missä mistä mitkä mitä mukaan mutta ne niiden niihin niiksi niille niillä niiltä niin niin niinä niissä niistä niitä noiden noihin noiksi noilla noille noilta noin noina noissa noista noita nuo nyt näiden näihin näiksi näille näillä näiltä näinä näissä näistä näitä nämä ole olemme olen olet olette oli olimme olin olisi olisimme olisin olisit olisitte olisivat olit olitte olivat olla olleet ollut on ovat poikki se sekä sen siihen siinä siitä siksi sille sillä sillä siltä sinua sinulla sinulle sinulta sinun sinussa sinusta sinut sinuun sinä sinä sitä tai te teidän teidät teihin teille teillä teiltä teissä teistä teitä tuo tuohon tuoksi tuolla tuolle tuolta tuon tuona tuossa tuosta tuota tähän täksi tälle tällä tältä tämä tämän tänä tässä tästä tätä vaan vai vaikka yli".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fi.stopWordFilter, "stopWordFilter-fi");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,786 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `French` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.fr = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.fr.trimmer,
|
|
||||||
lunr.fr.stopWordFilter,
|
|
||||||
lunr.fr.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.fr.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.fr.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.fr.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.fr.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fr.trimmer, "trimmer-fr");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.fr.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function FrenchStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("col", -1, -1),
|
|
||||||
new Among("par", -1, -1),
|
|
||||||
new Among("tap", -1, -1),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("", -1, 4),
|
|
||||||
new Among("I", 0, 1),
|
|
||||||
new Among("U", 0, 2),
|
|
||||||
new Among("Y", 0, 3),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("iqU", -1, 3),
|
|
||||||
new Among("abl", -1, 3),
|
|
||||||
new Among("I\u00E8r", -1, 4),
|
|
||||||
new Among("i\u00E8r", -1, 4),
|
|
||||||
new Among("eus", -1, 2),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ic", -1, 2),
|
|
||||||
new Among("abil", -1, 1),
|
|
||||||
new Among("iv", -1, 3),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("iqUe", -1, 1),
|
|
||||||
new Among("atrice", -1, 2),
|
|
||||||
new Among("ance", -1, 1),
|
|
||||||
new Among("ence", -1, 5),
|
|
||||||
new Among("logie", -1, 3),
|
|
||||||
new Among("able", -1, 1),
|
|
||||||
new Among("isme", -1, 1),
|
|
||||||
new Among("euse", -1, 11),
|
|
||||||
new Among("iste", -1, 1),
|
|
||||||
new Among("ive", -1, 8),
|
|
||||||
new Among("if", -1, 8),
|
|
||||||
new Among("usion", -1, 4),
|
|
||||||
new Among("ation", -1, 2),
|
|
||||||
new Among("ution", -1, 4),
|
|
||||||
new Among("ateur", -1, 2),
|
|
||||||
new Among("iqUes", -1, 1),
|
|
||||||
new Among("atrices", -1, 2),
|
|
||||||
new Among("ances", -1, 1),
|
|
||||||
new Among("ences", -1, 5),
|
|
||||||
new Among("logies", -1, 3),
|
|
||||||
new Among("ables", -1, 1),
|
|
||||||
new Among("ismes", -1, 1),
|
|
||||||
new Among("euses", -1, 11),
|
|
||||||
new Among("istes", -1, 1),
|
|
||||||
new Among("ives", -1, 8),
|
|
||||||
new Among("ifs", -1, 8),
|
|
||||||
new Among("usions", -1, 4),
|
|
||||||
new Among("ations", -1, 2),
|
|
||||||
new Among("utions", -1, 4),
|
|
||||||
new Among("ateurs", -1, 2),
|
|
||||||
new Among("ments", -1, 15),
|
|
||||||
new Among("ements", 30, 6),
|
|
||||||
new Among("issements", 31, 12),
|
|
||||||
new Among("it\u00E9s", -1, 7),
|
|
||||||
new Among("ment", -1, 15),
|
|
||||||
new Among("ement", 34, 6),
|
|
||||||
new Among("issement", 35, 12),
|
|
||||||
new Among("amment", 34, 13),
|
|
||||||
new Among("emment", 34, 14),
|
|
||||||
new Among("aux", -1, 10),
|
|
||||||
new Among("eaux", 39, 9),
|
|
||||||
new Among("eux", -1, 1),
|
|
||||||
new Among("it\u00E9", -1, 7),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("ira", -1, 1),
|
|
||||||
new Among("ie", -1, 1),
|
|
||||||
new Among("isse", -1, 1),
|
|
||||||
new Among("issante", -1, 1),
|
|
||||||
new Among("i", -1, 1),
|
|
||||||
new Among("irai", 4, 1),
|
|
||||||
new Among("ir", -1, 1),
|
|
||||||
new Among("iras", -1, 1),
|
|
||||||
new Among("ies", -1, 1),
|
|
||||||
new Among("\u00EEmes", -1, 1),
|
|
||||||
new Among("isses", -1, 1),
|
|
||||||
new Among("issantes", -1, 1),
|
|
||||||
new Among("\u00EEtes", -1, 1),
|
|
||||||
new Among("is", -1, 1),
|
|
||||||
new Among("irais", 13, 1),
|
|
||||||
new Among("issais", 13, 1),
|
|
||||||
new Among("irions", -1, 1),
|
|
||||||
new Among("issions", -1, 1),
|
|
||||||
new Among("irons", -1, 1),
|
|
||||||
new Among("issons", -1, 1),
|
|
||||||
new Among("issants", -1, 1),
|
|
||||||
new Among("it", -1, 1),
|
|
||||||
new Among("irait", 21, 1),
|
|
||||||
new Among("issait", 21, 1),
|
|
||||||
new Among("issant", -1, 1),
|
|
||||||
new Among("iraIent", -1, 1),
|
|
||||||
new Among("issaIent", -1, 1),
|
|
||||||
new Among("irent", -1, 1),
|
|
||||||
new Among("issent", -1, 1),
|
|
||||||
new Among("iront", -1, 1),
|
|
||||||
new Among("\u00EEt", -1, 1),
|
|
||||||
new Among("iriez", -1, 1),
|
|
||||||
new Among("issiez", -1, 1),
|
|
||||||
new Among("irez", -1, 1),
|
|
||||||
new Among("issez", -1, 1),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("a", -1, 3),
|
|
||||||
new Among("era", 0, 2),
|
|
||||||
new Among("asse", -1, 3),
|
|
||||||
new Among("ante", -1, 3),
|
|
||||||
new Among("\u00E9e", -1, 2),
|
|
||||||
new Among("ai", -1, 3),
|
|
||||||
new Among("erai", 5, 2),
|
|
||||||
new Among("er", -1, 2),
|
|
||||||
new Among("as", -1, 3),
|
|
||||||
new Among("eras", 8, 2),
|
|
||||||
new Among("\u00E2mes", -1, 3),
|
|
||||||
new Among("asses", -1, 3),
|
|
||||||
new Among("antes", -1, 3),
|
|
||||||
new Among("\u00E2tes", -1, 3),
|
|
||||||
new Among("\u00E9es", -1, 2),
|
|
||||||
new Among("ais", -1, 3),
|
|
||||||
new Among("erais", 15, 2),
|
|
||||||
new Among("ions", -1, 1),
|
|
||||||
new Among("erions", 17, 2),
|
|
||||||
new Among("assions", 17, 3),
|
|
||||||
new Among("erons", -1, 2),
|
|
||||||
new Among("ants", -1, 3),
|
|
||||||
new Among("\u00E9s", -1, 2),
|
|
||||||
new Among("ait", -1, 3),
|
|
||||||
new Among("erait", 23, 2),
|
|
||||||
new Among("ant", -1, 3),
|
|
||||||
new Among("aIent", -1, 3),
|
|
||||||
new Among("eraIent", 26, 2),
|
|
||||||
new Among("\u00E8rent", -1, 2),
|
|
||||||
new Among("assent", -1, 3),
|
|
||||||
new Among("eront", -1, 2),
|
|
||||||
new Among("\u00E2t", -1, 3),
|
|
||||||
new Among("ez", -1, 2),
|
|
||||||
new Among("iez", 32, 2),
|
|
||||||
new Among("eriez", 33, 2),
|
|
||||||
new Among("assiez", 33, 3),
|
|
||||||
new Among("erez", 32, 2),
|
|
||||||
new Among("\u00E9", -1, 2),
|
|
||||||
],
|
|
||||||
a_7 = [
|
|
||||||
new Among("e", -1, 3),
|
|
||||||
new Among("I\u00E8re", 0, 2),
|
|
||||||
new Among("i\u00E8re", 0, 2),
|
|
||||||
new Among("ion", -1, 1),
|
|
||||||
new Among("Ier", -1, 2),
|
|
||||||
new Among("ier", -1, 2),
|
|
||||||
new Among("\u00EB", -1, 4),
|
|
||||||
],
|
|
||||||
a_8 = [
|
|
||||||
new Among("ell", -1, -1),
|
|
||||||
new Among("eill", -1, -1),
|
|
||||||
new Among("enn", -1, -1),
|
|
||||||
new Among("onn", -1, -1),
|
|
||||||
new Among("ett", -1, -1),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
130,
|
|
||||||
103,
|
|
||||||
8,
|
|
||||||
5,
|
|
||||||
],
|
|
||||||
g_keep_with_s = [
|
|
||||||
1,
|
|
||||||
65,
|
|
||||||
20,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
],
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
I_pV,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function habr1(c1, c2, v_1) {
|
|
||||||
if (sbp.eq_s(1, c1)) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 251)) {
|
|
||||||
sbp.slice_from(c2);
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2(c1, c2, v_1) {
|
|
||||||
if (sbp.eq_s(1, c1)) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
sbp.slice_from(c2);
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var v_1, v_2;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 251)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (habr1("u", "U", v_1)) continue;
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (habr1("i", "I", v_1)) continue;
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (habr2("y", "Y", v_1)) continue;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
sbp.bra = v_1;
|
|
||||||
if (!habr1("y", "Y", v_1)) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (sbp.eq_s(1, "q")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (habr2("u", "U", v_1)) continue;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (v_1 >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr3() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 251)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 251)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
I_pV = sbp.limit;
|
|
||||||
I_p1 = I_pV;
|
|
||||||
I_p2 = I_pV;
|
|
||||||
if (
|
|
||||||
sbp.in_grouping(g_v, 97, 251) &&
|
|
||||||
sbp.in_grouping(g_v, 97, 251) &&
|
|
||||||
sbp.cursor < sbp.limit
|
|
||||||
)
|
|
||||||
sbp.cursor++;
|
|
||||||
else {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (!sbp.find_among(a_0, 3)) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
do {
|
|
||||||
if (sbp.cursor >= sbp.limit) {
|
|
||||||
sbp.cursor = I_pV;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor++;
|
|
||||||
} while (!sbp.in_grouping(g_v, 97, 251));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (!habr3()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (!habr3()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var, v_1;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
sbp.bra = v_1;
|
|
||||||
among_var = sbp.find_among(a_1, 4);
|
|
||||||
if (!among_var) break;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("y");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_RV() {
|
|
||||||
return I_pV <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 43);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ic")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (!r_R2()) sbp.slice_from("iqU");
|
|
||||||
else sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("log");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("ent");
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (!r_RV()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 6);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
else if (r_R1()) sbp.slice_from("eux");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (r_RV()) sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
else sbp.slice_from("abl");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
else sbp.slice_from("iqU");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ic")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
else sbp.slice_from("iqU");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 9:
|
|
||||||
sbp.slice_from("eau");
|
|
||||||
break;
|
|
||||||
case 10:
|
|
||||||
if (!r_R1()) return false;
|
|
||||||
sbp.slice_from("al");
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
else if (!r_R1()) return false;
|
|
||||||
else sbp.slice_from("eux");
|
|
||||||
break;
|
|
||||||
case 12:
|
|
||||||
if (!r_R1() || !sbp.out_grouping_b(g_v, 97, 251))
|
|
||||||
return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 13:
|
|
||||||
if (r_RV()) sbp.slice_from("ant");
|
|
||||||
return false;
|
|
||||||
case 14:
|
|
||||||
if (r_RV()) sbp.slice_from("ent");
|
|
||||||
return false;
|
|
||||||
case 15:
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.in_grouping_b(g_v, 97, 251) && r_RV()) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_i_verb_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor < I_pV) return false;
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_5, 35);
|
|
||||||
if (!among_var) {
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) {
|
|
||||||
if (!sbp.out_grouping_b(g_v, 97, 251)) {
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_verb_suffix() {
|
|
||||||
var among_var, v_2, v_3;
|
|
||||||
if (sbp.cursor < I_pV) return false;
|
|
||||||
v_2 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 38);
|
|
||||||
if (!among_var) {
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!r_R2()) {
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_del();
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
} else sbp.cursor = sbp.limit - v_3;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_residual_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_4,
|
|
||||||
v_5;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "s")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_keep_with_s, 97, 232)) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.slice_del();
|
|
||||||
} else sbp.cursor = sbp.limit - v_1;
|
|
||||||
} else sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (sbp.cursor >= I_pV) {
|
|
||||||
v_4 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 7);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R2()) {
|
|
||||||
v_5 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "s")) {
|
|
||||||
sbp.cursor = sbp.limit - v_5;
|
|
||||||
if (!sbp.eq_s_b(1, "t")) break;
|
|
||||||
}
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (sbp.eq_s_b(2, "gu")) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_un_double() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_8, 5)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_un_accent() {
|
|
||||||
var v_1,
|
|
||||||
v_2 = 1;
|
|
||||||
while (sbp.out_grouping_b(g_v, 97, 251)) v_2--;
|
|
||||||
if (v_2 <= 0) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "\u00E9")) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (!sbp.eq_s_b(1, "\u00E8")) return;
|
|
||||||
}
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("e");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr5() {
|
|
||||||
if (!r_standard_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_i_verb_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_verb_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_residual_suffix();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "Y")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("i");
|
|
||||||
} else {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (sbp.eq_s_b(1, "\u00E7")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("c");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
habr5();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_un_double();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_un_accent();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fr.stemmer, "stemmer-fr");
|
|
||||||
|
|
||||||
lunr.fr.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"ai aie aient aies ait as au aura aurai auraient aurais aurait auras aurez auriez aurions aurons auront aux avaient avais avait avec avez aviez avions avons ayant ayez ayons c ce ceci celà ces cet cette d dans de des du elle en es est et eu eue eues eurent eus eusse eussent eusses eussiez eussions eut eux eûmes eût eûtes furent fus fusse fussent fusses fussiez fussions fut fûmes fût fûtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon même n ne nos notre nous on ont ou par pas pour qu que quel quelle quelles quels qui s sa sans se sera serai seraient serais serait seras serez seriez serions serons seront ses soi soient sois soit sommes son sont soyez soyons suis sur t ta te tes toi ton tu un une vos votre vous y à étaient étais était étant étiez étions été étée étées étés êtes".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fr.stopWordFilter, "stopWordFilter-fr");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,673 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Hungarian` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.hu = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.hu.trimmer,
|
|
||||||
lunr.hu.stopWordFilter,
|
|
||||||
lunr.hu.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.hu.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.hu.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.hu.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.hu.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.hu.trimmer, "trimmer-hu");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.hu.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function HungarianStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("cs", -1, -1),
|
|
||||||
new Among("dzs", -1, -1),
|
|
||||||
new Among("gy", -1, -1),
|
|
||||||
new Among("ly", -1, -1),
|
|
||||||
new Among("ny", -1, -1),
|
|
||||||
new Among("sz", -1, -1),
|
|
||||||
new Among("ty", -1, -1),
|
|
||||||
new Among("zs", -1, -1),
|
|
||||||
],
|
|
||||||
a_1 = [new Among("\u00E1", -1, 1), new Among("\u00E9", -1, 2)],
|
|
||||||
a_2 = [
|
|
||||||
new Among("bb", -1, -1),
|
|
||||||
new Among("cc", -1, -1),
|
|
||||||
new Among("dd", -1, -1),
|
|
||||||
new Among("ff", -1, -1),
|
|
||||||
new Among("gg", -1, -1),
|
|
||||||
new Among("jj", -1, -1),
|
|
||||||
new Among("kk", -1, -1),
|
|
||||||
new Among("ll", -1, -1),
|
|
||||||
new Among("mm", -1, -1),
|
|
||||||
new Among("nn", -1, -1),
|
|
||||||
new Among("pp", -1, -1),
|
|
||||||
new Among("rr", -1, -1),
|
|
||||||
new Among("ccs", -1, -1),
|
|
||||||
new Among("ss", -1, -1),
|
|
||||||
new Among("zzs", -1, -1),
|
|
||||||
new Among("tt", -1, -1),
|
|
||||||
new Among("vv", -1, -1),
|
|
||||||
new Among("ggy", -1, -1),
|
|
||||||
new Among("lly", -1, -1),
|
|
||||||
new Among("nny", -1, -1),
|
|
||||||
new Among("tty", -1, -1),
|
|
||||||
new Among("ssz", -1, -1),
|
|
||||||
new Among("zz", -1, -1),
|
|
||||||
],
|
|
||||||
a_3 = [new Among("al", -1, 1), new Among("el", -1, 2)],
|
|
||||||
a_4 = [
|
|
||||||
new Among("ba", -1, -1),
|
|
||||||
new Among("ra", -1, -1),
|
|
||||||
new Among("be", -1, -1),
|
|
||||||
new Among("re", -1, -1),
|
|
||||||
new Among("ig", -1, -1),
|
|
||||||
new Among("nak", -1, -1),
|
|
||||||
new Among("nek", -1, -1),
|
|
||||||
new Among("val", -1, -1),
|
|
||||||
new Among("vel", -1, -1),
|
|
||||||
new Among("ul", -1, -1),
|
|
||||||
new Among("n\u00E1l", -1, -1),
|
|
||||||
new Among("n\u00E9l", -1, -1),
|
|
||||||
new Among("b\u00F3l", -1, -1),
|
|
||||||
new Among("r\u00F3l", -1, -1),
|
|
||||||
new Among("t\u00F3l", -1, -1),
|
|
||||||
new Among("b\u00F5l", -1, -1),
|
|
||||||
new Among("r\u00F5l", -1, -1),
|
|
||||||
new Among("t\u00F5l", -1, -1),
|
|
||||||
new Among("\u00FCl", -1, -1),
|
|
||||||
new Among("n", -1, -1),
|
|
||||||
new Among("an", 19, -1),
|
|
||||||
new Among("ban", 20, -1),
|
|
||||||
new Among("en", 19, -1),
|
|
||||||
new Among("ben", 22, -1),
|
|
||||||
new Among("k\u00E9ppen", 22, -1),
|
|
||||||
new Among("on", 19, -1),
|
|
||||||
new Among("\u00F6n", 19, -1),
|
|
||||||
new Among("k\u00E9pp", -1, -1),
|
|
||||||
new Among("kor", -1, -1),
|
|
||||||
new Among("t", -1, -1),
|
|
||||||
new Among("at", 29, -1),
|
|
||||||
new Among("et", 29, -1),
|
|
||||||
new Among("k\u00E9nt", 29, -1),
|
|
||||||
new Among("ank\u00E9nt", 32, -1),
|
|
||||||
new Among("enk\u00E9nt", 32, -1),
|
|
||||||
new Among("onk\u00E9nt", 32, -1),
|
|
||||||
new Among("ot", 29, -1),
|
|
||||||
new Among("\u00E9rt", 29, -1),
|
|
||||||
new Among("\u00F6t", 29, -1),
|
|
||||||
new Among("hez", -1, -1),
|
|
||||||
new Among("hoz", -1, -1),
|
|
||||||
new Among("h\u00F6z", -1, -1),
|
|
||||||
new Among("v\u00E1", -1, -1),
|
|
||||||
new Among("v\u00E9", -1, -1),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("\u00E1n", -1, 2),
|
|
||||||
new Among("\u00E9n", -1, 1),
|
|
||||||
new Among("\u00E1nk\u00E9nt", -1, 3),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("stul", -1, 2),
|
|
||||||
new Among("astul", 0, 1),
|
|
||||||
new Among("\u00E1stul", 0, 3),
|
|
||||||
new Among("st\u00FCl", -1, 2),
|
|
||||||
new Among("est\u00FCl", 3, 1),
|
|
||||||
new Among("\u00E9st\u00FCl", 3, 4),
|
|
||||||
],
|
|
||||||
a_7 = [new Among("\u00E1", -1, 1), new Among("\u00E9", -1, 2)],
|
|
||||||
a_8 = [
|
|
||||||
new Among("k", -1, 7),
|
|
||||||
new Among("ak", 0, 4),
|
|
||||||
new Among("ek", 0, 6),
|
|
||||||
new Among("ok", 0, 5),
|
|
||||||
new Among("\u00E1k", 0, 1),
|
|
||||||
new Among("\u00E9k", 0, 2),
|
|
||||||
new Among("\u00F6k", 0, 3),
|
|
||||||
],
|
|
||||||
a_9 = [
|
|
||||||
new Among("\u00E9i", -1, 7),
|
|
||||||
new Among("\u00E1\u00E9i", 0, 6),
|
|
||||||
new Among("\u00E9\u00E9i", 0, 5),
|
|
||||||
new Among("\u00E9", -1, 9),
|
|
||||||
new Among("k\u00E9", 3, 4),
|
|
||||||
new Among("ak\u00E9", 4, 1),
|
|
||||||
new Among("ek\u00E9", 4, 1),
|
|
||||||
new Among("ok\u00E9", 4, 1),
|
|
||||||
new Among("\u00E1k\u00E9", 4, 3),
|
|
||||||
new Among("\u00E9k\u00E9", 4, 2),
|
|
||||||
new Among("\u00F6k\u00E9", 4, 1),
|
|
||||||
new Among("\u00E9\u00E9", 3, 8),
|
|
||||||
],
|
|
||||||
a_10 = [
|
|
||||||
new Among("a", -1, 18),
|
|
||||||
new Among("ja", 0, 17),
|
|
||||||
new Among("d", -1, 16),
|
|
||||||
new Among("ad", 2, 13),
|
|
||||||
new Among("ed", 2, 13),
|
|
||||||
new Among("od", 2, 13),
|
|
||||||
new Among("\u00E1d", 2, 14),
|
|
||||||
new Among("\u00E9d", 2, 15),
|
|
||||||
new Among("\u00F6d", 2, 13),
|
|
||||||
new Among("e", -1, 18),
|
|
||||||
new Among("je", 9, 17),
|
|
||||||
new Among("nk", -1, 4),
|
|
||||||
new Among("unk", 11, 1),
|
|
||||||
new Among("\u00E1nk", 11, 2),
|
|
||||||
new Among("\u00E9nk", 11, 3),
|
|
||||||
new Among("\u00FCnk", 11, 1),
|
|
||||||
new Among("uk", -1, 8),
|
|
||||||
new Among("juk", 16, 7),
|
|
||||||
new Among("\u00E1juk", 17, 5),
|
|
||||||
new Among("\u00FCk", -1, 8),
|
|
||||||
new Among("j\u00FCk", 19, 7),
|
|
||||||
new Among("\u00E9j\u00FCk", 20, 6),
|
|
||||||
new Among("m", -1, 12),
|
|
||||||
new Among("am", 22, 9),
|
|
||||||
new Among("em", 22, 9),
|
|
||||||
new Among("om", 22, 9),
|
|
||||||
new Among("\u00E1m", 22, 10),
|
|
||||||
new Among("\u00E9m", 22, 11),
|
|
||||||
new Among("o", -1, 18),
|
|
||||||
new Among("\u00E1", -1, 19),
|
|
||||||
new Among("\u00E9", -1, 20),
|
|
||||||
],
|
|
||||||
a_11 = [
|
|
||||||
new Among("id", -1, 10),
|
|
||||||
new Among("aid", 0, 9),
|
|
||||||
new Among("jaid", 1, 6),
|
|
||||||
new Among("eid", 0, 9),
|
|
||||||
new Among("jeid", 3, 6),
|
|
||||||
new Among("\u00E1id", 0, 7),
|
|
||||||
new Among("\u00E9id", 0, 8),
|
|
||||||
new Among("i", -1, 15),
|
|
||||||
new Among("ai", 7, 14),
|
|
||||||
new Among("jai", 8, 11),
|
|
||||||
new Among("ei", 7, 14),
|
|
||||||
new Among("jei", 10, 11),
|
|
||||||
new Among("\u00E1i", 7, 12),
|
|
||||||
new Among("\u00E9i", 7, 13),
|
|
||||||
new Among("itek", -1, 24),
|
|
||||||
new Among("eitek", 14, 21),
|
|
||||||
new Among("jeitek", 15, 20),
|
|
||||||
new Among("\u00E9itek", 14, 23),
|
|
||||||
new Among("ik", -1, 29),
|
|
||||||
new Among("aik", 18, 26),
|
|
||||||
new Among("jaik", 19, 25),
|
|
||||||
new Among("eik", 18, 26),
|
|
||||||
new Among("jeik", 21, 25),
|
|
||||||
new Among("\u00E1ik", 18, 27),
|
|
||||||
new Among("\u00E9ik", 18, 28),
|
|
||||||
new Among("ink", -1, 20),
|
|
||||||
new Among("aink", 25, 17),
|
|
||||||
new Among("jaink", 26, 16),
|
|
||||||
new Among("eink", 25, 17),
|
|
||||||
new Among("jeink", 28, 16),
|
|
||||||
new Among("\u00E1ink", 25, 18),
|
|
||||||
new Among("\u00E9ink", 25, 19),
|
|
||||||
new Among("aitok", -1, 21),
|
|
||||||
new Among("jaitok", 32, 20),
|
|
||||||
new Among("\u00E1itok", -1, 22),
|
|
||||||
new Among("im", -1, 5),
|
|
||||||
new Among("aim", 35, 4),
|
|
||||||
new Among("jaim", 36, 1),
|
|
||||||
new Among("eim", 35, 4),
|
|
||||||
new Among("jeim", 38, 1),
|
|
||||||
new Among("\u00E1im", 35, 2),
|
|
||||||
new Among("\u00E9im", 35, 3),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
17,
|
|
||||||
52,
|
|
||||||
14,
|
|
||||||
],
|
|
||||||
I_p1,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1 = sbp.cursor,
|
|
||||||
v_2;
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
while (true) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (sbp.out_grouping(g_v, 97, 252)) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (!sbp.find_among(a_0, 8)) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (v_2 < sbp.limit) sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (v_2 >= sbp.limit) {
|
|
||||||
I_p1 = v_2;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (sbp.out_grouping(g_v, 97, 252)) {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 252)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_v_ending() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_1, 2);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_double() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.find_among_b(a_2, 23)) return false;
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_undouble() {
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
var c = sbp.cursor - 1;
|
|
||||||
if (sbp.limit_backward <= c && c <= sbp.limit) {
|
|
||||||
sbp.cursor = c;
|
|
||||||
sbp.bra = c;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_instrum() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 2);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
if (among_var == 1 || among_var == 2) if (!r_double()) return;
|
|
||||||
sbp.slice_del();
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_case() {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_4, 44)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
r_v_ending();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_case_special() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_5, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_case_other() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 6);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_factive() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 2);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
if (among_var == 1 || among_var == 2) if (!r_double()) return;
|
|
||||||
sbp.slice_del();
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_plural() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_8, 7);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
case 4:
|
|
||||||
case 5:
|
|
||||||
case 6:
|
|
||||||
case 7:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_owned() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_9, 12);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
case 4:
|
|
||||||
case 7:
|
|
||||||
case 9:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 5:
|
|
||||||
case 8:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
case 6:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_sing_owner() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_10, 31);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
case 4:
|
|
||||||
case 7:
|
|
||||||
case 8:
|
|
||||||
case 9:
|
|
||||||
case 12:
|
|
||||||
case 13:
|
|
||||||
case 16:
|
|
||||||
case 17:
|
|
||||||
case 18:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 5:
|
|
||||||
case 10:
|
|
||||||
case 14:
|
|
||||||
case 19:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
case 6:
|
|
||||||
case 11:
|
|
||||||
case 15:
|
|
||||||
case 20:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_plur_owner() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_11, 42);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
case 4:
|
|
||||||
case 5:
|
|
||||||
case 6:
|
|
||||||
case 9:
|
|
||||||
case 10:
|
|
||||||
case 11:
|
|
||||||
case 14:
|
|
||||||
case 15:
|
|
||||||
case 16:
|
|
||||||
case 17:
|
|
||||||
case 20:
|
|
||||||
case 21:
|
|
||||||
case 24:
|
|
||||||
case 25:
|
|
||||||
case 26:
|
|
||||||
case 29:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 7:
|
|
||||||
case 12:
|
|
||||||
case 18:
|
|
||||||
case 22:
|
|
||||||
case 27:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
case 8:
|
|
||||||
case 13:
|
|
||||||
case 19:
|
|
||||||
case 23:
|
|
||||||
case 28:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_instrum();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_case();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_case_special();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_case_other();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_factive();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_owned();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_sing_owner();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_plur_owner();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_plural();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.hu.stemmer, "stemmer-hu");
|
|
||||||
|
|
||||||
lunr.hu.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"a abban ahhoz ahogy ahol aki akik akkor alatt amely amelyek amelyekben amelyeket amelyet amelynek ami amikor amit amolyan amíg annak arra arról az azok azon azonban azt aztán azután azzal azért be belül benne bár cikk cikkek cikkeket csak de e ebben eddig egy egyes egyetlen egyik egyre egyéb egész ehhez ekkor el ellen elsõ elég elõ elõször elõtt emilyen ennek erre ez ezek ezen ezt ezzel ezért fel felé hanem hiszen hogy hogyan igen ill ill. illetve ilyen ilyenkor ismét ison itt jobban jó jól kell kellett keressünk keresztül ki kívül között közül legalább legyen lehet lehetett lenne lenni lesz lett maga magát majd majd meg mellett mely melyek mert mi mikor milyen minden mindenki mindent mindig mint mintha mit mivel miért most már más másik még míg nagy nagyobb nagyon ne nekem neki nem nincs néha néhány nélkül olyan ott pedig persze rá s saját sem semmi sok sokat sokkal szemben szerint szinte számára talán tehát teljes tovább továbbá több ugyanis utolsó után utána vagy vagyis vagyok valaki valami valamint való van vannak vele vissza viszont volna volt voltak voltam voltunk által általában át én éppen és így õ õk õket össze úgy új újabb újra".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.hu.stopWordFilter, "stopWordFilter-hu");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,740 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Italian` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.it = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.it.trimmer,
|
|
||||||
lunr.it.stopWordFilter,
|
|
||||||
lunr.it.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.it.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.it.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.it.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.it.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.it.trimmer, "trimmer-it");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.it.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function ItalianStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 7),
|
|
||||||
new Among("qu", 0, 6),
|
|
||||||
new Among("\u00E1", 0, 1),
|
|
||||||
new Among("\u00E9", 0, 2),
|
|
||||||
new Among("\u00ED", 0, 3),
|
|
||||||
new Among("\u00F3", 0, 4),
|
|
||||||
new Among("\u00FA", 0, 5),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("", -1, 3),
|
|
||||||
new Among("I", 0, 1),
|
|
||||||
new Among("U", 0, 2),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("la", -1, -1),
|
|
||||||
new Among("cela", 0, -1),
|
|
||||||
new Among("gliela", 0, -1),
|
|
||||||
new Among("mela", 0, -1),
|
|
||||||
new Among("tela", 0, -1),
|
|
||||||
new Among("vela", 0, -1),
|
|
||||||
new Among("le", -1, -1),
|
|
||||||
new Among("cele", 6, -1),
|
|
||||||
new Among("gliele", 6, -1),
|
|
||||||
new Among("mele", 6, -1),
|
|
||||||
new Among("tele", 6, -1),
|
|
||||||
new Among("vele", 6, -1),
|
|
||||||
new Among("ne", -1, -1),
|
|
||||||
new Among("cene", 12, -1),
|
|
||||||
new Among("gliene", 12, -1),
|
|
||||||
new Among("mene", 12, -1),
|
|
||||||
new Among("sene", 12, -1),
|
|
||||||
new Among("tene", 12, -1),
|
|
||||||
new Among("vene", 12, -1),
|
|
||||||
new Among("ci", -1, -1),
|
|
||||||
new Among("li", -1, -1),
|
|
||||||
new Among("celi", 20, -1),
|
|
||||||
new Among("glieli", 20, -1),
|
|
||||||
new Among("meli", 20, -1),
|
|
||||||
new Among("teli", 20, -1),
|
|
||||||
new Among("veli", 20, -1),
|
|
||||||
new Among("gli", 20, -1),
|
|
||||||
new Among("mi", -1, -1),
|
|
||||||
new Among("si", -1, -1),
|
|
||||||
new Among("ti", -1, -1),
|
|
||||||
new Among("vi", -1, -1),
|
|
||||||
new Among("lo", -1, -1),
|
|
||||||
new Among("celo", 31, -1),
|
|
||||||
new Among("glielo", 31, -1),
|
|
||||||
new Among("melo", 31, -1),
|
|
||||||
new Among("telo", 31, -1),
|
|
||||||
new Among("velo", 31, -1),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ando", -1, 1),
|
|
||||||
new Among("endo", -1, 1),
|
|
||||||
new Among("ar", -1, 2),
|
|
||||||
new Among("er", -1, 2),
|
|
||||||
new Among("ir", -1, 2),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("ic", -1, -1),
|
|
||||||
new Among("abil", -1, -1),
|
|
||||||
new Among("os", -1, -1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("ic", -1, 1),
|
|
||||||
new Among("abil", -1, 1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("ica", -1, 1),
|
|
||||||
new Among("logia", -1, 3),
|
|
||||||
new Among("osa", -1, 1),
|
|
||||||
new Among("ista", -1, 1),
|
|
||||||
new Among("iva", -1, 9),
|
|
||||||
new Among("anza", -1, 1),
|
|
||||||
new Among("enza", -1, 5),
|
|
||||||
new Among("ice", -1, 1),
|
|
||||||
new Among("atrice", 7, 1),
|
|
||||||
new Among("iche", -1, 1),
|
|
||||||
new Among("logie", -1, 3),
|
|
||||||
new Among("abile", -1, 1),
|
|
||||||
new Among("ibile", -1, 1),
|
|
||||||
new Among("usione", -1, 4),
|
|
||||||
new Among("azione", -1, 2),
|
|
||||||
new Among("uzione", -1, 4),
|
|
||||||
new Among("atore", -1, 2),
|
|
||||||
new Among("ose", -1, 1),
|
|
||||||
new Among("ante", -1, 1),
|
|
||||||
new Among("mente", -1, 1),
|
|
||||||
new Among("amente", 19, 7),
|
|
||||||
new Among("iste", -1, 1),
|
|
||||||
new Among("ive", -1, 9),
|
|
||||||
new Among("anze", -1, 1),
|
|
||||||
new Among("enze", -1, 5),
|
|
||||||
new Among("ici", -1, 1),
|
|
||||||
new Among("atrici", 25, 1),
|
|
||||||
new Among("ichi", -1, 1),
|
|
||||||
new Among("abili", -1, 1),
|
|
||||||
new Among("ibili", -1, 1),
|
|
||||||
new Among("ismi", -1, 1),
|
|
||||||
new Among("usioni", -1, 4),
|
|
||||||
new Among("azioni", -1, 2),
|
|
||||||
new Among("uzioni", -1, 4),
|
|
||||||
new Among("atori", -1, 2),
|
|
||||||
new Among("osi", -1, 1),
|
|
||||||
new Among("anti", -1, 1),
|
|
||||||
new Among("amenti", -1, 6),
|
|
||||||
new Among("imenti", -1, 6),
|
|
||||||
new Among("isti", -1, 1),
|
|
||||||
new Among("ivi", -1, 9),
|
|
||||||
new Among("ico", -1, 1),
|
|
||||||
new Among("ismo", -1, 1),
|
|
||||||
new Among("oso", -1, 1),
|
|
||||||
new Among("amento", -1, 6),
|
|
||||||
new Among("imento", -1, 6),
|
|
||||||
new Among("ivo", -1, 9),
|
|
||||||
new Among("it\u00E0", -1, 8),
|
|
||||||
new Among("ist\u00E0", -1, 1),
|
|
||||||
new Among("ist\u00E8", -1, 1),
|
|
||||||
new Among("ist\u00EC", -1, 1),
|
|
||||||
],
|
|
||||||
a_7 = [
|
|
||||||
new Among("isca", -1, 1),
|
|
||||||
new Among("enda", -1, 1),
|
|
||||||
new Among("ata", -1, 1),
|
|
||||||
new Among("ita", -1, 1),
|
|
||||||
new Among("uta", -1, 1),
|
|
||||||
new Among("ava", -1, 1),
|
|
||||||
new Among("eva", -1, 1),
|
|
||||||
new Among("iva", -1, 1),
|
|
||||||
new Among("erebbe", -1, 1),
|
|
||||||
new Among("irebbe", -1, 1),
|
|
||||||
new Among("isce", -1, 1),
|
|
||||||
new Among("ende", -1, 1),
|
|
||||||
new Among("are", -1, 1),
|
|
||||||
new Among("ere", -1, 1),
|
|
||||||
new Among("ire", -1, 1),
|
|
||||||
new Among("asse", -1, 1),
|
|
||||||
new Among("ate", -1, 1),
|
|
||||||
new Among("avate", 16, 1),
|
|
||||||
new Among("evate", 16, 1),
|
|
||||||
new Among("ivate", 16, 1),
|
|
||||||
new Among("ete", -1, 1),
|
|
||||||
new Among("erete", 20, 1),
|
|
||||||
new Among("irete", 20, 1),
|
|
||||||
new Among("ite", -1, 1),
|
|
||||||
new Among("ereste", -1, 1),
|
|
||||||
new Among("ireste", -1, 1),
|
|
||||||
new Among("ute", -1, 1),
|
|
||||||
new Among("erai", -1, 1),
|
|
||||||
new Among("irai", -1, 1),
|
|
||||||
new Among("isci", -1, 1),
|
|
||||||
new Among("endi", -1, 1),
|
|
||||||
new Among("erei", -1, 1),
|
|
||||||
new Among("irei", -1, 1),
|
|
||||||
new Among("assi", -1, 1),
|
|
||||||
new Among("ati", -1, 1),
|
|
||||||
new Among("iti", -1, 1),
|
|
||||||
new Among("eresti", -1, 1),
|
|
||||||
new Among("iresti", -1, 1),
|
|
||||||
new Among("uti", -1, 1),
|
|
||||||
new Among("avi", -1, 1),
|
|
||||||
new Among("evi", -1, 1),
|
|
||||||
new Among("ivi", -1, 1),
|
|
||||||
new Among("isco", -1, 1),
|
|
||||||
new Among("ando", -1, 1),
|
|
||||||
new Among("endo", -1, 1),
|
|
||||||
new Among("Yamo", -1, 1),
|
|
||||||
new Among("iamo", -1, 1),
|
|
||||||
new Among("avamo", -1, 1),
|
|
||||||
new Among("evamo", -1, 1),
|
|
||||||
new Among("ivamo", -1, 1),
|
|
||||||
new Among("eremo", -1, 1),
|
|
||||||
new Among("iremo", -1, 1),
|
|
||||||
new Among("assimo", -1, 1),
|
|
||||||
new Among("ammo", -1, 1),
|
|
||||||
new Among("emmo", -1, 1),
|
|
||||||
new Among("eremmo", 54, 1),
|
|
||||||
new Among("iremmo", 54, 1),
|
|
||||||
new Among("immo", -1, 1),
|
|
||||||
new Among("ano", -1, 1),
|
|
||||||
new Among("iscano", 58, 1),
|
|
||||||
new Among("avano", 58, 1),
|
|
||||||
new Among("evano", 58, 1),
|
|
||||||
new Among("ivano", 58, 1),
|
|
||||||
new Among("eranno", -1, 1),
|
|
||||||
new Among("iranno", -1, 1),
|
|
||||||
new Among("ono", -1, 1),
|
|
||||||
new Among("iscono", 65, 1),
|
|
||||||
new Among("arono", 65, 1),
|
|
||||||
new Among("erono", 65, 1),
|
|
||||||
new Among("irono", 65, 1),
|
|
||||||
new Among("erebbero", -1, 1),
|
|
||||||
new Among("irebbero", -1, 1),
|
|
||||||
new Among("assero", -1, 1),
|
|
||||||
new Among("essero", -1, 1),
|
|
||||||
new Among("issero", -1, 1),
|
|
||||||
new Among("ato", -1, 1),
|
|
||||||
new Among("ito", -1, 1),
|
|
||||||
new Among("uto", -1, 1),
|
|
||||||
new Among("avo", -1, 1),
|
|
||||||
new Among("evo", -1, 1),
|
|
||||||
new Among("ivo", -1, 1),
|
|
||||||
new Among("ar", -1, 1),
|
|
||||||
new Among("ir", -1, 1),
|
|
||||||
new Among("er\u00E0", -1, 1),
|
|
||||||
new Among("ir\u00E0", -1, 1),
|
|
||||||
new Among("er\u00F2", -1, 1),
|
|
||||||
new Among("ir\u00F2", -1, 1),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
128,
|
|
||||||
8,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
],
|
|
||||||
g_AEIO = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
128,
|
|
||||||
8,
|
|
||||||
2,
|
|
||||||
],
|
|
||||||
g_CG = [17],
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
I_pV,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function habr1(c1, c2, v_1) {
|
|
||||||
if (sbp.eq_s(1, c1)) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 249)) {
|
|
||||||
sbp.slice_from(c2);
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3,
|
|
||||||
v_4;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_0, 7);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("\u00E0");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("\u00E8");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("\u00EC");
|
|
||||||
continue;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("\u00F2");
|
|
||||||
continue;
|
|
||||||
case 5:
|
|
||||||
sbp.slice_from("\u00F9");
|
|
||||||
continue;
|
|
||||||
case 6:
|
|
||||||
sbp.slice_from("qU");
|
|
||||||
continue;
|
|
||||||
case 7:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
while (true) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
while (true) {
|
|
||||||
v_3 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 249)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
v_4 = sbp.cursor;
|
|
||||||
if (habr1("u", "U", v_3)) break;
|
|
||||||
sbp.cursor = v_4;
|
|
||||||
if (habr1("i", "I", v_3)) break;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_3;
|
|
||||||
if (sbp.cursor >= sbp.limit) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2(v_1) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (!sbp.in_grouping(g_v, 97, 249)) return false;
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 249)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr3() {
|
|
||||||
if (sbp.in_grouping(g_v, 97, 249)) {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
if (sbp.out_grouping(g_v, 97, 249)) {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 249)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return habr2(v_1);
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return habr2(v_1);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr4() {
|
|
||||||
var v_1 = sbp.cursor,
|
|
||||||
v_2;
|
|
||||||
if (!habr3()) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (!sbp.out_grouping(g_v, 97, 249)) return;
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (sbp.out_grouping(g_v, 97, 249)) {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 249)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 249) && sbp.cursor < sbp.limit)
|
|
||||||
sbp.cursor++;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (!sbp.in_grouping(g_v, 97, 249) || sbp.cursor >= sbp.limit)
|
|
||||||
return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr5() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 249)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 249)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
I_pV = sbp.limit;
|
|
||||||
I_p1 = I_pV;
|
|
||||||
I_p2 = I_pV;
|
|
||||||
habr4();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (habr5()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (habr5()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_1, 3);
|
|
||||||
if (!among_var) break;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_RV() {
|
|
||||||
return I_pV <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_attached_pronoun() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_2, 37)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 5);
|
|
||||||
if (among_var && r_RV()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 51);
|
|
||||||
if (!among_var) return false;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ic")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("log");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("ente");
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (!r_RV()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
if (!r_R1()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 4);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
if (among_var == 1) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_5, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 9:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ic")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_verb_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor >= I_pV) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 87);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) sbp.slice_del();
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr6() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping_b(g_AEIO, 97, 242)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_RV()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "i")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_RV()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_vowel_suffix() {
|
|
||||||
habr6();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "h")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (sbp.in_grouping_b(g_CG, 99, 103)) if (r_RV()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_attached_pronoun();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_standard_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_verb_suffix();
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_vowel_suffix();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.it.stemmer, "stemmer-it");
|
|
||||||
|
|
||||||
lunr.it.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"a abbia abbiamo abbiano abbiate ad agl agli ai al all alla alle allo anche avemmo avendo avesse avessero avessi avessimo aveste avesti avete aveva avevamo avevano avevate avevi avevo avrai avranno avrebbe avrebbero avrei avremmo avremo avreste avresti avrete avrà avrò avuta avute avuti avuto c che chi ci coi col come con contro cui da dagl dagli dai dal dall dalla dalle dallo degl degli dei del dell della delle dello di dov dove e ebbe ebbero ebbi ed era erano eravamo eravate eri ero essendo faccia facciamo facciano facciate faccio facemmo facendo facesse facessero facessi facessimo faceste facesti faceva facevamo facevano facevate facevi facevo fai fanno farai faranno farebbe farebbero farei faremmo faremo fareste faresti farete farà farò fece fecero feci fosse fossero fossi fossimo foste fosti fu fui fummo furono gli ha hai hanno ho i il in io l la le lei li lo loro lui ma mi mia mie miei mio ne negl negli nei nel nell nella nelle nello noi non nostra nostre nostri nostro o per perché più quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sarà sarò se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete starà starò stava stavamo stavano stavate stavi stavo stemmo stesse stessero stessi stessimo steste stesti stette stettero stetti stia stiamo stiano stiate sto su sua sue sugl sugli sui sul sull sulla sulle sullo suo suoi ti tra tu tua tue tuo tuoi tutti tutto un una uno vi voi vostra vostre vostri vostro è".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.it.stopWordFilter, "stopWordFilter-it");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,195 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Japanese` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Chad Liu
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Japanese tokenization is trickier, since it does not
|
|
||||||
take into account spaces.
|
|
||||||
Since the tokenization function is represented different
|
|
||||||
internally for each of the Lunr versions, this had to be done
|
|
||||||
in order to try to try to pick the best way of doing this based
|
|
||||||
on the Lunr version
|
|
||||||
*/
|
|
||||||
var isLunr2 = lunr.version[0] == "2";
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.ja = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.ja.trimmer,
|
|
||||||
lunr.ja.stopWordFilter,
|
|
||||||
lunr.ja.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// change the tokenizer for japanese one
|
|
||||||
if (isLunr2) {
|
|
||||||
// for lunr version 2.0.0
|
|
||||||
this.tokenizer = lunr.ja.tokenizer;
|
|
||||||
} else {
|
|
||||||
if (lunr.tokenizer) {
|
|
||||||
// for lunr version 0.6.0
|
|
||||||
lunr.tokenizer = lunr.ja.tokenizer;
|
|
||||||
}
|
|
||||||
if (this.tokenizerFn) {
|
|
||||||
// for lunr version 0.7.0 -> 1.0.0
|
|
||||||
this.tokenizerFn = lunr.ja.tokenizer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var segmenter = new lunr.TinySegmenter(); // インスタンス生成
|
|
||||||
|
|
||||||
lunr.ja.tokenizer = function (obj) {
|
|
||||||
var i;
|
|
||||||
var str;
|
|
||||||
var len;
|
|
||||||
var segs;
|
|
||||||
var tokens;
|
|
||||||
var char;
|
|
||||||
var sliceLength;
|
|
||||||
var sliceStart;
|
|
||||||
var sliceEnd;
|
|
||||||
var segStart;
|
|
||||||
|
|
||||||
if (!arguments.length || obj == null || obj == undefined) return [];
|
|
||||||
|
|
||||||
if (Array.isArray(obj)) {
|
|
||||||
return obj.map(function (t) {
|
|
||||||
return isLunr2 ? new lunr.Token(t.toLowerCase()) : t.toLowerCase();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
str = obj.toString().toLowerCase().replace(/^\s+/, "");
|
|
||||||
for (i = str.length - 1; i >= 0; i--) {
|
|
||||||
if (/\S/.test(str.charAt(i))) {
|
|
||||||
str = str.substring(0, i + 1);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tokens = [];
|
|
||||||
len = str.length;
|
|
||||||
for (sliceEnd = 0, sliceStart = 0; sliceEnd <= len; sliceEnd++) {
|
|
||||||
char = str.charAt(sliceEnd);
|
|
||||||
sliceLength = sliceEnd - sliceStart;
|
|
||||||
|
|
||||||
if (char.match(/\s/) || sliceEnd == len) {
|
|
||||||
if (sliceLength > 0) {
|
|
||||||
segs = segmenter
|
|
||||||
.segment(str.slice(sliceStart, sliceEnd))
|
|
||||||
.filter(function (token) {
|
|
||||||
return !!token;
|
|
||||||
});
|
|
||||||
|
|
||||||
segStart = sliceStart;
|
|
||||||
for (i = 0; i < segs.length; i++) {
|
|
||||||
if (isLunr2) {
|
|
||||||
tokens.push(
|
|
||||||
new lunr.Token(segs[i], {
|
|
||||||
position: [segStart, segs[i].length],
|
|
||||||
index: tokens.length,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
tokens.push(segs[i]);
|
|
||||||
}
|
|
||||||
segStart += segs[i].length;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sliceStart = sliceEnd + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return tokens;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.ja.stemmer = (function () {
|
|
||||||
/* TODO japanese stemmer */
|
|
||||||
return function (word) {
|
|
||||||
return word;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ja.stemmer, "stemmer-ja");
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.ja.wordCharacters =
|
|
||||||
"一二三四五六七八九十百千万億兆一-龠々〆ヵヶぁ-んァ-ヴーア-ン゙a-zA-Za-zA-Z0-90-9";
|
|
||||||
lunr.ja.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.ja.wordCharacters
|
|
||||||
);
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ja.trimmer, "trimmer-ja");
|
|
||||||
|
|
||||||
/* lunr stop word filter. see http://www.ranks.nl/stopwords/japanese */
|
|
||||||
lunr.ja.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"これ それ あれ この その あの ここ そこ あそこ こちら どこ だれ なに なん 何 私 貴方 貴方方 我々 私達 あの人 あのかた 彼女 彼 です あります おります います は が の に を で え から まで より も どの と し それで しかし".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ja.stopWordFilter, "stopWordFilter-ja");
|
|
||||||
|
|
||||||
// alias ja => jp for backward-compatibility.
|
|
||||||
// jp is the country code, while ja is the language code
|
|
||||||
// a new lunr.ja.js has been created, but in order to
|
|
||||||
// keep the backward compatibility, we'll leave the lunr.jp.js
|
|
||||||
// here for a while, and just make it use the new lunr.ja.js
|
|
||||||
lunr.jp = lunr.ja;
|
|
||||||
lunr.Pipeline.registerFunction(lunr.jp.stemmer, "stemmer-jp");
|
|
||||||
lunr.Pipeline.registerFunction(lunr.jp.trimmer, "trimmer-jp");
|
|
||||||
lunr.Pipeline.registerFunction(lunr.jp.stopWordFilter, "stopWordFilter-jp");
|
|
||||||
};
|
|
||||||
});
|
|
6
themes/CodeIT/assets/lib/lunr/lunr.min.js
vendored
6
themes/CodeIT/assets/lib/lunr/lunr.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,492 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Dutch` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.nl = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.nl.trimmer,
|
|
||||||
lunr.nl.stopWordFilter,
|
|
||||||
lunr.nl.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.nl.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.nl.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.nl.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.nl.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.nl.trimmer, "trimmer-nl");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.nl.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function DutchStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 6),
|
|
||||||
new Among("\u00E1", 0, 1),
|
|
||||||
new Among("\u00E4", 0, 1),
|
|
||||||
new Among("\u00E9", 0, 2),
|
|
||||||
new Among("\u00EB", 0, 2),
|
|
||||||
new Among("\u00ED", 0, 3),
|
|
||||||
new Among("\u00EF", 0, 3),
|
|
||||||
new Among("\u00F3", 0, 4),
|
|
||||||
new Among("\u00F6", 0, 4),
|
|
||||||
new Among("\u00FA", 0, 5),
|
|
||||||
new Among("\u00FC", 0, 5),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("", -1, 3),
|
|
||||||
new Among("I", 0, 2),
|
|
||||||
new Among("Y", 0, 1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("dd", -1, -1),
|
|
||||||
new Among("kk", -1, -1),
|
|
||||||
new Among("tt", -1, -1),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ene", -1, 2),
|
|
||||||
new Among("se", -1, 3),
|
|
||||||
new Among("en", -1, 2),
|
|
||||||
new Among("heden", 2, 1),
|
|
||||||
new Among("s", -1, 3),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("end", -1, 1),
|
|
||||||
new Among("ig", -1, 2),
|
|
||||||
new Among("ing", -1, 1),
|
|
||||||
new Among("lijk", -1, 3),
|
|
||||||
new Among("baar", -1, 4),
|
|
||||||
new Among("bar", -1, 5),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("aa", -1, -1),
|
|
||||||
new Among("ee", -1, -1),
|
|
||||||
new Among("oo", -1, -1),
|
|
||||||
new Among("uu", -1, -1),
|
|
||||||
],
|
|
||||||
g_v = [17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128],
|
|
||||||
g_v_I = [
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
],
|
|
||||||
g_v_j = [17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128],
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
B_e_found,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_0, 11);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
continue;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("o");
|
|
||||||
continue;
|
|
||||||
case 5:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
continue;
|
|
||||||
case 6:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
sbp.bra = v_1;
|
|
||||||
if (sbp.eq_s(1, "y")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
sbp.slice_from("Y");
|
|
||||||
} else sbp.cursor = v_1;
|
|
||||||
while (true) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 232)) {
|
|
||||||
v_3 = sbp.cursor;
|
|
||||||
sbp.bra = v_3;
|
|
||||||
if (sbp.eq_s(1, "i")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 232)) {
|
|
||||||
sbp.slice_from("I");
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
sbp.cursor = v_3;
|
|
||||||
if (sbp.eq_s(1, "y")) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
sbp.slice_from("Y");
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
} else if (habr1(v_2)) break;
|
|
||||||
}
|
|
||||||
} else if (habr1(v_2)) break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr1(v_1) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (v_1 >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
I_p2 = I_p1;
|
|
||||||
if (!habr2()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (I_p1 < 3) I_p1 = 3;
|
|
||||||
if (!habr2()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 232)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 232)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_1, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("y");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_undouble() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_2, 3)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_e_ending() {
|
|
||||||
var v_1;
|
|
||||||
B_e_found = false;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_v, 97, 232)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.slice_del();
|
|
||||||
B_e_found = true;
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_en_ending() {
|
|
||||||
var v_1;
|
|
||||||
if (r_R1()) {
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.out_grouping_b(g_v, 97, 232)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (!sbp.eq_s_b(3, "gem")) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.slice_del();
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3,
|
|
||||||
v_4,
|
|
||||||
v_5,
|
|
||||||
v_6;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 5);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R1()) sbp.slice_from("heid");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
r_en_ending();
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (r_R1() && sbp.out_grouping_b(g_v_j, 97, 232))
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
r_e_ending();
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(4, "heid")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "c")) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "en")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
r_en_ending();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 6);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
v_3 = sbp.limit - sbp.cursor;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "ig")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
v_4 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.cursor = sbp.limit - v_4;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_3;
|
|
||||||
r_undouble();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (r_R2()) {
|
|
||||||
v_5 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "e")) {
|
|
||||||
sbp.cursor = sbp.limit - v_5;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
r_e_ending();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (r_R2() && B_e_found) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (sbp.out_grouping_b(g_v_I, 73, 232)) {
|
|
||||||
v_6 = sbp.limit - sbp.cursor;
|
|
||||||
if (
|
|
||||||
sbp.find_among_b(a_5, 4) &&
|
|
||||||
sbp.out_grouping_b(g_v, 97, 232)
|
|
||||||
) {
|
|
||||||
sbp.cursor = sbp.limit - v_6;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_standard_suffix();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.nl.stemmer, "stemmer-nl");
|
|
||||||
|
|
||||||
lunr.nl.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
" aan al alles als altijd andere ben bij daar dan dat de der deze die dit doch doen door dus een eens en er ge geen geweest haar had heb hebben heeft hem het hier hij hoe hun iemand iets ik in is ja je kan kon kunnen maar me meer men met mij mijn moet na naar niet niets nog nu of om omdat onder ons ook op over reeds te tegen toch toen tot u uit uw van veel voor want waren was wat werd wezen wie wil worden wordt zal ze zelf zich zij zijn zo zonder zou".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.nl.stopWordFilter, "stopWordFilter-nl");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,303 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Norwegian` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.no = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.no.trimmer,
|
|
||||||
lunr.no.stopWordFilter,
|
|
||||||
lunr.no.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.no.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.no.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.no.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.no.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.no.trimmer, "trimmer-no");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.no.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function NorwegianStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("a", -1, 1),
|
|
||||||
new Among("e", -1, 1),
|
|
||||||
new Among("ede", 1, 1),
|
|
||||||
new Among("ande", 1, 1),
|
|
||||||
new Among("ende", 1, 1),
|
|
||||||
new Among("ane", 1, 1),
|
|
||||||
new Among("ene", 1, 1),
|
|
||||||
new Among("hetene", 6, 1),
|
|
||||||
new Among("erte", 1, 3),
|
|
||||||
new Among("en", -1, 1),
|
|
||||||
new Among("heten", 9, 1),
|
|
||||||
new Among("ar", -1, 1),
|
|
||||||
new Among("er", -1, 1),
|
|
||||||
new Among("heter", 12, 1),
|
|
||||||
new Among("s", -1, 2),
|
|
||||||
new Among("as", 14, 1),
|
|
||||||
new Among("es", 14, 1),
|
|
||||||
new Among("edes", 16, 1),
|
|
||||||
new Among("endes", 16, 1),
|
|
||||||
new Among("enes", 16, 1),
|
|
||||||
new Among("hetenes", 19, 1),
|
|
||||||
new Among("ens", 14, 1),
|
|
||||||
new Among("hetens", 21, 1),
|
|
||||||
new Among("ers", 14, 1),
|
|
||||||
new Among("ets", 14, 1),
|
|
||||||
new Among("et", -1, 1),
|
|
||||||
new Among("het", 25, 1),
|
|
||||||
new Among("ert", -1, 3),
|
|
||||||
new Among("ast", -1, 1),
|
|
||||||
],
|
|
||||||
a_1 = [new Among("dt", -1, -1), new Among("vt", -1, -1)],
|
|
||||||
a_2 = [
|
|
||||||
new Among("leg", -1, 1),
|
|
||||||
new Among("eleg", 0, 1),
|
|
||||||
new Among("ig", -1, 1),
|
|
||||||
new Among("eig", 2, 1),
|
|
||||||
new Among("lig", 2, 1),
|
|
||||||
new Among("elig", 4, 1),
|
|
||||||
new Among("els", -1, 1),
|
|
||||||
new Among("lov", -1, 1),
|
|
||||||
new Among("elov", 7, 1),
|
|
||||||
new Among("slov", 7, 1),
|
|
||||||
new Among("hetslov", 9, 1),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
48,
|
|
||||||
0,
|
|
||||||
128,
|
|
||||||
],
|
|
||||||
g_s_ending = [119, 125, 149, 1],
|
|
||||||
I_x,
|
|
||||||
I_p1,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1,
|
|
||||||
c = sbp.cursor + 3;
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
if (0 <= c || c <= sbp.limit) {
|
|
||||||
I_x = c;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 248)) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (v_1 >= sbp.limit) return;
|
|
||||||
sbp.cursor = v_1 + 1;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 248)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (I_p1 < I_x) I_p1 = I_x;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_main_suffix() {
|
|
||||||
var among_var, v_1, v_2;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_0, 29);
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.in_grouping_b(g_s_ending, 98, 122)) sbp.slice_del();
|
|
||||||
else {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
if (
|
|
||||||
sbp.eq_s_b(1, "k") &&
|
|
||||||
sbp.out_grouping_b(g_v, 97, 248)
|
|
||||||
)
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("er");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_consonant_pair() {
|
|
||||||
var v_1 = sbp.limit - sbp.cursor,
|
|
||||||
v_2;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_2 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.find_among_b(a_1, 2)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.cursor--;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
} else sbp.limit_backward = v_2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_other_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 11);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
if (among_var == 1) sbp.slice_del();
|
|
||||||
} else sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_main_suffix();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_consonant_pair();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_other_suffix();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.no.stemmer, "stemmer-no");
|
|
||||||
|
|
||||||
lunr.no.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"alle at av bare begge ble blei bli blir blitt både båe da de deg dei deim deira deires dem den denne der dere deres det dette di din disse ditt du dykk dykkar då eg ein eit eitt eller elles en enn er et ett etter for fordi fra før ha hadde han hans har hennar henne hennes her hjå ho hoe honom hoss hossen hun hva hvem hver hvilke hvilken hvis hvor hvordan hvorfor i ikke ikkje ikkje ingen ingi inkje inn inni ja jeg kan kom korleis korso kun kunne kva kvar kvarhelst kven kvi kvifor man mange me med medan meg meget mellom men mi min mine mitt mot mykje ned no noe noen noka noko nokon nokor nokre nå når og også om opp oss over på samme seg selv si si sia sidan siden sin sine sitt sjøl skal skulle slik so som som somme somt så sånn til um upp ut uten var vart varte ved vere verte vi vil ville vore vors vort vår være være vært å".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.no.stopWordFilter, "stopWordFilter-no");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,671 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Portuguese` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.pt = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.pt.trimmer,
|
|
||||||
lunr.pt.stopWordFilter,
|
|
||||||
lunr.pt.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.pt.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.pt.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.pt.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.pt.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.pt.trimmer, "trimmer-pt");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.pt.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function PortugueseStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 3),
|
|
||||||
new Among("\u00E3", 0, 1),
|
|
||||||
new Among("\u00F5", 0, 2),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("", -1, 3),
|
|
||||||
new Among("a~", 0, 1),
|
|
||||||
new Among("o~", 0, 2),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("ic", -1, -1),
|
|
||||||
new Among("ad", -1, -1),
|
|
||||||
new Among("os", -1, -1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ante", -1, 1),
|
|
||||||
new Among("avel", -1, 1),
|
|
||||||
new Among("\u00EDvel", -1, 1),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("ic", -1, 1),
|
|
||||||
new Among("abil", -1, 1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("ica", -1, 1),
|
|
||||||
new Among("\u00E2ncia", -1, 1),
|
|
||||||
new Among("\u00EAncia", -1, 4),
|
|
||||||
new Among("ira", -1, 9),
|
|
||||||
new Among("adora", -1, 1),
|
|
||||||
new Among("osa", -1, 1),
|
|
||||||
new Among("ista", -1, 1),
|
|
||||||
new Among("iva", -1, 8),
|
|
||||||
new Among("eza", -1, 1),
|
|
||||||
new Among("log\u00EDa", -1, 2),
|
|
||||||
new Among("idade", -1, 7),
|
|
||||||
new Among("ante", -1, 1),
|
|
||||||
new Among("mente", -1, 6),
|
|
||||||
new Among("amente", 12, 5),
|
|
||||||
new Among("\u00E1vel", -1, 1),
|
|
||||||
new Among("\u00EDvel", -1, 1),
|
|
||||||
new Among("uci\u00F3n", -1, 3),
|
|
||||||
new Among("ico", -1, 1),
|
|
||||||
new Among("ismo", -1, 1),
|
|
||||||
new Among("oso", -1, 1),
|
|
||||||
new Among("amento", -1, 1),
|
|
||||||
new Among("imento", -1, 1),
|
|
||||||
new Among("ivo", -1, 8),
|
|
||||||
new Among("a\u00E7a~o", -1, 1),
|
|
||||||
new Among("ador", -1, 1),
|
|
||||||
new Among("icas", -1, 1),
|
|
||||||
new Among("\u00EAncias", -1, 4),
|
|
||||||
new Among("iras", -1, 9),
|
|
||||||
new Among("adoras", -1, 1),
|
|
||||||
new Among("osas", -1, 1),
|
|
||||||
new Among("istas", -1, 1),
|
|
||||||
new Among("ivas", -1, 8),
|
|
||||||
new Among("ezas", -1, 1),
|
|
||||||
new Among("log\u00EDas", -1, 2),
|
|
||||||
new Among("idades", -1, 7),
|
|
||||||
new Among("uciones", -1, 3),
|
|
||||||
new Among("adores", -1, 1),
|
|
||||||
new Among("antes", -1, 1),
|
|
||||||
new Among("a\u00E7o~es", -1, 1),
|
|
||||||
new Among("icos", -1, 1),
|
|
||||||
new Among("ismos", -1, 1),
|
|
||||||
new Among("osos", -1, 1),
|
|
||||||
new Among("amentos", -1, 1),
|
|
||||||
new Among("imentos", -1, 1),
|
|
||||||
new Among("ivos", -1, 8),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("ada", -1, 1),
|
|
||||||
new Among("ida", -1, 1),
|
|
||||||
new Among("ia", -1, 1),
|
|
||||||
new Among("aria", 2, 1),
|
|
||||||
new Among("eria", 2, 1),
|
|
||||||
new Among("iria", 2, 1),
|
|
||||||
new Among("ara", -1, 1),
|
|
||||||
new Among("era", -1, 1),
|
|
||||||
new Among("ira", -1, 1),
|
|
||||||
new Among("ava", -1, 1),
|
|
||||||
new Among("asse", -1, 1),
|
|
||||||
new Among("esse", -1, 1),
|
|
||||||
new Among("isse", -1, 1),
|
|
||||||
new Among("aste", -1, 1),
|
|
||||||
new Among("este", -1, 1),
|
|
||||||
new Among("iste", -1, 1),
|
|
||||||
new Among("ei", -1, 1),
|
|
||||||
new Among("arei", 16, 1),
|
|
||||||
new Among("erei", 16, 1),
|
|
||||||
new Among("irei", 16, 1),
|
|
||||||
new Among("am", -1, 1),
|
|
||||||
new Among("iam", 20, 1),
|
|
||||||
new Among("ariam", 21, 1),
|
|
||||||
new Among("eriam", 21, 1),
|
|
||||||
new Among("iriam", 21, 1),
|
|
||||||
new Among("aram", 20, 1),
|
|
||||||
new Among("eram", 20, 1),
|
|
||||||
new Among("iram", 20, 1),
|
|
||||||
new Among("avam", 20, 1),
|
|
||||||
new Among("em", -1, 1),
|
|
||||||
new Among("arem", 29, 1),
|
|
||||||
new Among("erem", 29, 1),
|
|
||||||
new Among("irem", 29, 1),
|
|
||||||
new Among("assem", 29, 1),
|
|
||||||
new Among("essem", 29, 1),
|
|
||||||
new Among("issem", 29, 1),
|
|
||||||
new Among("ado", -1, 1),
|
|
||||||
new Among("ido", -1, 1),
|
|
||||||
new Among("ando", -1, 1),
|
|
||||||
new Among("endo", -1, 1),
|
|
||||||
new Among("indo", -1, 1),
|
|
||||||
new Among("ara~o", -1, 1),
|
|
||||||
new Among("era~o", -1, 1),
|
|
||||||
new Among("ira~o", -1, 1),
|
|
||||||
new Among("ar", -1, 1),
|
|
||||||
new Among("er", -1, 1),
|
|
||||||
new Among("ir", -1, 1),
|
|
||||||
new Among("as", -1, 1),
|
|
||||||
new Among("adas", 47, 1),
|
|
||||||
new Among("idas", 47, 1),
|
|
||||||
new Among("ias", 47, 1),
|
|
||||||
new Among("arias", 50, 1),
|
|
||||||
new Among("erias", 50, 1),
|
|
||||||
new Among("irias", 50, 1),
|
|
||||||
new Among("aras", 47, 1),
|
|
||||||
new Among("eras", 47, 1),
|
|
||||||
new Among("iras", 47, 1),
|
|
||||||
new Among("avas", 47, 1),
|
|
||||||
new Among("es", -1, 1),
|
|
||||||
new Among("ardes", 58, 1),
|
|
||||||
new Among("erdes", 58, 1),
|
|
||||||
new Among("irdes", 58, 1),
|
|
||||||
new Among("ares", 58, 1),
|
|
||||||
new Among("eres", 58, 1),
|
|
||||||
new Among("ires", 58, 1),
|
|
||||||
new Among("asses", 58, 1),
|
|
||||||
new Among("esses", 58, 1),
|
|
||||||
new Among("isses", 58, 1),
|
|
||||||
new Among("astes", 58, 1),
|
|
||||||
new Among("estes", 58, 1),
|
|
||||||
new Among("istes", 58, 1),
|
|
||||||
new Among("is", -1, 1),
|
|
||||||
new Among("ais", 71, 1),
|
|
||||||
new Among("eis", 71, 1),
|
|
||||||
new Among("areis", 73, 1),
|
|
||||||
new Among("ereis", 73, 1),
|
|
||||||
new Among("ireis", 73, 1),
|
|
||||||
new Among("\u00E1reis", 73, 1),
|
|
||||||
new Among("\u00E9reis", 73, 1),
|
|
||||||
new Among("\u00EDreis", 73, 1),
|
|
||||||
new Among("\u00E1sseis", 73, 1),
|
|
||||||
new Among("\u00E9sseis", 73, 1),
|
|
||||||
new Among("\u00EDsseis", 73, 1),
|
|
||||||
new Among("\u00E1veis", 73, 1),
|
|
||||||
new Among("\u00EDeis", 73, 1),
|
|
||||||
new Among("ar\u00EDeis", 84, 1),
|
|
||||||
new Among("er\u00EDeis", 84, 1),
|
|
||||||
new Among("ir\u00EDeis", 84, 1),
|
|
||||||
new Among("ados", -1, 1),
|
|
||||||
new Among("idos", -1, 1),
|
|
||||||
new Among("amos", -1, 1),
|
|
||||||
new Among("\u00E1ramos", 90, 1),
|
|
||||||
new Among("\u00E9ramos", 90, 1),
|
|
||||||
new Among("\u00EDramos", 90, 1),
|
|
||||||
new Among("\u00E1vamos", 90, 1),
|
|
||||||
new Among("\u00EDamos", 90, 1),
|
|
||||||
new Among("ar\u00EDamos", 95, 1),
|
|
||||||
new Among("er\u00EDamos", 95, 1),
|
|
||||||
new Among("ir\u00EDamos", 95, 1),
|
|
||||||
new Among("emos", -1, 1),
|
|
||||||
new Among("aremos", 99, 1),
|
|
||||||
new Among("eremos", 99, 1),
|
|
||||||
new Among("iremos", 99, 1),
|
|
||||||
new Among("\u00E1ssemos", 99, 1),
|
|
||||||
new Among("\u00EAssemos", 99, 1),
|
|
||||||
new Among("\u00EDssemos", 99, 1),
|
|
||||||
new Among("imos", -1, 1),
|
|
||||||
new Among("armos", -1, 1),
|
|
||||||
new Among("ermos", -1, 1),
|
|
||||||
new Among("irmos", -1, 1),
|
|
||||||
new Among("\u00E1mos", -1, 1),
|
|
||||||
new Among("ar\u00E1s", -1, 1),
|
|
||||||
new Among("er\u00E1s", -1, 1),
|
|
||||||
new Among("ir\u00E1s", -1, 1),
|
|
||||||
new Among("eu", -1, 1),
|
|
||||||
new Among("iu", -1, 1),
|
|
||||||
new Among("ou", -1, 1),
|
|
||||||
new Among("ar\u00E1", -1, 1),
|
|
||||||
new Among("er\u00E1", -1, 1),
|
|
||||||
new Among("ir\u00E1", -1, 1),
|
|
||||||
],
|
|
||||||
a_7 = [
|
|
||||||
new Among("a", -1, 1),
|
|
||||||
new Among("i", -1, 1),
|
|
||||||
new Among("o", -1, 1),
|
|
||||||
new Among("os", -1, 1),
|
|
||||||
new Among("\u00E1", -1, 1),
|
|
||||||
new Among("\u00ED", -1, 1),
|
|
||||||
new Among("\u00F3", -1, 1),
|
|
||||||
],
|
|
||||||
a_8 = [
|
|
||||||
new Among("e", -1, 1),
|
|
||||||
new Among("\u00E7", -1, 2),
|
|
||||||
new Among("\u00E9", -1, 1),
|
|
||||||
new Among("\u00EA", -1, 1),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
3,
|
|
||||||
19,
|
|
||||||
12,
|
|
||||||
2,
|
|
||||||
],
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
I_pV,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_0, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("a~");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("o~");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2() {
|
|
||||||
if (sbp.out_grouping(g_v, 97, 250)) {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 250)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr3() {
|
|
||||||
if (sbp.in_grouping(g_v, 97, 250)) {
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 250)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr4() {
|
|
||||||
var v_1 = sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 250)) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (habr2()) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (habr3()) return;
|
|
||||||
} else I_pV = sbp.cursor;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (sbp.out_grouping(g_v, 97, 250)) {
|
|
||||||
v_3 = sbp.cursor;
|
|
||||||
if (habr2()) {
|
|
||||||
sbp.cursor = v_3;
|
|
||||||
if (!sbp.in_grouping(g_v, 97, 250) || sbp.cursor >= sbp.limit)
|
|
||||||
return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr5() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 250)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 250)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
I_pV = sbp.limit;
|
|
||||||
I_p1 = I_pV;
|
|
||||||
I_p2 = I_pV;
|
|
||||||
habr4();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (habr5()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (habr5()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_1, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("\u00E3");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("\u00F5");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_RV() {
|
|
||||||
return I_pV <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_5, 45);
|
|
||||||
if (!among_var) return false;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("log");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("u");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_from("ente");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
if (!r_R1()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 4);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
if (among_var == 1) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
if (!r_R2()) return false;
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(2, "at")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 9:
|
|
||||||
if (!r_RV() || !sbp.eq_s_b(1, "e")) return false;
|
|
||||||
sbp.slice_from("ir");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_verb_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
if (sbp.cursor >= I_pV) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 120);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) sbp.slice_del();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_residual_suffix() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 7);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) if (r_RV()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr6(c1, c2) {
|
|
||||||
if (sbp.eq_s_b(1, c1)) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
var v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, c2)) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (r_RV()) sbp.slice_del();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_residual_form() {
|
|
||||||
var among_var, v_1, v_2, v_3;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_8, 4);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
if (r_RV()) {
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (habr6("u", "g")) habr6("i", "c");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("c");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr1() {
|
|
||||||
if (!r_standard_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_verb_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_residual_suffix();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "i")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "c")) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (r_RV()) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
habr1();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_residual_form();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.pt.stemmer, "stemmer-pt");
|
|
||||||
|
|
||||||
lunr.pt.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"a ao aos aquela aquelas aquele aqueles aquilo as até com como da das de dela delas dele deles depois do dos e ela elas ele eles em entre era eram essa essas esse esses esta estamos estas estava estavam este esteja estejam estejamos estes esteve estive estivemos estiver estivera estiveram estiverem estivermos estivesse estivessem estivéramos estivéssemos estou está estávamos estão eu foi fomos for fora foram forem formos fosse fossem fui fôramos fôssemos haja hajam hajamos havemos hei houve houvemos houver houvera houveram houverei houverem houveremos houveria houveriam houvermos houverá houverão houveríamos houvesse houvessem houvéramos houvéssemos há hão isso isto já lhe lhes mais mas me mesmo meu meus minha minhas muito na nas nem no nos nossa nossas nosso nossos num numa não nós o os ou para pela pelas pelo pelos por qual quando que quem se seja sejam sejamos sem serei seremos seria seriam será serão seríamos seu seus somos sou sua suas são só também te tem temos tenha tenham tenhamos tenho terei teremos teria teriam terá terão teríamos teu teus teve tinha tinham tive tivemos tiver tivera tiveram tiverem tivermos tivesse tivessem tivéramos tivéssemos tu tua tuas tém tínhamos um uma você vocês vos à às éramos".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.pt.stopWordFilter, "stopWordFilter-pt");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,694 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Romanian` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.ro = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.ro.trimmer,
|
|
||||||
lunr.ro.stopWordFilter,
|
|
||||||
lunr.ro.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.ro.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.ro.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.ro.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.ro.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ro.trimmer, "trimmer-ro");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.ro.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function RomanianStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("", -1, 3),
|
|
||||||
new Among("I", 0, 1),
|
|
||||||
new Among("U", 0, 2),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("ea", -1, 3),
|
|
||||||
new Among("a\u0163ia", -1, 7),
|
|
||||||
new Among("aua", -1, 2),
|
|
||||||
new Among("iua", -1, 4),
|
|
||||||
new Among("a\u0163ie", -1, 7),
|
|
||||||
new Among("ele", -1, 3),
|
|
||||||
new Among("ile", -1, 5),
|
|
||||||
new Among("iile", 6, 4),
|
|
||||||
new Among("iei", -1, 4),
|
|
||||||
new Among("atei", -1, 6),
|
|
||||||
new Among("ii", -1, 4),
|
|
||||||
new Among("ului", -1, 1),
|
|
||||||
new Among("ul", -1, 1),
|
|
||||||
new Among("elor", -1, 3),
|
|
||||||
new Among("ilor", -1, 4),
|
|
||||||
new Among("iilor", 14, 4),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("icala", -1, 4),
|
|
||||||
new Among("iciva", -1, 4),
|
|
||||||
new Among("ativa", -1, 5),
|
|
||||||
new Among("itiva", -1, 6),
|
|
||||||
new Among("icale", -1, 4),
|
|
||||||
new Among("a\u0163iune", -1, 5),
|
|
||||||
new Among("i\u0163iune", -1, 6),
|
|
||||||
new Among("atoare", -1, 5),
|
|
||||||
new Among("itoare", -1, 6),
|
|
||||||
new Among("\u0103toare", -1, 5),
|
|
||||||
new Among("icitate", -1, 4),
|
|
||||||
new Among("abilitate", -1, 1),
|
|
||||||
new Among("ibilitate", -1, 2),
|
|
||||||
new Among("ivitate", -1, 3),
|
|
||||||
new Among("icive", -1, 4),
|
|
||||||
new Among("ative", -1, 5),
|
|
||||||
new Among("itive", -1, 6),
|
|
||||||
new Among("icali", -1, 4),
|
|
||||||
new Among("atori", -1, 5),
|
|
||||||
new Among("icatori", 18, 4),
|
|
||||||
new Among("itori", -1, 6),
|
|
||||||
new Among("\u0103tori", -1, 5),
|
|
||||||
new Among("icitati", -1, 4),
|
|
||||||
new Among("abilitati", -1, 1),
|
|
||||||
new Among("ivitati", -1, 3),
|
|
||||||
new Among("icivi", -1, 4),
|
|
||||||
new Among("ativi", -1, 5),
|
|
||||||
new Among("itivi", -1, 6),
|
|
||||||
new Among("icit\u0103i", -1, 4),
|
|
||||||
new Among("abilit\u0103i", -1, 1),
|
|
||||||
new Among("ivit\u0103i", -1, 3),
|
|
||||||
new Among("icit\u0103\u0163i", -1, 4),
|
|
||||||
new Among("abilit\u0103\u0163i", -1, 1),
|
|
||||||
new Among("ivit\u0103\u0163i", -1, 3),
|
|
||||||
new Among("ical", -1, 4),
|
|
||||||
new Among("ator", -1, 5),
|
|
||||||
new Among("icator", 35, 4),
|
|
||||||
new Among("itor", -1, 6),
|
|
||||||
new Among("\u0103tor", -1, 5),
|
|
||||||
new Among("iciv", -1, 4),
|
|
||||||
new Among("ativ", -1, 5),
|
|
||||||
new Among("itiv", -1, 6),
|
|
||||||
new Among("ical\u0103", -1, 4),
|
|
||||||
new Among("iciv\u0103", -1, 4),
|
|
||||||
new Among("ativ\u0103", -1, 5),
|
|
||||||
new Among("itiv\u0103", -1, 6),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("ica", -1, 1),
|
|
||||||
new Among("abila", -1, 1),
|
|
||||||
new Among("ibila", -1, 1),
|
|
||||||
new Among("oasa", -1, 1),
|
|
||||||
new Among("ata", -1, 1),
|
|
||||||
new Among("ita", -1, 1),
|
|
||||||
new Among("anta", -1, 1),
|
|
||||||
new Among("ista", -1, 3),
|
|
||||||
new Among("uta", -1, 1),
|
|
||||||
new Among("iva", -1, 1),
|
|
||||||
new Among("ic", -1, 1),
|
|
||||||
new Among("ice", -1, 1),
|
|
||||||
new Among("abile", -1, 1),
|
|
||||||
new Among("ibile", -1, 1),
|
|
||||||
new Among("isme", -1, 3),
|
|
||||||
new Among("iune", -1, 2),
|
|
||||||
new Among("oase", -1, 1),
|
|
||||||
new Among("ate", -1, 1),
|
|
||||||
new Among("itate", 17, 1),
|
|
||||||
new Among("ite", -1, 1),
|
|
||||||
new Among("ante", -1, 1),
|
|
||||||
new Among("iste", -1, 3),
|
|
||||||
new Among("ute", -1, 1),
|
|
||||||
new Among("ive", -1, 1),
|
|
||||||
new Among("ici", -1, 1),
|
|
||||||
new Among("abili", -1, 1),
|
|
||||||
new Among("ibili", -1, 1),
|
|
||||||
new Among("iuni", -1, 2),
|
|
||||||
new Among("atori", -1, 1),
|
|
||||||
new Among("osi", -1, 1),
|
|
||||||
new Among("ati", -1, 1),
|
|
||||||
new Among("itati", 30, 1),
|
|
||||||
new Among("iti", -1, 1),
|
|
||||||
new Among("anti", -1, 1),
|
|
||||||
new Among("isti", -1, 3),
|
|
||||||
new Among("uti", -1, 1),
|
|
||||||
new Among("i\u015Fti", -1, 3),
|
|
||||||
new Among("ivi", -1, 1),
|
|
||||||
new Among("it\u0103i", -1, 1),
|
|
||||||
new Among("o\u015Fi", -1, 1),
|
|
||||||
new Among("it\u0103\u0163i", -1, 1),
|
|
||||||
new Among("abil", -1, 1),
|
|
||||||
new Among("ibil", -1, 1),
|
|
||||||
new Among("ism", -1, 3),
|
|
||||||
new Among("ator", -1, 1),
|
|
||||||
new Among("os", -1, 1),
|
|
||||||
new Among("at", -1, 1),
|
|
||||||
new Among("it", -1, 1),
|
|
||||||
new Among("ant", -1, 1),
|
|
||||||
new Among("ist", -1, 3),
|
|
||||||
new Among("ut", -1, 1),
|
|
||||||
new Among("iv", -1, 1),
|
|
||||||
new Among("ic\u0103", -1, 1),
|
|
||||||
new Among("abil\u0103", -1, 1),
|
|
||||||
new Among("ibil\u0103", -1, 1),
|
|
||||||
new Among("oas\u0103", -1, 1),
|
|
||||||
new Among("at\u0103", -1, 1),
|
|
||||||
new Among("it\u0103", -1, 1),
|
|
||||||
new Among("ant\u0103", -1, 1),
|
|
||||||
new Among("ist\u0103", -1, 3),
|
|
||||||
new Among("ut\u0103", -1, 1),
|
|
||||||
new Among("iv\u0103", -1, 1),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("ea", -1, 1),
|
|
||||||
new Among("ia", -1, 1),
|
|
||||||
new Among("esc", -1, 1),
|
|
||||||
new Among("\u0103sc", -1, 1),
|
|
||||||
new Among("ind", -1, 1),
|
|
||||||
new Among("\u00E2nd", -1, 1),
|
|
||||||
new Among("are", -1, 1),
|
|
||||||
new Among("ere", -1, 1),
|
|
||||||
new Among("ire", -1, 1),
|
|
||||||
new Among("\u00E2re", -1, 1),
|
|
||||||
new Among("se", -1, 2),
|
|
||||||
new Among("ase", 10, 1),
|
|
||||||
new Among("sese", 10, 2),
|
|
||||||
new Among("ise", 10, 1),
|
|
||||||
new Among("use", 10, 1),
|
|
||||||
new Among("\u00E2se", 10, 1),
|
|
||||||
new Among("e\u015Fte", -1, 1),
|
|
||||||
new Among("\u0103\u015Fte", -1, 1),
|
|
||||||
new Among("eze", -1, 1),
|
|
||||||
new Among("ai", -1, 1),
|
|
||||||
new Among("eai", 19, 1),
|
|
||||||
new Among("iai", 19, 1),
|
|
||||||
new Among("sei", -1, 2),
|
|
||||||
new Among("e\u015Fti", -1, 1),
|
|
||||||
new Among("\u0103\u015Fti", -1, 1),
|
|
||||||
new Among("ui", -1, 1),
|
|
||||||
new Among("ezi", -1, 1),
|
|
||||||
new Among("\u00E2i", -1, 1),
|
|
||||||
new Among("a\u015Fi", -1, 1),
|
|
||||||
new Among("se\u015Fi", -1, 2),
|
|
||||||
new Among("ase\u015Fi", 29, 1),
|
|
||||||
new Among("sese\u015Fi", 29, 2),
|
|
||||||
new Among("ise\u015Fi", 29, 1),
|
|
||||||
new Among("use\u015Fi", 29, 1),
|
|
||||||
new Among("\u00E2se\u015Fi", 29, 1),
|
|
||||||
new Among("i\u015Fi", -1, 1),
|
|
||||||
new Among("u\u015Fi", -1, 1),
|
|
||||||
new Among("\u00E2\u015Fi", -1, 1),
|
|
||||||
new Among("a\u0163i", -1, 2),
|
|
||||||
new Among("ea\u0163i", 38, 1),
|
|
||||||
new Among("ia\u0163i", 38, 1),
|
|
||||||
new Among("e\u0163i", -1, 2),
|
|
||||||
new Among("i\u0163i", -1, 2),
|
|
||||||
new Among("\u00E2\u0163i", -1, 2),
|
|
||||||
new Among("ar\u0103\u0163i", -1, 1),
|
|
||||||
new Among("ser\u0103\u0163i", -1, 2),
|
|
||||||
new Among("aser\u0103\u0163i", 45, 1),
|
|
||||||
new Among("seser\u0103\u0163i", 45, 2),
|
|
||||||
new Among("iser\u0103\u0163i", 45, 1),
|
|
||||||
new Among("user\u0103\u0163i", 45, 1),
|
|
||||||
new Among("\u00E2ser\u0103\u0163i", 45, 1),
|
|
||||||
new Among("ir\u0103\u0163i", -1, 1),
|
|
||||||
new Among("ur\u0103\u0163i", -1, 1),
|
|
||||||
new Among("\u00E2r\u0103\u0163i", -1, 1),
|
|
||||||
new Among("am", -1, 1),
|
|
||||||
new Among("eam", 54, 1),
|
|
||||||
new Among("iam", 54, 1),
|
|
||||||
new Among("em", -1, 2),
|
|
||||||
new Among("asem", 57, 1),
|
|
||||||
new Among("sesem", 57, 2),
|
|
||||||
new Among("isem", 57, 1),
|
|
||||||
new Among("usem", 57, 1),
|
|
||||||
new Among("\u00E2sem", 57, 1),
|
|
||||||
new Among("im", -1, 2),
|
|
||||||
new Among("\u00E2m", -1, 2),
|
|
||||||
new Among("\u0103m", -1, 2),
|
|
||||||
new Among("ar\u0103m", 65, 1),
|
|
||||||
new Among("ser\u0103m", 65, 2),
|
|
||||||
new Among("aser\u0103m", 67, 1),
|
|
||||||
new Among("seser\u0103m", 67, 2),
|
|
||||||
new Among("iser\u0103m", 67, 1),
|
|
||||||
new Among("user\u0103m", 67, 1),
|
|
||||||
new Among("\u00E2ser\u0103m", 67, 1),
|
|
||||||
new Among("ir\u0103m", 65, 1),
|
|
||||||
new Among("ur\u0103m", 65, 1),
|
|
||||||
new Among("\u00E2r\u0103m", 65, 1),
|
|
||||||
new Among("au", -1, 1),
|
|
||||||
new Among("eau", 76, 1),
|
|
||||||
new Among("iau", 76, 1),
|
|
||||||
new Among("indu", -1, 1),
|
|
||||||
new Among("\u00E2ndu", -1, 1),
|
|
||||||
new Among("ez", -1, 1),
|
|
||||||
new Among("easc\u0103", -1, 1),
|
|
||||||
new Among("ar\u0103", -1, 1),
|
|
||||||
new Among("ser\u0103", -1, 2),
|
|
||||||
new Among("aser\u0103", 84, 1),
|
|
||||||
new Among("seser\u0103", 84, 2),
|
|
||||||
new Among("iser\u0103", 84, 1),
|
|
||||||
new Among("user\u0103", 84, 1),
|
|
||||||
new Among("\u00E2ser\u0103", 84, 1),
|
|
||||||
new Among("ir\u0103", -1, 1),
|
|
||||||
new Among("ur\u0103", -1, 1),
|
|
||||||
new Among("\u00E2r\u0103", -1, 1),
|
|
||||||
new Among("eaz\u0103", -1, 1),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("a", -1, 1),
|
|
||||||
new Among("e", -1, 1),
|
|
||||||
new Among("ie", 1, 1),
|
|
||||||
new Among("i", -1, 1),
|
|
||||||
new Among("\u0103", -1, 1),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
32,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
4,
|
|
||||||
],
|
|
||||||
B_standard_suffix_removed,
|
|
||||||
I_p2,
|
|
||||||
I_p1,
|
|
||||||
I_pV,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function habr1(c1, c2) {
|
|
||||||
if (sbp.eq_s(1, c1)) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 259)) sbp.slice_from(c2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_prelude() {
|
|
||||||
var v_1, v_2;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 259)) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
sbp.bra = v_2;
|
|
||||||
habr1("u", "U");
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
habr1("i", "I");
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (sbp.cursor >= sbp.limit) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2() {
|
|
||||||
if (sbp.out_grouping(g_v, 97, 259)) {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 259)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr3() {
|
|
||||||
if (sbp.in_grouping(g_v, 97, 259)) {
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 259)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return true;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr4() {
|
|
||||||
var v_1 = sbp.cursor,
|
|
||||||
v_2,
|
|
||||||
v_3;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 259)) {
|
|
||||||
v_2 = sbp.cursor;
|
|
||||||
if (habr2()) {
|
|
||||||
sbp.cursor = v_2;
|
|
||||||
if (!habr3()) {
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (sbp.out_grouping(g_v, 97, 259)) {
|
|
||||||
v_3 = sbp.cursor;
|
|
||||||
if (habr2()) {
|
|
||||||
sbp.cursor = v_3;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 259) && sbp.cursor < sbp.limit)
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr5() {
|
|
||||||
while (!sbp.in_grouping(g_v, 97, 259)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 259)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
I_pV = sbp.limit;
|
|
||||||
I_p1 = I_pV;
|
|
||||||
I_p2 = I_pV;
|
|
||||||
habr4();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (habr5()) {
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (habr5()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_postlude() {
|
|
||||||
var among_var;
|
|
||||||
while (true) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
among_var = sbp.find_among(a_0, 3);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
continue;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("u");
|
|
||||||
continue;
|
|
||||||
case 3:
|
|
||||||
if (sbp.cursor >= sbp.limit) break;
|
|
||||||
sbp.cursor++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_RV() {
|
|
||||||
return I_pV <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R1() {
|
|
||||||
return I_p1 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_step_0() {
|
|
||||||
var among_var, v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_1, 16);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("a");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("e");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("i");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(2, "ab")) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
sbp.slice_from("i");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
sbp.slice_from("at");
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
sbp.slice_from("a\u0163i");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_combo_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 46);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R1()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_from("abil");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("ibil");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("iv");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
sbp.slice_from("ic");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
sbp.slice_from("at");
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
sbp.slice_from("it");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
B_standard_suffix_removed = true;
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_standard_suffix() {
|
|
||||||
var among_var, v_1;
|
|
||||||
B_standard_suffix_removed = false;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (!r_combo_suffix()) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_3, 62);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2()) {
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (sbp.eq_s_b(1, "\u0163")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_from("t");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("ist");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
B_standard_suffix_removed = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_verb_suffix() {
|
|
||||||
var among_var, v_1, v_2;
|
|
||||||
if (sbp.cursor >= I_pV) {
|
|
||||||
v_1 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_4, 94);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
v_2 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.out_grouping_b(g_v, 97, 259)) {
|
|
||||||
sbp.cursor = sbp.limit - v_2;
|
|
||||||
if (!sbp.eq_s_b(1, "u")) break;
|
|
||||||
}
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_vowel_suffix() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_5, 5);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_RV() && among_var == 1) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_prelude();
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_step_0();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_standard_suffix();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!B_standard_suffix_removed) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_verb_suffix();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
}
|
|
||||||
r_vowel_suffix();
|
|
||||||
sbp.cursor = sbp.limit_backward;
|
|
||||||
r_postlude();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ro.stemmer, "stemmer-ro");
|
|
||||||
|
|
||||||
lunr.ro.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"acea aceasta această aceea acei aceia acel acela acele acelea acest acesta aceste acestea aceşti aceştia acolo acord acum ai aia aibă aici al ale alea altceva altcineva am ar are asemenea asta astea astăzi asupra au avea avem aveţi azi aş aşadar aţi bine bucur bună ca care caut ce cel ceva chiar cinci cine cineva contra cu cum cumva curând curînd când cât câte câtva câţi cînd cît cîte cîtva cîţi că căci cărei căror cărui către da dacă dar datorită dată dau de deci deja deoarece departe deşi din dinaintea dintr- dintre doi doilea două drept după dă ea ei el ele eram este eu eşti face fata fi fie fiecare fii fim fiu fiţi frumos fără graţie halbă iar ieri la le li lor lui lângă lîngă mai mea mei mele mereu meu mi mie mine mult multă mulţi mulţumesc mâine mîine mă ne nevoie nici nicăieri nimeni nimeri nimic nişte noastre noastră noi noroc nostru nouă noştri nu opt ori oricare orice oricine oricum oricând oricât oricînd oricît oriunde patra patru patrulea pe pentru peste pic poate pot prea prima primul prin puţin puţina puţină până pînă rog sa sale sau se spate spre sub sunt suntem sunteţi sută sînt sîntem sînteţi să săi său ta tale te timp tine toate toată tot totuşi toţi trei treia treilea tu tăi tău un una unde undeva unei uneia unele uneori unii unor unora unu unui unuia unul vi voastre voastră voi vostru vouă voştri vreme vreo vreun vă zece zero zi zice îi îl îmi împotriva în înainte înaintea încotro încât încît între întrucât întrucît îţi ăla ălea ăsta ăstea ăştia şapte şase şi ştiu ţi ţie".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ro.stopWordFilter, "stopWordFilter-ro");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,431 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Russian` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.ru = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.ru.trimmer,
|
|
||||||
lunr.ru.stopWordFilter,
|
|
||||||
lunr.ru.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.ru.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.ru.wordCharacters =
|
|
||||||
"\u0400-\u0484\u0487-\u052F\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69F\uFE2E\uFE2F";
|
|
||||||
lunr.ru.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.ru.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ru.trimmer, "trimmer-ru");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.ru.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function RussianStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("\u0432", -1, 1),
|
|
||||||
new Among("\u0438\u0432", 0, 2),
|
|
||||||
new Among("\u044B\u0432", 0, 2),
|
|
||||||
new Among("\u0432\u0448\u0438", -1, 1),
|
|
||||||
new Among("\u0438\u0432\u0448\u0438", 3, 2),
|
|
||||||
new Among("\u044B\u0432\u0448\u0438", 3, 2),
|
|
||||||
new Among("\u0432\u0448\u0438\u0441\u044C", -1, 1),
|
|
||||||
new Among("\u0438\u0432\u0448\u0438\u0441\u044C", 6, 2),
|
|
||||||
new Among("\u044B\u0432\u0448\u0438\u0441\u044C", 6, 2),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("\u0435\u0435", -1, 1),
|
|
||||||
new Among("\u0438\u0435", -1, 1),
|
|
||||||
new Among("\u043E\u0435", -1, 1),
|
|
||||||
new Among("\u044B\u0435", -1, 1),
|
|
||||||
new Among("\u0438\u043C\u0438", -1, 1),
|
|
||||||
new Among("\u044B\u043C\u0438", -1, 1),
|
|
||||||
new Among("\u0435\u0439", -1, 1),
|
|
||||||
new Among("\u0438\u0439", -1, 1),
|
|
||||||
new Among("\u043E\u0439", -1, 1),
|
|
||||||
new Among("\u044B\u0439", -1, 1),
|
|
||||||
new Among("\u0435\u043C", -1, 1),
|
|
||||||
new Among("\u0438\u043C", -1, 1),
|
|
||||||
new Among("\u043E\u043C", -1, 1),
|
|
||||||
new Among("\u044B\u043C", -1, 1),
|
|
||||||
new Among("\u0435\u0433\u043E", -1, 1),
|
|
||||||
new Among("\u043E\u0433\u043E", -1, 1),
|
|
||||||
new Among("\u0435\u043C\u0443", -1, 1),
|
|
||||||
new Among("\u043E\u043C\u0443", -1, 1),
|
|
||||||
new Among("\u0438\u0445", -1, 1),
|
|
||||||
new Among("\u044B\u0445", -1, 1),
|
|
||||||
new Among("\u0435\u044E", -1, 1),
|
|
||||||
new Among("\u043E\u044E", -1, 1),
|
|
||||||
new Among("\u0443\u044E", -1, 1),
|
|
||||||
new Among("\u044E\u044E", -1, 1),
|
|
||||||
new Among("\u0430\u044F", -1, 1),
|
|
||||||
new Among("\u044F\u044F", -1, 1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("\u0435\u043C", -1, 1),
|
|
||||||
new Among("\u043D\u043D", -1, 1),
|
|
||||||
new Among("\u0432\u0448", -1, 1),
|
|
||||||
new Among("\u0438\u0432\u0448", 2, 2),
|
|
||||||
new Among("\u044B\u0432\u0448", 2, 2),
|
|
||||||
new Among("\u0449", -1, 1),
|
|
||||||
new Among("\u044E\u0449", 5, 1),
|
|
||||||
new Among("\u0443\u044E\u0449", 6, 2),
|
|
||||||
],
|
|
||||||
a_3 = [
|
|
||||||
new Among("\u0441\u044C", -1, 1),
|
|
||||||
new Among("\u0441\u044F", -1, 1),
|
|
||||||
],
|
|
||||||
a_4 = [
|
|
||||||
new Among("\u043B\u0430", -1, 1),
|
|
||||||
new Among("\u0438\u043B\u0430", 0, 2),
|
|
||||||
new Among("\u044B\u043B\u0430", 0, 2),
|
|
||||||
new Among("\u043D\u0430", -1, 1),
|
|
||||||
new Among("\u0435\u043D\u0430", 3, 2),
|
|
||||||
new Among("\u0435\u0442\u0435", -1, 1),
|
|
||||||
new Among("\u0438\u0442\u0435", -1, 2),
|
|
||||||
new Among("\u0439\u0442\u0435", -1, 1),
|
|
||||||
new Among("\u0435\u0439\u0442\u0435", 7, 2),
|
|
||||||
new Among("\u0443\u0439\u0442\u0435", 7, 2),
|
|
||||||
new Among("\u043B\u0438", -1, 1),
|
|
||||||
new Among("\u0438\u043B\u0438", 10, 2),
|
|
||||||
new Among("\u044B\u043B\u0438", 10, 2),
|
|
||||||
new Among("\u0439", -1, 1),
|
|
||||||
new Among("\u0435\u0439", 13, 2),
|
|
||||||
new Among("\u0443\u0439", 13, 2),
|
|
||||||
new Among("\u043B", -1, 1),
|
|
||||||
new Among("\u0438\u043B", 16, 2),
|
|
||||||
new Among("\u044B\u043B", 16, 2),
|
|
||||||
new Among("\u0435\u043C", -1, 1),
|
|
||||||
new Among("\u0438\u043C", -1, 2),
|
|
||||||
new Among("\u044B\u043C", -1, 2),
|
|
||||||
new Among("\u043D", -1, 1),
|
|
||||||
new Among("\u0435\u043D", 22, 2),
|
|
||||||
new Among("\u043B\u043E", -1, 1),
|
|
||||||
new Among("\u0438\u043B\u043E", 24, 2),
|
|
||||||
new Among("\u044B\u043B\u043E", 24, 2),
|
|
||||||
new Among("\u043D\u043E", -1, 1),
|
|
||||||
new Among("\u0435\u043D\u043E", 27, 2),
|
|
||||||
new Among("\u043D\u043D\u043E", 27, 1),
|
|
||||||
new Among("\u0435\u0442", -1, 1),
|
|
||||||
new Among("\u0443\u0435\u0442", 30, 2),
|
|
||||||
new Among("\u0438\u0442", -1, 2),
|
|
||||||
new Among("\u044B\u0442", -1, 2),
|
|
||||||
new Among("\u044E\u0442", -1, 1),
|
|
||||||
new Among("\u0443\u044E\u0442", 34, 2),
|
|
||||||
new Among("\u044F\u0442", -1, 2),
|
|
||||||
new Among("\u043D\u044B", -1, 1),
|
|
||||||
new Among("\u0435\u043D\u044B", 37, 2),
|
|
||||||
new Among("\u0442\u044C", -1, 1),
|
|
||||||
new Among("\u0438\u0442\u044C", 39, 2),
|
|
||||||
new Among("\u044B\u0442\u044C", 39, 2),
|
|
||||||
new Among("\u0435\u0448\u044C", -1, 1),
|
|
||||||
new Among("\u0438\u0448\u044C", -1, 2),
|
|
||||||
new Among("\u044E", -1, 2),
|
|
||||||
new Among("\u0443\u044E", 44, 2),
|
|
||||||
],
|
|
||||||
a_5 = [
|
|
||||||
new Among("\u0430", -1, 1),
|
|
||||||
new Among("\u0435\u0432", -1, 1),
|
|
||||||
new Among("\u043E\u0432", -1, 1),
|
|
||||||
new Among("\u0435", -1, 1),
|
|
||||||
new Among("\u0438\u0435", 3, 1),
|
|
||||||
new Among("\u044C\u0435", 3, 1),
|
|
||||||
new Among("\u0438", -1, 1),
|
|
||||||
new Among("\u0435\u0438", 6, 1),
|
|
||||||
new Among("\u0438\u0438", 6, 1),
|
|
||||||
new Among("\u0430\u043C\u0438", 6, 1),
|
|
||||||
new Among("\u044F\u043C\u0438", 6, 1),
|
|
||||||
new Among("\u0438\u044F\u043C\u0438", 10, 1),
|
|
||||||
new Among("\u0439", -1, 1),
|
|
||||||
new Among("\u0435\u0439", 12, 1),
|
|
||||||
new Among("\u0438\u0435\u0439", 13, 1),
|
|
||||||
new Among("\u0438\u0439", 12, 1),
|
|
||||||
new Among("\u043E\u0439", 12, 1),
|
|
||||||
new Among("\u0430\u043C", -1, 1),
|
|
||||||
new Among("\u0435\u043C", -1, 1),
|
|
||||||
new Among("\u0438\u0435\u043C", 18, 1),
|
|
||||||
new Among("\u043E\u043C", -1, 1),
|
|
||||||
new Among("\u044F\u043C", -1, 1),
|
|
||||||
new Among("\u0438\u044F\u043C", 21, 1),
|
|
||||||
new Among("\u043E", -1, 1),
|
|
||||||
new Among("\u0443", -1, 1),
|
|
||||||
new Among("\u0430\u0445", -1, 1),
|
|
||||||
new Among("\u044F\u0445", -1, 1),
|
|
||||||
new Among("\u0438\u044F\u0445", 26, 1),
|
|
||||||
new Among("\u044B", -1, 1),
|
|
||||||
new Among("\u044C", -1, 1),
|
|
||||||
new Among("\u044E", -1, 1),
|
|
||||||
new Among("\u0438\u044E", 30, 1),
|
|
||||||
new Among("\u044C\u044E", 30, 1),
|
|
||||||
new Among("\u044F", -1, 1),
|
|
||||||
new Among("\u0438\u044F", 33, 1),
|
|
||||||
new Among("\u044C\u044F", 33, 1),
|
|
||||||
],
|
|
||||||
a_6 = [
|
|
||||||
new Among("\u043E\u0441\u0442", -1, 1),
|
|
||||||
new Among("\u043E\u0441\u0442\u044C", -1, 1),
|
|
||||||
],
|
|
||||||
a_7 = [
|
|
||||||
new Among("\u0435\u0439\u0448\u0435", -1, 1),
|
|
||||||
new Among("\u043D", -1, 2),
|
|
||||||
new Among("\u0435\u0439\u0448", -1, 1),
|
|
||||||
new Among("\u044C", -1, 3),
|
|
||||||
],
|
|
||||||
g_v = [33, 65, 8, 232],
|
|
||||||
I_p2,
|
|
||||||
I_pV,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function habr3() {
|
|
||||||
while (!sbp.in_grouping(g_v, 1072, 1103)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr4() {
|
|
||||||
while (!sbp.out_grouping(g_v, 1072, 1103)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return false;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
I_pV = sbp.limit;
|
|
||||||
I_p2 = I_pV;
|
|
||||||
if (habr3()) {
|
|
||||||
I_pV = sbp.cursor;
|
|
||||||
if (habr4()) if (habr3()) if (habr4()) I_p2 = sbp.cursor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_R2() {
|
|
||||||
return I_p2 <= sbp.cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr2(a, n) {
|
|
||||||
var among_var, v_1;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a, n);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
v_1 = sbp.limit - sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "\u0430")) {
|
|
||||||
sbp.cursor = sbp.limit - v_1;
|
|
||||||
if (!sbp.eq_s_b(1, "\u044F")) return false;
|
|
||||||
}
|
|
||||||
case 2:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_perfective_gerund() {
|
|
||||||
return habr2(a_0, 9);
|
|
||||||
}
|
|
||||||
|
|
||||||
function habr1(a, n) {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a, n);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (among_var == 1) sbp.slice_del();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_adjective() {
|
|
||||||
return habr1(a_1, 26);
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_adjectival() {
|
|
||||||
var among_var;
|
|
||||||
if (r_adjective()) {
|
|
||||||
habr2(a_2, 8);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_reflexive() {
|
|
||||||
return habr1(a_3, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_verb() {
|
|
||||||
return habr2(a_4, 46);
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_noun() {
|
|
||||||
habr1(a_5, 36);
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_derivational() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_6, 2);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
if (r_R2() && among_var == 1) sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_tidy_up() {
|
|
||||||
var among_var;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_7, 4);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (!sbp.eq_s_b(1, "\u043D")) break;
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
case 2:
|
|
||||||
if (!sbp.eq_s_b(1, "\u043D")) break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (sbp.cursor < I_pV) return false;
|
|
||||||
sbp.limit_backward = I_pV;
|
|
||||||
if (!r_perfective_gerund()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_reflexive()) sbp.cursor = sbp.limit;
|
|
||||||
if (!r_adjectival()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (!r_verb()) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_noun();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.eq_s_b(1, "\u0438")) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
} else sbp.cursor = sbp.limit;
|
|
||||||
r_derivational();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_tidy_up();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ru.stemmer, "stemmer-ru");
|
|
||||||
|
|
||||||
lunr.ru.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"алло без близко более больше будем будет будете будешь будто буду будут будь бы бывает бывь был была были было быть в важная важное важные важный вам вами вас ваш ваша ваше ваши вверх вдали вдруг ведь везде весь вниз внизу во вокруг вон восемнадцатый восемнадцать восемь восьмой вот впрочем времени время все всегда всего всем всеми всему всех всею всю всюду вся всё второй вы г где говорил говорит год года году да давно даже далеко дальше даром два двадцатый двадцать две двенадцатый двенадцать двух девятнадцатый девятнадцать девятый девять действительно дел день десятый десять для до довольно долго должно другая другие других друго другое другой е его ее ей ему если есть еще ещё ею её ж же жизнь за занят занята занято заняты затем зато зачем здесь значит и из или им именно иметь ими имя иногда их к каждая каждое каждые каждый кажется как какая какой кем когда кого ком кому конечно которая которого которой которые который которых кроме кругом кто куда лет ли лишь лучше люди м мало между меля менее меньше меня миллионов мимо мира мне много многочисленная многочисленное многочисленные многочисленный мной мною мог могут мож может можно можхо мои мой мор мочь моя моё мы на наверху над надо назад наиболее наконец нам нами нас начала наш наша наше наши не него недавно недалеко нее ней нельзя нем немного нему непрерывно нередко несколько нет нею неё ни нибудь ниже низко никогда никуда ними них ничего но ну нужно нх о об оба обычно один одиннадцатый одиннадцать однажды однако одного одной около он она они оно опять особенно от отовсюду отсюда очень первый перед по под пожалуйста позже пока пор пора после посреди потом потому почему почти прекрасно при про просто против процентов пятнадцатый пятнадцать пятый пять раз разве рано раньше рядом с сам сама сами самим самими самих само самого самой самом самому саму свое своего своей свои своих свою сеаой себе себя сегодня седьмой сейчас семнадцатый семнадцать семь сих сказал сказала сказать сколько слишком сначала снова со собой собою совсем спасибо стал суть т та так такая также такие такое такой там твой твоя твоё те тебе тебя тем теми теперь тех то тобой тобою тогда того тоже только том тому тот тою третий три тринадцатый тринадцать ту туда тут ты тысяч у уж уже уметь хорошо хотеть хоть хотя хочешь часто чаще чего человек чем чему через четвертый четыре четырнадцатый четырнадцать что чтоб чтобы чуть шестнадцатый шестнадцать шестой шесть эта эти этим этими этих это этого этой этом этому этот эту я а".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ru.stopWordFilter, "stopWordFilter-ru");
|
|
||||||
};
|
|
||||||
});
|
|
File diff suppressed because one or more lines are too long
|
@ -1,311 +0,0 @@
|
||||||
/*!
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* provides utilities for the included stemmers */
|
|
||||||
lunr.stemmerSupport = {
|
|
||||||
Among: function (s, substring_i, result, method) {
|
|
||||||
this.toCharArray = function (s) {
|
|
||||||
var sLength = s.length,
|
|
||||||
charArr = new Array(sLength);
|
|
||||||
for (var i = 0; i < sLength; i++) charArr[i] = s.charCodeAt(i);
|
|
||||||
return charArr;
|
|
||||||
};
|
|
||||||
|
|
||||||
if ((!s && s != "") || (!substring_i && substring_i != 0) || !result)
|
|
||||||
throw (
|
|
||||||
"Bad Among initialisation: s:" +
|
|
||||||
s +
|
|
||||||
", substring_i: " +
|
|
||||||
substring_i +
|
|
||||||
", result: " +
|
|
||||||
result
|
|
||||||
);
|
|
||||||
this.s_size = s.length;
|
|
||||||
this.s = this.toCharArray(s);
|
|
||||||
this.substring_i = substring_i;
|
|
||||||
this.result = result;
|
|
||||||
this.method = method;
|
|
||||||
},
|
|
||||||
SnowballProgram: function () {
|
|
||||||
var current;
|
|
||||||
return {
|
|
||||||
bra: 0,
|
|
||||||
ket: 0,
|
|
||||||
limit: 0,
|
|
||||||
cursor: 0,
|
|
||||||
limit_backward: 0,
|
|
||||||
setCurrent: function (word) {
|
|
||||||
current = word;
|
|
||||||
this.cursor = 0;
|
|
||||||
this.limit = word.length;
|
|
||||||
this.limit_backward = 0;
|
|
||||||
this.bra = this.cursor;
|
|
||||||
this.ket = this.limit;
|
|
||||||
},
|
|
||||||
getCurrent: function () {
|
|
||||||
var result = current;
|
|
||||||
current = null;
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
in_grouping: function (s, min, max) {
|
|
||||||
if (this.cursor < this.limit) {
|
|
||||||
var ch = current.charCodeAt(this.cursor);
|
|
||||||
if (ch <= max && ch >= min) {
|
|
||||||
ch -= min;
|
|
||||||
if (s[ch >> 3] & (0x1 << (ch & 0x7))) {
|
|
||||||
this.cursor++;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
in_grouping_b: function (s, min, max) {
|
|
||||||
if (this.cursor > this.limit_backward) {
|
|
||||||
var ch = current.charCodeAt(this.cursor - 1);
|
|
||||||
if (ch <= max && ch >= min) {
|
|
||||||
ch -= min;
|
|
||||||
if (s[ch >> 3] & (0x1 << (ch & 0x7))) {
|
|
||||||
this.cursor--;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
out_grouping: function (s, min, max) {
|
|
||||||
if (this.cursor < this.limit) {
|
|
||||||
var ch = current.charCodeAt(this.cursor);
|
|
||||||
if (ch > max || ch < min) {
|
|
||||||
this.cursor++;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
ch -= min;
|
|
||||||
if (!(s[ch >> 3] & (0x1 << (ch & 0x7)))) {
|
|
||||||
this.cursor++;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
out_grouping_b: function (s, min, max) {
|
|
||||||
if (this.cursor > this.limit_backward) {
|
|
||||||
var ch = current.charCodeAt(this.cursor - 1);
|
|
||||||
if (ch > max || ch < min) {
|
|
||||||
this.cursor--;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
ch -= min;
|
|
||||||
if (!(s[ch >> 3] & (0x1 << (ch & 0x7)))) {
|
|
||||||
this.cursor--;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
eq_s: function (s_size, s) {
|
|
||||||
if (this.limit - this.cursor < s_size) return false;
|
|
||||||
for (var i = 0; i < s_size; i++)
|
|
||||||
if (current.charCodeAt(this.cursor + i) != s.charCodeAt(i))
|
|
||||||
return false;
|
|
||||||
this.cursor += s_size;
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
eq_s_b: function (s_size, s) {
|
|
||||||
if (this.cursor - this.limit_backward < s_size) return false;
|
|
||||||
for (var i = 0; i < s_size; i++)
|
|
||||||
if (
|
|
||||||
current.charCodeAt(this.cursor - s_size + i) != s.charCodeAt(i)
|
|
||||||
)
|
|
||||||
return false;
|
|
||||||
this.cursor -= s_size;
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
find_among: function (v, v_size) {
|
|
||||||
var i = 0,
|
|
||||||
j = v_size,
|
|
||||||
c = this.cursor,
|
|
||||||
l = this.limit,
|
|
||||||
common_i = 0,
|
|
||||||
common_j = 0,
|
|
||||||
first_key_inspected = false;
|
|
||||||
while (true) {
|
|
||||||
var k = i + ((j - i) >> 1),
|
|
||||||
diff = 0,
|
|
||||||
common = common_i < common_j ? common_i : common_j,
|
|
||||||
w = v[k];
|
|
||||||
for (var i2 = common; i2 < w.s_size; i2++) {
|
|
||||||
if (c + common == l) {
|
|
||||||
diff = -1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
diff = current.charCodeAt(c + common) - w.s[i2];
|
|
||||||
if (diff) break;
|
|
||||||
common++;
|
|
||||||
}
|
|
||||||
if (diff < 0) {
|
|
||||||
j = k;
|
|
||||||
common_j = common;
|
|
||||||
} else {
|
|
||||||
i = k;
|
|
||||||
common_i = common;
|
|
||||||
}
|
|
||||||
if (j - i <= 1) {
|
|
||||||
if (i > 0 || j == i || first_key_inspected) break;
|
|
||||||
first_key_inspected = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
while (true) {
|
|
||||||
var w = v[i];
|
|
||||||
if (common_i >= w.s_size) {
|
|
||||||
this.cursor = c + w.s_size;
|
|
||||||
if (!w.method) return w.result;
|
|
||||||
var res = w.method();
|
|
||||||
this.cursor = c + w.s_size;
|
|
||||||
if (res) return w.result;
|
|
||||||
}
|
|
||||||
i = w.substring_i;
|
|
||||||
if (i < 0) return 0;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
find_among_b: function (v, v_size) {
|
|
||||||
var i = 0,
|
|
||||||
j = v_size,
|
|
||||||
c = this.cursor,
|
|
||||||
lb = this.limit_backward,
|
|
||||||
common_i = 0,
|
|
||||||
common_j = 0,
|
|
||||||
first_key_inspected = false;
|
|
||||||
while (true) {
|
|
||||||
var k = i + ((j - i) >> 1),
|
|
||||||
diff = 0,
|
|
||||||
common = common_i < common_j ? common_i : common_j,
|
|
||||||
w = v[k];
|
|
||||||
for (var i2 = w.s_size - 1 - common; i2 >= 0; i2--) {
|
|
||||||
if (c - common == lb) {
|
|
||||||
diff = -1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
diff = current.charCodeAt(c - 1 - common) - w.s[i2];
|
|
||||||
if (diff) break;
|
|
||||||
common++;
|
|
||||||
}
|
|
||||||
if (diff < 0) {
|
|
||||||
j = k;
|
|
||||||
common_j = common;
|
|
||||||
} else {
|
|
||||||
i = k;
|
|
||||||
common_i = common;
|
|
||||||
}
|
|
||||||
if (j - i <= 1) {
|
|
||||||
if (i > 0 || j == i || first_key_inspected) break;
|
|
||||||
first_key_inspected = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
while (true) {
|
|
||||||
var w = v[i];
|
|
||||||
if (common_i >= w.s_size) {
|
|
||||||
this.cursor = c - w.s_size;
|
|
||||||
if (!w.method) return w.result;
|
|
||||||
var res = w.method();
|
|
||||||
this.cursor = c - w.s_size;
|
|
||||||
if (res) return w.result;
|
|
||||||
}
|
|
||||||
i = w.substring_i;
|
|
||||||
if (i < 0) return 0;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
replace_s: function (c_bra, c_ket, s) {
|
|
||||||
var adjustment = s.length - (c_ket - c_bra),
|
|
||||||
left = current.substring(0, c_bra),
|
|
||||||
right = current.substring(c_ket);
|
|
||||||
current = left + s + right;
|
|
||||||
this.limit += adjustment;
|
|
||||||
if (this.cursor >= c_ket) this.cursor += adjustment;
|
|
||||||
else if (this.cursor > c_bra) this.cursor = c_bra;
|
|
||||||
return adjustment;
|
|
||||||
},
|
|
||||||
slice_check: function () {
|
|
||||||
if (
|
|
||||||
this.bra < 0 ||
|
|
||||||
this.bra > this.ket ||
|
|
||||||
this.ket > this.limit ||
|
|
||||||
this.limit > current.length
|
|
||||||
)
|
|
||||||
throw "faulty slice operation";
|
|
||||||
},
|
|
||||||
slice_from: function (s) {
|
|
||||||
this.slice_check();
|
|
||||||
this.replace_s(this.bra, this.ket, s);
|
|
||||||
},
|
|
||||||
slice_del: function () {
|
|
||||||
this.slice_from("");
|
|
||||||
},
|
|
||||||
insert: function (c_bra, c_ket, s) {
|
|
||||||
var adjustment = this.replace_s(c_bra, c_ket, s);
|
|
||||||
if (c_bra <= this.bra) this.bra += adjustment;
|
|
||||||
if (c_bra <= this.ket) this.ket += adjustment;
|
|
||||||
},
|
|
||||||
slice_to: function () {
|
|
||||||
this.slice_check();
|
|
||||||
return current.substring(this.bra, this.ket);
|
|
||||||
},
|
|
||||||
eq_v_b: function (s) {
|
|
||||||
return this.eq_s_b(s.length, s);
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
lunr.trimmerSupport = {
|
|
||||||
generateTrimmer: function (wordCharacters) {
|
|
||||||
var startRegex = new RegExp("^[^" + wordCharacters + "]+");
|
|
||||||
var endRegex = new RegExp("[^" + wordCharacters + "]+$");
|
|
||||||
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (s) {
|
|
||||||
return s.replace(startRegex, "").replace(endRegex, "");
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version 1
|
|
||||||
return token.replace(startRegex, "").replace(endRegex, "");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,311 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Swedish` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2014, Mihai Valentin
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.sv = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.sv.trimmer,
|
|
||||||
lunr.sv.stopWordFilter,
|
|
||||||
lunr.sv.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// for lunr version 2
|
|
||||||
// this is necessary so that every searched word is also stemmed before
|
|
||||||
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
|
||||||
if (this.searchPipeline) {
|
|
||||||
this.searchPipeline.reset();
|
|
||||||
this.searchPipeline.add(lunr.sv.stemmer);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.sv.wordCharacters =
|
|
||||||
"A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
|
|
||||||
lunr.sv.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.sv.wordCharacters
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.sv.trimmer, "trimmer-sv");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.sv.stemmer = (function () {
|
|
||||||
/* create the wrapped stemmer object */
|
|
||||||
var Among = lunr.stemmerSupport.Among,
|
|
||||||
SnowballProgram = lunr.stemmerSupport.SnowballProgram,
|
|
||||||
st = new (function SwedishStemmer() {
|
|
||||||
var a_0 = [
|
|
||||||
new Among("a", -1, 1),
|
|
||||||
new Among("arna", 0, 1),
|
|
||||||
new Among("erna", 0, 1),
|
|
||||||
new Among("heterna", 2, 1),
|
|
||||||
new Among("orna", 0, 1),
|
|
||||||
new Among("ad", -1, 1),
|
|
||||||
new Among("e", -1, 1),
|
|
||||||
new Among("ade", 6, 1),
|
|
||||||
new Among("ande", 6, 1),
|
|
||||||
new Among("arne", 6, 1),
|
|
||||||
new Among("are", 6, 1),
|
|
||||||
new Among("aste", 6, 1),
|
|
||||||
new Among("en", -1, 1),
|
|
||||||
new Among("anden", 12, 1),
|
|
||||||
new Among("aren", 12, 1),
|
|
||||||
new Among("heten", 12, 1),
|
|
||||||
new Among("ern", -1, 1),
|
|
||||||
new Among("ar", -1, 1),
|
|
||||||
new Among("er", -1, 1),
|
|
||||||
new Among("heter", 18, 1),
|
|
||||||
new Among("or", -1, 1),
|
|
||||||
new Among("s", -1, 2),
|
|
||||||
new Among("as", 21, 1),
|
|
||||||
new Among("arnas", 22, 1),
|
|
||||||
new Among("ernas", 22, 1),
|
|
||||||
new Among("ornas", 22, 1),
|
|
||||||
new Among("es", 21, 1),
|
|
||||||
new Among("ades", 26, 1),
|
|
||||||
new Among("andes", 26, 1),
|
|
||||||
new Among("ens", 21, 1),
|
|
||||||
new Among("arens", 29, 1),
|
|
||||||
new Among("hetens", 29, 1),
|
|
||||||
new Among("erns", 21, 1),
|
|
||||||
new Among("at", -1, 1),
|
|
||||||
new Among("andet", -1, 1),
|
|
||||||
new Among("het", -1, 1),
|
|
||||||
new Among("ast", -1, 1),
|
|
||||||
],
|
|
||||||
a_1 = [
|
|
||||||
new Among("dd", -1, -1),
|
|
||||||
new Among("gd", -1, -1),
|
|
||||||
new Among("nn", -1, -1),
|
|
||||||
new Among("dt", -1, -1),
|
|
||||||
new Among("gt", -1, -1),
|
|
||||||
new Among("kt", -1, -1),
|
|
||||||
new Among("tt", -1, -1),
|
|
||||||
],
|
|
||||||
a_2 = [
|
|
||||||
new Among("ig", -1, 1),
|
|
||||||
new Among("lig", 0, 1),
|
|
||||||
new Among("els", -1, 1),
|
|
||||||
new Among("fullt", -1, 3),
|
|
||||||
new Among("l\u00F6st", -1, 2),
|
|
||||||
],
|
|
||||||
g_v = [
|
|
||||||
17,
|
|
||||||
65,
|
|
||||||
16,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
24,
|
|
||||||
0,
|
|
||||||
32,
|
|
||||||
],
|
|
||||||
g_s_ending = [119, 127, 149],
|
|
||||||
I_x,
|
|
||||||
I_p1,
|
|
||||||
sbp = new SnowballProgram();
|
|
||||||
this.setCurrent = function (word) {
|
|
||||||
sbp.setCurrent(word);
|
|
||||||
};
|
|
||||||
this.getCurrent = function () {
|
|
||||||
return sbp.getCurrent();
|
|
||||||
};
|
|
||||||
|
|
||||||
function r_mark_regions() {
|
|
||||||
var v_1,
|
|
||||||
c = sbp.cursor + 3;
|
|
||||||
I_p1 = sbp.limit;
|
|
||||||
if (0 <= c || c <= sbp.limit) {
|
|
||||||
I_x = c;
|
|
||||||
while (true) {
|
|
||||||
v_1 = sbp.cursor;
|
|
||||||
if (sbp.in_grouping(g_v, 97, 246)) {
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
sbp.cursor = v_1;
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
while (!sbp.out_grouping(g_v, 97, 246)) {
|
|
||||||
if (sbp.cursor >= sbp.limit) return;
|
|
||||||
sbp.cursor++;
|
|
||||||
}
|
|
||||||
I_p1 = sbp.cursor;
|
|
||||||
if (I_p1 < I_x) I_p1 = I_x;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_main_suffix() {
|
|
||||||
var among_var,
|
|
||||||
v_2 = sbp.limit_backward;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_0, 37);
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (sbp.in_grouping_b(g_s_ending, 98, 121)) sbp.slice_del();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_consonant_pair() {
|
|
||||||
var v_1 = sbp.limit_backward;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
if (sbp.find_among_b(a_1, 7)) {
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
if (sbp.cursor > sbp.limit_backward) {
|
|
||||||
sbp.bra = --sbp.cursor;
|
|
||||||
sbp.slice_del();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function r_other_suffix() {
|
|
||||||
var among_var, v_2;
|
|
||||||
if (sbp.cursor >= I_p1) {
|
|
||||||
v_2 = sbp.limit_backward;
|
|
||||||
sbp.limit_backward = I_p1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
sbp.ket = sbp.cursor;
|
|
||||||
among_var = sbp.find_among_b(a_2, 5);
|
|
||||||
if (among_var) {
|
|
||||||
sbp.bra = sbp.cursor;
|
|
||||||
switch (among_var) {
|
|
||||||
case 1:
|
|
||||||
sbp.slice_del();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
sbp.slice_from("l\u00F6s");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
sbp.slice_from("full");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sbp.limit_backward = v_2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.stem = function () {
|
|
||||||
var v_1 = sbp.cursor;
|
|
||||||
r_mark_regions();
|
|
||||||
sbp.limit_backward = v_1;
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_main_suffix();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_consonant_pair();
|
|
||||||
sbp.cursor = sbp.limit;
|
|
||||||
r_other_suffix();
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/* and return a function that stems a word for the current locale */
|
|
||||||
return function (token) {
|
|
||||||
// for lunr version 2
|
|
||||||
if (typeof token.update === "function") {
|
|
||||||
return token.update(function (word) {
|
|
||||||
st.setCurrent(word);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// for lunr version <= 1
|
|
||||||
st.setCurrent(token);
|
|
||||||
st.stem();
|
|
||||||
return st.getCurrent();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.sv.stemmer, "stemmer-sv");
|
|
||||||
|
|
||||||
lunr.sv.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"alla allt att av blev bli blir blivit de dem den denna deras dess dessa det detta dig din dina ditt du där då efter ej eller en er era ert ett från för ha hade han hans har henne hennes hon honom hur här i icke ingen inom inte jag ju kan kunde man med mellan men mig min mina mitt mot mycket ni nu när någon något några och om oss på samma sedan sig sin sina sitta själv skulle som så sådan sådana sådant till under upp ut utan vad var vara varför varit varje vars vart vem vi vid vilka vilkas vilken vilket vår våra vårt än är åt över".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.sv.stopWordFilter, "stopWordFilter-sv");
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,109 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Thai` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2017, Keerati Thiwanruk
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Thai tokenization is the same to Japanense, which does not take into account spaces.
|
|
||||||
So, it uses the same logic to assign tokenization function due to different Lunr versions.
|
|
||||||
*/
|
|
||||||
var isLunr2 = lunr.version[0] == "2";
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.th = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
/*lunr.th.stopWordFilter,*/
|
|
||||||
lunr.th.trimmer
|
|
||||||
);
|
|
||||||
|
|
||||||
if (isLunr2) {
|
|
||||||
// for lunr version 2.0.0
|
|
||||||
this.tokenizer = lunr.th.tokenizer;
|
|
||||||
} else {
|
|
||||||
if (lunr.tokenizer) {
|
|
||||||
// for lunr version 0.6.0
|
|
||||||
lunr.tokenizer = lunr.th.tokenizer;
|
|
||||||
}
|
|
||||||
if (this.tokenizerFn) {
|
|
||||||
// for lunr version 0.7.0 -> 1.0.0
|
|
||||||
this.tokenizerFn = lunr.th.tokenizer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.th.wordCharacters = "[\u0e00-\u0e7f]";
|
|
||||||
lunr.th.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.th.wordCharacters
|
|
||||||
);
|
|
||||||
lunr.Pipeline.registerFunction(lunr.th.trimmer, "trimmer-th");
|
|
||||||
|
|
||||||
var segmenter = lunr.wordcut;
|
|
||||||
segmenter.init();
|
|
||||||
lunr.th.tokenizer = function (obj) {
|
|
||||||
//console.log(obj);
|
|
||||||
if (!arguments.length || obj == null || obj == undefined) return [];
|
|
||||||
if (Array.isArray(obj))
|
|
||||||
return obj.map(function (t) {
|
|
||||||
return isLunr2 ? new lunr.Token(t) : t;
|
|
||||||
});
|
|
||||||
|
|
||||||
var str = obj.toString().replace(/^\s+/, "");
|
|
||||||
return segmenter.cut(str).split("|");
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,90 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Vietnamese` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2017, Keerati Thiwanruk
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball JavaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.vi = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(lunr.vi.stopWordFilter, lunr.vi.trimmer);
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.vi.wordCharacters =
|
|
||||||
"[" +
|
|
||||||
"A-Za-z" +
|
|
||||||
"\u0300\u0350" + // dấu huyền
|
|
||||||
"\u0301\u0351" + // dấu sắc
|
|
||||||
"\u0309" + // dấu hỏi
|
|
||||||
"\u0323" + // dấu nặng
|
|
||||||
"\u0303\u0343" + // dấu ngã
|
|
||||||
"\u00C2\u00E2" + // Â
|
|
||||||
"\u00CA\u00EA" + // Ê
|
|
||||||
"\u00D4\u00F4" + // Ô
|
|
||||||
"\u0102-\u0103" + // Ă
|
|
||||||
"\u0110-\u0111" + // Đ
|
|
||||||
"\u01A0-\u01A1" + // Ơ
|
|
||||||
"\u01AF-\u01B0" + // Ư
|
|
||||||
"]";
|
|
||||||
lunr.vi.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.vi.wordCharacters
|
|
||||||
);
|
|
||||||
lunr.Pipeline.registerFunction(lunr.vi.trimmer, "trimmer-vi");
|
|
||||||
lunr.vi.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"là cái nhưng mà".split(" ")
|
|
||||||
);
|
|
||||||
};
|
|
||||||
});
|
|
|
@ -1,156 +0,0 @@
|
||||||
/*!
|
|
||||||
* Lunr languages, `Chinese` language
|
|
||||||
* https://github.com/MihaiValentin/lunr-languages
|
|
||||||
*
|
|
||||||
* Copyright 2019, Felix Lian (repairearth)
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
/*!
|
|
||||||
* based on
|
|
||||||
* Snowball zhvaScript Library v0.3
|
|
||||||
* http://code.google.com/p/urim/
|
|
||||||
* http://snowball.tartarus.org/
|
|
||||||
*
|
|
||||||
* Copyright 2010, Oleg Mazko
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(factory);
|
|
||||||
} else if (typeof exports === "object") {
|
|
||||||
/**
|
|
||||||
* Node. Does not work with strict CommonJS, but
|
|
||||||
* only CommonJS-like environments that support module.exports,
|
|
||||||
* like Node.
|
|
||||||
*/
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
factory()(root.lunr);
|
|
||||||
}
|
|
||||||
})(this, function () {
|
|
||||||
/**
|
|
||||||
* Just return a value to define the module export.
|
|
||||||
* This example returns an object, but the module
|
|
||||||
* can return a function as the exported value.
|
|
||||||
*/
|
|
||||||
return function (lunr) {
|
|
||||||
/* throw error if lunr is not yet included */
|
|
||||||
if ("undefined" === typeof lunr) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr is not present. Please include / require Lunr before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* throw error if lunr stemmer support is not yet included */
|
|
||||||
if ("undefined" === typeof lunr.stemmerSupport) {
|
|
||||||
throw new Error(
|
|
||||||
"Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Chinese tokenization is trickier, since it does not
|
|
||||||
take into account spaces.
|
|
||||||
Since the tokenization function is represented different
|
|
||||||
internally for each of the Lunr versions, this had to be done
|
|
||||||
in order to try to try to pick the best way of doing this based
|
|
||||||
on the Lunr version
|
|
||||||
*/
|
|
||||||
var isLunr2 = lunr.version[0] == "2";
|
|
||||||
|
|
||||||
/* register specific locale function */
|
|
||||||
lunr.zh = function () {
|
|
||||||
this.pipeline.reset();
|
|
||||||
this.pipeline.add(
|
|
||||||
lunr.zh.trimmer,
|
|
||||||
lunr.zh.stopWordFilter,
|
|
||||||
lunr.zh.stemmer
|
|
||||||
);
|
|
||||||
|
|
||||||
// change the tokenizer for Chinese one
|
|
||||||
if (isLunr2) {
|
|
||||||
// for lunr version 2.0.0
|
|
||||||
this.tokenizer = lunr.zh.tokenizer;
|
|
||||||
} else {
|
|
||||||
if (lunr.tokenizer) {
|
|
||||||
// for lunr version 0.6.0
|
|
||||||
lunr.tokenizer = lunr.zh.tokenizer;
|
|
||||||
}
|
|
||||||
if (this.tokenizerFn) {
|
|
||||||
// for lunr version 0.7.0 -> 1.0.0
|
|
||||||
this.tokenizerFn = lunr.zh.tokenizer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
lunr.zh.tokenizer = function (obj) {
|
|
||||||
if (!arguments.length || obj == null || obj == undefined) return [];
|
|
||||||
if (Array.isArray(obj))
|
|
||||||
return obj.map(function (t) {
|
|
||||||
return isLunr2 ? new lunr.Token(t.toLowerCase()) : t.toLowerCase();
|
|
||||||
});
|
|
||||||
|
|
||||||
var str = obj.toString().trim().toLowerCase();
|
|
||||||
var tokens = [];
|
|
||||||
|
|
||||||
lunr.segmentit &&
|
|
||||||
lunr.segmentit.doSegment(str).forEach(function (seg) {
|
|
||||||
tokens = tokens.concat(seg.w.split(" "));
|
|
||||||
});
|
|
||||||
|
|
||||||
tokens = tokens.filter(function (token) {
|
|
||||||
return !!token;
|
|
||||||
});
|
|
||||||
|
|
||||||
var fromIndex = 0;
|
|
||||||
|
|
||||||
return tokens.map(function (token, index) {
|
|
||||||
if (isLunr2) {
|
|
||||||
var start = str.indexOf(token, fromIndex);
|
|
||||||
|
|
||||||
var tokenMetadata = {};
|
|
||||||
tokenMetadata["position"] = [start, token.length];
|
|
||||||
tokenMetadata["index"] = index;
|
|
||||||
|
|
||||||
fromIndex = start;
|
|
||||||
|
|
||||||
return new lunr.Token(token, tokenMetadata);
|
|
||||||
} else {
|
|
||||||
return token;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/* lunr trimmer function */
|
|
||||||
lunr.zh.wordCharacters = "\\w\u4e00-\u9fa5";
|
|
||||||
lunr.zh.trimmer = lunr.trimmerSupport.generateTrimmer(
|
|
||||||
lunr.zh.wordCharacters
|
|
||||||
);
|
|
||||||
lunr.Pipeline.registerFunction(lunr.zh.trimmer, "trimmer-zh");
|
|
||||||
|
|
||||||
/* lunr stemmer function */
|
|
||||||
lunr.zh.stemmer = (function () {
|
|
||||||
/* TODO Chinese stemmer */
|
|
||||||
return function (word) {
|
|
||||||
return word;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
lunr.Pipeline.registerFunction(lunr.zh.stemmer, "stemmer-zh");
|
|
||||||
|
|
||||||
/* lunr stop word filter. see https://www.ranks.nl/stopwords/chinese-stopwords */
|
|
||||||
lunr.zh.stopWordFilter = lunr.generateStopWordFilter(
|
|
||||||
"的 一 不 在 人 有 是 为 以 于 上 他 而 后 之 来 及 了 因 下 可 到 由 这 与 也 此 但 并 个 其 已 无 小 我 们 起 最 再 今 去 好 只 又 或 很 亦 某 把 那 你 乃 它 吧 被 比 别 趁 当 从 到 得 打 凡 儿 尔 该 各 给 跟 和 何 还 即 几 既 看 据 距 靠 啦 了 另 么 每 们 嘛 拿 哪 那 您 凭 且 却 让 仍 啥 如 若 使 谁 虽 随 同 所 她 哇 嗡 往 哪 些 向 沿 哟 用 于 咱 则 怎 曾 至 致 着 诸 自".split(
|
|
||||||
" "
|
|
||||||
)
|
|
||||||
);
|
|
||||||
lunr.Pipeline.registerFunction(lunr.zh.stopWordFilter, "stopWordFilter-zh");
|
|
||||||
};
|
|
||||||
});
|
|
File diff suppressed because one or more lines are too long
|
@ -1,305 +0,0 @@
|
||||||
/**
|
|
||||||
* Create a new [Mapbox GL JS plugin](https://www.mapbox.com/blog/build-mapbox-gl-js-plugins/) that
|
|
||||||
* modifies the layers of the map style to use the 'text-field' that matches the browser language.
|
|
||||||
* @constructor
|
|
||||||
* @param {object} options - Options to configure the plugin.
|
|
||||||
* @param {string[]} [options.supportedLanguages] - List of supported languages
|
|
||||||
* @param {Function} [options.languageTransform] - Custom style transformation to apply
|
|
||||||
* @param {RegExp} [options.languageField=/^\{name/] - RegExp to match if a text-field is a language field
|
|
||||||
* @param {Function} [options.getLanguageField] - Given a language choose the field in the vector tiles
|
|
||||||
* @param {string} [options.languageSource] - Name of the source that contains the different languages.
|
|
||||||
* @param {string} [options.defaultLanguage] - Name of the default language to initialize style after loading.
|
|
||||||
* @param {string[]} [options.excludedLayerIds] - Name of the layers that should be excluded from translation.
|
|
||||||
*/
|
|
||||||
function MapboxLanguage(options) {
|
|
||||||
options = Object.assign({}, options);
|
|
||||||
if (!(this instanceof MapboxLanguage)) {
|
|
||||||
throw new Error("MapboxLanguage needs to be called with the new keyword");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.setLanguage = this.setLanguage.bind(this);
|
|
||||||
this._initialStyleUpdate = this._initialStyleUpdate.bind(this);
|
|
||||||
|
|
||||||
this._defaultLanguage = options.defaultLanguage;
|
|
||||||
this._isLanguageField = options.languageField || /^\{name/;
|
|
||||||
this._getLanguageField =
|
|
||||||
options.getLanguageField ||
|
|
||||||
function nameField(language) {
|
|
||||||
return language === "mul" ? "{name}" : "{name_" + language + "}";
|
|
||||||
};
|
|
||||||
this._languageSource = options.languageSource || null;
|
|
||||||
this._languageTransform =
|
|
||||||
options.languageTransform ||
|
|
||||||
function (style, language) {
|
|
||||||
if (language === "ar") {
|
|
||||||
return noSpacing(style);
|
|
||||||
} else {
|
|
||||||
return standardSpacing(style);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this._excludedLayerIds = options.excludedLayerIds || [];
|
|
||||||
this.supportedLanguages = options.supportedLanguages || [
|
|
||||||
"ar",
|
|
||||||
"en",
|
|
||||||
"es",
|
|
||||||
"fr",
|
|
||||||
"de",
|
|
||||||
"ja",
|
|
||||||
"ko",
|
|
||||||
"mul",
|
|
||||||
"pt",
|
|
||||||
"ru",
|
|
||||||
"zh",
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
function standardSpacing(style) {
|
|
||||||
var changedLayers = style.layers.map(function (layer) {
|
|
||||||
if (!(layer.layout || {})["text-field"]) return layer;
|
|
||||||
var spacing = 0;
|
|
||||||
if (layer["source-layer"] === "state_label") {
|
|
||||||
spacing = 0.15;
|
|
||||||
}
|
|
||||||
if (layer["source-layer"] === "marine_label") {
|
|
||||||
if (/-lg/.test(layer.id)) {
|
|
||||||
spacing = 0.25;
|
|
||||||
}
|
|
||||||
if (/-md/.test(layer.id)) {
|
|
||||||
spacing = 0.15;
|
|
||||||
}
|
|
||||||
if (/-sm/.test(layer.id)) {
|
|
||||||
spacing = 0.1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (layer["source-layer"] === "place_label") {
|
|
||||||
if (/-suburb/.test(layer.id)) {
|
|
||||||
spacing = 0.15;
|
|
||||||
}
|
|
||||||
if (/-neighbour/.test(layer.id)) {
|
|
||||||
spacing = 0.1;
|
|
||||||
}
|
|
||||||
if (/-islet/.test(layer.id)) {
|
|
||||||
spacing = 0.01;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (layer["source-layer"] === "airport_label") {
|
|
||||||
spacing = 0.01;
|
|
||||||
}
|
|
||||||
if (layer["source-layer"] === "rail_station_label") {
|
|
||||||
spacing = 0.01;
|
|
||||||
}
|
|
||||||
if (layer["source-layer"] === "poi_label") {
|
|
||||||
if (/-scalerank/.test(layer.id)) {
|
|
||||||
spacing = 0.01;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (layer["source-layer"] === "road_label") {
|
|
||||||
if (/-label-/.test(layer.id)) {
|
|
||||||
spacing = 0.01;
|
|
||||||
}
|
|
||||||
if (/-shields/.test(layer.id)) {
|
|
||||||
spacing = 0.05;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Object.assign({}, layer, {
|
|
||||||
layout: Object.assign({}, layer.layout, {
|
|
||||||
"text-letter-spacing": spacing,
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
return Object.assign({}, style, {
|
|
||||||
layers: changedLayers,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function noSpacing(style) {
|
|
||||||
var changedLayers = style.layers.map(function (layer) {
|
|
||||||
if (!(layer.layout || {})["text-field"]) return layer;
|
|
||||||
var spacing = 0;
|
|
||||||
return Object.assign({}, layer, {
|
|
||||||
layout: Object.assign({}, layer.layout, {
|
|
||||||
"text-letter-spacing": spacing,
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
return Object.assign({}, style, {
|
|
||||||
layers: changedLayers,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function isNameStringField(isLangField, property) {
|
|
||||||
return typeof property === "string" && isLangField.test(property);
|
|
||||||
}
|
|
||||||
|
|
||||||
function isNameFunctionField(isLangField, property) {
|
|
||||||
return (
|
|
||||||
property.stops &&
|
|
||||||
property.stops.filter(function (stop) {
|
|
||||||
return isLangField.test(stop[1]);
|
|
||||||
}).length > 0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function adaptPropertyLanguage(isLangField, property, languageFieldName) {
|
|
||||||
if (isNameStringField(isLangField, property)) return languageFieldName;
|
|
||||||
if (isNameFunctionField(isLangField, property)) {
|
|
||||||
var newStops = property.stops.map(function (stop) {
|
|
||||||
if (isLangField.test(stop[1])) {
|
|
||||||
return [stop[0], languageFieldName];
|
|
||||||
}
|
|
||||||
return stop;
|
|
||||||
});
|
|
||||||
return Object.assign({}, property, {
|
|
||||||
stops: newStops,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return property;
|
|
||||||
}
|
|
||||||
|
|
||||||
function changeLayerTextProperty(
|
|
||||||
isLangField,
|
|
||||||
layer,
|
|
||||||
languageFieldName,
|
|
||||||
excludedLayerIds
|
|
||||||
) {
|
|
||||||
if (
|
|
||||||
layer.layout &&
|
|
||||||
layer.layout["text-field"] &&
|
|
||||||
excludedLayerIds.indexOf(layer.id) === -1
|
|
||||||
) {
|
|
||||||
return Object.assign({}, layer, {
|
|
||||||
layout: Object.assign({}, layer.layout, {
|
|
||||||
"text-field": adaptPropertyLanguage(
|
|
||||||
isLangField,
|
|
||||||
layer.layout["text-field"],
|
|
||||||
languageFieldName
|
|
||||||
),
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return layer;
|
|
||||||
}
|
|
||||||
|
|
||||||
function findStreetsSource(style) {
|
|
||||||
var sources = Object.keys(style.sources).filter(function (sourceName) {
|
|
||||||
var source = style.sources[sourceName];
|
|
||||||
return /mapbox-streets-v\d/.test(source.url);
|
|
||||||
});
|
|
||||||
return sources[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Explicitly change the language for a style.
|
|
||||||
* @param {object} style - Mapbox GL style to modify
|
|
||||||
* @param {string} language - The language iso code
|
|
||||||
* @returns {object} the modified style
|
|
||||||
*/
|
|
||||||
MapboxLanguage.prototype.setLanguage = function (style, language) {
|
|
||||||
if (this.supportedLanguages.indexOf(language) < 0)
|
|
||||||
throw new Error("Language " + language + " is not supported");
|
|
||||||
var streetsSource = this._languageSource || findStreetsSource(style);
|
|
||||||
if (!streetsSource) return style;
|
|
||||||
|
|
||||||
var field = this._getLanguageField(language);
|
|
||||||
var isLangField = this._isLanguageField;
|
|
||||||
var excludedLayerIds = this._excludedLayerIds;
|
|
||||||
var changedLayers = style.layers.map(function (layer) {
|
|
||||||
if (layer.source === streetsSource)
|
|
||||||
return changeLayerTextProperty(
|
|
||||||
isLangField,
|
|
||||||
layer,
|
|
||||||
field,
|
|
||||||
excludedLayerIds
|
|
||||||
);
|
|
||||||
return layer;
|
|
||||||
});
|
|
||||||
|
|
||||||
var languageStyle = Object.assign({}, style, {
|
|
||||||
layers: changedLayers,
|
|
||||||
});
|
|
||||||
|
|
||||||
return this._languageTransform(languageStyle, language);
|
|
||||||
};
|
|
||||||
|
|
||||||
MapboxLanguage.prototype._initialStyleUpdate = function () {
|
|
||||||
var style = this._map.getStyle();
|
|
||||||
var language =
|
|
||||||
this._defaultLanguage || browserLanguage(this.supportedLanguages);
|
|
||||||
|
|
||||||
// We only update the style once
|
|
||||||
this._map.off("styledata", this._initialStyleUpdate);
|
|
||||||
this._map.setStyle(this.setLanguage(style, language));
|
|
||||||
};
|
|
||||||
|
|
||||||
function browserLanguage(supportedLanguages) {
|
|
||||||
var language = navigator.languages
|
|
||||||
? navigator.languages[0]
|
|
||||||
: navigator.language || navigator.userLanguage;
|
|
||||||
var parts = language.split("-");
|
|
||||||
var languageCode = language;
|
|
||||||
if (parts.length > 1) {
|
|
||||||
languageCode = parts[0];
|
|
||||||
}
|
|
||||||
if (supportedLanguages.indexOf(languageCode) > -1) {
|
|
||||||
return languageCode;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
MapboxLanguage.prototype.onAdd = function (map) {
|
|
||||||
this._map = map;
|
|
||||||
this._map.on("styledata", this._initialStyleUpdate);
|
|
||||||
this._container = document.createElement("div");
|
|
||||||
return this._container;
|
|
||||||
};
|
|
||||||
|
|
||||||
MapboxLanguage.prototype.onRemove = function () {
|
|
||||||
this._map.off("styledata", this._initialStyleUpdate);
|
|
||||||
this._map = undefined;
|
|
||||||
};
|
|
||||||
|
|
||||||
function ie11Polyfill() {
|
|
||||||
if (typeof Object.assign != "function") {
|
|
||||||
// Must be writable: true, enumerable: false, configurable: true
|
|
||||||
Object.defineProperty(Object, "assign", {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
value: function assign(target, varArgs) {
|
|
||||||
// .length of function is 2
|
|
||||||
// eslint-disable-next-line strict
|
|
||||||
"use strict";
|
|
||||||
if (target === null) {
|
|
||||||
// TypeError if undefined or null
|
|
||||||
throw new TypeError("Cannot convert undefined or null to object");
|
|
||||||
}
|
|
||||||
|
|
||||||
var to = Object(target);
|
|
||||||
|
|
||||||
for (var index = 1; index < arguments.length; index++) {
|
|
||||||
var nextSource = arguments[index];
|
|
||||||
|
|
||||||
if (nextSource !== null) {
|
|
||||||
// Skip over if undefined or null
|
|
||||||
for (var nextKey in nextSource) {
|
|
||||||
// Avoid bugs when hasOwnProperty is shadowed
|
|
||||||
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
||||||
to[nextKey] = nextSource[nextKey];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return to;
|
|
||||||
},
|
|
||||||
writable: true,
|
|
||||||
configurable: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof module !== "undefined" && typeof module.exports !== "undefined") {
|
|
||||||
module.exports = MapboxLanguage;
|
|
||||||
} else {
|
|
||||||
ie11Polyfill();
|
|
||||||
window.MapboxLanguage = MapboxLanguage;
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
42
themes/CodeIT/assets/lib/mermaid/mermaid.min.js
vendored
42
themes/CodeIT/assets/lib/mermaid/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,19 +0,0 @@
|
||||||
.page .mermaid {
|
|
||||||
width: 100%;
|
|
||||||
margin: 3% auto;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
& > svg {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "themes/neutral/index";
|
|
||||||
|
|
||||||
[theme="dark"] & {
|
|
||||||
@import "themes/dark/index";
|
|
||||||
}
|
|
||||||
|
|
||||||
div.mermaidTooltip {
|
|
||||||
z-index: 50;
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue