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 16874 - 16903 of 23890   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#16874 From: "abetsent" <backup2abet@...>
Date: Sun Aug 19, 2007 12:12 pm
Subject: Regex
abetsent
Send Email Send Email
 
Dear friends,

I know that is Regex, but I don't start to studied yet.

I need to extract (to translate) the content of the
<title>...</title>, between the to two tags.

Thanks and best regard.

#16875 From: "Sheri" <silvermoonwoman@...>
Date: Sun Aug 19, 2007 12:54 pm
Subject: Re: Regex
silvermoonwo...
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "abetsent" <backup2abet@...> wrote:
>
> Dear friends,
>
> I know that is Regex, but I don't start to studied yet.
>
> I need to extract (to translate) the content of the
> <title>...</title>, between the to two tags.
>
> Thanks and best regard.
>

Not a new question.

<http://tech.groups.yahoo.com/group/ntb-clips/message/16318>

BTW, the message archives can be searched on Yahoo at
<http://tech.groups.yahoo.com/group/ntb-clips/msearch_adv>

Regards,
Sheri

#16876 From: Mike Breiding <notetab@...>
Date: Sun Aug 19, 2007 2:46 pm
Subject: Re: [Clip] Re: replacing or removing something between two somethings
mikebreiding
Send Email Send Email
 
At 04:25 PM 8/18/2007 , you wrote:
>All this clip snippet will do is select the text
>between the search items you use for the two ^!Find
>statements. It doesn't do anything with the cursor
>at the beginning of the clip, so you'll have to put
>the cursor at the beginning of the document with,
>say, ^!Jump Doc_Start. Also, it doesn't do anything
>afterwards with the selected text. I leave that up
>to the reader. All this clip does is demonstrate
>how to select text between two search items, in
>this case < and >. If you want to find text
>between two other search items, replace < and
>> with the items you want. Finally, I'm not sure
>how you're grabbing this clip code from the email
>message, but make sure you're not getting any
>message quote delimiters (>). Every line in this
>clip begins with either a semicolon (;), a command
>prefix (^!), or a blank line.
>
>Hope this helps,  Scott

I gave up on using a clip and just changed everything manually.
Thanks to everyone for the help.
-Mike




----------
Check it out:
www.EpicRoadTrips.us

~~~



~~~





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

#16877 From: "Sheri" <silvermoonwoman@...>
Date: Sun Aug 19, 2007 3:54 pm
Subject: [Clip] Re: replacing or removing something between two somethings
silvermoonwo...
Send Email Send Email
 
That's the kind of thing the update to 5.x makes easier.

Which version of NoteTab are you using?

Regards,
Sheri

#16878 From: Mike Breiding <notetab@...>
Date: Sun Aug 19, 2007 4:22 pm
Subject: Re: [Clip] Re: replacing or removing something between two somethings
mikebreiding
Send Email Send Email
 
At 11:54 AM 8/19/2007 , you wrote:
>That's the kind of thing the update to 5.x makes easier.
>
>Which version of NoteTab are you using?
>
>Regards, Sheri


Hi Sheri,
I am using 4.95 np/Full Version.

-Mike




----------
Check it out:
www.EpicRoadTrips.us

~~~



~~~





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

#16879 From: "Sheri" <silvermoonwoman@...>
Date: Sun Aug 19, 2007 9:23 pm
Subject: [Clip] Re: replacing or removing something between two somethings
silvermoonwo...
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, Mike Breiding <notetab@...> wrote:
>
> At 11:54 AM 8/19/2007 , you wrote:
> >That's the kind of thing the update to 5.x makes easier.
> >
> >Which version of NoteTab are you using?
> >
> >Regards, Sheri
>
>
> Hi Sheri,
> I am using 4.95 np/Full Version.
>
> -Mike

Hi Mike,

Be sure to mention that when asking for clip help. Just scanned
through your replies and I think only Scott's solution could be
expected to work on 4.95.

Regards,
Sheri

#16880 From: Ray Shapp <ras45@...>
Date: Sun Aug 19, 2007 10:37 pm
Subject: Re: [Clip] Re: HexConvert
rayshapp
Send Email Send Email
 
Hi Sheri,

<<Maybe you're looking for something like this, but it doesn't come with
NoteTab. Its a clip of mine that I use a lot.>>

Many thanks!

Ray Shapp

#16881 From: Mike Breiding <notetab@...>
Date: Sun Aug 19, 2007 11:16 pm
Subject: Re: [Clip] Re: replacing or removing something between two somethings
mikebreiding
Send Email Send Email
 
