Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ntb-clips · The NoteTab Clips List

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 9790 - 9819 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#9790 From: "David" <dgm2003@...>
Date: Sun Feb 2, 2003 7:56 am
Subject: drag lfrom quicklist
david_99_au
Send Email Send Email
 
Hi
When you drag a html file from the quicklist into another html file I always
get a semi-colon in front any way around this eg.
  ;<A HREF="addingkoantosite1.htm">AddingKoantoSite1</A>

Thankyou    dave

#9791 From: Jody <av1611@...>
Date: Mon Feb 3, 2003 8:22 pm
Subject: Re: [Clip] drag lfrom quicklist
notetabber
Send Email Send Email
 
Hi David,

Look in Options | Internet and see if it is in front of the field for the <a
href...

>When you drag a html file from the quicklist into another html
>file I always get a semi-colon in front any way around this eg.
>;<A HREF="addingkoantosite1.htm">AddingKoantoSite1</A>


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips


[Non-text portions of this message have been removed]

#9792 From: Jody <av1611@...>
Date: Tue Feb 4, 2003 1:10 am
Subject: Re: [Clip] Re: clip for searchdisk
notetabber
Send Email Send Email
 
Hi Sheri, Harvey and Eric,

I'm sorry about not sending a reply in earlier.  I have found the
same thing in times past about the search disk features via a
Clip and found out the same results as you all.  Perhaps Eric
will find some time to send in a reply about setting the features
via a Clip for Search Disk. -jody

>> I'm trying to alter both, the SearchList_x and ReplaceList_x,
>> of the SearchFiles section of  NotePro.ini.  I thought it would
>> be handy to set both sides of the Search/Replace Disk function
>> before opening SearchDisk, and, I assumed, that would be fairly
>> easy.
>>
>> Well, it isn't, so I ask again, of Jody and Eric, are certain
>> sections of NotePro.ini protected to inhibit user interference
>> from within the program?
>
>Again it works for me, so I don't see how it could be a Notetab
>issue, unless perhaps you have "Stay on Top" checked in Notetab's
>control menu. That sometimes causes different behavior in clips
>although I don't know that to be true in this case. Without
>showing the specific clips you tried to use you make it hard to
>tell what could be wrong.
>
>H="Inject Search Disk Replace Text"
>^!ProgIniSave


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips


[Non-text portions of this message have been removed]

#9793 From: hsavage <hsavage@...>
Date: Tue Feb 4, 2003 1:25 am
Subject: Re: [Clip] Re: clip for searchdisk
hrs62930
Send Email Send Email
 
Jody wrote:

>Hi Sheri, Harvey and Eric,
>
>I'm sorry about not sending a reply in earlier.  I have found the
>same thing in times past about the search disk features via a
>Clip and found out the same results as you all.  Perhaps Eric
>will find some time to send in a reply about setting the features
>via a Clip for Search Disk. -jody
>
>
>
>>>I'm trying to alter both, the SearchList_x and ReplaceList_x,
>>>of the SearchFiles section of  NotePro.ini.
>>>
>Happy Clip'n!
>Jody
>
>
>
Jody, et al,

In the case of my clip, as I said, I kind of stumbled onto the answer
via the process of trying many combinations.  It's all a matter of
getting the right sequence of commands, namely,  ^!ProgIniLoad and
^!ProgIniSave in the correct order and in the correct place.

With the current clip I built, I can immediately see the end result
saved in Notepro.ini.  I can program only one pair of data or I can
program 15 pairs of data, and see each result as it's written to the INI
file.

hrs

#9794 From: Jody <av1611@...>
Date: Tue Feb 4, 2003 1:36 am
Subject: Re: [Clip] Re: clip for searchdisk
notetabber
Send Email Send Email
 
Hi Harvey,

>In the case of my clip, as I said, I kind of stumbled onto the
>answer via the process of trying many combinations.  It's all a
>matter of getting the right sequence of commands, namely,
>^!ProgIniLoad and ^!ProgIniSave in the correct order and in the
>correct place.

^!ProgIniLoad ^!ProgIniSave have always been a pain for me.  I
still end up doing it on a do it till it works basis it seems,
but the example in the SampleCode Library helps me.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips


[Non-text portions of this message have been removed]

#9795 From: Jason Waugh <jwaugh26@...>
Date: Tue Feb 4, 2003 2:02 am
Subject: Re: ASCII number of character
apsyrtes
Send Email Send Email
 
Hi Peter,

PS> Having some sort of viewer to see the ASCII number of invisible characters
would be handy for troubleshooting text files. A reference for ASCII characters
would help even if it is just more info
PS> in the help files. (I suppose I could create some sort of Clip)


