UNPKG

3 kBJavaScriptView Raw
1
2/*
3Tipue Search 5.0
4Copyright (c) 2015 Tipue
5Tipue Search is released under the MIT License
6http://www.tipue.com/search
7*/
8
9var tipuesearch_pages = [
10"../graph3d/index.html"
11];
12
13/*
14Stop words
15Stop words list from http://www.ranks.nl/stopwords
16*/
17
18var tipuesearch_stop_words = ["a", "about", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"];
19
20
21// Word replace
22
23var tipuesearch_replace = {'words': [
24 {'word': 'tipua', 'replace_with': 'tipue'},
25 {'word': 'javscript', 'replace_with': 'javascript'},
26 {'word': 'jqeury', 'replace_with': 'jquery'}
27]};
28
29
30// Weighting
31
32var tipuesearch_weight = {'weight': [
33 {'url': 'http://www.tipue.com', 'score': 200},
34 {'url': 'http://www.tipue.com/search', 'score': 100},
35 {'url': 'http://www.tipue.com/about', 'score': 100}
36]};
37
38
39// Stemming
40
41var tipuesearch_stem = {'words': [
42 {'word': 'e-mail', 'stem': 'email'},
43 {'word': 'javascript', 'stem': 'jquery'},
44 {'word': 'javascript', 'stem': 'js'}
45]};
46
47
48// Internal strings
49
50var tipuesearch_string_1 = 'No title';
51var tipuesearch_string_2 = 'Showing results for';
52var tipuesearch_string_3 = 'Search instead for';
53var tipuesearch_string_4 = '1 result';
54var tipuesearch_string_5 = 'results';
55var tipuesearch_string_6 = 'Prev';
56var tipuesearch_string_7 = 'Next';
57var tipuesearch_string_8 = 'Nothing found';
58var tipuesearch_string_9 = 'Common words are largely ignored';
59var tipuesearch_string_10 = 'Search too short';
60var tipuesearch_string_11 = 'Should be one character or more';
61var tipuesearch_string_12 = 'Should be';
62var tipuesearch_string_13 = 'characters or more';