At 05:23 PM 8/19/2007 , you wrote:
>Hi Mike,
>
>Be sure to mention that when asking for clip help. Just scanned
>through your replies and I think only Scott's solution could be
>expected to work on 4.95. Regards, Sheri

Will do.
Thanks!
-Mike


----------
Check it out:
www.EpicRoadTrips.us

~~~



~~~





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

#16882 From: "ebbtidalflats" <ebbtidalflats@...>
Date: Tue Aug 21, 2007 5:41 pm
Subject: [Clip] Re: replacing or removing something between two somethings
ebbtidalflats
Send Email Send Email
 
Mike,

I know you said you were done with this, but really, what is this
forum for, except to learn something about clips?

My previously submitted three-liner was an approximation.
What was wrong with it was the TAB delimiter between
the expression to find, and the command switches.

Below is the same thing, with proper punctuation.
It works on either NoteTab Lite (4.95)
OR on NoteTab 5.3. See below.

--- In ntb-clips@yahoogroups.com, Mike Breiding <notetab@...> wrote:
>
> Hi Eb,
> When I ran your clip it in inserted " <img src="">" at the cursor
location
> and that is all.
> Wonder what I am doing wrong.


This 3-line clip is ready to run:
----->8-----
H="ReduceImageTagToJustSrcAttrib"
^!Find <img [^\>]+> RIS
^!Set %pic%=^$GetHtmlTagAttr("^$GetSelection$";"src")$
^!Insert <img src="^%pic%">
----->8-----

Run on the following two tags (note the src attribute is located
differently in the second image tag):

<img src="openAccount.gif" alt="Open an Account" title="New Account">
<img alt="New Account" src="openAccount.gif" title="Open an Account">

It produces:

<img src="openAccount.gif">
<img src="openAccount.gif">


Even if you don't need this anymore, it ought to give you food for
thought. If you don't try to learn why some clip doesn't work, you
will never be able to utilize the full power of NoteTab.

Cheers


Eb

#16883 From: "derekcornishuk" <100341.2151@...>
Date: Tue Aug 21, 2007 6:22 pm
Subject: Jody Adair's Bookmark clip library
derekcornishuk
Send Email Send Email
 
As my first foray into using clips - yes, I am that new :-) - I have
been using Jody Adair's Bookmark clip library to provide bookmarks in
an outline file. It all works excellently except for one odd problem,
which is probably due to my misunderstanding some part of the
instructions.

Briefly, when I set three or four bookmarks, the "Go to.." commands
work perfectly for all of them except the first. However I set things
up, "GoTo Bookmark 1" always sends me to the beginning of the file,
instead of to where the bookmark has actually been placed by me.
However, "Remove Bookmark 1" goes its correct position and removes it
without any problems.

I've looked at the individual clips, and the ones for Bookmark 1 look
just like the others. The *.ini file also looks correct. So I am
wondering if either there might be a mistake somewhere in the clipbook
(very unlikely), or whether the first bookmark is intended by default
to take one to the beginning of the file. I can't find anything on
this in the documentation, though. Another possibility is that I may
have somehow corrupted the clipbook while setting it up.

Is anyone else using this clipbook and, if so, does their experinece
match mine?

Thanks,

Derek

#16884 From: Mike Breiding <notetab@...>
Date: Wed Aug 22, 2007 11:57 am
Subject: Re: [Clip] Re: replacing or removing something between two somethings
mikebreiding
Send Email Send Email
 
Thanks,Eb.
I will try to tease my brain with this.
-Mike
=========
At 01:41 PM 8/21/2007 , you wrote:
>Mike,
>
>I know you said you were done with this, but really, what is this
>forum for, except to learn something about clips?
>
>My previously submitted three-liner was an approximation.
>What was wrong with it was the TAB delimiter between
>the expression to find, and the command switches.
>
>Below is the same thing, with proper punctuation.
>It works on either NoteTab Lite (4.95)
>OR on NoteTab 5.3. See below.
>
>This 3-line clip is ready to run:
>----->8-----
>H="ReduceImageTagToJustSrcAttrib"
>^!Find <img [^\>]+> RIS
>^!Set %pic%=^$GetHtmlTagAttr("^$GetSelection$";"src")$
>^!Insert <img src="^%pic%">
>----->8-----
>
>Run on the following two tags (note the src attribute is located
>differently in the second image tag):
>
><img src="openAccount.gif" alt="Open an Account" title="New Account">
><img alt="New Account" src="openAccount.gif" title="Open an Account">
>
>It produces:
>
><img src="openAccount.gif">
><img src="openAccount.gif">
>
>Even if you don't need this anymore, it ought to give you food for
>thought. If you don't try to learn why some clip doesn't work, you
>will never be able to utilize the full power of NoteTab.
>
>Cheers
>
>Eb