Make a new clip, and with one line:

^!Info ^$CharToDec(^$GetSelection$)$


You can now get the ASCII value of any character by selecting it and
running the clip.


--
Regards,
  Jason Waugh

#9796 From: Ralf <listacc@...>
Date: Wed Feb 5, 2003 9:14 pm
Subject: [Clip] Deleting all empty lines
listacc
Send Email Send Email
 
Hi,

I'd like to delete all empty lines in a document, but I
can't get it done. What I tried so far is this:

a) I used the ^!Replace command in regex mode and replaced "\n\n"
with "\n". What happens is that *all* lines in the document are
deleted (*hu*?).

b) I tested the content of the line. If it matches "" (nothing) then
I do a ^!DeleteLine and move on with ^!Jump +1. But this only works
for a single empty line so consecutive empty lines can only be
caught if I test again on content and skip the delete-command if the
line is not empty.

Phew. This again only works in a loop and since NoteTab doesn't know
looping (except the label-jumping) I'm lost in the mass of commands
and functions.

Could someone give me a hint how I can delete all empty lines in a
document without writing a huge script? I bet there's an easier way
to achieve what I am trying to do.

Thanks
Ralf

#9797 From: "Piotr Bienkowski" <syntax@...>
Date: Wed Feb 5, 2003 9:23 pm
Subject: Re: [Clip] Deleting all empty lines
syntaxpb
Send Email Send Email
 
On 5 Feb 2003 at 22:14, Ralf wrote:

> Hi,
>
> I'd like to delete all empty lines in a document, but I
> can't get it done. What I tried so far is this:

Hi,

There's a menu command to do it:

Modify / Lines / Compress

HTH

Piotr

#9798 From: Jody <av1611@...>
Date: Wed Feb 5, 2003 10:55 pm
Subject: Re: [Clip] Deleting all empty lines
notetabber
Send Email Send Email
 
Hi Ralf,

>I'd like to delete all empty lines in a document,

The ^p token is used for CR/LF, a new line, so two of them
look for two lines with no data in between.

H=Remove Empty Lines
^!Replace "^p^p" >> "^p" WAS
^!IfError Next else Skip_-1


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips


[Non-text portions of this message have been removed]

#9799 From: "Sheri <silvermoonwoman@...>" <silvermoonwoman@...>
Date: Thu Feb 6, 2003 4:36 am
Subject: Dialog for processing Perl RegExp Replacements on open documents
silvermoonwo...
Send Email Send Email
 
Well, I did it.

I hope some of you will try it. In addition to having Perl installed,
you will probably need to install at least one package/module (Config-
Inifiles). Installation instructions are included.

http://groups.yahoo.com/group/ntb-clips/files/PerlReplDialog.zip

Regards,
Sheri

#9800 From: "Larry Hamilton" <lmh@...>
Date: Thu Feb 6, 2003 5:23 am
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
lm_hamilton
Send Email Send Email
 
Sheri,

Very nice! I dug out my SAMS, "Teach Yourself Perl in 24 Hours" and have
been reviewing it in light of the recent Perl discussions. The Perltk really
intrigued me. I have not had time to do anything of my own yet. We just
moved a week ago Saturday, and I just got over the flu. Too many boxes to
worry about, etc. My family insists on using the items packed in all these
boxes, oh well!

One suggestion, when the Global option is checked is is supposed to do all
documents? I would hesitate to default that to on, just in case.

Larry

silvermoonwoman@... wrote:
> Well, I did it.
>
> I hope some of you will try it. In addition to having Perl installed,
> you will probably need to install at least one package/module (Config-
> Inifiles). Installation instructions are included.
>
> http://groups.yahoo.com/group/ntb-clips/files/PerlReplDialog.zip
>
> Regards,
> Sheri
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#9801 From: "Alan C." <acumming@...>
Date: Thu Feb 6, 2003 8:30 am
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
acummingsus
Send Email Send Email
 
Hi Sheri,

Interesting idea to: from Perl, specifically from your sub routine named
SaveVariables, call (via commandline) the NoteTab clip that then runs the perl
on the current document.

It all seems to work pretty well.  Performs rather quick on a not too large doc.

So, you wrote a software application that integrates with NoteTab. 
Congratulations!  There's power to be had with Perl.

You're over my head with the Perl stuff at this point.  I'm just begin to get
into array and hash let alone your reference, object oriented, namespaces,
scalability that Perl has, and whatever else

Does it write to disk/ini each time the replace button is clicked?  Or does it
only write it if the value(s) have changed from the last button click?

