TED Notepad RE clone

O

omega

jsimlo said:
no problem of such setting... ;) ...anyway, any suggestions/technical
support on how to implement clickable links in plaintext richedit?? :)

Well, hold on. Wait while I delve into my vast internal library of knowledge
in the field of programming. ;) Searching.... ( My, it is clean in there!
In fact, it is Spotless! )... Ah, here we go, the output arrived.

Search All, Results:

Searched records: 0/0
Matches: 0/0
 
R

rir3760

It was a dark and stormy night when omega said:
Bob Adkins <[email protected]>: [Snip]
How about a "Trash" section in the INI file? Or even a separate
DAT file? A menu item in Tools and a hot key could delete every
character above ASCII 126 and clean up a text file in .01 Sec.!

Someone know of a commandline tool that does this function? If so,
then I'd think it could be set up for use on selected text within
TED.

Sure :)

Just use tr in the form:

Cat %filename% | tr -d "\mmm-\nnn"

Where:

%filename% is the path of the file to process
\mmm is the start of the range in (ouch!) octal numeration
\nnn is the end of the range in octal numeration

Following Bob example:

cat Test.txt | tr -d "\200-\377"

will delete all characters in the range 200-377 (decimal is 128-255)
from the file 'Test.txt'

Two places where you can get cat and tr are:

UnxTools:
<http://unxutils.sourceforge.net/>

Cygwin:
<http://www.cygwin.com/>

Regards
 
J

jsimlo

rir3760 said:
Sure :)

Just use tr in the form:

Cat %filename% | tr -d "\mmm-\nnn"

Where:

%filename% is the path of the file to process
\mmm is the start of the range in (ouch!) octal numeration
\nnn is the end of the range in octal numeration

just a note: as a filters of ted notepad, you can simply use

tr -d "\mmm-\nnn"

without cat, as tr reads stdin, and writes to stdout... ;)

.....jsimlo
 
J

jsimlo

omega said:
Well, hold on. Wait while I delve into my vast internal library of knowledge
in the field of programming. ;) Searching.... ( My, it is clean in there!
In fact, it is Spotless! )... Ah, here we go, the output arrived.

Search All, Results:

Searched records: 0/0
Matches: 0/0

i see, just in case, if anybody wants to help me (as i am a bit lazy with
those clickable links, as i am no user of them ;), i would be glad to
hear any word about aby implementation of them... ;) ...jsimlo
 
J

jsimlo

Bob Adkins said:
How about a "Trash" section in the INI file? Or even a separate DAT file? A
menu item in Tools and a hot key could delete every character above ASCII
126 and clean up a text file in .01 Sec.!

there is a meesage later in this thread about tr, which can be used as a
filter, until i figure out something... (rtfm: tr.exe -d "\mmm-\nnn") ;)

....jsimlo
 
O

omega

O

omega

Speaking of the MS richedit control...

I'm looking at a higher page in the MSDN chapter from the link I just
posted. One describing the functions with different versions of richedit
DLLs. This holds interest to me as an end-user.

http://msdn.microsoft.com/library/e...it/richeditcontrols/aboutricheditcontrols.asp

Rich Edit version DLL

1.0 Riched32.dll
2.0 Riched20.dll
3.0 Riched20.dll
4.1 Msftedit.dll

My first comment. That last there, it is new to me. I don't have it on
my system as yet. I saw Marek make reference to it in discussing Keynote
development. Other than that, have not searched for what it's about.

Second comment. Evidently this article is not well upated. On my drive
I have also versions 4x and 5x riched20.dll.

Now, the main thing I wanted to bring up. I have had incompatibilities
with certains programs being picky about which riched20 they use.

The first example is what all of us who use Wordtabs have learned. That
it wants strictly RichEdit version 2.0, and gets mad if it can only find
a higher version.

Next example. Keynote's author says he found Riched20 version 4 to be
the best.

I had problems when I had version 4 in my system directory. XTEQ,
and $FAR, for example, they both gave error messages. "Richedit Line
Insertion Errors." It seemed to involve certain higher characters,
such as the copyright symbol. As if some kind of a unicode problem,
I'd guessed, so likely Win98 specific.

I've so far had best results with version 3 in my system directory, w98.

Then I have individual copies of riched20.dll for programs with specific
needs.

For instance, two of my programs (payware), they use version 5. They
shipped with it. So I have those higher version riched20.dll files in
the directory for those programs. Same for the other programs that like
version 4.

Then, actually for FAR and XTEQ, I put a version 3 in their directory,
to cover those times when an installer overwrites the one in my system
directory, when I am asleep at the wheel.