----------
Check it out:
www.EpicRoadTrips.us

~~~



~~~





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

#16885 From: Axel Berger <Axel-Berger@...>
Date: Thu Aug 23, 2007 3:10 pm
Subject: Regex changes?
absalom_nemini
Send Email Send Email
 
Am I right that there was a change in Regex between version 5.1 and 5.3?
The search pattern (.+?) used to include linefeeds but does not seem to
do anymore.
I want to update similar patterns in a lot of my pages and some of those
contain linefeeds to make the code more legible, some don't (depending
on the length of other parts).

So how do I say "anything including newlines but not greedy" in the
current version?

Would ((.|\n)+?) do it? And if the brackets used to be $n will the outer
one still be $n and the inner $(n+1), so that the next bracket in the
sequnce will move from $(n+1) to $(n+2)?

Danke
	 Axel

#16886 From: "Sheri" <silvermoonwoman@...>
Date: Thu Aug 23, 2007 4:20 pm
Subject: Re: Regex changes?
silvermoonwo...
Send Email Send Email
 
Hi Axel,

--- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
>
> Am I right that there was a change in Regex between version 5.1
> and 5.3? The search pattern (.+?) used to include linefeeds but
> does not seem to do anymore. I want to update similar patterns in
> a lot of my pages and some of those contain linefeeds to make the
> code more legible, some don't (depending on the length of other
> parts). So how do I say "anything including newlines but not
> greedy" in the current version?

If you want dot to match linebreaks, you should use the (?s) option
aka "dotall". Then .+? would do what you ask.

>
> Would ((.|\n)+?) do it?

You should avoid referencing "\n" (in NoteTab version 5+) by itself if
at all possible. A linebreak for any text actively displayed in a
NoteTab document tab is always using "\r\n" as a linebreak. Under some
circumstances, you could cause an undesired match to happen between
the "\r" and "\n" with an ill conceived regex.

> And if the brackets used to be $n will
> the outer one still be $n and the inner $(n+1), so that the next
> bracket in the sequnce will move from $(n+1) to $(n+2)?

Yes.

You normally have to count internal parentheses, but if you don't need
a substring from a particular grouping, you can exclude it from
counting by using ?: in it, e.g., ((?:hello|goodbye) A.+) puts "hello
Axel" in $1 and doesn't create $2. If the pattern is longer has other
captures, the next group can then be $2 instead of $3.

Of course you can avoid the whole counting issue by using named
substrings. Even so, it is still probably more memory efficient to
suppress captures, i.e., by using ?:, for groupings you don't need.

Regards,
Sheri

#16887 From: Axel Berger <Axel-Berger@...>
Date: Thu Aug 23, 2007 4:53 pm
Subject: Re: [Clip] Re: Regex changes?
absalom_nemini
Send Email Send Email
 
Sheri wrote:
> the (?s) option aka "dotall"
> can exclude it from counting by using ?: in it,

Thanks a lot Sheri. Both those are well hidden inside the help file. How
do you manage to remeber all that?

Danke
	 Axel

#16888 From: Sheri <silvermoonwoman@...>
Date: Thu Aug 23, 2007 9:02 pm
Subject: Re: [Clip] Re: Regex changes?
silvermoonwo...
Send Email Send Email
 
Axel Berger wrote:
> Sheri wrote:
>
>> the (?s) option aka "dotall"
>> can exclude it from counting by using ?: in it,
>>
>
> Thanks a lot Sheri. Both those are well hidden inside the help file. How
> do you manage to remeber all that?
>
> Danke
>  Axel
>
>
Just an abiding interest I guess. Bet you'll remember (?s) next time.

I picked up some of the syntax when I dabbled in Perl. My primary
interest in Perl was for regex (to be able to do things NoteTab didn't
support before version 5).

Regards,
Sheri

#16889 From: "abetsent" <backup2abet@...>
Date: Fri Aug 24, 2007 3:10 pm
Subject: Regex replace
abetsent
Send Email Send Email
 
Hi friends:

I writed and don't worked:

