diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 134 |
1 files changed, 78 insertions, 56 deletions
diff --git a/src/config.rs b/src/config.rs index 47e145c..e0a097c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -36,43 +36,49 @@ use crate::{ cliargs::CLIArgs, }; -pub const IGNORED_SPECIAL_CHARS: [char; 33] = [ +pub const IGNORED_SPECIAL_CHARS: [char; 39] = [ '?', '!', '\\', '\'', '.', '-', '–', ':', ',', '[', ']', '(', ')', '{', '}', '§', '$', '%', - '&', '/', '`', '´', '#', '+', '*', '=', '|', '<', '>', '^', '°', '_', '"', + '&', '/', '`', '´', '#', '+', '*', '=', '|', '<', '>', '^', '°', '_', '"', '»', '«', '‘', '’', + '“', '”', ]; pub static IGNORED_WORDS: LazyLock<Vec<String>> = LazyLock::new(|| { vec![ - String::from("the"), - String::from("a"), - String::from("an"), - String::from("of"), - String::from("for"), - String::from("in"), - String::from("at"), - String::from("to"), - String::from("and"), - String::from("him"), - String::from("her"), - String::from("his"), - String::from("hers"), - String::from("der"), - String::from("die"), - String::from("das"), - String::from("ein"), - String::from("eine"), - String::from("eines"), - String::from("des"), - String::from("auf"), - String::from("und"), - String::from("für"), - String::from("vor"), - String::from("er"), - String::from("sie"), - String::from("es"), - String::from("ihm"), - String::from("ihr"), - String::from("ihnen"), + "the".into(), + "a".into(), + "an".into(), + "of".into(), + "for".into(), + "in".into(), + "at".into(), + "to".into(), + "and".into(), + "him".into(), + "her".into(), + "his".into(), + "he".into(), + "she".into(), + "it".into(), + "hers".into(), + "der".into(), + "die".into(), + "das".into(), + "ein".into(), + "eine".into(), + "eines".into(), + "des".into(), + "auf".into(), + "und".into(), + "für".into(), + "vor".into(), + "er".into(), + "sie".into(), + "es".into(), + "ihm".into(), + "ihr".into(), + "ihnen".into(), + "zum".into(), + "dem".into(), ] }); @@ -159,34 +165,50 @@ const DEFAULT_CONFIG: &str = r##" # ascii_only = true ## List of special chars that'll be ignored when building citekeys. -## A custom list will overwrite the default list +## A custom list will overwrite the default list. Thus, to add to the list, +## uncomment it and add the additional chars. # ignored_chars = [ -# "?", "!", "\\", "\'", ".", "-", "–", ":", ",", "[", "]", "(", ")", "{", "}", "§", "$", "%", "&", "/", "`", "´", "#", "+", "*", "=", "|", "<", ">", "^", "°", "_", """, -# ] +# '?', '!', '\\', '\'', '.', '-', '–', ':', ',', '[', ']', '(', ')', '{', '}', '§', '$', '%', '&', '/', '`', '´', '#', '+', '*', '=', '|', '<', '>', '^', '°', '_', '"', '»', '«', '‘', '’', '“', '”', ## List of words that'll be ignored when building citekeys. -## A custom list will overwrite the default list +## A custom list will overwrite the default list. Thus, to add to the list, +## uncomment it and add the additional words. # ignored_words = [ -# "the", -# "a", -# "an", -# "of", -# "for", -# "in", -# "at", -# "to", -# "and", -# "der", -# "die", -# "das", -# "ein", -# "eine", -# "eines", -# "des", -# "auf", -# "und", -# "für", -# "vor", +# "the" +# "a" +# "an" +# "of" +# "for" +# "in" +# "at" +# "to" +# "and" +# "him" +# "her" +# "his" +# "he" +# "she" +# "it" +# "hers" +# "der" +# "die" +# "das" +# "ein" +# "eine" +# "eines" +# "des" +# "auf" +# "und" +# "für" +# "vor" +# "er" +# "sie" +# "es" +# "ihm" +# "ihr" +# "ihnen" +# "zum" +# "dem" # ] "##; |
