ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE. Software > Clipboard Help+Spell

Request: Modify Format/Case, order of rules, etc.

(1/2) > >>

Hi Mouser,  I've been using the Modify Format/Case features of CHS quite a bit lately.   
I'm not sure if it is something you are working on lately; but here are some feature ideas for your list   :D

I've found that it would be nice if I could dictate which rules get applied first.  For example in one of my presets I might like to "Add Stuff" to the beginning and ending of each line before I "Find and Replace" content; but other times I might want to do it after.  I've been trying to think about what the GUI for this would look like....   
[will do an "edit" to this post later]

it's an issue i have considered...

an interface to do such things would be pretty clear, it would involve creating a LIST of transformations, where the user can add, re-arrange, delete, transformation items.  such processes can be seen in some file renamers and probably some other text manipulators.

it's something i considered.. the problem is that while such an approach is much more flexible and comprehensive, and indeed extensible, there is a real price to be paid in terms of ease of use for quick things.  so in the end i chose this approach, and left more complicated manipulations to external scripts that can be triggered.

Actually I just found this...


Muah ha ha ha <mad scientist laughter>

As you might guess, I took the .preset.format file from C:\Program Files\Clipboard Help+Spell\MyConfigDir\PresetFormats and changed the extension to ".txt" in order to open and view the content.

But I'm guessing that if I try to rearrange these items, then change back to .preset.format, I'll probably corrupt the file -- yes?

EDIT:  Actually, I see that the script tool does allow you to activate it "before" or "after" other formatting, so that's cool.   :D

Question: What script engines have folks been calling with this tool?  Mostly AutoHotkey .exe files, I would imagine.  

Thot: The above "hacked" file contents are more user-friendly than an external script, in some respects, because the syntax is already there...  It's sortof like doing VBA Macros in Word.  If I had to make the VBA module from scratch, I honestly wouldn't know where to start.  So I always "record" a macro to get the bare bones, then edit the code that Word provides....

EDIT 2:  Actually I opened a copy of the C:\Program Files\Clipboard Help+Spell\Tools\ file, and it does appear to be a text file. 
What cryptic alien language is this though?

# check and get commandline args
($#ARGV >=1) || die "ERROR: first two arguments should be input path and output path (place each one in double quotes)\n";

# open files
open(IN,$infilepath) || die "cannot open input file";
open(OUT,">".$outfilepath) || die "cannot open output file";

# write out modified text
   # remove newline which is unpredictable
   # reverse the line
   $outline = reverse($_);
   # now write it out with predictable newline at end
   print OUT $outline . "\n";

# close files

Also, the ".pl" files don't show up in the script tool file picker dialog....

.pl is perl :)

Unwitting humour? I liked this exchange - a LOL moment for me:
...What cryptic alien language is this though?
-kunkel321 (June 18, 2015, 02:56 PM)
--- End quote ---

.pl is perl :)
-mouser (June 18, 2015, 05:32 PM)
--- End quote ---

@kunkel321's question was spot-on:
PERL...In 1998, it was also referred to as the "duct tape that holds the Internet together", in reference to both its ubiquitous use as a glue language and its perceived inelegance. - Wikipedia.

--- End quote ---

But yet there are those amongst us who work magic by speaking a secret alien language, unknown to uninitiated, later generations.


[0] Message Index

[#] Next page

Go to full version