^!Open desc-^%campo1%.txt
^!Set %titulo67%=^$GetText$
^!Close desc-^%campo1%.txt,discard
;
^!Find "<meta name="Description" content=(.*?)">" RIWS1
^!Replace ^$GetSelection$ >> "<meta name="Description" content=^%
titulo67%">" tiws

The file desc-^%campo1%.txt is only a 5 lines text, in unicode
(Russian). Path is ok. Is the <descripton> in Russian.

I replaced the <title>Russian...</title> very well, but the above
description don't worked. But I need to include the meta name, etc.,
because is part of the <description> tag.

Help.

#16890 From: "abetsent" <backup2abet@...>
Date: Fri Aug 24, 2007 3:27 pm
Subject: Re: Regex replace 9@0
abetsent
Send Email Send Email
 
Hi friends, sorry.

I forget an " now is ok.

How many times I losted in my entire life, because an " or ; or ,
or .? Months, years? One time I losted five entire days because of a
space...

Best regards,


--- In ntb-clips@yahoogroups.com, "abetsent" <backup2abet@...> wrote:
>
> Hi friends:
>
> I writed and don't worked:
>
> ^!Open desc-^%campo1%.txt
> ^!Set %titulo67%=^$GetText$
> ^!Close desc-^%campo1%.txt,discard
> ;
> ^!Find "<meta name="Description" content=(.*?)">" RIWS1
> ^!Replace ^$GetSelection$ >> "<meta name="Description" content=^%
> titulo67%">" tiws
>
> The file desc-^%campo1%.txt is only a 5 lines text, in unicode
> (Russian). Path is ok. Is the <descripton> in Russian.
>
> I replaced the <title>Russian...</title> very well, but the above
> description don't worked. But I need to include the meta name,
etc.,
> because is part of the <description> tag.
>
> Help.
>

#16891 From: Sheri <silvermoonwoman@...>
Date: Fri Aug 24, 2007 3:53 pm
Subject: Re: [Clip] Regex replace
silvermoonwo...
Send Email Send Email
 
abetsent wrote:
> Hi friends:
>
> I writed and don't worked:
>
> ^!Open desc-^%campo1%.txt
> ^!Set %titulo67%=^$GetText$
> ^!Close desc-^%campo1%.txt,discard
> ;
> ^!Find "<meta name="Description" content=(.*?)">" RIWS1
> ^!Replace ^$GetSelection$ >> "<meta name="Description" content=^%
> titulo67%">" tiws
>
> The file desc-^%campo1%.txt is only a 5 lines text, in unicode
> (Russian). Path is ok. Is the <descripton> in Russian.
>
> I replaced the <title>Russian...</title> very well, but the above
> description don't worked. But I need to include the meta name, etc.,
> because is part of the <description> tag.
>
> Help.
>
>
Is your ^!Find command selecting what you want to replace? With the "1"
in options, I would expect the ^!Find to highlight only for (.*?)
portion. instead of using a ^!Replace command that searches again (from
the top of the file because of the included "W" option) for the data,
you could just insert the text of the variable into the hightlight
instead. Also I don't think you should use ^$GetSelection$ in the
replace command. You should assign ^$GetSelection$ to a variable and use
that. Also, the search criteria in the replace command should be
surrounded with double quotes.

To just insert the variable into the highlight, either of these would
probably work fine:

^!InsertText ^%titulo67%
or
^%titulo67%

Another approach would be to remove the ^!Find command and use ^!Replace
instead:

^!Replace "<meta name="Description" content=(.*?)">" >> "^%titulo67%" RIWS1

"W" makes it search from the top. With no "A" it will search only for the first.

The comma discard in your ^!Close command is not correct. You should have double
quotes around the file name, then a space, then Discard

You do not have to open the file to get its text. Look at ^$GetFileText$

Regards,
Sheri

#16892 From: backup2abet <backup2abet@...>
Date: Fri Aug 24, 2007 5:18 pm
Subject: Re: [Clip] Regex replace
abetsent
Send Email Send Email
 
Hi Sheri,

One time more: Great! Thanks.

