Webmastersite.net
Register Log In

Tidy Text
Is there a way to force capital letters etc?

Comments on Tidy Text

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Jan 19, 2010 - 5:10 AM:

I love wsn links and everything it can do, I just have such a problem with people making my websites look very untidy by writing slapdash listing descriptions.

The biggest problem is people writing in capital letters, or not using capital letters at all.

Is there an easy way of adding some extra intelligence to how descriptions are displayed (not the way they are added to the database because for me its too late for that)

For instance...

Is there a way to force a space after a period or comma if one as not been added by the submitter?

Is there a way to make sure a capital letter follows a period and at the start of a paragraph?

Is there a way to make all but the first letter of a word become lowercase if a submitter decides to write in capitals?

Is there a way to make i become I if it is on it's own as a word.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 01, 2010 - 5:53 PM:

All such changes would require writing a php plugin function (scripts.webmastersite.net/w...extending/plugins-380.html)

The illiteracy detector for comments catches some of these things, but only when the mistakes are repeated, and it doesn't apply to listing descriptions.

Is there a way to force a space after a period or comma if one as not been added by the submitter?

Yes, but language rarely has fixed rules like that. For two examples that come to mind off hand, sometimes "." is part of "..." and sometimes it's part of "3.14".

Is there a way to make sure a capital letter follows a period and at the start of a paragraph?

PHP's ucfirst function can do the first word of a string, and it's possible with work to detect paragraphs based on line breaks, but there are times when people might be using newlines to make a list of sorts instead.

Is there a way to make all but the first letter of a word become lowercase if a submitter decides to write in capitals?

In theory, but there may be times when caps is appropriate.

Is there a way to make i become I if it is on it's own as a word.

Sure.

All the above mentioned possibilities would total about a 2 hour / $100 custom project.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 01, 2010 - 5:56 PM:

A more complete/better option to speed things up might be to have the validation page allow easy in-place editing of titles and descriptions, like the bulk edit page. I'll consider that for 6.0 or could do it as a custom project if someone needs it now.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.