PragtTextUtil PTU freeware utility

PragtTextUtil freeware text utility program As a Windows software developer for many years I had a directory with all small utility programs including many Unix utilities that I put on every system that I had to work on. This worked fine for many years until I switched to Windows 7 and all these command line tools stopped working. I had to make a choice to recompile all these programs for Windows 7 or collect all the features of these small utility programs and merge them into one portable Windows application. I chose the development of the portable Windows application PragtTextUtil (PTU) that I hereby offer as a freeware application, for everyone that does development or maintenance on Windows based computers. Regards, Hein Pragt.

What kind of application is PragtTextUtil

PragtTextUtil is not an text editor although the basic functions to edit text are present in the program. The program aims to perform operations on text such as converting to upper or lowercase letters or removing HTML tags and converting them to neat paragraphs. But also operations as trim, uniq, sort and filtering are present in this application and also a complex operation to generate a sorted word frequency overview to be able to determine, for example, good keywords for a web page. For example, you can filter from a log file all lines that contain a certain word or not a contain a certain word. Also a nice option is search and replace with the ability to use CTRL characters in the search but also the replace text.

As input, the program of course can read all forms of plain text files, but also files as hex/ascii dump, html pages, web pages via an HTTP request (simple wget) to get the exact response of an internet server. But you can also load the contents of your directory into the text editor to for example, create a sorted list of all your music. (Under Windows, it's still not possible to cut and paste the list from the explorer). You can also use the output of a command line read command directly into the text editor.

With the function to request a web page you can load the HTML of this page into the text editor after which you can easily remove all HTML tags and scripting and then convert the bare text to neat paragraphs that you can further edit in your favorite word processor. This allows you, for example, to also retrieve texts from sites that try to block the cutting and copying of the text.


Example of search and replace with control characters

In the following example, I'll show you how to convert text with a number of lines to an html ordered list by means of a few simple actions and how to sort it and easy to paste into your web page.

We start with a few lines of text that we cut from somewhere.

replace

Now we replace all the ^m^j (en of line characters) with </li>^m^j<li>

replace 2

The result is that around the lines there are neatly open and closing tags.

* You only need to correct the first and the last line.

replace 3

Now we can sort this list.

Replace 4

The result is a neat html ordered list that you can paste into your web page.

replace end of lines by html tags


Example of word statistics.

To determine the right keywords for your Internet page, it is important to know how often a word appears on the page. With a few simple actions, this program allows you to create a create a sorted list of all words and the frequency with which they appear in the text.

First we past the HTML code of the web page in PragtTextUtil.

word statistics 1

Then we remove all the HTML tags from the page.

word statistics 2

After that we chose word stattics.

word statistics 3

Now you have an overview of all words with the frequency within the text of the page.

word statistics 4


Example of copying text from a secure internet page.

It is extremely annoying when you find a nice piece of text for your work after a long search or when you want to quote a piece of text from an Internet page in your thesis and the site has cutting and pasting blocked. This security is easy to bypass with the PragtTextUtil program and you can even convert the text into "neat" paragraphs.

Go to the browser option to view the source of the Internet page.

read internet page

In this window, cut the text with all HTML formatting out of the window.

copy HTML formatted text

Paste this into PragtTextUtil and choose the option to remove the HTML code.

Remove HTML formatting

After that, choose the option to create "neat" paragraphs.

Cheate neat paragraphes

You have the text of the Internet page as "neat" paragraphs, which you can paste into your document.

paste into your own docyment


Creating a sorted list of all your MP3 files.

Sometimes you want to make a list or a table of contents from your hard drive, for example, a list of all your MP3 files to send to an acquaintance in the form of a text file. Unfortunately, from MS-Windows explorer you cannot cut and paste. With the help of PragtTextUtil this is very easy.

Open PragtTextUtil and choose the option to create a directory listing and select the correct directory.

maker a list of all files

When the list is read into the editor window, you can easily sort it.

sort the list pragttextutil-1.07.zip

After that, you will have a neatly sorted list of all your MP3 files that you can cut and paste to any document or email.

past the list into yout own document or email

Disclaimer

Although I also use the program myself and improve it regularly, I am open to suggestions for improvement and possibly new features. The program is written in Win32 C using Microsoft Visual Studio, it is small and compact and completely portable and consists of only one executable file. When you want to share any comments about this program you can email to email HeinPragt



Download

Please read the disclaimer before using this program!

Download. (Version 1.08 2021)

Previous releases

Download. (Version 1.07 2018)

Download. (Version 1.04 Jul 2011)

Download. (Version 1.03 Jul 2011)

Download. (Version 1.02 Jun 2011)

Menu in version 1.07

File
   New
   Open as text
   Open as Unicode text
   Open as text (read first 50 lines)
   Open as text (read last 50 lines)
   Open and convert to hex/ascii
   Open from HTTP
   Open and pipe command line
   Save text
   Save text As
   Read directory listing (date/size/name)
   Read directory listing (names)
   Search trough files
   Compare files
   Exit

Edit
   Undo
   Select All
   Copy to clipboard
   Cut to clipboard
   Paste from clipboard
   Delete selection
   Search text
   Replace text
   Goto line

Operations
   ToUpper selection
   ToLower selection
   Smart ToLower to paragraphs
   Whitespace to single space
   Whitespace to single space (save linebreaks)
   ToWordList (whitespace to inebreaks)
   Count lines, words, characters
   Words statistics (whole document)

Sort
   Sort selection Asc
   Sort selection Desc
   Sort selection Asc (Ignore case)
   Sort selection Desc (Ignore case)

Filter
   Strip html (add linebreaks)
   Format html
   Trim leading and trailing spaces
   Uniq the selection
   Uniq the selection with count
   Filter the selection (delete all except)
   Remove in the selection (delete all that contain)
   UTF-8 to iso-8859-1
   UTF-8 to plain ascii (remove diacrites)
   \n (Unix) to \n\r (Dos/Windows)

Help
   About
   

Last update: 22-10-2021


Disclaimer: All pages on this Web site are copyrighted by Hein Pragt, unless otherwise noted. I strive for accuracy but cannot be held responsible for any errors in the content. For questions about the content of this site or persmission to copy you can contact me at: (email: heinpragt@outlook.com). Heinpragt.com is registered under KvK number: 73839426.