Sheri escreveu:
>
> abetsent wrote:
> > Hi friends:
> >
> > I writed and don't worked:
> >
> > ^!Open desc-^%campo1% .txt
> > ^!Set %titulo67%=^ $GetText$
> > ^!Close desc-^%campo1% .txt,discard
> > ;
> > ^!Find "<meta name="Description" content=(.*? )">" RIWS1
> > ^!Replace ^$GetSelection$ >> "<meta name="Description" content=^%
> > titulo67%">" tiws
> >
> > The file desc-^%campo1% .txt is only a 5 lines text, in unicode
> > (Russian). Path is ok. Is the <descripton> in Russian.
> >
> > I replaced the <title>Russian. ..</title> very well, but the above
> > description don't worked. But I need to include the meta name, etc.,
> > because is part of the <description> tag.
> >
> > Help.
> >
> >
> Is your ^!Find command selecting what you want to replace? With the "1"
> in options, I would expect the ^!Find to highlight only for (.*?)
> portion. instead of using a ^!Replace command that searches again (from
> the top of the file because of the included "W" option) for the data,
> you could just insert the text of the variable into the hightlight
> instead. Also I don't think you should use ^$GetSelection$ in the
> replace command. You should assign ^$GetSelection$ to a variable and use
> that. Also, the search criteria in the replace command should be
> surrounded with double quotes.
>
> To just insert the variable into the highlight, either of these would
> probably work fine:
>
> ^!InsertText ^%titulo67%
> or
> ^%titulo67%
>
> Another approach would be to remove the ^!Find command and use ^!Replace
> instead:
>
> ^!Replace "<meta name="Description" content=(.*? )">" >> "^%titulo67%
> " RIWS1
>
> "W" makes it search from the top. With no "A" it will search only for
> the first.
>
> The comma discard in your ^!Close command is not correct. You should
> have double quotes around the file name, then a space, then Discard
>
> You do not have to open the file to get its text. Look at ^$GetFileText$
>
> Regards,
> Sheri
>
>

#16893 From: backup2abet <backup2abet@...>
Date: Sat Aug 25, 2007 2:14 am
Subject: Re: [Clip] Regex replace
abetsent
Send Email Send Email
 
Hy Cheri, allways thanks.

This was suggested by Sheri, and worked very well:

^!Set
%titulo67%=^$GetFileText(f:\0-novossites\^%site%\linguas\^%li%_tags\keys-^%campo\
1%.txt)$

^!Replace "<meta name="Description" content="(.*?)">" >> "<meta
name="Description" content="^%titulo67%">" RIWS1

In the INPUT, in the file \keys-^%campo1%.txt, I have (with ntp):

???????????? ????? ??????????? ????????? ???????????? ????????:
????????????? ?????????? Mba ??????? Crm ???????????? ??????????
?????????? ??????????????????? ????????????? ????????? ????? ??????
???????? ??????? ????? ? ???????????????? ?????????? Scm ???????????
???????? Pm Erp ??????? ???????????

This is ok, is Russian if you see as .htm.

But in the OUTPUT after the replace, you see (with ntp):

"Подстрекайте Курсы Предложения
Открытого университета Покрытие:
Правительство Управление Mba Текущее Crm
Общественное управление Управления
торговопромышленной деятельностью
Программа Курсы Каналы поставок
Потоков работ и документооборота
Управление Scm  уководство проектом Pm
Erp  есурсы Предприятия
">

Therefore, the Replace CHANGED the original text, perhaps because the
Regex code it is not perfect for this case or perhaps because there is
an Unicode problem. Appears to me that is a Regex problem, because you
see the INPUT as correct and the OUTPUT as incorrect, and they must be
the same if correctly replaced.

====================================

Sheri escreveu:
>
> abetsent wrote:
> > Hi friends:
> >
> > I writed and don't worked:
> >
> > ^!Open desc-^%campo1% .txt
> > ^!Set %titulo67%=^ $GetText$
> > ^!Close desc-^%campo1% .txt,discard
> > ;
> > ^!Find "<meta name="Description" content=(.*? )">" RIWS1
> > ^!Replace ^$GetSelection$ >> "<meta name="Description" content=^%
> > titulo67%">" tiws
> >
> > The file desc-^%campo1% .txt is only a 5 lines text, in unicode
> > (Russian). Path is ok. Is the <descripton> in Russian.
> >
> > I replaced the <title>Russian. ..</title> very well, but the above
> > description don't worked. But I need to include the meta name, etc.,
> > because is part of the <description> tag.
> >
> > Help.
> >
> >
> Is your ^!Find command selecting what you want to replace? With the "1"
> in options, I would expect the ^!Find to highlight only for (.*?)
> portion. instead of using a ^!Replace command that searches again (from
> the top of the file because of the included "W" option) for the data,
> you could just insert the text of the variable into the hightlight
> instead. Also I don't think you should use ^$GetSelection$ in the
> replace command. You should assign ^$GetSelection$ to a variable and use
> that. Also, the search criteria in the replace command should be
> surrounded with double quotes.
>
> To just insert the variable into the highlight, either of these would
> probably work fine:
>
> ^!InsertText ^%titulo67%
> or
> ^%titulo67%
>
> Another approach would be to remove the ^!Find command and use ^!Replace
> instead:
>
> ^!Replace "<meta name="Description" content=(.*? )">" >> "^%titulo67%
> " RIWS1
>
> "W" makes it search from the top. With no "A" it will search only for
> the first.
>
> The comma discard in your ^!Close command is not correct. You should
> have double quotes around the file name, then a space, then Discard
>
> You do not have to open the file to get its text. Look at ^$GetFileText$
>
> Regards,
> Sheri
>
>

#16894 From: "Sheri" <silvermoonwoman@...>
Date: Sat Aug 25, 2007 3:15 am
Subject: Re: [Clip] Regex replace
silvermoonwo...
Send Email Send Email
 
Hi,

I think you'd have to zip and post the file because from your message
I'm not seeing the file content. It just looks like series of question
marks here.

If you wish, you could upload such a file here:
<http://tech.groups.yahoo.com/group/ntb-clips/files/Help_wanted/>

Maybe ^$GetFileText$ was a bad idea for this particular file. Try
^$GetUnicodeFileText$ or use ^!Open on it as you did before. I don't
think Regex or the ^!Replace command had anything to do with it.
However, the replacement text side portion of the ^!Replace command
does carry out certain substitutions. So if the file text has
backslashes and dollar signs in it, they would need to be escaped
(with backslashes) first. You could use ^$StrReplace$ to do it.

Regards,
Sheri

#16895 From: backup2abet <backup2abet@...>
Date: Sat Aug 25, 2007 12:35 pm
Subject: Re: [Clip] Regex replace
abetsent
Send Email Send Email
 
Hi Sheri,

In my message, you see a serie of question marks, and this is the INPUT
of the Replace. You see these marks because this is the Russian
language, but if you see these marks in a .htm file, you will see very
well, the .htm decode the question marks.

But the problem is the OUTPUT of the same INPUT: You see other
characteres, without any relation with the INPUT characteres.

Therefore, I think that the error is the Regex code, because this is a
Replace and the input and output must be the same characteres. It is not
to change, it is to replace.

Thanks.


Sheri escreveu:
>
> Hi,
>
> I think you'd have to zip and post the file because from your message
> I'm not seeing the file content. It just looks like series of question
> marks here.
>
> If you wish, you could upload such a file here:
> <http://tech. groups.yahoo. com/group/ ntb-clips/ files/Help_ wanted/
> <http://tech.groups.yahoo.com/group/ntb-clips/files/Help_wanted/>>
>
> Maybe ^$GetFileText$ was a bad idea for this particular file. Try
> ^$GetUnicodeFileTex t$ or use ^!Open on it as you did before. I don't
> think Regex or the ^!Replace command had anything to do with it.
> However, the replacement text side portion of the ^!Replace command
> does carry out certain substitutions. So if the file text has
> backslashes and dollar signs in it, they would need to be escaped
> (with backslashes) first. You could use ^$StrReplace$ to do it.
>
> Regards,
> Sheri
>
>



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

#16896 From: "Pat(kitPatH)" <kitpath@...>
Date: Sat Aug 25, 2007 2:46 pm
Subject: images to html page - available clips
kitpath
Send Email Send Email
 
hi,
Are there clips to read image files from a directory and tag them for an html
page?
I mean other than the clip "images to html" that comes with the program's
"utilities.clb"

I wonder if there were other efforts. I'm not finding html layout from file
lists on the notetab libaries archive or searching  list mail here at yahoo.

I'm thinking of setting up images in a table instead of one per paragraph.
Basically just looking for other people's ideas?

(The jpgs I am working with are already thumbnail. there is no need to link to a
larger picture.)

pat

#16897 From: "Sheri" <silvermoonwoman@...>
Date: Sat Aug 25, 2007 3:23 pm
Subject: Re: [Clip] Regex replace
silvermoonwo...
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, backup2abet <backup2abet@...> wrote:
>
> Hi Sheri,
>
> In my message, you see a serie of question marks, and this is the
> INPUT of the Replace. You see these marks because this is the
> Russian language, but if you see these marks in a .htm file, you
> will see very well, the .htm decode the question marks. But the
> problem is the OUTPUT of the same INPUT: You see other
> characteres, without any relation with the INPUT characteres.
> Therefore, I think that the error is the Regex code, because this
> is a Replace and the input and output must be the same
> characteres. It is not to change, it is to replace.

