DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: More feature for "Modify Format/Case"  (Read 6,191 times)

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
More feature for "Modify Format/Case"
« on: April 17, 2011, 08: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: (generic)
Trim excess White space
 [ ]Left  [ ]Inside [ ]Right [ ]Keep one

Trim Left
 [ ]Skip white space
 [ ]Till sign[]

Trim Right
 [ ]Skip white space
 [ ]from sign[] to end
 [ ]from pos[] to end /truncate line

Add to Lines
 [ ]at cloumn[]
 [ ]before sign[]
 [ ]after sign[]

Add to columns
 Columns are seperated by[ \t ], Column is represented as %C%
 [ Before first column: %C% after first and before second column %C% text after second column]

Allow the use of regex in the "Strip Leading/Trailing Stuff"

Trim Linebreaks /Join lines
 [ ]every [] lines

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

Hard Wrapping
 [ ]Split before char[]
 [ ]Split after char[]
 [ ]Keep char
 ()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

- - -
Greetings, Stefan.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: More feature for "Modify Format/Case"
« Reply #1 on: April 17, 2011, 09: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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: More feature for "Modify Format/Case"
« Reply #2 on: April 17, 2011, 09: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
  • ***
  • Posts: 3,217
Re: More feature for "Modify Format/Case"
« Reply #3 on: April 18, 2011, 08: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:

Quote
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

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: More feature for "Modify Format/Case"
« Reply #4 on: April 19, 2011, 06:08 AM »
Thanks for your infos rjbull, i am sure this tools come in handy  :Thmbsup:
Greetings, Stefan.

Original address: https://www.donationcoder.com/forum/index.php?topic=26449.0