Discussion in 'Resource and Add-on Requests' started by RoldanLT, Jul 20, 2016.
A simple addon that will force all post to be "Sentence case".
@Xon if you have some spare time .
Doesn't "Automatically Adjust Case of Discussion Titles" to "Sentence Case" already do that for you? Or do you want to force it on the post content also?
Never mind, I guess you want it on the post content, after re-reading the title, lol
How would this even work? What about proper nouns, acronyms, etc?
Hmm yeah, I just want to eliminate post having all capital letters on it :/.
Is this completed? If not, I can develop this for you.
We can do this for you. It can be done in CSS as well, but we can also just modify the post before its saved to the db as well.
I think I got it working now.
Thanks for the hint Mike .
Technically this won't work for proper nouns and acronyms and such. So I might recommend not doing the lowercase part. But the first-letter upercase makes sense to me.
Could do a check first to see if all letters in a post are capitalized and only then convert it to sentence case since the goal is simply to prevent shouting (a post with all caps).
That I don't know how.
If it's possible with only CSS.
It is not. It will need a proper add on.
Non custom addon path:
Step 1. Use CSS to convert all sentences as you want it to be.
Step 2. To handle acronyms, use one of the many keyword replace addons on here so they are capitalised etc. You will need to feed all the used acronyms into the addon though. Keyword replace addons are a must have anyway with most having link attribute properties to redirect your users to other knowledge sections within a site.
If you replace the text using a keyword replace add-on the CSS will still change the case of it
In some case could be useful add a class to messageText (if the user is in a specific usergroup) so this can be used on specific user that use only CAPITAL LETTERS.
A better solution would be convert them and write on the DB.
Separate names with a comma.