Date   

'IsNumber' and 'IsAlpha' functions syntax

James McBride
 

Hello,
I hate to do this, ask a question that is probably gonna have such an easy answer it is pitiful, but here goes:
I cannot seem to use these functions properly. I have the following simple loop to get some input and say 'Is It alpha' (or is it numeric, when I change it.

:GetInput

^!Set %InVal%=^?{(S=10)}

^!Prompt Value Entered is ^%InVal%

^!If ^$IsAlpha(^%InVal%)$=1 ^!Prompt "Is Alpha" else ^!Prompt "Is Not Alpha"

^!GoTo GetInput

Can someone tell me what I am doing wrong here? I am also very confused about ClipWizards and the difference between ^?[] and ^?{}, but I can save that for another post

--Jim


Re: formatting inside a clipbar file #notetab

Axel Berger
 

Lee Underwood wrote:
I use comments if clip files all the time, e.g.,
Clip Bar not Clip. The second line of icons below the menues.

Perhaps the problems is not space after the ";".
No. In clips no space is needed.


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --


Re: formatting inside a clipbar file #notetab

Lee Underwood
 

I use comments if clip files all the time, e.g.,

^!InsertHtml <span class="Tanakh">^&</span>
; See https://github.com/Sefaria/Sefaria-Project/wiki/Sefaria-Auto-Linker

Perhaps the problems is not space after the ";".

Lee

On Sun, Jul 26, 2020, loro <tabbie@...> wrote:

Michael Frascinella wrote:
The semicolon did not work. I then opened the built-in HTML-1 clipbar and
used the semicolor to start a comment and the open/close Notetab icon
appeared there too.

There must be another character that will hide the comment.
Or not. I've never seen a comment in a clipbar file. Can we really have comments there?

Lotta



Re: Help with message boxes

John Shotsky
 

I've never used a bookmark, but I'll see if I can do something along those lines. More to learn.
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of Ray Shapp
Sent: Wednesday, July 29, 2020 9:12 PM
To: Clips@notetab.groups.io
Subject: Re: [NTB-Clps] Help with message boxes

Hi John,

Please excuse me if this is too simpleminded. Why not set a "bookmark" at the point where the user stops to review his/her work. When they resume, your editor would search for the bookmark, remove it, and allow the user to continue from there.

Ray Shapp
---


On Wed, Jul 29, 2020 at 6:16 PM Axel Berger <Axel@...> wrote:

John Shotsky wrote:
Any ideas?
You could do the review in *another* editor and pause execution until
that is closed. Something along the the lines of:

^!ShellWait pdflatex ^$GetFileName(^%vFIL%)$ ^!Delay 5 ^!Shell
F:\Winutil\acrobat\Reader\AcroRd32.exe ^%vdst%

(Unmodified from a clip doing something entirely different, but shows
the principle. The pdflatex run can take quite some time. The delay is
to ensure all disk caches are flushed.)

That could also mean they 'tweaked'
something, and want that in the continuation.
This could prove to be difficult. It's safer to reload and start over.
But you know your own clips best, perhaps it can be done safely.


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --




Re: String Replace Backwards

Axel Berger
 

loro wrote:
Find the index number of the comma, delete the comma, inject the & in its place.
Thank you Lotta. Yes. I have to admit I was more or less aware of that
possibility but baulked at the complication. Seeing your solution in the
flesh, it is not actually as bad as having to build it felt. I always find
it hard to get my head round: do I use pos as it is, do I decrease it by
one, or do I increase it by one.


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --


Re: Help with message boxes

Ray Shapp
 

Hi John,

Please excuse me if this is too simpleminded. Why not set a "bookmark" at
the point where the user stops to review his/her work. When they resume,
your editor would search for the bookmark, remove it, and allow the user to
continue from there.

Ray Shapp
---

On Wed, Jul 29, 2020 at 6:16 PM Axel Berger <Axel@...> wrote:

John Shotsky wrote:
Any ideas?
You could do the review in *another* editor and pause execution until that
is closed. Something along the the lines of:

^!ShellWait pdflatex ^$GetFileName(^%vFIL%)$
^!Delay 5
^!Shell F:\Winutil\acrobat\Reader\AcroRd32.exe ^%vdst%

(Unmodified from a clip doing something entirely different, but shows the
principle. The pdflatex run can take quite some time. The delay is to
ensure all disk caches are flushed.)

That could also mean they 'tweaked'
something, and want that in the continuation.
This could prove to be difficult. It's safer to reload and start over. But
you know your own clips best, perhaps it can be done safely.


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --




Re: Help with message boxes

John Shotsky
 

I discovered a bug in the Info feature. If you include this text in the info
dialog:
Everything should have some sort of tag:^%nl%"<<>>" for ingredients, and"##" for
everything else.
You see:
"<<
" for ingredients, and "##" for everything else.
It 'eats' the >> and adds a CR...
Maybe I have to delimit something, but that was a surprise.
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of John
Shotsky
Sent: Wednesday, July 29, 2020 2:57 PM
To: clips@notetab.groups.io
Subject: [NTB-Clps] Help with message boxes

Hi, all,

I think I know the answer to this, but thought I'd throw it out there to see if
anyone knows a workaround.

Here's the setup.

I have users that use my clip library to convert ebooks into MasterCook (a
cookbook manager) format. Basically put an ebook into a Windows application.

The ebooks can be lengthy, and can take quite a bit of time to complete. If
there is a problem, they have to fix something and then repeat.

There is one point in the process where users can be allowed to see what has
been done so far. So, I'm using an Info box to tell them that they can review it
at that point, if they have set a user option to do so.

Here is the problem - I want to let them review what has been done, which can be
(and usually is) thousands of lines, and then choose whether to continue or
start over. The 'question' feature would have to be delayed until AFTER they
review, but I don't see any way to suspend it until they have reviewed what has
been done.

Basically, I would like a way for them to 'shell out' to review, then 'get back
in' to decide whether to continue or stop, fix something in the source, then
start over. I've though about setting a variable to indicate that the review is
active, but I don't see a way to 'get back in' to continue.

Any ideas? If it's not clear, that's because I'm looking at doing something that
isn't supported directly. It needs to be simple enough for my users

Summary:

If user wants an early review, he sets a user option.

When the time comes, user is told to review the content.

Right now, I have a GoTo Exit after that Info box, which forces them to start
over.

I'm trying to have an option where, if it all looks good, they can just continue
from where it left off for the review. That could also mean they 'tweaked'
something, and want that in the continuation.

Regards,

John


Re: String Replace Backwards

loro
 

Axel Berger wrote:
Unless I'm very wrong and miss the obvious, ^$StrReplace()$ has a
serious
limitation compared to ^!Replace, it can't search backwards from the
end.

In the actual case I came across just now that's no real problem. I can
use
^Replace H and follow up with a new ^!Select PARAGRAPH. But in the
general
case restoring the selection is not as simple as that and doing several
things to one selection is quite common for me.

Is there any way to transfer
^!Replace ", " >> " \& " HBSTI
to working on a variable?

(In case you wonder, this is about the last comma in a list of authors.
And
yes, I know that TI are both superfluous here, but they are my base
standard and typed by default.)


Axel, I'm very rusty and I'm not up do date with new additions to the clip language. Probably there are better ways, but here's how I used to do it, step by step. Find the index number of the comma, delete the comma, inject the & in its place.

^!Set %axel%=Goethe,Mann,Hesse
^!Set %pos%=^$StrPosRight(",";"^%axel%";false)$
^!Set %axel%=^$StrDelete("^%axel%";^%pos%;1)$
^!Set %axel%=^$StrInsert("&";"^%axel%";^%pos%)$

Lotta

--
Computer says no.


Re: Help with message boxes

Axel Berger
 

John Shotsky wrote:
Any ideas?
You could do the review in *another* editor and pause execution until that
is closed. Something along the the lines of:

^!ShellWait pdflatex ^$GetFileName(^%vFIL%)$
^!Delay 5
^!Shell F:\Winutil\acrobat\Reader\AcroRd32.exe ^%vdst%

(Unmodified from a clip doing something entirely different, but shows the
principle. The pdflatex run can take quite some time. The delay is to
ensure all disk caches are flushed.)

That could also mean they 'tweaked'
something, and want that in the continuation.
This could prove to be difficult. It's safer to reload and start over. But
you know your own clips best, perhaps it can be done safely.


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --


Help with message boxes

John Shotsky
 

Hi, all,

I think I know the answer to this, but thought I'd throw it out there to see if
anyone knows a workaround.

Here's the setup.

I have users that use my clip library to convert ebooks into MasterCook (a
cookbook manager) format. Basically put an ebook into a Windows application.

The ebooks can be lengthy, and can take quite a bit of time to complete. If
there is a problem, they have to fix something and then repeat.

There is one point in the process where users can be allowed to see what has
been done so far. So, I'm using an Info box to tell them that they can review it
at that point, if they have set a user option to do so.

Here is the problem - I want to let them review what has been done, which can be
(and usually is) thousands of lines, and then choose whether to continue or
start over. The 'question' feature would have to be delayed until AFTER they
review, but I don't see any way to suspend it until they have reviewed what has
been done.

Basically, I would like a way for them to 'shell out' to review, then 'get back
in' to decide whether to continue or stop, fix something in the source, then
start over. I've though about setting a variable to indicate that the review is
active, but I don't see a way to 'get back in' to continue.

Any ideas? If it's not clear, that's because I'm looking at doing something that
isn't supported directly. It needs to be simple enough for my users

Summary:

If user wants an early review, he sets a user option.

When the time comes, user is told to review the content.

Right now, I have a GoTo Exit after that Info box, which forces them to start
over.

I'm trying to have an option where, if it all looks good, they can just continue
from where it left off for the review. That could also mean they 'tweaked'
something, and want that in the continuation.

Regards,

John


String Replace Backwards

Axel Berger
 

Unless I'm very wrong and miss the obvious, ^$StrReplace()$ has a serious
limitation compared to ^!Replace, it can't search backwards from the end.

In the actual case I came across just now that's no real problem. I can use
^Replace H and follow up with a new ^!Select PARAGRAPH. But in the general
case restoring the selection is not as simple as that and doing several
things to one selection is quite common for me.

Is there any way to transfer
^!Replace ", " >> " \& " HBSTI
to working on a variable?

(In case you wonder, this is about the last comma in a list of authors. And
yes, I know that TI are both superfluous here, but they are my base
standard and typed by default.)

Danke
Axel


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --


Re: formatting inside a clipbar file #notetab

loro
 

Michael Frascinella wrote:
The semicolon did not work. I then opened the built-in HTML-1 clipbar and
used the semicolor to start a comment and the open/close Notetab icon
appeared there too.

There must be another character that will hide the comment.
Or not. I've never seen a comment in a clipbar file. Can we really have comments there?

Lotta


Re: formatting inside a clipbar file #notetab

Michael Frascinella
 

John,

The semicolon did not work. I then opened the built-in HTML-1 clipbar and used the semicolor to start a comment and the open/close Notetab icon appeared there too.

There must be another character that will hide the comment.

Yours,

Michael F.


Re: ClipWriter

joy8388608
 

I've never tried it but programs exist to fool programs into thinking it is a certain date. If you always tell this program it is the day after it was installed, it will never expire.

https://www.nirsoft.net/utils/run_as_date.html

Joy


Re: formatting inside a clipbar file #notetab

John Shotsky
 

Oh, I think a semicolon on the front of the line will do what you want...
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of Michael Frascinella
Sent: Saturday, July 25, 2020 2:45 PM
To: Clips@Notetab.groups.io
Subject: Re: [NTB-Clps] formatting inside a clipbar file #notetab #notetab

John,

Here is the comment line using your idea of starting with the # sign. It still appears at the start of the clipbar with a popup comment of Clipbar name: my-clipbar

# 3-1-2020 - added "Note/Caution/Warning, dialog.bmp","","73"

There must be another comment character defined for this purpose.

Yours,

Michael F


Re: formatting inside a clipbar file #notetab

Michael Frascinella
 

John,

Here is the comment line using your idea of starting with the # sign. It still appears at the start of the clipbar with a popup comment of
Clipbar name: my-clipbar

# 3-1-2020 - added "Note/Caution/Warning, dialog.bmp","","73"

There must be another comment character defined for this purpose.

Yours,

Michael F


Re: formatting inside a clipbar file #notetab

John Shotsky
 

Without seeing your code, the pound sign is a comment line. '#'. It's somewhere in the help...
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of Michael Frascinella
Sent: Saturday, July 25, 2020 1:04 PM
To: Clips@Notetab.groups.io
Subject: [NTB-Clps] formatting inside a clipbar file #notetab #notetab

NoteTabbers,

I have a clipbar for frequently used clips. How do I format a comment so it doesn't appear in the clip bar? The comments I now have appear with the open/close clipbook icon. I tried using a semicolon and then // at the start but that did not hide them.

Is there a special character that will hide a comment? I could not find any description of formatting clipbar files in the built in help.

Michael F.


Re: ClipWriter

Thomas Gruber
 

Hi Lotta,

I downloaded and installed Clipwriter in the meantime.

There’s a free Trial Version (that’s where the download link points), which according to the info should be usable for 21 days. And there’s a price of € 39.95 quoted – but the links for registering point to the abandoned web site, so my guess is that you can’t get a license even if you’re willing to pay for it. The Trial Version is from 2010 – but it still works under Windows 10. That’s all I can say about it.

My personal feeling is that this is a dead product, and I wouldn’t waste time on it.

Kind regards

Thomas

Gesendet von Mail ( https://go.microsoft.com/fwlink/?LinkId=550986 ) für Windows 10

*Von:* loro ( tabbie@... )
*Gesendet:* Samstag, 25. Juli 2020 18:23
*An:* Clips@notetab.groups.io
*Betreff:* Re: [NTB-Clps] ClipWriter

Hi Thomas,

Thomas Gruber wrote:

Hi Lotta, all,
I found ClipWriter here:
https://download.cnet.com/ClipWriter/3000-2344_4-203871.html
Haven‘t tried it yet, I had never heard of it before but I‘m curious, as
I like to learn about new programming tools. I use clips occasionally, but
too rarely to get really familiar with it. Maybe a development environment
will make it a bit easier for me (I know Axel objects...).
Kind regards
Good find. I found it at another shareware site, but there nothing came down, the file was gone. Problem is it's a shareware program. I don't remember if it was time limited of feature limited. And if it can't be registered any longer...

I think people liked and used ClipWriter. I never bought it because I was a newbie very much in learning mode then. I've found that I understand better and learn quicker if I type myself, and that goes for everything, not only clips. And learning to find my way around yet another program can be too much for me in that situation. I'd probably be more interested in it today, if it turns out it's available and updated. But that's me. How we best learn new stuff is very individual, I think.

Here's a link to one of Wayback Machine's copies of RS's program page. BTW I found RS' name. It's Ramon Silvera.

<https://web.archive.org/web/20120709160355/http://www.dataomega.com/ClipWriter/index.htm>

Lotta

--

Computer says no.


formatting inside a clipbar file #notetab

Michael Frascinella
 

NoteTabbers,

I have a clipbar for frequently used clips. How do I format a comment so it doesn't appear in the clip bar? The comments I now have appear with the open/close clipbook icon. I tried using a semicolon and then // at the start but that did not hide them.

Is there a special character that will hide a comment? I could not find any description of formatting clipbar files in the built in help.

Michael F.


Re: ClipWriter

Axel Berger
 

"Thomas Gruber Yahoo via groups.io" wrote:
(I know Axel objects...).
Not really, I only give advice based on what works for me. Or to quote
Lotta, who once again put it better:

How we best learn new stuff is very individual, I think.
All too often we think the standard way, the one everybody else uses, is
the only way. I try to point out the alternatives I found.


--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --