Activity log for bug #604863

Date Who What changed Old value New value Message
2010-07-13 03:21:50 mlissner bug added bug
2010-07-13 18:19:59 mlissner description I'm using this code on my site, and I need a way of keeping certain words uppercase. We added this support to an older version of titlecase, but now that there have been major updates, we find ourselves busy updating our code again. I believe the following lines would add support for it: # at the top under above the SMALL variable: BIG = 'USA|FCC|FTC|DOJ|USC|WTO|EFF|CDT|RSS|LLP|USPS|LLC|CDC|CNMI' # in the regex list at the top BIG_WORDS = re.compile(r'^(%s)$' % BIG, re.I) # down under the SMALL_WORDS conditional if BIG_WORDS.match(word): tc_line.append(word.upper()) continue It would be fantastic if these or similar lines could be added, since I imagine most people using this will have some things they want capitalized properly. (sorry for no patch - hopefully this is good enough) I'm using this code on my site, and I need a way of keeping certain words uppercase. We added this support to an older version of titlecase, but now that there have been major updates, we find ourselves busy updating our code again. I believe the following lines would add support for it: # at the top under the SMALL variable: BIG = 'USA|FCC|FTC|DOJ|USC|WTO|EFF|CDT|RSS|LLP|USPS|LLC|CDC|CNMI' # in the regex list at the top BIG_WORDS = re.compile(r'^(%s)$' % BIG, re.I)             # down under the SMALL_WORDS conditional             if BIG_WORDS.match(word):                 tc_line.append(word.upper())                 continue It would be fantastic if these or similar lines could be added, since I imagine most people using this will have some things they want capitalized properly. (sorry for no patch - hopefully this is good enough)