-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdfa1d3
commit c1ac30e
Showing
3 changed files
with
70 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,122 @@ | ||
[ | ||
{ | ||
"summary": "abbr(chars: number = 1)", | ||
"summary": "<b>abbr</b>(chars: number = 1)", | ||
"description": "<p>Abbreviates the text. Only the first character and subsequent characters following white space will be included.</p>" | ||
}, | ||
{ | ||
"summary": "acronym(list: string = 'acronyms', reload: boolean = false, passthrough: boolean = false)", | ||
"summary": "<b>acronym</b>(list: string = 'acronyms', reload: boolean = false, passthrough: boolean = false)", | ||
"description": "<p>Does an acronym lookup for the text.</p>" | ||
}, | ||
{ | ||
"summary": "alphanum", | ||
"summary": "<b>alphanum</b>", | ||
"description": "<p>clears out everything but unicode alphanumeric characters (unicode character classes <code>L</code> and <code>N</code>)</p>" | ||
}, | ||
{ | ||
"summary": "ascii", | ||
"summary": "<b>ascii</b>", | ||
"description": "<p>removes all non-ascii characters</p>" | ||
}, | ||
{ | ||
"summary": "capitalize", | ||
"summary": "<b>capitalize</b>", | ||
"description": "<p>uppercases the first letter of each word</p>" | ||
}, | ||
{ | ||
"summary": "clean", | ||
"summary": "<b>clean</b>", | ||
"description": "<p>transliterates the citation key and removes unsafe characters</p>" | ||
}, | ||
{ | ||
"summary": "condense(sep: string = '')", | ||
"summary": "<b>condense</b>(sep: string = '')", | ||
"description": "<p>replaces spaces in the value passed in. You can specify what to replace it with by adding it as a\nparameter, e.g <code>.condense('\\_')</code> will replace spaces with underscores. Equivalent to <code>.replace(/\\s+/g, sep)</code>.</p>" | ||
}, | ||
{ | ||
"summary": "default(text: string)", | ||
"summary": "<b>default</b>(text: string)", | ||
"description": "<p>Returns the given text if no output was generated</p>" | ||
}, | ||
{ | ||
"summary": "discard", | ||
"summary": "<b>discard</b>", | ||
"description": "<p>discards the input</p>" | ||
}, | ||
{ | ||
"summary": "find(match: (string | RegExp), passthrough: boolean = false)", | ||
"summary": "<b>find</b>(match: (string | RegExp), passthrough: boolean = false)", | ||
"description": "<p>Finds a text in the string and returns it.</p>" | ||
}, | ||
{ | ||
"summary": "formatDate(format: string = '%Y-%m-%d')", | ||
"summary": "<b>formatDate</b>(format: string = '%Y-%m-%d')", | ||
"description": "<p>formats date as by replacing y, m and d in the format</p>" | ||
}, | ||
{ | ||
"summary": "ideographs", | ||
"summary": "<b>ideographs</b>", | ||
"description": "<p>Treat ideaographs as individual words</p>" | ||
}, | ||
{ | ||
"summary": "jieba(mode?: ("cn" | "tw" | "hant"))", | ||
"summary": "<b>jieba</b>(mode?: ("cn" | "tw" | "hant"))", | ||
"description": "<p>word segmentation for Chinese items. Uses substantial memory, and adds about 7 seconds to BBTs startup time; must be enabled under Preferences -> Better BibTeX -> Advanced -> Citekeys</p>" | ||
}, | ||
{ | ||
"summary": "kuromoji", | ||
"summary": "<b>kuromoji</b>", | ||
"description": "<p>word segmentation for Japanese items. Uses substantial memory; must be enabled under Preferences -> Better BibTeX -> Advanced -> Citekeys</p>" | ||
}, | ||
{ | ||
"summary": "len(relation: ("<" | ">" | "<=" | "==" | "!=" | ">=") = '>', length: number = 0)", | ||
"summary": "<b>len</b>(relation: ("<" | ">" | "<=" | "==" | "!=" | ">=") = '>', length: number = 0)", | ||
"description": "<p>If the length of the output does not match the given number, skip to the next pattern.</p>" | ||
}, | ||
{ | ||
"summary": "localTime", | ||
"summary": "<b>localTime</b>", | ||
"description": "<p>transforms date/time to local time. Mainly useful for dateAdded and dateModified as it requires an ISO-formatted input.</p>" | ||
}, | ||
{ | ||
"summary": "lower", | ||
"summary": "<b>lower</b>", | ||
"description": "<p>Forces the text inserted by the field marker to be in lowercase. For example, <code>auth.lower</code> expands to the last name of the first author in lowercase.</p>" | ||
}, | ||
{ | ||
"summary": "match(match: (string | RegExp), clean: boolean = false)", | ||
"summary": "<b>match</b>(match: (string | RegExp), clean: boolean = false)", | ||
"description": "<p>If the output does not match the given string/regex, skip to the next pattern.</p>" | ||
}, | ||
{ | ||
"summary": "nopunct(dash: string = '-')", | ||
"summary": "<b>nopunct</b>(dash: string = '-')", | ||
"description": "<p>Removes punctuation</p>" | ||
}, | ||
{ | ||
"summary": "nopunctordash", | ||
"summary": "<b>nopunctordash</b>", | ||
"description": "<p>Removes punctuation and word-connecting dashes. alias for <code>nopunct(dash='')</code></p>" | ||
}, | ||
{ | ||
"summary": "numeric", | ||
"summary": "<b>numeric</b>", | ||
"description": "<p>returns the value if it's an integer</p>" | ||
}, | ||
{ | ||
"summary": "pinyin", | ||
"summary": "<b>pinyin</b>", | ||
"description": "<p>transliterates the citation key to pinyin</p>" | ||
}, | ||
{ | ||
"summary": "postfix(postfix: string)", | ||
"summary": "<b>postfix</b>(postfix: string)", | ||
"description": "<p>postfixes with its parameter, so <code>postfix('\\_')</code> will add an underscore to the end if, and only if, the value\nit is supposed to postfix isn't empty</p>" | ||
}, | ||
{ | ||
"summary": "prefix(prefix: string)", | ||
"summary": "<b>prefix</b>(prefix: string)", | ||
"description": "<p>prefixes with its parameter, so <code>.prefix('\\_')</code> will add an underscore to the front if, and only if, the value\nit is supposed to prefix isn't empty.</p>" | ||
}, | ||
{ | ||
"summary": "replace(find: (string | RegExp), replace: string)", | ||
"summary": "<b>replace</b>(find: (string | RegExp), replace: string)", | ||
"description": "<p>replaces text, for the text to match you can pass either:</p>\n<ul>\n<li>a string: <code>.replace('.etal','&etal')</code> which will match case-insensitive, so will replace <code>.EtAl</code> with <code>&etal</code>.</li>\n<li><a href=\"https://www.simplilearn.com/tutorials/javascript-tutorial/javascript-regex\">javascript regular expression</a>: <code>.replace(/[.]etal/ig, '&etal')</code></li>\n</ul>" | ||
}, | ||
{ | ||
"summary": "select(start: number = 1, n?: number)", | ||
"summary": "<b>select</b>(start: number = 1, n?: number)", | ||
"description": "<p>selects words from the value passed in. The format is <code>select(start,number)</code> (1-based), so <code>select(1,4)</code> or <code>select(n=4)</code>\nwould select the first four words. If <code>n</code> is not given, all words from <code>start</code> to the end are\nselected.</p>" | ||
}, | ||
{ | ||
"summary": "skipwords(nopunct: boolean = false)", | ||
"summary": "<b>skipwords</b>(nopunct: boolean = false)", | ||
"description": "<p>filters out common words like 'of', 'the', … the list of words can be seen and changed by going into\n<code>about:config</code> under the key <code>extensions.zotero.translators.better-bibtex.skipWords</code> as a comma-separated,\ncase-insensitive list of words.</p>\n<p>If you want to strip words like 'Jr.' from names, you could use something like <code>Auth.nopunct.skipwords.fold</code>\nafter adding <code>jr</code> to the skipWords list.\nNote that this filter is always applied with <code>nopunct</code> on if you use <code>title</code> (which is different from <code>Title</code>) or <code>shorttitle</code>.</p>" | ||
}, | ||
{ | ||
"summary": "substring(start: number = 1, n?: number)", | ||
"summary": "<b>substring</b>(start: number = 1, n?: number)", | ||
"description": "<p><code>substring(start,n)</code> selects <code>n</code> (default: all) characters starting at <code>start</code></p>" | ||
}, | ||
{ | ||
"summary": "transliterate(mode?: ("minimal" | "tw" | "mn" | "arabic" | "chinese" | "german" | "japanese" | "mongolian" | "russian" | "ru" | "uk" | "ar" | "de" | "ja" | "zh" | "zh-hant" | "ukranian"))", | ||
"summary": "<b>transliterate</b>(mode?: ("minimal" | "tw" | "mn" | "arabic" | "chinese" | "german" | "japanese" | "mongolian" | "russian" | "ru" | "uk" | "ar" | "de" | "ja" | "zh" | "zh-hant" | "ukranian"))", | ||
"description": "<p>transliterates the citation key. If you don't specify a mode, the mode is derived from the item language field</p>" | ||
}, | ||
{ | ||
"summary": "upper", | ||
"summary": "<b>upper</b>", | ||
"description": "<p>Forces the text inserted by the field marker to be in uppercase. For example, <code>auth.upper</code> expands the last name of the first author in uppercase.</p>" | ||
} | ||
] |
Oops, something went wrong.