1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on Willing to pay $40 USD, Force all post to be "Sentence case"

Discussion in 'Resource and Add-on Requests' started by RoldanLT, Jul 20, 2016.

  1. RoldanLT

    RoldanLT Well-Known Member

  2. RoldanLT

    RoldanLT Well-Known Member

    @Xon if you have some spare time :).

    Thanks!
     
  3. SneakyDave

    SneakyDave Well-Known Member

    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
     
    RoldanLT likes this.
  4. RobParker

    RobParker Well-Known Member

    How would this even work? What about proper nouns, acronyms, etc?
     
    RoldanLT likes this.
  5. RoldanLT

    RoldanLT Well-Known Member

    Hmm yeah, I just want to eliminate post having all capital letters on it :/.
     
  6. wang

    wang Well-Known Member

    Is this completed? If not, I can develop this for you.
     
  7. Mike Creuzer

    Mike Creuzer Well-Known Member

    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.
     
    RoldanLT likes this.
  8. RoldanLT

    RoldanLT Well-Known Member

    I think I got it working now.
    Thanks for the hint Mike :D.
     
    Sunka likes this.
  9. Mike Creuzer

    Mike Creuzer Well-Known Member

    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.
     
    RoldanLT likes this.
  10. The Sandman

    The Sandman Well-Known Member

    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).
     
    RoldanLT likes this.
  11. RoldanLT

    RoldanLT Well-Known Member

    That I don't know how.
    If it's possible with only CSS.
     
    SneakyDave likes this.
  12. wang

    wang Well-Known Member

    It is not. It will need a proper add on.
     
  13. tajhay

    tajhay Well-Known Member

    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.
     
  14. Jake B.

    Jake B. Well-Known Member

    If you replace the text using a keyword replace add-on the CSS will still change the case of it
     
    tajhay likes this.

Share This Page