1
Plugins / Re: Additional Tagging & Reporting Tools
« on: April 02, 2024, 07:30:41 PM »EDITED
forgot to mention changes in the last version.
$TitleCase and $SentenceCase now have extended syntax:
$TitleCase(input,exceptionWords,wordSplittersASRString,exceptionCharsASRString)
$SentenceCase (input,exceptionWords)
if exceptionWords, wordSplittersASRString or exceptionCharsASRString are completely empty, then ASR defaults are used. if they are whitespaces, then the function won't use any exception words, exception characters, or word splitters at all (excepted words are lowercased by these functions (besides the first and last word of the input string for the $TitleCase function), words following exception characters are lowercased, and words after 'word splitters' will be capitalized). all characters and words must be separated by spaces. any number of the last parameters can be omitted. they will use ASR defaults in this case.
examples:Code$TitleCase("test", ,/ - &) is the same as:
$TitleCase("test", ,/ - &,) i.e., don't use excepted words, use characters / - & as word splitters, and use ASR defaults for characters after which the words must be lowercased.Code$TitleCase("test") is the same as:
$TitleCase("test",,,) i.e., use ASR defaults for excepted words, word splitters (spaces are always treated as word splitters), and characters after which the words must be lowercased.
It's about this new function!