topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 9:34 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: More feature for "Modify Format/Case"  (Read 4737 times)

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
More feature for "Modify Format/Case"
« on: April 17, 2011, 03:04 PM »
I really love the "Modify Format/Case" feature of Clipboard Help+Spell  :Thmbsup:

From time to time i need some more features and have to use other tools to reformat my text.
So i want to post a few suggestion to improve "Modify Format/Case", maybe it will be from interest to mouser.


Code: Text [Select]
  1. Trim excess White space
  2.  [ ]Left  [ ]Inside [ ]Right [ ]Keep one
  3.  
  4. Trim Left
  5.  [ ]Skip white space
  6.  [ ]Till sign[]
  7.  
  8. Trim Right
  9.  [ ]Skip white space
  10.  [ ]from sign[] to end
  11.  [ ]from pos[] to end /truncate line
  12.  
  13. Add to Lines
  14.  [ ]at cloumn[]
  15.  [ ]before sign[]
  16.  [ ]after sign[]
  17.  
  18. Add to columns
  19.  Columns are seperated by[ \t ], Column is represented as %C%
  20.  [ Before first column: %C% after first and before second column %C% text after second column]
  21.  
  22. Allow the use of regex in the "Strip Leading/Trailing Stuff"
  23.  
  24. Trim Linebreaks /Join lines
  25.  [ ]every [] lines
  26.  
  27. Remove lines: []Not starting() containing() ending() with [ ]  --- ()case sensitive
  28.  
  29. Hard Wrapping
  30.  [ ]Split before char[]
  31.  [ ]Split after char[]
  32.  [ ]Keep char
  33.  ()case sensitive



Explanation


- - -


Trim excess White space
 [ ]Left  [ ]Inside [ ]Right [ ]Keep one

have some finer adjustment to remove f.ex. only whitspace at the end

- - -

Trim Left
 [ ]Skip white space -- and remove non-whitespace signs only.
F.ex. Trim left 1 char  on "   ABC" will remove the 'A' instead of the first blank

 [ ]Till sign[]
F.ex. Till sign [ :] on " ABC: def" will remove all signs till the colon

Trim Right
 [ ]Skip white space
 [ ]from sign[] to end

 [ ]from pos[] to end /truncate line
F.ex. From pos[ 72] will drop all signs after column 72



- - -

Add to Lines
 [ ]at cloumn[]
F.ex. At column[10] will add text or counter in column 10

 [ ]before sign[]
 [ ]after sign[]
F.ex. After sign[=] will add text after the equal sign

- - -
Add to columns
 Columns are seperated by[ \t ], Column is represented here as %C%

F.ex.
Before:
AAAA BBBB CCCC DDDD EEEE
Command:
 [ Before first column: %C% after first and before second column %C% text after second column]
After:
Before first column: AAAA after first and before second column BBBB text after second column CCCC DDDD EEEE



Or more useful example:
One Two Three
 Columns are seperated by[\s ], Column is represented here as %C%
 [ <TR><TD> %C% </TD><TD> %C% </TD><TD> %C% </TD></TR>]
 <TR><TD> One </TD><TD> Two </TD><TD> Three </TD></TR>

- - -

Trim Linebreaks /Join lines
 [ ]every [] lines


F.ex.

i often copy text from the browser like:

* Word1 Explanation line goes here
* Word2 Explanation line goes here
* Word3 Explanation line goes here

and get splitted lines like

*
Word1
Explanation line goes here

*
Word2
Explanation line goes here

*
Word3
Explanation line goes here


So i would use
Join  [X]every [4] lines

- - -

Remove lines: []Not starting() containing() ending() with [ ]

F.ex.
Remove lines: []Not starting() containing(o) ending() with [ ToDo:]
will remove lines which have the text "ToDo:" somewhere in it.

Remove lines: [X]Not starting(O) containing() ending() with [ error]
will remove line NOT starting with "error" 

- - -

Hard Wrapping
 [ ]Split before char[]
 [ ]Split after char[]
 [ ]Keep char

F.ex.
Before:
Split, at, sign, coma, as, seperator
Command:
 [X]Split after char[ , ]
 [X]Keep char
After:
Split,
at,
sign,
coma,
as,
seperator

- - -

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: More feature for "Modify Format/Case"
« Reply #1 on: April 17, 2011, 04:31 PM »
Abterix, while you're waiting for mouser  ;)  take a look at my other post (mentioning Clippy), Re: IDEA: text-only clipboard without separate hotkey.  Don't overlook Text Monkey and Free Data Capture Tool (FDC).  I haven't tried the last one; it was originally mentioned on DC by kfitting here, Another tool....

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: More feature for "Modify Format/Case"
« Reply #2 on: April 17, 2011, 04:37 PM »
and for ultimate flexibility, dont forget you can tell chs about external scripts to run, written in perl, python, etc.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: More feature for "Modify Format/Case"
« Reply #3 on: April 18, 2011, 03:36 PM »
This Gizmo item just dropped into my inbox: Free Utility Adds A New "Text Functions" Menu To All Windows Apps.  It points to Dolphin Text Editor Menu.  Functions include:

Add to lines
These four functions skip over any leading or trailing spaces/tabs.

    * Append text
      Add text to the end of each line.
    * Prepend text
      Add text to the start of each line.

Append/prepend text prompt

    * Append number
      Add an incrementing number to the end of each line.
    * Prepend number
      Add an incrementing number to the start of each line.

Append/prepend number prompt

Sort lines
These four functions ignore any leading or trailing spaces/tabs.

    * Text ascending
      Sort lines in an ascending alphabetical order.
    * Text descending
      Sort lines in a descending alphabetical order.
    * Numeric ascending
      Sort lines in an ascending order (based on any numbers at the start of each line).
    * Numeric descending
      Sort lines in a decending order (based on any numbers at the start of each line).
    * Reverse
      Reverse the order of the selected lines.

Remove

    * Blank lines
      Remove any blank lines (including lines that only contain spaces/tabs).


These two functions skip over any leading/trailing spaces/tabs.

    * Leading characters
      Remove characters from the start of each line.
    * Trailing characters
      Remove characters from the end of each line.

Remove leading/trailing characters prompt

    * Duplicate lines
      Remove any repeated lines.
    * Leading spaces
      Trim any spaces/tabs from the start of each line.
    * Trailing spaces
      Trim any spaces/tabs from the end of each line.

Change case

    * Upper
      Change the casing to upper case.
    * Lower
      Change the casing to lower case.
    * Title
      Change the casing to title case.
    * Invert
      Change uppercase to lowercase and vise versa.

Clean

    * Convert to plain text
      Remove any hidden formatting added by Outlook, Word, etc.
    * Remove HTML tags
      Delete any text contained inside '<' and '/>'.
    * Remove BBCode tags
      Delete any text contained inside '[' and '/]'.

Other

    * Repeat text
      Repeat the selected text multiple times.

Repeat text prompt

    * Word count
      Displays how many words, lines and characters are selected.

Word count

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: More feature for "Modify Format/Case"
« Reply #4 on: April 19, 2011, 01:08 AM »
Thanks for your infos rjbull, i am sure this tools come in handy  :Thmbsup: