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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 17006 - 17036 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#17006 From: "Don - HtmlFixIt.com" <don@...>
Date: Mon Oct 1, 2007 11:22 am
Subject: Wayne's Note Awk Script
dpasseng
Send Email Send Email
 
I have had mixed to no luck running it lately to check perl syntax.  His
links no longer seem to work (I was going to try a fresh copy).  He
saves things to the original /libraries folder, which is no longer where
things actually are as they are now in the applications data location.
I don't know if that could have any effect.

#17007 From: ntb-clips@yahoogroups.com
Date: Mon Oct 1, 2007 2:37 pm
Subject: New file uploaded to ntb-clips
ntb-clips@yahoogroups.com
Send Email Send Email
 
Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the ntb-clips
group.

   File        : /FTP_Custom_Ver1.3.zip
   Uploaded by : silvermoonwoman2001 <silvermoonwoman@...>
   Description : Upload current NoteTab document or multiple files to one of
several user configured FTP servers. Recursive selection of remote
subdirectories at runtime. Requires NoteTab 5.4 or above.

You can access this file at the URL:
http://groups.yahoo.com/group/ntb-clips/files/FTP_Custom_Ver1.3.zip

To learn more about file sharing for your group, please visit:
http://help.yahoo.com/help/us/groups/files

Regards,

silvermoonwoman2001 <silvermoonwoman@...>

#17008 From: "tuttle.grey" <tuttle@...>
Date: Mon Oct 1, 2007 3:53 pm
Subject: Great work from Sheri !!!
tuttle.grey
Send Email Send Email
 
I want to publicly thank Sheri for the great work she did on her new
FTP Custom clip.

I had posted here asking for ways to FTP directly from NoteTab. Sheri
responded with a clip. Over several days we corresponded as I tested
various revisions and suggested several user-interface and
functionality improvements. Sheri implemented all of them!

Sheri demonstrates the spirit of sharing that I have enjoyed in a few
forums. She spent used her time and expertise to create something that
helps out someone she has never met. Further, I'm sure this clip will
benefit many people, as it is truly useful.

Thanks Sheri!

#17009 From: "Sheri" <silvermoonwoman@...>
Date: Mon Oct 1, 2007 4:24 pm
Subject: Re: Great work from Sheri !!!
silvermoonwo...
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "tuttle.grey" <tuttle@...> wrote:
>
> I want to publicly thank Sheri for the great work she did on her
> new FTP Custom clip.

Thanks tuttle, without your input it wouldn't have been nearly as
handy and I'm glad it all finally works correctly in your environment!

Now noted with the posted file (in the Files area of the Clips list on
Yahoo), the readme incorrectly says it is version 1.4, when everything
else says 1.3 (oops!)

Regards,
Sheri

#17010 From: "Sheri" <silvermoonwoman@...>
Date: Mon Oct 1, 2007 5:18 pm
Subject: Re: checking Perl syntax
silvermoonwo...
Send Email Send Email
 
I don't have and have never seen Wayne's script but you can get some
syntax checking on a Perl script if it includes:

use warnings;

If you have that, maybe this does what you want? Note that perl must
be on your path. Using a variable based on ^$GetShort(^$GetPerlExe$)$
instead doesn't seem to work. Neither do various command lines based
on ^!RunScript, ^!RunPerl or ^$GetInputOutput$. You need to be able to
have the -c recognized as a parameter. A small irritation with the
^$GetDosOutput$ is that there won't be any output, and you can't
suppress the error dialog stating that fact.

;long line
^!Continue Before continuing please make sure the current document is
the perl script to be syntax checked. The script should be in its own
.pl file (not in a clip library).
;end long line
^!DeleteFile "^$GetDataPath$StdError.err"
^!Set %mytmp%="^$GetShort(^**)$"
^$GetDOSOutput(perl -c ^%mytmp%)$
:Serr
^!IfFileExist "^$GetDataPath$StdError.err" Next ELSE Serr
;long line
^!Info Script Errors and
Warnings^%NL%^$GetFileText("^$GetDataPath$StdError.err")$
;end long line

#17011 From: "Pat(kitPatH)" <kitpath@...>
Date: Tue Oct 2, 2007 3:57 pm
Subject: noteblock.clb - tabs2Spaces (even spacing)
kitpath
Send Email Send Email
 