> Thanks.

Unless you post the titulo67 file, I can't be of further help. If I
save those question marks etc. to a file and process a similar clip I
get the following result in a document containing

<meta name="Description" content="xyz">

which is exactly what I expect:

<meta name="Description" content="???????????? ????? ???????????
????????? ???????????? ????????:
????????????? ?????????? Mba ??????? Crm ???????????? ??????????
?????????? ??????????????????? ????????????? ????????? ????? ??????
???????? ??????? ????? ? ???????????????? ?????????? Scm ???????????
???????? Pm Erp ??????? ???????????">

This is my clip:

^!Set %titulo67%=^$GetFileText("C:\abettest.txt")$
^!Replace "<meta name="Description" content="(.*?)">" >> "^%titulo67%"
RIWS1


Regards,
Sheri

#16898 From: Axel Berger <Axel-Berger@...>
Date: Sat Aug 25, 2007 3:34 pm
Subject: Re: [Clip] images to html page - available clips
absalom_nemini
Send Email Send Email
 
"Pat(kitPatH)" wrote:
> I'm thinking of setting up images in a table instead of one per paragraph.
> Basically just looking for other people's ideas?

Don't! Absolutely do not! If the table cells fit the images, the table
has a fixed size and will only fit one single size of window. If you
size the table relative to the window the images will only fit the cells
well at one single size of window. This is totally against the grain and
spirit of HTML where you supply the content and the reader determines
his preferred look and layout.
My idea how thumbnail pages ought to be done is this:

http://axel.berger-odenthal.de/Urlaub/Pic/Is-05/D18/index.html

It is a bit of a hack. The CSS standard has defined the attribute
"inline-table" for just this purpose but no single browser supports it
so you have to fudge it.
Don't forget to resize the window from very small to very wide and in
between. Firefox lets you do it while reformatting on the fly while you
drag - highly recommended for testing out fluid layouts.

Axel

#16899 From: "Pat" <kitpath@...>
Date: Sat Aug 25, 2007 9:37 pm
Subject: Re: [Clip] images to html page - available clips
kitpath
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
>
> "Pat(kitPatH)" wrote:
> > I'm thinking of setting up images in a table instead of one per
paragraph.
> > Basically just looking for other people's ideas?
>
> Don't! Absolutely do not! If the table cells fit the images, the
table
> has a fixed size and will only fit one single size of window. If you
> size the table relative to the window the images will only fit the
cells
> well at one single size of window. This is totally against the
grain and
> spirit of HTML where you supply the content and the reader
determines
> his preferred look and layout.
> My idea how thumbnail pages ought to be done is this:
>
> http://axel.berger-odenthal.de/Urlaub/Pic/Is-05/D18/index.html
>
> It is a bit of a hack. The CSS standard has defined the attribute
> "inline-table" for just this purpose but no single browser supports
it
> so you have to fudge it.
> Don't forget to resize the window from very small to very wide and
in
> between. Firefox lets you do it while reformatting on the fly while
you
> drag - highly recommended for testing out fluid layouts.
>
> Axel
>

Axel, this is what I had in mind!  To me, it's a table. one image per
row. the jpgs i am working with are all one size or same range
(mostly 75x100). I just want a quicker way to label each jpg with the
file name. and i thought a clip would do that for me...

front page has a feature but it assumes the original photos are
huges. it uses a data approach.

http://home.earthlink.net/~kitpath/MC/CoverArt/MCCB(black)1.htm

or

resizable -- which i don't like but some people are using resolutions
i hear about

http://home.earthlink.net/~kitpath/MC/CoverArt/NamedMags.htm

pat

#16900 From: "Pat" <kitpath@...>
Date: Sat Aug 25, 2007 9:38 pm
Subject: Re: [Clip] images to html page - available clips
kitpath
Send Email Send Email
 
by "this is what i had in mind" i was referring to your layout.

pat

#16901 From: account <backup2abet@...>
Date: Mon Aug 27, 2007 7:50 pm
Subject: Re: Regex replace
abetsent
Send Email Send Email
 
Hi friends, hi Sheri:

Friends,