There are certain libraries where you want only the one copy in your system.
And win98, it does not have that "side-by-side versioning" or whatever that
was, that I heard talk of for later OS. However, as to the MS richedit
control, based on my experience, it iss not problematic to have multiple
copies if this one. And it has in fact been necessary, due to the common
indivicual pickiness, that has been shown in various programs.

Perhaps other users have experience and observations about this, the
different copies of riched20.dll we must maintain.

Now, for developers. This also means they do get to choose to write for
whichever riched20.dll they prefer. Not go stricly by what that article
might suggest, eg that w98 has only v1 or v2.

Btw, have wondered, is the richedit control a redistributable? On the one
hand, I sometimes get it bundled with various installs. Yet on the other
hand, some developers act as if they're forbidden to do more than tell us
to go find a copy.
 
J

John Fitzsimons

okay, hope to have it done, a RichEdit clone of TED Notepad can be found
at http://jsimlo.sk/notepad/_re.php (and there is also a link on the
original homepage http://jsimlo.sk/notepad/)

thanx for any review.... jsimlo ;)

Thanks. Here is some feedback.

(1) It still does not give an option to install NOT as a notepad
replacement.

(2) It did open okay a 20MB+ file in '98.

(3) I could not see how to close a file and not the whole program.

(4) When opening a 705K line file I scrolled to the bottom of the
window display and instead of reading "line 705,000" it read "line
749" !

I had increased the size of the buffer before doing the above. :-(

Regards, John.

--
****************************************************
,-._|\ (A.C.F FAQ) http://clients.net2000.com.au/~johnf/faq.html
/ Oz \ John Fitzsimons - Melbourne, Australia.
\_,--.x/ http://www.vicnet.net.au/~johnf/welcome.htm
v http://clients.net2000.com.au/~johnf/
 
J

jsimlo

John Fitzsimons said:
Thanks. Here is some feedback.

(1) It still does not give an option to install NOT as a notepad
replacement.

hm, well, if you want it as a replacement, click on install.exe,
otherwise copy it to a directory of yourself, like the readme.txt
describes and modify file associations... is it not what you
requested?
(2) It did open okay a 20MB+ file in '98.

glad to hear... ;)
(3) I could not see how to close a file and not the whole program.

hm... not sure, what you mean, it is a notepad with no tabs. if you
want to 'close' a file, you can use 'New (Ctrl+N)'... or just open
another file.
(4) When opening a 705K line file I scrolled to the bottom of the
window display and instead of reading "line 705,000" it read "line
749" !

weird... ah, i see... fixed for the next release... thanx... ;)

....jsimlo
 
J

jsimlo

omega said:
jsimlo said:
i see, just in case, if anybody wants to help me (as i am a bit lazy with
those clickable links, as i am no user of them ;), i would be glad to
hear any word about aby implementation of them... ;) ...jsimlo

Beyond me, don't know if the MSDN outline helps:

An EM_AUTOURLDETECT message enables or disables automatic detection
of URLs by a rich edit control [...]

yep! thanx, that was exactly i should have been looking for...
added to the next release...

....jsimlo
 
J

jsimlo

omega said:
Speaking of the MS richedit control...

ted (re clone) calls Riched20.dll, what means 2.0 and 3.0 are intended
to be used (according to msdn :). i shall try to get worked with both
of them, but 3.0 is better in some cases, i think.

anyway, any differences/troubles found and analyzed here may be added
to the ted's maunal...
There are certain libraries where you want only the one copy in your system.
And win98, it does not have that "side-by-side versioning" or whatever that
was, that I heard talk of for later OS. However, as to the MS richedit
control, based on my experience, it iss not problematic to have multiple
copies if this one. And it has in fact been necessary, due to the common
indivicual pickiness, that has been shown in various programs.

maybe that is what is really essential when Riched20.dll has versions
incompatibile with each other... as a windows programmer i am quite
jaded of such things bill always 'wraps up'....
Btw, have wondered, is the richedit control a redistributable? On the one
hand, I sometimes get it bundled with various installs. Yet on the other
hand, some developers act as if they're forbidden to do more than tell us
to go find a copy.

maybe nobody wants to get in touch with the godfather...

and who knows if it is possible for me, to add a Riched20.dll file into
some zip file, free to download on my little page? :))))

....jsimlo
 
J

jsimlo

Bob Adkins said:
Another thing jsimlo... the main window blinks when re-sizing it. Try the
WS_CLIPCHILDREN function. It will smooth it right out.

yep, smoothed... it have done no effect to LE, but in this RE clone it
really helped... thanx...

....jsimlo
 
B

Bob Adkins

and who knows if it is possible for me, to add a Riched20.dll file into
some zip file, free to download on my little page? :))))

I'm sure I've seen Riched20 around on the Web. I think you would be OK. ;)

Bob

Remove "kins" from address to reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top