Morning, I need some help again ... (I'm still using notetab 4.95np)


One of the clips in a library authored by Jody works for whole documents but
locks on selected text.  Wonder if anyone can spot the problem in the code.
It used to work on selected (I think....)

The data: each row has the same number of tabs / no missing values.
Only dealing with four variables.

Calories: 299 Milk 0.1
Fat (gm): 23.7 Vegetable: 0.0
Sat. fat (gm): 6 Fruit 0.2
Cholesterol (mg): 94 Bread: 0.0
Sodium (mg): 603 Meat 5.0
% Calories from fat 30 Fat 1.7



H="Tabs2Spaces...   Pro and Std/Lt - aligns tab delimited, evenly, 2 spaces btw
cols"
; Date: Mon, 15 May 2000 13:50:22 +0200
; Reply-To: ntb-clips@egroups.com
; Subject: Re: [Clip] Making a table
; Input data must have columns separated by either a tab
; character or two or more blanks. If you want to have a gap
; in the table, ie an empty cell followed by non-empty
; cell(s), you have to use a tab as column separators for
; each field skipped. Regards /Claes/Jody
^!Continue Works in Pro, Std & Light - aligns tab delimited files^%nl%evenly
leaving two spaces between columns. Also^%nl%works on documents having two
spaces between^%nl%the fields. The Clip starts aligning on the line
where^%nl%the cursor is at so put your cursor on line 1 if that^%nl%is where you
want to start formatting at. Continue?
^!ClearVariables
^!Set %SelStart%=^$GetRowStart$:1; %SelEnd%=^$Calc(^$GetRowEnd$+1)$
^!IfTrue ^$IsEmpty("^$GetSelection$")$ Next else Start
^!Set %NoSel%=1
^!Jump Doc_End
^!IfFalse ^$IsEmpty(^$GetLine$)$ Skip_2
^!Replace "^p" >> "" SB
^!IfError Next else Skip_-2
^!InsertText ^p
^!Jump 1
:Start
^!SetHintInfo Working...
^!SetScreenUpdate Off
^!SetWordWrap OFF
;Make all delimiters tabs
^!IfTrue ^%NoSel% Next else Skip_2
^!Replace "[ ][ ]+" >> "\t" STAIRWH
^!Goto Skip
^!Replace "[ ][ ]+" >> "\t" STAIRH
^!SetListDelimiter ^t
^!SetArray %oldsz%=0
; ^!Jump TEXT_START
^!SetCursor ^%SelStart%
;FIND THE REQUIRED COLUMN SIZES
;Get a line as an array
:nextrec
^!Select EOL
^!Set %a%=^$GetSelection$
^!SetArray %new%=^%a%
^!SetArray %newsz%=^%new%
;Make array of field sizes
^!Set %ix%=0
^!Inc %ix%
^!Set %newsz^%ix%%=^$StrSize("^%new^%ix%%")$
^!If ^%ix%<^%new0% Skip_-2
;Merge new and old array
^!SetArray %long%=^%oldsz%
^!SetArray %short%=^%newsz%
^!If ^%oldsz0%>^%newsz0% mergethem
^!SetArray %long%=^%newsz%
^!SetArray %short%=^%oldsz%
:mergethem
^!Set %ix%=0
^!Inc %ix%
^!Set %long^%ix%%=^$calc(max(^%oldsz^%ix%%;^%newsz^%ix%%))$
^!If ^%ix%<^%short0% Skip_-2
^!SetArray %oldsz%=^%long%
^!If ^$GetRow$=^$GetLineCount$ InsertSpace
;Get next line
^!Jump +1
^!Jump LINE_START
^!GoTo nextrec
;NOW INSERT SPACES
:InsertSpace
; ^!Jump TEXT_START
^!SetCursor ^%SelStart%
;Again pick up a line as an array
:nextrec2
^!Select EOL
^!Set %a%=^$getselection$
^!Setarray %new%=^%a%
;Skip record if only one field
^!If ^%new0%<2 nextline
^!Setarray %newsz%=^%new%
;Make array of field sizes
^!Set %ix%=0
^!Inc %ix%
^!Set %newsz^%ix%%=^$StrSize("^%new^%ix%%")$
^!If ^%ix%<^%new0% Skip_-2
;Get nbr of blanks needed and insert them
^!Set %ix%=1
^!Jump LINE_START
:nextfld2
^!Find "^t" TIS
^!InsertText ^$StrFill(" ";^$Calc(^%oldsz^%ix%%-^%newsz^%ix%%+2)$)$
^!Inc %ix%
^!If ^%ix%<^%newsz0% nextfld2
^!If ^$GetRow$=^$GetLineCount$ Exit
;Get next line
:nextline
^!Jump +1
^!Jump LINE_START
^!IfTrue ^%NoSel% Next else Skip_2
^!If ^$GetRow$ = ^$GetLineCount$ End
^!Goto nextrec2
^!If ^$GetRow$ = ^%SelEnd% End
^!Goto nextrec2

#17012 From: "Sheri" <silvermoonwoman@...>
Date: Tue Oct 2, 2007 6:28 pm
Subject: Re: noteblock.clb - tabs2Spaces (even spacing)
silvermoonwo...
Send Email Send Email
 
Just glancing, I see a Replace command with options for "W" (whole
document) and "H" (highlight). Those are mutually exclusive options,
no idea what the impact of including both would be.

But it doesn't look like that replace even gets used when there is a
selection.

Just tried the clip on your sample (with and without a selection) and
it worked fine in the current version of NoteTab (without no
modifications).

Regards,
Sheri

#17013 From: "Alan C" <acummingsus@...>
Date: Wed Oct 3, 2007 5:58 am
Subject: Re: [Clip] noteblock.clb - tabs2Spaces (even spacing)
acummingsus
Send Email Send Email
 
On 10/2/07, Pat(kitPatH) <kitpath@...> wrote:
>
> Morning, I need some help again ... (I'm still using notetab 4.95np)
>
>
> One of the clips in a library authored by Jody works for whole documents
> but
> locks on selected text.  Wonder if anyone can spot the problem in the
> code.
> It used to work on selected (I think....)


(I didn't spot anything)

But in the case that you might need it, here's a clip that will put a copy
of your selected text into a new document -- (you said that the tabs2spaces
clip works on an entire doc -- well now you have an entire doc) ie selection
to new doc then run on said new doc the clip that works on an entire doc.

H="Sel_text_2_a_new_doc"
^!Set %my_sel_text% =^$GetSelection$
^!Toolbar "new document"
^!Insert ^%my_sel_text%
; now have a whole doc
; end


--
Alan.


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

#17014 From: Eric Fookes <egroups@...>
Date: Fri Oct 5, 2007 10:02 am
Subject: NoteTab 5.5 (including NoteTab Light) now released
eric_fookes
Send Email Send Email
 
Hi everyone,

We're pleased to announce the release of NoteTab 5.5, including
NoteTab Light.

You will find the upgrade information through NoteTab's "Check for
Updates" feature, which is available from the Help menu. If you don't
see the version 5.5 info in the News and Updates window, make sure you
click on the "Get headlines" button at the top-left of the dialog box to
refresh the list.

Improvements since previous update:
-----------------------------------

* Updated the regular expressions engine to the latest release, which is
based on PCRE 7.4. The \R newline sequence now matches either CRLF, or a
lone CR, or a lone LF.

* Changed method on Windows XP and Vista to determine default location
of folder for user settings. Fixes issues on some systems that have
corrupted registry keys.

* Restored the MS-Office Sounds setting in the Options dialog box (View
tab). This option is only available if you have installed the sounds on
your system. Download details here:
http://www.notetab.com/os.html

* Fixed a minor display issue on Windows Vista that caused toolbar
button delimiters to draw incorrectly.

* Fixed an issue on Windows Vista that caused some buttons and
checkboxes in dialogs to disappear when pressing the "Alt Gr" button
(special button available on some keyboards for accessing a third
character on a key).

* Fixed a text-flicker issue in NoteTab Pro when it is run on slower
computers.

* Fixed issue with incorrect total page count sometimes printed in Page
Preview.

* Fixed issue with Partial Loading option failing to work.

* Fixed a weakness in the Clip parser.

* Added new Clip command:
^!IfFileUnicode "FileName" GoToLabelTrue [ELSE GoToLabelFalse]
Jumps to specified label if FileName is a Unicode text file or UTF-8 Web
page.

* Updated documentation.

--
Regards,

Eric Fookes
http://www.fookes.com/

#17015 From: "Dave" <dmc43959@...>
Date: Fri Oct 5, 2007 12:15 pm
Subject: duplicate lines leaving one
david_99_au
Send Email Send Email
 
Hi
How do I remove duplicate lines and leave one ,have clip for duplicate lines
but it takes all ?

Cardamar
Cardamar
Cardamar
Cardamar
Various
Various
Various
Zilent Zpott
Zilent Zpott
Zilent Zpott

I want to leave one of each.
     THANKYOU DAVE M

#17016 From: Hugo Paulissen <hugopaulissen@...>
Date: Fri Oct 5, 2007 12:27 pm
Subject: Re: [Clip] duplicate lines leaving one
hpaulissen
Send Email Send Email
 
You can sort and have duplicates removed. No clips involved. (See under
options).

Hugo


----- Original Message ----
From: Dave <dmc43959@...>
To: Notetabclips <ntb-clips@yahoogroups.com>
Sent: Friday, October 5, 2007 2:15:39 PM
Subject: [Clip] duplicate lines leaving one

Hi
How do I remove duplicate lines and leave one ,have clip for duplicate lines
but it takes all ?

Cardamar
Cardamar
Cardamar
Cardamar
Various
Various
Various
Zilent Zpott
Zilent Zpott
Zilent Zpott

I want to leave one of each.
THANKYOU DAVE M





      
________________________________________________________________________________\
____
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

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

#17017 From: "Dave" <dmc43959@...>
Date: Fri Oct 5, 2007 1:05 pm
Subject: Re: [Clip] duplicate lines leaving one
david_99_au
Send Email Send Email
 
Hi
should have looked first getting old thanks
     THANKYOU DAVE M

----- Original Message -----
From: "Hugo Paulissen" <hugopaulissen@...>
To: <ntb-clips@yahoogroups.com>
Sent: Friday, October 05, 2007 10:27 PM
Subject: Re: [Clip] duplicate lines leaving one


> You can sort and have duplicates removed. No clips involved. (See under
> options).
>
> Hugo
>
>
> ----- Original Message ----
> From: Dave <dmc43959@...>
> To: Notetabclips <ntb-clips@yahoogroups.com>
> Sent: Friday, October 5, 2007 2:15:39 PM
> Subject: [Clip] duplicate lines leaving one
>
> Hi
> How do I remove duplicate lines and leave one ,have clip for duplicate
> lines
> but it takes all ?
>
> Cardamar
> Cardamar
> Cardamar
> Cardamar
> Various
> Various
> Various
> Zilent Zpott
> Zilent Zpott
> Zilent Zpott
>
> I want to leave one of each.
> THANKYOU DAVE M
>
>
>
>
>
>
>
________________________________________________________________________________\
____
> Check out the hottest 2008 models today at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html
>
> [Non-text portions of this message have been removed]
>
>
>
> Fookes Software: http://www.fookes.com/
> Fookes Software Discussion Lists: http://www.fookes.com/groups.php
> Yahoo! Groups Links
>
>
>
>

#17018 From: "Dave" <dmc43959@...>
Date: Fri Oct 5, 2007 1:08 pm
Subject: Re: [Clip] NoteTab 5.5 (including NoteTab Light) now released
david_99_au
Send Email Send Email
 
Hi
Any chance of a few more options in the otl side of life seems that txt is
getting them all ??
     THANKYOU DAVE M

----- Original Message -----
From: "Eric Fookes" <egroups@...>
To: <notetab@yahoogroups.com>; <ntb-NextRelease@yahoogroups.com>;
<ntb-clips@yahoogroups.com>; <ntb-scripts@yahoogroups.com>;
<ntb-html@yahoogroups.com>
Sent: Friday, October 05, 2007 8:02 PM
Subject: [Clip] NoteTab 5.5 (including NoteTab Light) now released


> Hi everyone,
>
> We're pleased to announce the release of NoteTab 5.5, including
> NoteTab Light.
>
> You will find the upgrade information through NoteTab's "Check for
> Updates" feature, which is available from the Help menu. If you don't
> see the version 5.5 info in the News and Updates window, make sure you
> click on the "Get headlines" button at the top-left of the dialog box to
> refresh the list.
>
> Improvements since previous update:
> -----------------------------------
>
> * Updated the regular expressions engine to the latest release, which is
> based on PCRE 7.4. The \R newline sequence now matches either CRLF, or a
> lone CR, or a lone LF.
>
> * Changed method on Windows XP and Vista to determine default location
> of folder for user settings. Fixes issues on some systems that have
> corrupted registry keys.
>
> * Restored the MS-Office Sounds setting in the Options dialog box (View
> tab). This option is only available if you have installed the sounds on
> your system. Download details here:
> http://www.notetab.com/os.html
>
> * Fixed a minor display issue on Windows Vista that caused toolbar
> button delimiters to draw incorrectly.
>
> * Fixed an issue on Windows Vista that caused some buttons and
> checkboxes in dialogs to disappear when pressing the "Alt Gr" button
> (special button available on some keyboards for accessing a third
> character on a key).
>
> * Fixed a text-flicker issue in NoteTab Pro when it is run on slower
> computers.
>
> * Fixed issue with incorrect total page count sometimes printed in Page
> Preview.
>
> * Fixed issue with Partial Loading option failing to work.
>
> * Fixed a weakness in the Clip parser.
>
> * Added new Clip command:
> ^!IfFileUnicode "FileName" GoToLabelTrue [ELSE GoToLabelFalse]
> Jumps to specified label if FileName is a Unicode text file or UTF-8 Web
> page.
>
> * Updated documentation.
>
> --
> Regards,
>
> Eric Fookes
> http://www.fookes.com/
>
>
>
> Fookes Software: http://www.fookes.com/
> Fookes Software Discussion Lists: http://www.fookes.com/groups.php
> Yahoo! Groups Links
>
>
>
>

#17019 From: hsavage <hsavage@...>
Date: Fri Oct 5, 2007 1:16 pm
Subject: Re: [Clip] duplicate lines leaving one
hrs62930
Send Email Send Email
 
Dave wrote:
  > Hi
  > How do I remove duplicate lines and leave one,
  > have clip for duplicate lines  but it takes all ?
  >
  > Cardamar
  > Various
  > Zilent Zpott

  >
  > I want to leave one of each.
  >     THANKYOU DAVE M

Dave,

Hugo's right, you don't need a clip to sort.  Shift+Ctrl+X Sorts
Ascending, Shift+Ctrl+Y Sorts Descending.  If nothing is selected this
will sort entire file, with selection made will sort only selection.
'Options' below should be adjusted to suit before sorting.

Go to 'View > Options > Tools', in Pro and Std, don't know about 'NT
Light', 2 checkboxes on the right allow you to customize sorting
parameters, Case Sensitive and Remove Duplicates.

Perhaps you would include the clip you're trying to use in a reply,
might need editing.

·············································
ºvº SL-10-35 -created- 2007.10.05 - 07.58.08

  Great Truths Adults Have Learned:
"Laughing is good exercise. It's like jogging on the inside."
  ¤ ø ¤ hrs ø hsavage@...

#17020 From: "Pat" <kitpath@...>
Date: Fri Oct 5, 2007 2:10 pm
Subject: Re: noteblock.clb - tabs2Spaces (even spacing)
kitpath
Send Email Send Email
 
Dear eagle eye sheri,
The WH conflict was it! thank you for seeing it...

-pat



--- In ntb-clips@yahoogroups.com, "Sheri" <silvermoonwoman@...> wrote:
>
> Just glancing, I see a Replace command with options for "W" (whole
> document) and "H" (highlight). Those are mutually exclusive options,
> no idea what the impact of including both would be.
>
> But it doesn't look like that replace even gets used when there is a
> selection.
>
> Just tried the clip on your sample (with and without a selection)
and
> it worked fine in the current version of NoteTab (without no
> modifications).
>
> Regards,
> Sheri
>

#17021 From: buralex@...
Date: Fri Oct 5, 2007 8:01 pm
Subject: Re: [Clip] duplicate lines leaving one
alecb3ca
Send Email Send Email
 
hsavage <hsavage@...> said on Oct 05, 2007 9:16 -0400 (in part):
> Dave wrote:
> > Hi
> > How do I remove duplicate lines and leave one,
> > have clip for duplicate lines but it takes all ?
> >
> > Cardamar
> > Various
> > Zilent Zpott
>
> >
> > I want to leave one of each.
> > THANKYOU DAVE M
>
> Dave,
>
> Hugo's right, you don't need a clip to sort. Shift+Ctrl+X Sorts
> Ascending, Shift+Ctrl+Y Sorts Descending. If nothing is selected this
> will sort entire file, with selection made will sort only selection.
> 'Options' below should be adjusted to suit before sorting.
>
> Go to 'View > Options > Tools', in Pro and Std, don't know about 'NT
> Light', 2 checkboxes on the right allow you to customize sorting
> parameters, Case Sensitive and Remove Duplicates.
>
> Perhaps you would include the clip you're trying to use in a reply,
> might need editing.
Problem I found with the above is must return to options to un-toggle
Remove Duplicates if that's not the way you usually want to do it.

Assuming you've already sorted the file (either ascending or descending)
this one-liner regexp should do the trick (either as a clip or in the
Find/Replace dialog with Regexp ticked):

^!replace "^(.*\R)(\1)+" >> "$1" rwais
ie. replace (a line followed by a line terminator) followed by one or
more occurrences of the same thing by just one occurrence

Note: above will leave a doubled last line if (a) its a duplicate and
(b) doesn't have a <CR><LF> after it. This could be tweaked but is left
as an exercise for the user. ;-)

With the blazing speed of Notetab's PCRE engine this is probably as fast
and easy as it could be.

Note: above requires Notetab 5.5 (possibly 5.4?) for the \R to match any
<CR><LF> combo.
If for some reason you haven't updated yet replace "\R" by "\r\n" or
"\r?\n" in above if using Unix line endings.

Regards ... Alec -- buralex-gmail
--



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

#17022 From: "Don - HtmlFixIt.com" <don@...>
Date: Sat Oct 13, 2007 4:28 am
Subject: How to capture length of several selections and copy length to variable.
dpasseng
Send Email Send Email
 
Okay I have a line that looks like this:
"    1   315 First Last           Team                                11
15:38.1  4:55 "
but without the quotes.

I want to use a regex to get the content out of it.

I want it split at each plus sign:
"    1   315 +First Last           +Team
11 +15:38.1+  4:55 "

The lines are not always the same length or number of characters.

I want to be able to capture the length of each "field" by highlighting it.

I use this regex:
"^.{^%a%}(.{^%name%})(.{^%school%}).{^%b%}(.{^%c%}).*"

So I need to set a, name, school, b and c.

Currently I use a wizard and first have to count the number of
characters in each field (I highlight them and write down the selection
length).

Ideas?

#17023 From: "Don - HtmlFixIt.com" <don@...>
Date: Sat Oct 13, 2007 5:12 am
Subject: Re: [Clip] How to capture length of several selections and copy length to variable.
dpasseng
Send Email Send Email
 
> I want to be able to capture the length of each "field" by highlighting it.
>
> I use this regex:
> "^.{^%a%}(.{^%name%})(.{^%school%}).{^%b%}(.{^%c%}).*"
>
> So I need to set a, name, school, b and c.
>
> Currently I use a wizard and first have to count the number of
> characters in each field (I highlight them and write down the selection
> length).

This seems to work:

^!Info [C]Copy Characters Before Name and Hit Control C
^!SetClipboard

:Loop1
^!Delay 5
^!If "^$GetClipboardSize$" = "0" Loop1
^!Set %a%=^$GetClipboardSize$

^!Info [C]Copy Name Field and Hit Control C
^!SetClipboard
:Loop2
^!Delay 5
^!If "^$GetClipboardSize$" = "0" Loop2
^!Set %name%=^$GetClipboardSize$

^!Info [C]Copy School Field and Hit Control C
^!SetClipboard
:Loop3
^!Delay 5
^!If "^$GetClipboardSize$" = "0" Loop3
^!Set %school%=^$GetClipboardSize$

^!Info [C]Copy Extra Characters After School and Hit Control C
^!SetClipboard
:Loop4
^!Delay 5
^!If "^$GetClipboardSize$" = "0" Loop4
^!Set %b%=^$GetClipboardSize$

^!Info [C]Copy Time Field and Hit Control C
^!SetClipboard
:Loop5
^!Delay 5
^!If "^$GetClipboardSize$" = "0" Loop5
^!Set %c%=^$GetClipboardSize$

^!Jump Line_Start
^!InsertText *^%a%*^%name%*^%school%*^%b%*^%c%


ODD BEHAVIOR?
If you use this:
^!SetClipboard ""
I would expect a blank clipboard ... but instead it has a length of two
and a value of "".

Any other time you quote nothing in notetab clips, such as in an if
statement, it means nil.  So I simply had to use
^!SetClipboard^P where control p is a return.  That sets the clipboard
to nothing.

#17024 From: "Flo" <flo.gehrke@...>
Date: Sat Oct 13, 2007 12:18 pm
Subject: Re: [Clip] How to capture length of several selections and copy length to variable.
jonas_ramus
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "Don - HtmlFixIt.com" <don@...>
wrote:

> This seems to work:
> ^!Info [C]Copy Characters Before Name and Hit Control C

Don,

Wouldn't it be easier to first separate those five fields with a
delimiter like this:

     1   315 |First Last           |Team 11 |15:38.1|  4:55

Now, if this string is stored in line #1 of your document you could
run...

^!ClearVariables
^!SetDelimiter "|"
^!Set %Output%=a:^$StrSize(^$GetField(1;1)$)$ name:^$StrSize
(^$GetField(1;2)$)$ school:^$StrSize(^$GetField(1;3)$)$ b:^$StrSize
(^$GetField(1;4)$)$ c:^$StrSize(^$GetField(1;5)$)$
^!Jump Doc_End
^!InsertText ^P^%Output%

The output would be...

a:12 name:21 school:8 b:7 c:7

Regards,
Flo
 

#17025 From: "Sheri" <silvermoonwoman@...>
Date: Sat Oct 13, 2007 1:15 pm
Subject: Re: How to capture length of several selections and copy length to variable.
silvermoonwo...
Send Email Send Email
 
I believe what you're looking for is:

^!Info ^$GetSelSize$

Regards,
Sheri

#17026 From: "tuttle.grey" <tuttle@...>
Date: Sat Oct 13, 2007 6:09 pm
Subject: Clip to submit/upload files to W3C validators for CSS and HTML/XHTML ?
tuttle.grey
Send Email Send Email
 
This would seem to be something a smart clip writer could do. Has
anyone created clips to submit an open file to a W3C validator? I'm
interested in two clips, one to submit to each validators:

W3C CSS validator:
http://jigsaw.w3.org/css-validator/validator.html#validate-by-upload

W3C markup validator (for HTML, XHTML, etc.):
http://validator.w3.org/#validate_by_upload

I searched this mailing list, but didn't find any record of such clips
having been created.

#17027 From: "janderri" <jan_derrick@...>
Date: Sun Oct 14, 2007 4:13 pm
Subject: How to get this done using a clip ?
janderri
Send Email Send Email
 
Hi,

Is it possible/hard to do, and perhaps how, to get NoteTab to do the following :

I want to get a clip to allow me to ask the portion that should be on every
line,
and then let me enter the first and the last numerical value it should generate,
like this :

I want to fill the current document with the contents below :

Hello Everybody, this is line 07
Hello Everybody, this is line 08
Hello Everybody, this is line 09
Hello Everybody, this is line 10
Hello Everybody, this is line 11
Hello Everybody, this is line 12
Hello Everybody, this is line 13
Hello Everybody, this is line 14

..... which should be generated after the clip should have asked me :

" What is the default text for every line ? "
... at which I enter :
"Hello Everybody, this is line "

... then ask me...
" first number to add to line ? "
... at which I enter :
"07"

... then ask me...
" last number to add to line ? "
... at which I enter :
"14"

.... and so the clip would fill the document with the example lines I posted
above ?


Is this possible to do with NoteTab, and perhaps how ? :)

#17028 From: "Don - HtmlFixIt.com" <don@...>
Date: Sun Oct 14, 2007 7:35 pm
Subject: Re: [Clip] How to get this done using a clip ?
dpasseng
Send Email Send Email
 
janderri wrote:
> Hi,
>
> Is it possible/hard to do, and perhaps how, to get NoteTab to do the following
:
>
> I want to get a clip to allow me to ask the portion that should be on every
line,
> and then let me enter the first and the last numerical value it should
generate, like this :
>
> I want to fill the current document with the contents below :
>
> Hello Everybody, this is line 07
> Hello Everybody, this is line 08
> Hello Everybody, this is line 09
> Hello Everybody, this is line 10
> Hello Everybody, this is line 11
> Hello Everybody, this is line 12
> Hello Everybody, this is line 13
> Hello Everybody, this is line 14
>
Okay, here is the first version of an answer and some questions:

;Clear all Variables
^!ClearVariables
;get Questions Answered
;long line follows
^!Set %Question%=^?{}; %StartNo%=^?{Start
Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|\
28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54\
|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|8\
1|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|\
106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|\
126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|\
146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|\
166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|\
186|187|188|189|190|191|192|193|194|195|196|197|198|199|200};
%FinishNo%=^?{Finish
Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|\
28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54\
|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|8\
1|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|\
106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|\
126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|\
146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|\
166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|\
186|187|188|189|190|191|192|193|194|195|196|197|198|199|200}
;end of long line

;run loop
:Loop
^!If "^%StartNo%" > "^%FinishNo%" End
;insert the question, the number, and new line
^!InsertText ^%Question% ^%StartNo%^%NL%
;increase the StartNo
^!Inc %StartNo%
^!Goto :Loop
;this is line 30 including blank lines

Notice that there is one really really long line in the middle there ...
should be 30 lines total.

Also, you could skip the numbers entirely.

I did not:
1. pad small numbers with zeros
2. delete all contents of current document before doing this text entry or
3. instead created a new document.

I hope this gets you going.  All things are possible with notetab and clips.

#17029 From: "janderri" <jan_derrick@...>
Date: Sun Oct 14, 2007 8:16 pm
Subject: Re: [Clip] How to get this done using a clip ?
janderri
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "Don - HtmlFixIt.com" <don@...> wrote:
>
> janderri wrote:
> > Hi,
> >
> > Is it possible/hard to do, and perhaps how, to get NoteTab to do the
following :
> >
> > I want to get a clip to allow me to ask the portion that should be on every
line,
> > and then let me enter the first and the last numerical value it should
generate, like this :
> >
> > I want to fill the current document with the contents below :
> >
> > Hello Everybody, this is line 07
> > Hello Everybody, this is line 08
> > Hello Everybody, this is line 09
> > Hello Everybody, this is line 10
> > Hello Everybody, this is line 11
> > Hello Everybody, this is line 12
> > Hello Everybody, this is line 13
> > Hello Everybody, this is line 14
> >
> Okay, here is the first version of an answer and some questions:
>
> ;Clear all Variables
> ^!ClearVariables
> ;get Questions Answered
> ;long line follows
> ^!Set %Question%=^?{}; %StartNo%=^?{Start
>
Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|\
28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54\
|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|8\
1|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|\
106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|\
126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|\
146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|\
166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|\
186|187|188|189|190|191|192|193|194|195|196|197|198|199|200};
> %FinishNo%=^?{Finish
>
Number=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|\
28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54\
|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|8\
1|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|\
106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|\
126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|\
146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|\
166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|\
186|187|188|189|190|191|192|193|194|195|196|197|198|199|200}
> ;end of long line
>
> ;run loop
> :Loop
> ^!If "^%StartNo%" > "^%FinishNo%" End
> ;insert the question, the number, and new line
> ^!InsertText ^%Question% ^%StartNo%^%NL%
> ;increase the StartNo
> ^!Inc %StartNo%
> ^!Goto :Loop
> ;this is line 30 including blank lines
>
> Notice that there is one really really long line in the middle there ...
> should be 30 lines total.
>
> Also, you could skip the numbers entirely.
>
> I did not:
> 1. pad small numbers with zeros
> 2. delete all contents of current document before doing this text entry or
> 3. instead created a new document.
>
> I hope this gets you going.  All things are possible with notetab and clips.
>

That does it great Don. Now I'll start learning how it's done ! :-)

