Re: [Clip] use of Unicode commands
- Hello Piotr,
>It seems that nobody made any practical use of the Unicode command asWhile I was working on NoteTab 4.82, I got many requests from people
> > Hi,
> > I just tested the unicode commands that come with the latest release
> > of NTP, they work well both ways (save, retrieve, including the Polish
> > character set), but I am curious what these commands could be used
> > for. The innards of a txt saved to Unicode look a bit like MS Word
> > doc's and indeed MS Words "retrieve text from any file" command reads
> > them perfectly well.
> > Are there any other aplications that need to read strings in unicode
> > format? I am not saying that these commands are not needed, I am just
> > curious of what the possible practical applications are.
working with SQL (a database query language). A number of these products
handle SQL scripts exclusively in UNICODE format. As a result, it was
impossible to use NoteTab for managing those SQL strings. Hence the new
support for UNICODE text in the Clip language. I'm sure there are plenty of
other uses too.
Support NoteTab by casting your vote at ...
(specify NoteTab Pro, Std, or Light)
- Hi clippers,
If you have ever tried to sort logged URLs,
such as referring sites, visitor's domain
names, etc, you know that sorting from left
to right doesn't tell you much.
Here is a nifty website log utility, that
reverses host name fields
so you can sort a list of URLs into logical
or optionally (see :OPTIONAL):
I stripped the clip of bells and wistles, since
they are site specific.
Control: Wordwrap OFF. Clip should be 41 lines,
including 1 blank line at end.
;reverse an URL for sorting by domain
;by Eb Guenther ntp@...
;--long line --
^!Info [L]Utility to reverse host name of URLs, so you can sort by primary,
then secondary domain.^%nl%^%nl%It expects a single-spaced list of URLs, 1
per line, aborts on blank line!^%nl%^%nl%You ARE working on a COPY, are you
;--end long line --
:Type_Host = type :// host.dom/path/
;if empty line, abort
^!If ^%Type_Host0% < 1 Exit
^!If ^%Type_Host0%=1 ^!SetArray %Type_Host%=type://^%Type_Host%
:OPTIONAL: remove comment for next line to allow revert to original
:Host_Path = host.dom / path /
:Host = host . dom
:Trim host from path
:Reassemble backward to [type://]dom.host/path/
^!If ^%Host0%<1 Skip_2
:OPTIONAL add path back undisturbed
:Replace selection with output
^!If ^$GetRow$>=^$GetLineCount$ End