How to exclude certain words (of, and, ...) of this function?
=proper({clipboard})
The idea is to obtain something like:
Sir Donald of Coventry and Sussex
instead of:
Sir Donald Of Coventry And Sussex
Thanks in advance!!
How to exclude certain words (of, and, ...) of this function?
=proper({clipboard})
The idea is to obtain something like:
Sir Donald of Coventry and Sussex
instead of:
Sir Donald Of Coventry And Sussex
Thanks in advance!!
Hi @Josem,
I have tried creating a snippet with a list of words excluded from proper function.
{clipboard_data={clipboard}}{words=split(clipboard_data, " ")}{excluded_words=["of", "and", "the", "in", "on", "at", "by", "with", "for", "about", "against", "between", "into", "through", "during", "before", "after", "above", "below", "to", "from", "up", "down", "over", "under", "again", "further", "then", "once"]}{formatted_words=map(words, word -> lower(word) if includes(excluded_words, lower(word)) else proper(word))}
{=join(formatted_words, " ")}
Let me know if it serves your use case.
Wow, really a perfect solution.
Tx a lot for your support i really appreciate it so much!!