Thanks a lot !!!

#17030 From: "Don - HtmlFixIt.com" <don@...>
Date: Sun Oct 14, 2007 10:33 pm
Subject: Re: [Clip] How to get this done using a clip ?
dpasseng
Send Email Send Email
 
>> I hope this gets you going.  All things are possible with notetab and clips.
>>
>
> That does it great Don. Now I'll start learning how it's done ! :-)
>
> Thanks a lot !!!
>
There is lots more I might do with that clip, but I figured I didn't
want to over-complicate the first one.

I tried to comment it a little bit to get you rolling.

#17031 From: "muahelp" <muahelp@...>
Date: Mon Oct 15, 2007 3:28 pm
Subject: Clip to delete Bible books, chapters and verses
muahelp
Send Email Send Email
 
Would you like to help me making the clip to delete the english Bible
books, chapters and verses.

Example:

Matt.26:30; Mat_26:30
Mark.14:24; Mar_14:24
Luuk.13:26; Luk_13:26
Joh.13:4; Joh_13:4
Ap.t.2:42; Act_2:42

Result:

Matt.26:30
Mark.14:24
Luuk.13:26
Joh.13:4
Ap.t.2:42

#17032 From: Axel Berger <Axel-Berger@...>
Date: Mon Oct 15, 2007 6:44 pm
Subject: Re: [Clip] Clip to delete Bible books, chapters and verses
absalom_nemini
Send Email Send Email
 