This is my Regex problem, and unfortunally I don`t know how to fix.

The ORIGEM to be Replaced: Are <title>, description and keywords of a
html page,
all in English, without any special characters. Plain Englisdh.

The texts to Replace these tags, are in Russian,
please see the below variables :

-------------------
TITLE: ^!Set %titulo66%= Crm
#1059;правление
Mba Связь
Абонента
Деловой
Курс
Управление
торговопром\
099;шленной
деятельност\
100;ю
Курсов
Текущих Internet "
-----------------
KEYWORDS: ^!Set %titulo67%= crm
управление
mba связь
абонента
деловой
курс
управление
торговопром\
099;шленной
деятельност\
100;ю
курсов
текущий internet
маркетинг
потоки
работ и
документооб\
086;рота
voip каналы
поставок
управление
scm
руководство
проектом
общественно\
075;о
управления
pm
правительст\
074;о
людских
ресурсов
исполняющий
erp
планировани\
077;
ресурсов
предприятия
эмба cio шеф
данные
офицер
бизнес
разведка
деловая
автоматизац\
080;я
bi программы
виртуализац\
080;и
программиру\
102;т
методологию
международн\
072;я
торговля hr
финансируют
деловой
университет
соответстви\
103;
финансов
дипломный
сертификат
B2b B2c G2b G2c G2g e-governo e-gobierno e-gouvernment e-regierung
Unternehmen gestion de l'affaire gestione di afari gestao de negocios
подтвержден\
080;я
права
доступа certificazione
certificazioni certificacao certificacoes certificacion certificaciones
administracao empresas administracion negocios Zulassung Zulassungen MBA
Zertifikat Zertifikate
сертификаты"
--------------------
DESCRIPTION: ^%Set %titulo68%=
Подстрекайт\
077;
Курсы
Предложения
Открытого
университет\
072;
Покрытие: Crm
Управление
Mba Связь
Абонента
Деловой
Курс
Управление
торговопром\
099;шленной
деятельност\
100;ю
Курсов
Текущий Internet
Маркетинг
Потоки
работ и
документооб\
086;рота
Voip Каналы
поставок
Управление
Scm Проект
Общественно\
075;о
управления "
-------------------

And I used the following Regex:

^!Replace "<title>(.*?)</title>" >> "^%titulo66%" RIWS1

^!Replace "<meta name="keywords" content="(.*?)">" >> <meta
name="keywords" content="^%titulo67%"> RIWS1

^!Replace "<meta name="Description" content="(.*?)">" >> "^%titulo68%" RIWS1

And he don't replaced in the three Replaces.

Thanks!

#16902 From: "Sheri" <silvermoonwoman@...>
Date: Mon Aug 27, 2007 10:18 pm
Subject: Re: Regex replace
silvermoonwo...
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, account <backup2abet@...> wrote:
>
> Hi friends, hi Sheri:
>
> Friends,
>
> This is my Regex problem, and unfortunally I don`t know how to fix.
>
> The ORIGEM to be Replaced: Are <title>, description and keywords of
> a html page,
> all in English, without any special characters. Plain Englisdh.
>
> The texts to Replace these tags, are in Russian,
> please see the below variables :

<snip>

The format of your ^!Set commands is not correct, each must start in
column one be all on one line. You can use ^P where there should be
linebreaks in the variable content, or put the contents (codes) with
normal linebreaks into a text file and use ^$GetFileText$.

The label format is also incorrect. It should be

:TITLE
not TITLE:

also in column one.

Clipcode is very rigid about syntax format. Lines which are not
commands are text to be inserted into the current document. Any
embedded functions get expanded prior to insertion.

Regards,
Sheri

#16903 From: "Bill Mosca" <wrmosca@...>
Date: Fri Aug 31, 2007 7:22 pm
Subject: Using 2 Libraries at the same time in NP Pro 5.3
wrmosca
Send Email Send Email
 
Is it possible to use two libraries at the same time such as The auto
correct and the paste clips?

I'm a DBA and programmer. I have used NP Lite for quite a while and
built up a lot of pasteclips for writing common phrases of SQL, VB and
just plain writing. I'd also like to be able to use other libraries
while this one is loaded without having to switch them.

I thought about putting the phrases in the AutoCorrect library, but
that is limited to the NP window. The PasteClips library works so
nicely in any application.

Building a library toolbar works well for any of the non-automatic
libraries, but I just can't figure out a solution to the above.

Bill Mosca

Messages 16874 - 16903 of 23890   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