News for hackers. Stuff that matters.
Re:What Happened in 2014? by rubiquity on Wednesday December 31, 2014 @05:22PM (#8821372)
Hopefully 2015 will be the year of capitalizing the first letter of the first word in a new sentence.
Re:What Happened in 2014? by fredwilson on Thursday January 01, 2015 @07:48AM (#8822786)
ha! that's great. i don't think i'm going to do that though.
Re:What Happened in 2014? by rubiquity on Thursday January 01, 2015 @03:55PM (#8824278)
Re:What Happened in 2014? by bootload on Wednesday December 31, 2014 @07:29PM (#8821727)
"... capitalizing the first letter of the first word in a new sentence. ..."

Faster to type, easy to run a bit of code to achieve.

Re:What Happened in 2014? by qznc on Wednesday December 31, 2014 @07:53PM (#8821775)
It is not "easy [...] to achieve", e.g. try the code on this sentence, Dr. bootload.
Re:What Happened in 2014? by bootload on Wednesday December 31, 2014 @10:47PM (#8822081)
The only real constraints are sentences with first non-alpha. I'd try something like:

    converted is store for modified text
    new paragraph is store for modified sentences
    abbreviations is list of common abbreviations (eg,nb,dr...)

    paragraph is split by newline '\n'
    for each newline in paragraph
        /* abbreviation check using '.' seps */
        if fullstops in newline greater than one
            check newline for abbreviations and replace
  
        /* break down para into newlines by '.' */
        split newline into sentences by '.'
            for sentence in sentences
                if sentence starts with word
                    replace first letter with upper
                else
                    move to first word, replace with upper
                /* build up paragraphs */
                append sentence to new paragraph
 
      /* modified text */  
      append new paragraph to converted
    write converted to display
tricky bit is 'abbreviations & dots' [0] & preserving the format. Will fail on names (eg: J.A. Smith)

[0] https://en.wikipedia.org/wiki/Lists_of_abbreviations

Re:What Happened in 2014? by Retr0spectrum on Wednesday December 31, 2014 @08:54PM (#8821882)
Shouldn't it be "Dr. Bootload" anyway?
Re:What Happened in 2014? by samatman on Wednesday December 31, 2014 @11:28PM (#8822158)
It is certainly Dr. bell hooks.