muahelp wrote:
> Example:
> Matt.26:30; Mat_26:30

In each of your examples there is a semicolon and in each of them it's
the only one there is. Can you rely on that for all possible cases or
could there be exceptions, i.e. when more than one verse is cited in a
line?

Axel

#17033 From: Jane Sedgewick <jane_sedgewick@...>
Date: Mon Oct 15, 2007 7:17 pm
Subject: Re: [Clip] Clip to delete Bible books, chapters and verses
jane_sedgewick
Send Email Send Email
 
Do a simple search and replace
   Open search and replace - make sure the Regular Exp box is checked.
   Search for:      ^([^;]+);(.*)$
   Replace with:    \1

   Hope this helps,
   Jane

muahelp <muahelp@...> wrote:
           Would you like to help me making the clip to delete the english Bible
books, chapters and verses.

Example:

Matt.26:30; Mat_26:30
Mark.14:24; Mar_14:24
Luuk.13:26; Luk_13:26
Joh.13:4; Joh_13:4
Ap.t.2:42; Act_2:42

Result:

Matt.26:30
Mark.14:24
Luuk.13:26
Joh.13:4
Ap.t.2:42






---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and
lay it on us.

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

#17035 From: "muahelp" <muahelp@...>
Date: Tue Oct 16, 2007 9:39 am
Subject: Re: [Clip] Clip to delete Bible books, chapters and verses
muahelp
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
>
> muahelp wrote:
> > Example:
> > Matt.26:30; Mat_26:30
>
> In each of your examples there is a semicolon and in each of them it's
> the only one there is. Can you rely on that for all possible cases or
> could there be exceptions, i.e. when more than one verse is cited in a
> line?
>
> Axel
>
I use this clip:

^!Replace Mat_{\d+\:\d+\-*\d*} >> WRSA

This clip works but leave ;

Help me?

#17036 From: Axel Berger <Axel-Berger@...>
Date: Tue Oct 16, 2007 11:29 am
Subject: Re: [Clip] Clip to delete Bible books, chapters and verses
absalom_nemini
Send Email Send Email
 
muahelp wrote:
> I use this clip:
> ^!Replace Mat_{\d+\:\d+\-*\d*} >> WRSA
> This clip works but leave ;
> Help me?

I don't get it:
a) This only deals with Matthew, your examples included many other
books.
b) If doing it that way, why look for "Mat_" and not for "; Mat_"?

You've not answered my question so I can't really give good advice, but
Jane's solution is just what I had in mind. One thing though: Hers works
in version 4.xx.
From NoteTab 5.0 upwards the replace string is no longer "\1" but "$1".

I would have written Jane's version as:

^!Replace "^(.+?);(.+?)$" >> "$1" WRAS

If there is exactly one and only one semicolon the results are the same.
Jane's solution is more specific for finding the first semicolon.

Axel

Messages 17006 - 17036 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