Mostly just merely comments follow--no reply needed, ignore portions or all of
them if you choose.

A lot of if elseif if if in a row in that one sub. dunno, but my teacher might
recommend a switching or emulated case statement instead (not that it needs be
changed--it works good and there's more than one way to do it--teach's reason
probly or might be the self documenting code sort of thing--ease 4 a different
programmer to step right into, access your code

Your code works very good. A bit hard to follow though (what does it do along
the way) without pseudo code

It's rather efficient with my system resources, that's cool, very cool!

Took me a moment to catch on to click the taskbar minimizes the dialog

Probably capability of, in addition to works on current doc, a replace in files
feature and a word boundary feature.  While I'm at it: a perl/tk visual
displayer feature so as to: in a tk widget, display the text and searched for
words, the searched for words show up highlighted in color (bright yellow)--the
Vim or Gvim editor has such a feature.

I see you made your own dialog instead of using tk::searchdialog module.

In addition to Config::IniFiles module that I'd previously installed, I also
needed to install Win32::API module.  Win 2k latest build of ActiveState Perl
5.61 (not yet the Perl 5.8 -- I need more round toits every day).  dunno if W2k
any different default module(s) than your OS.

I wish I had more time.  I want to learn Perl/Tk when I the time.  My Linux/Unix
class going well--after month or two gets into basics of C programming and some
Perl

I can only handle so much learning at once.  If I attempt too much all at once I
get fragmented.

--
Alan.

>Well, I did it.
>
>I hope some of you will try it. In addition to having Perl installed,
>you will probably need to install at least one package/module (Config-
>Inifiles). Installation instructions are included.
>
>http://groups.yahoo.com/group/ntb-clips/files/PerlReplDialog.zip
>
>Regards,
>Sheri

#9802 From: "Peter G Henry" <lungtroll@...>
Date: Thu Feb 6, 2003 11:45 am
Subject: RE: [Clip] Dialog for processing Perl RegExp Replacements on open documents
lungtroll
Send Email Send Email
 
Hi Sheri
Excellant and thankyou

kindest regards
Peter
   -----Original Message-----
   From: Sheri <silvermoonwoman@...>
[mailto:silvermoonwoman@...]
   Sent: 06 February 2003 04:36
   To: ntb-clips@yahoogroups.com
   Subject: [Clip] Dialog for processing Perl RegExp Replacements on open
documents


   Well, I did it.

   I hope some of you will try it. In addition to having Perl installed,
   you will probably need to install at least one package/module (Config-
   Inifiles). Installation instructions are included.

   http://groups.yahoo.com/group/ntb-clips/files/PerlReplDialog.zip

   Regards,
   Sheri


   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003


[Non-text portions of this message have been removed]

#9803 From: Sheri <silvermoonwoman@...>
Date: Thu Feb 6, 2003 12:09 pm
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
silvermoonwo...
Send Email Send Email
 
At 12:23 AM 2/6/03 -0500, Larry wrote:
>Very nice! I dug out my SAMS, "Teach Yourself Perl in 24 Hours" and have
>been reviewing it in light of the recent Perl discussions. The Perltk really
>intrigued me. I have not had time to do anything of my own yet. We just
>moved a week ago Saturday, and I just got over the flu. Too many boxes to
>worry about, etc. My family insists on using the items packed in all these
>boxes, oh well!

Hi Larry,

I definitely empathize, I'm almost over something that has lasted nearly two
weeks. Perl in "24 hours"? LOL. SAMS also has a 3 week teaching book.

>One suggestion, when the Global option is checked is is supposed to do all
>documents? I would hesitate to default that to on, just in case.

The global option is just the regexp global modifier. If unchecked, only the
first matched text within each unit is replaced. Might want to play with the
different settings to learn how they work. Make a document that looks like this:

aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa


Now try replacing "a" with "z". Without global checked, only the first "a" per
line (using "Lines") will be changed. Using Paragraphs, only the first per
paragraph. Using Entire File, only the first in the file. But with global
checked, all "a"'s should change to "z"'s regardless of Unit.

At this point the process only operates on the current document, so have no
fear.

Regards,
Sheri

#9804 From: Sheri <silvermoonwoman@...>
Date: Thu Feb 6, 2003 1:38 pm
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
silvermoonwo...
Send Email Send Email
 
Hi Alan,

At 12:30 AM 2/6/03 -0800, Alan wrote:
>So, you wrote a software application that integrates with NoteTab. 
Congratulations!  There's power to be had with Perl.

Hahaha. <grinning ear to ear>


>You're over my head with the Perl stuff at this point.  I'm just begin to get
into array and hash let alone your reference, object oriented, namespaces,
scalability that Perl has, and whatever else

You always say that. I'm not over your head, I just persisted until it worked.
The subs are pretty similar, reading from or writing to the ini file. Some
things, like getting it to run on top and use an icon, came from searching
Google groups.


>Does it write to disk/ini each time the replace button is clicked?  Or does it
only write it if the value(s) have changed from the last button click?

Yes, it writes it every time. The trigger event is clicking the Replace button.
I'm not sure how I would detect if there has actually been a change in values. I
guess if it were worthwhile, I could retrieve the ini values and compare them
before deciding to update. But then I would have to declare a whole 'nother
bunch of variables. It could probably be done efficiently using arrays, but as
you've probably noticed, I've not tried to economize on lines lol.

>Mostly just merely comments follow--no reply needed, ignore portions or all of
them if you choose.

Actually I appreciate your observations.


>A lot of if elseif if if in a row in that one sub. dunno, but my teacher might
recommend a switching or emulated case statement instead (not that it needs be
changed--it works good and there's more than one way to do it--teach's reason
probly or might be the self documenting code sort of thing--ease 4 a different
programmer to step right into, access your code

I'm painfully aware there were better ways to structure things if I really knew
what I was doing. hehehe. I think use of if - elsif (doesn't work spelled with
an e) is the tip of the iceberg. Hey at least I didn't use Goto's <g>. That
would have been my personal preference <G>, more like clipcode.


>Your code works very good. A bit hard to follow though (what does it do along
the way) without pseudo code
>
>It's rather efficient with my system resources, that's cool, very cool!

This is good to know. I never had a problem with resources while using it, but I
didn't run any utilities to check resources either. Sometimes the TK dialog
didn't pop up as fast as I'd like, but probably only the first time accessed in
a session.

>Took me a moment to catch on to click the taskbar minimizes the dialog

Do you mean, to keep it running constantly, or just to get it out of the way?
Also has a Windows style minimize button. Neat, when you alt


>Probably capability of, in addition to works on current doc, a replace in files
feature and a word boundary feature.  While I'm at it: a perl/tk visual
displayer feature so as to: in a tk widget, display the text and searched for
words, the searched for words show up highlighted in color (bright yellow)--the
Vim or Gvim editor has such a feature.

Replacing in all open files would be a simple matter. Bring up my own editor
window highlighting changes? Sigh. Makes me tired just thinking about trying to
figure that out. BTW, when changing in a Notetab outline, "Entire File" is only
the current topic.


>I see you made your own dialog instead of using tk::searchdialog module.

Yes, and here's a little secret: I used this guy's http://www.alex-adam.de/
visual tool to lay out the widgets. TK::Searchdialog is uses a dialog widget.
Dialog widgets can't be packed into a Main Window. They need to be called from
some other menu or button, which didn't suit our purpose.

>In addition to Config::IniFiles module that I'd previously installed, I also
needed to install Win32::API module.  Win 2k latest build of ActiveState Perl
5.61 (not yet the Perl 5.8 -- I need more round toits every day).  dunno if W2k
any different default module(s) than your OS.

Hmmn. I hope everyone who needs it knows now how to get it. Use of the API is
what allows the "dialog" to run on-top. Folks, run PPM search API to see the
exact name of the installable module. Then PPM Install Win32-API

BTW, I discovered an alternate Perl Gui besides TK called Win32::GUI. Its
controls are more Windows-style. I might have discarded TK and tried to use it,
except that I couldn't troubleshoot some textual problems with it. For example,
I put made a text label, that had the letter "p" in it and couldn't see the
descending part of the "p".


>I wish I had more time.  I want to learn Perl/Tk when I the time.  My
Linux/Unix class going well--after month or two gets into basics of C
programming and some Perl
>
>I can only handle so much learning at once.  If I attempt too much all at once
I get fragmented.

I stumbled over many parts of my TK and (normal) Perl. I didn't think I'd ever
figure out how to tell what was selected in the listboxes. I understand Perl
"references" in theory but find it very difficult to put them into practice. I
also had a lot of trouble with the static perl script. Variables are fine for
Search and Replace texts, but not for Regexp modifiers (g - global and i - case
insensitive). Had to use Eval, check it out.

I'm glad its all finally working. I don't like to give up, so I just kept
plugging away at it, and have ignored more important things I need to deal with.
When I get ambitious again, I may try to allow for naming and saving searches
through the dialog, and loading a named search. I would do it with different
section names in the ini. I can see it now, a scrollable combo box showing the
section names from the ini ...

I never did figure out how to put a scrollbar under the entry boxes. I'm
thankful you can scroll by dragging in the fields.

Regards,
Sheri

#9805 From: Sheri <silvermoonwoman@...>
Date: Thu Feb 6, 2003 2:01 pm
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
silvermoonwo...
Send Email Send Email
 
At 08:38 AM 2/6/03 -0500, I wrote:
>Neat, when you alt


Sorry, got distracted and didn't finish the sentence. Meant to say, when you
Alt+Tab you get to see my icon instead of the TK default icon.

Sheri

#9806 From: "Alan C." <acumming@...>
Date: Thu Feb 6, 2003 10:50 pm
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
acummingsus
Send Email Send Email
 
Hi Sheri,

Thank you! for sharing your accomplishment.  It's useful and it'll also help my
understanding as I (slowly) learn higher levels of Perl.

>Hey at least I didn't use Goto's <g>. That would have been my personal
preference <G>, more like clipcode.

Likely you already know that Perl will let you do it that way.

I think that some languages are meant for one kind of structuring (goto) while
other languages are meant for structured programming (without using goto)

Yes it still somewhat (to say the least) confuses me to think structured
programming (loop is a native thing to a block of code) seems to help to think
in levels ie top level and further down level(s) whereby only if certain
conditions are met does processing occur in the further down level(s) then it
comes back up and out of there ultimately gravitating upward and outward (but
down a level(s) again only if needed to do so) and upward and outward towards
the end of script where no more code exists. (almost not unlike a maze in
certain ways) when the script is running it seeks its way out to the end but
it's forced to route and process along the way

>>Took me a moment to catch on to click the taskbar minimizes the dialog
>
>Do you mean, to keep it running constantly, or just to get it out of the way?

The latter.  I run 800 X 600 screen resolution I found the dialog a bit large. 
So, to see Ntab text, I minimized the dialog.  I might prefer it to not stay on
top

> Also has a Windows style minimize button. Neat, when you alt

As you said, alt + tab.  I like the icon!  Cool icon.

>Replacing in all open files would be a simple matter. Bring up my own editor
window highlighting changes? Sigh. Makes me tired just thinking about trying to
figure that out.

I didn't mean to wish it on you.  What I meant was that if I were to bet on it
as to whether or not Perl/Tk has such ability, I would place my bet that yes it
does and to do so without relying on any certain editor.  I see highlighted or
set off by being colored found words as useful--can visual scroll to see what,
how much and where they occur in a doc.  But I mostly forgot how to use Gvim and
certainly haven't used its search highight for long long time--but it can yellow
color each and every found word in a doc which I think be useful

My query readout hadn't looked like yours which is the reason I installed
win32::api module

But i just query net::smtp turned up nothing so as to lead me believe I'd need
install it.  But then I did perldoc net/smtp and voilla up comes the doc which
means it's installed.  And I looked in site\lib and there it is in the net
folder, SMTP.pm

I still don't know how to determine all (Perl) packages currently installed. 
Maybe i do--that is, just search my hard drive for *.pm  since I guess a .pm is
a Perl Module or at least it's a file for a Perl module.

Ok, i see a bit more on how your latest works.  I see the RunStaticPerlRepl.pl
clip runs the last or former instance of what I had replaced.  And that it pulls
values from the ini then runs it on current doc.

(If a person didn't need the visual tk dialog to show) I guess if a person
wanted to they could create a Ntab clip wizard that would set their search items
and options, save those to ini then have the RunStaticPerlRepl.pl clip run

>Variables are fine for Search and Replace texts, but not for Regexp modifiers
(g - global and i - case insensitive). Had to use Eval, check it out.

Hmm, I didn't know that.  So, a scalar variable works in the match or
substitution operator but not outside of it such as you say, in the "option".  I
saw your eval.  perldoc -f eval   i guess it sort of forces the processing to
happen and can trap error as well- the doc on it be deeper than I currently had
time for.

>you can scroll by dragging in the fields.

I got lost there on that one.

--
Regards, Alan.

#9807 From: "Larry Hamilton" <lmh@...>
Date: Fri Feb 7, 2003 12:27 am
Subject: Re: [Clip] Dialog for processing Perl RegExp Replacements on open documents
lm_hamilton
Send Email Send Email
 
Sheri wrote:
> Hi Larry,
>
> I definitely empathize, I'm almost over something that has lasted nearly
> two weeks. Perl in "24 hours"? LOL. SAMS also has a 3 week teaching book.

Yeah, I know.

>> One suggestion, when the Global option is checked is is supposed to do
>> all documents? I would hesitate to default that to on, just in case.
>
> The global option is just the regexp global modifier. If unchecked, only
> the first matched text within each unit is replaced. Might want to play
> with the different settings to learn how they work. Make a document that
> looks like this:

</snip>

> At this point the process only operates on the current document, so have
> no fear.

OK got it.

good stuff!

Larry

#9808 From: "rdeckard1ca <rdeckard_@...>" <rdeckard_@...>
Date: Sat Feb 8, 2003 12:18 am
Subject: Selectively strip HTML tags
rdeckard1ca
Send Email Send Email
 
I'm sure that this script has already been done by someone and I don't want to
re-invent the wheel. I want to be able to strip out images and/ or tables from
web pages but otherwise leave text formatting intact.
Can somebody point me in the right direction?

#9809 From: "John Zeman <john041650@...>" <john041650@...>
Date: Sat Feb 8, 2003 2:28 am
Subject: Re: Selectively strip HTML tags
john041650
Send Email Send Email
 
You're more sure than I am rdeckard1! LOL

I strip tags all the time and for me it's either everything or nothing..

I'm not saying what you want to do can't be done, I'm just saying it's not a
request for a clip I've ever seen before...

John


--- In ntb-clips@yahoogroups.com, "rdeckard1ca <rdeckard_@e...>"
<rdeckard_@e...> wrote:
> I'm sure that this script has already been done by someone and I don't want to
re-invent the wheel. I want to be able to strip out images and/ or tables from
web pages but otherwise leave text formatting intact.
> Can somebody point me in the right direction?

#9810 From: "Michael Gerholdt" <keywordz@...>
Date: Sat Feb 8, 2003 3:39 am
Subject: Re: [Clip] Re: Selectively strip HTML tags
keywordz@...
Send Email Send Email
 
You can use this:

H="tag buster"
^!Replace "</*^?[What tag?=_FONT|I][^>]*>" >> "^?[Replace with?=]" IRWA

Leave the "replace with" part blank and it's gonesville for the chosen tag.

You can add more tags into the list but it doesn't matter since you can also
enter any tag in the text box.

This clip takes out both opening and closing tags, regardless of what
name/value pairs are present in the opening tag.

The same line works for both opening and closing tags, so will work for
so-called "empty" elements such as images as well.

Mike


> You're more sure than I am rdeckard1! LOL
>
> I strip tags all the time and for me it's either everything or nothing..
>
> I'm not saying what you want to do can't be done, I'm just saying it's not
a request for a clip I've ever seen before...
>
> John
>
>
> > I'm sure that this script has already been done by someone and I don't
want to re-invent the wheel. I want to be able to strip out images and/ or
tables from web pages but otherwise leave text formatting intact.
> > Can somebody point me in the right direction?

#9811 From: "David" <dgm2003@...>
Date: Sun Feb 9, 2003 2:05 am
Subject: Edit ini
david_99_au
Send Email Send Email
 
Hi
If I make a mistake in the quicklist say d:\html\midi\*.clb or wish to
remove entries from the quicklist the only way is to edit the ini , the only
problem is the ini does not update tilll you close nts I have tried the
clips below partial success but I still can not udate the [directory list]
in the ini ,What am I missing ???
H="NTSIni Edit"
^!Open ^$GetAppPath$Notetab.ini
^!find "[DirectoryList]" S
^!SET %ROW%=^$GetRowStart$
^!DELAY 1
^!SetView ^%ROW%:1

H="NTS.Ini Save"
^!save as !Notetab.ini

H="NTS Load"
^!ProgIniLoad Notetab.ini

     THANKYOU    DAVE

#9812 From: "Larry Hamilton" <lmh@...>
Date: Sun Feb 9, 2003 3:03 am
Subject: Re: [Clip] Edit ini
lm_hamilton
Send Email Send Email
 
As I understand it, it only reads the ini when the program is first started.
I am not aware of a way to make NoteTab read the ini without a re-start.

I believe some have gotten around this with clips that start a new instance
of NoteTab and close the current instance.

Larry

David wrote:
> Hi
> If I make a mistake in the quicklist say d:\html\midi\*.clb or wish to
> remove entries from the quicklist the only way is to edit the ini , the
> only problem is the ini does not update tilll you close nts I have tried
> the clips below partial success but I still can not udate the [directory
> list] in the ini ,What am I missing ???

#9813 From: "Alan C." <acumming@...>
Date: Sun Feb 9, 2003 6:19 am
Subject: Re: [Clip] Edit ini
acummingsus
Send Email Send Email
 
Hi Larry, Dave,

>As I understand it, it only reads the ini when the program is first started.
>I am not aware of a way to make NoteTab read the ini without a re-start.

I think ^!ProgIniLoad is supposed  to force a current read of the ini except for
the autoload section.  help > help on clip programming > index tab >
^!ProgIniLoad

But I can't get it to work with DirectoryList section of ini.  Just a week or
two ago, Sheri had it working very nicely with the SearchFiles:ReplaceList_1 
section or portion of the ini

^!SetIniFile
^!ProgIniSave
^!SaveValue DirectoryList:Specs_3=D:\files\ntbdocs\*.txt;*.otl
^!ProgIniLoad

(unless DirectoryList is excepted perhaps xtra colon in filepath won't accept or
something) That above code should accordingly change and save my Specs_3 line
that's immediately below this paragraph and then force a read of the new disk
value.  But it's not doing it.

[DirectoryList]
SpecsCount=4
Specs_1="d:\programs\notetab pro\documents\*.txt"
Specs_2="files_of_mine"
Specs_3="d:\files\*.*"
Specs_4="d:\files\ntbdocs\*.*"

BTW on my Win 2k machine, Specs_2="files_of_mine" shows all text (*.txt) files
that are on my desktop.  Surprise to me how about that one!  Did I discover a
hidden Easter Egg so to speak?

--
Later.  Alan.

#9814 From: hsavage <hsavage@...>
Date: Sun Feb 9, 2003 4:11 pm
Subject: Re: [Clip] Edit ini
hrs62930
Send Email Send Email
 
Larry Hamilton wrote:

>As I understand it, it only reads the ini when the program is first started.
>I am not aware of a way to make NoteTab read the ini without a re-start.
>
>I believe some have gotten around this with clips that start a new instance
>of NoteTab and close the current instance.
>
>Larry
>
>David wrote:
>
>
>>Hi
>>If I make a mistake in the quicklist say d:\html\midi\*.clb or wish to
>>remove entries from the quicklist the only way is to edit the ini , the
>>only problem is the ini does not update till you close nts I have tried
>>the clips below partial success but I still can not udate the [directory
>>list] in the ini ,What am I missing ???
>>
>>
Larry, David and Alan,

It's been a long time since I've used Notetab Standard, or, in my case,
SuperNoteTab.  That was way back when I wasn't real sure what  clips or
clip language was about.

Does Standard read and write to inifiles differently than NTPro.  If
not,  you can write changes to the notepro/notetab ini file and then see
them in the file when you load it, or, reload it, whichever the case.

The clip below demonstrates writing to, and reading, the ini file
without the necessity of closing NoteTab.

My comments may not be entirely accurate but after many attempts these
actions seem to function as I comment.

I usually have UAS with a clipcode shorthand library active.  I did
notice that on one occasion I had to toggle UAS off, then, back on for
clip to work correctly.

Other than that, and it may have been a coincidence, there was no
problem with the clip function.

The line that sets 2 variables, a single line, is, I think, the only
line long enough to give a problem with email wrapping, check others to
be sure.

hrs
----------------------

H="WRITE TO NOTEPRO/NOTETAB INIFILE"
;_Modified~Updated~Created_2/9/03_8:51:37a_hsavage@...
^!ClearVariables
;
; writes current state of current inifile to disk
^!ProgIniSave
;
; ensures the default ini is selected and active
; not needed unless another inifile has been active in same clip
^!SetIniFile
;
; open inifile to visually select item number
^!Set %whichini%=^?[WHICH INIFILE==_NOTEPRO|NOTETAB].ini
^!Open ^$GetAppPath$^%whichini%
^!Find "[DirectoryList]" S
^!SetView ^$GetRow$:1
;
; sequence of commands between dashed lines is critical
;-------------------------
; enter item number and new item data
; ** long line, check for email wrapping **
^!Set %item#%=^?{ENTER DIRECTORYLIST ITEM NUMBER=2};
%itemdata%=^?{DIRECTORYLIST DATA-LEAVE BLANK IF DELETING DATA=}
;
; writes data to NoteTab ram or deletes if itemdata is blank
^!SaveValue DirectoryList:Specs_^%item#%=^%empty%^%itemdata%
;
; inifile plus new data in ram is read into Notetab
^!ProgIniLoad
;
; inifile with new data in Notetab is written to disk
^!ProgIniSave
;^!Delay 2
;-------------------------
; inifile is reloaded so write can be verified
^!Open ^$GetAppPath$^%whichini%
^!Find "[DirectoryList]" S
^!SetView ^$GetRow$:1

#9815 From: "Larry Hamilton" <lmh@...>
Date: Sun Feb 9, 2003 4:44 pm
Subject: Re: [Clip] Edit ini
lm_hamilton
Send Email Send Email
 
Well, that shows how much I use this option. ;-)

Larry

hsavage wrote:
> The clip below demonstrates writing to, and reading, the ini file
> without the necessity of closing NoteTab.
>
> ; inifile plus new data in ram is read into Notetab
> ^!ProgIniLoad

#9816 From: "John Zeman <john041650@...>" <john041650@...>
Date: Sun Feb 9, 2003 5:20 pm
Subject: Re: Edit ini
john041650
Send Email Send Email
 
I have many clips that check and change some ini parameters, but occasionally a
manual ini edit is required.  Any time I need to do that I close NoteTab and use
a different text editor to edit it.

John



--- In ntb-clips@yahoogroups.com, "David" <dgm2003@o...> wrote:
> Hi
> If I make a mistake in the quicklist say d:\html\midi\*.clb or wish to
> remove entries from the quicklist the only way is to edit the ini , the only
> problem is the ini does not update tilll you close nts I have tried the
> clips below partial success but I still can not udate the [directory list]
> in the ini ,What am I missing ???
> H="NTSIni Edit"
> ^!Open ^$GetAppPath$Notetab.ini
> ^!find "[DirectoryList]" S
> ^!SET %ROW%=^$GetRowStart$
> ^!DELAY 1
> ^!SetView ^%ROW%:1
>
> H="NTS.Ini Save"
> ^!save as !Notetab.ini
>
> H="NTS Load"
> ^!ProgIniLoad Notetab.ini
>
>     THANKYOU    DAVE

#9817 From: "David" <dgm2003@...>
Date: Mon Feb 10, 2003 3:34 am
Subject: lines to variables
david_99_au
Send Email Send Email
 
Hi
What I can do select line by line and place each line into 3 variables ,Read
and then moves to the next line into the same 3 variables , small portion
below , any help would be appreciated ??
     THANKYOU    DAVE in aus.
BBS = Bulletin Board System.
ATM (2) = Asynchronous Transfer Mode (network).
BEDO = Burst Extended Data Out (DRAM).
BGA = Ball Grid Array (242 pin Intel CPU).
CD-RAM = Compact Disk Rewritable Access Media.

#9818 From: "hugo_paulissen <h.paulissen@...>" <h.paulissen@...>
Date: Mon Feb 10, 2003 2:44 pm
Subject: Re: lines to variables
hugo_paulissen
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "David" <dgm2003@o...> wrote:
> Hi
> What I can do select line by line and place each line into 3
variables ,Read
> and then moves to the next line into the same 3 variables , small
portion
> below , any help would be appreciated ??
>     THANKYOU    DAVE in aus.
> BBS = Bulletin Board System.
> ATM (2) = Asynchronous Transfer Mode (network).
> BEDO = Burst Extended Data Out (DRAM).
> BGA = Ball Grid Array (242 pin Intel CPU).
> CD-RAM = Compact Disk Rewritable Access Media.

Dave,

Could you please rephrase the question? It is not clear what you are
trying to do...

Hugo

#9819 From: Sheri <silvermoonwoman@...>
Date: Mon Feb 10, 2003 4:23 pm
Subject: Re: [Clip] lines to variables
silvermoonwo...
Send Email Send Email
 
At 02:34 PM 2/10/03 +1100, David wrote:
>Hi
>What I can do select line by line and place each line into 3 variables ,Read
>and then moves to the next line into the same 3 variables , small portion
>below , any help would be appreciated ??
>    THANKYOU    DAVE in aus.
>BBS = Bulletin Board System.
>ATM (2) = Asynchronous Transfer Mode (network).
>BEDO = Burst Extended Data Out (DRAM).
>BGA = Ball Grid Array (242 pin Intel CPU).
>CD-RAM = Compact Disk Rewritable Access Media.

Hi David,

To process a file line by line:

^!Jump Doc_Start
^!SetWordWrap Off
:Loop
^!Select EOL
^!Set %var1%="^$GetSelection$"
;more processing
^!Jump +1
^!If ^$GetRow$=^$GetLineCount$ Out
^!Goto Loop
:Out

If you needed to put part of the line into one variable and part into another,
you could do that any number of ways, e.g., use string functions based on the
whole line or
use a combination of commands designed to highlight the desired parts of the
line one at a time (instead of ^!Select EOL).

Hope it helps,
Sheri

Messages 9790 - 9819 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help