I am wondering whether this is a relevant point or not,but, here goes
anyway:
I am looking for occurrences of BE + Past Participle in on-passive,
intransitive constructions, with examples such as:
*I am arrived*, *He is become*, *She is returned* in publicly available
versions of English
Hi Richmond,
in LC 7 you can use sentence as a text unit.
Since sentence seems your context it is tempting to use that
here is an adaption of the is/was handler returning the sentence number and
the sentence
Easy to read, easy to maintain and reasonably fast. Just paste the code into
a copy of
On 10/08/15 23:51, hh wrote:
Richmond, this was your last post to this thread before mine.
My current version is here:
https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
File : TA.zip
play with it, rip it to pieces, improve it: go on, I dare you :)
Richmond.
So I
Of course I couldn't resist a tinker. I too am into text manipulation/searching
and wondered how I would go about this.
I looked at the repeat loops and realised they would run much faster if they
were inverted as I am sure the list of verbs would be less than the lines of
text being searched.
On 11/08/15 17:31, James Hale wrote:
snip
This means none of the proposed solutions (including Richmond's own) will find
the desired phrase if it falls across one of these line breaks.
snip
Wow! Very valuable point: thanks.
Richmond.
___
Hi all,
Richmond, you could give this a try in your fine prepared stack:
The following uses
= an array [one of the proposals above]
= trueWords [one of the proposals, needs LC 7]
= multichar-itemDelimiters [one of the proposals above, needs LC 7]
It outputs for each of your 6 opening words
were
Richmond, this was your last post to this thread before mine.
My current version is here:
https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
File : TA.zip
play with it, rip it to pieces, improve it: go on, I dare you :)
Richmond.
So I downloaded this stack and
On 10/08/15 22:19, hh wrote:
Hi all,
Richmond, you could give this a try in your fine prepared stack:
The following uses
= an array [one of the proposals above]
= trueWords [one of the proposals, needs LC 7]
= multichar-itemDelimiters [one of the proposals above, needs LC 7]
It outputs for
My current version is here:
https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
File : TA.zip
play with it, rip it to pieces, improve it: go on, I dare you :)
Richmond.
___
use-livecode mailing list
On 09/08/15 23:03, Richard Gaskin wrote:
Richmond wrote:
Just by loading the textFields into variables the whole script runs
considerably faster
If you did the same with the output it'd get even faster.
Hmm:
on mouseUp
put empty into fld COOKED
put empty into fld STARTT
put empty
Call my code clunky, clumsy and slow, and that won't really fuss me:
BUT what does fuss me is why this produces NO results when it analyses a
text imported from an RTF file, BUT does work when the text
is either manually edited or imported from a text file.
on mouseUp
put empty into fld
To come back to Richmond's opening post, one could think about using the
following, avoiding complex offset constructions.
First collect word 1 of each item of a string (not too large, size adapted to
your machine), where the itemdelimiter is were or any other word
(conditional) that filters a
On 09/08/15 16:47, Peter M. Brigham wrote:
On Aug 9, 2015, at 8:46 AM, Richmond wrote:
BUT what does fuss me is why this produces NO results when it analyses a text
imported from an RTF file, BUT does work when the text
is either manually edited or imported from a text file.
Maybe if you do
On 09/08/15 19:21, Richard Gaskin wrote:
Richmond wrote:
Now, if you happen to know of a list of English intransitive verbs .
. . .
https://en.wiktionary.org/wiki/Category:English_intransitive_verbs
Yes: I looked there: but I am a lazy toad, and the thought of typing all
those words into a
On Aug 9, 2015, at 8:46 AM, Richmond wrote:
BUT what does fuss me is why this produces NO results when it analyses a text
imported from an RTF file, BUT does work when the text
is either manually edited or imported from a text file.
Maybe if you do this?
set the RTFtext of the
Richmond wrote:
Now, if you happen to know of a list of English intransitive verbs . . . .
https://en.wiktionary.org/wiki/Category:English_intransitive_verbs
There's also WordNet, but while it does include word sense I don't
recall if it gets as specific as to the type of verb. Besides,
On 09/08/15 16:52, Richmond wrote:
On 09/08/15 16:47, Peter M. Brigham wrote:
On Aug 9, 2015, at 8:46 AM, Richmond wrote:
BUT what does fuss me is why this produces NO results when it
analyses a text imported from an RTF file, BUT does work when the text
is either manually edited or imported
snip
However, I'm doing just fine with HTML text instead :)
snip
Well . . . the stack works, but as I have not loaded the whole text to
be analysed into a variable, but am doing it line by line, the whole
thing
is taking far, far too long . . .
What this does at least prove (P.
Just by loading the textFields into variables the whole script runs
considerably faster:
on mouseUp
put empty into fld COOKED
put the long time into fld STARTT
put 1 into KTEKST
put 1 into KCOOK
put fld TEKST into TEKST --
put fld WERBS into WERBS --
repeat until
On 09/08/15 23:03, Richard Gaskin wrote:
Richmond wrote:
Just by loading the textFields into variables the whole script runs
considerably faster
If you did the same with the output it'd get even faster.
Aha.
Richmond.
___
use-livecode mailing
Richmond wrote:
Just by loading the textFields into variables the whole script runs
considerably faster
If you did the same with the output it'd get even faster.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Richmond,
Just so you know what is going on. Each time a change in made to a
field, a lot of management code is executed to properly render the field
in case it is needed to be visible. So when a field is modified within
a loop, that field management code is executed over and over. When
Hermann.
You are back.
So glad...
Craig
-Original Message-
From: hh h...@livecode.org
To: use-livecode use-livecode@lists.runrev.com
Sent: Sun, Aug 9, 2015 2:15 pm
Subject: Re: Jane Austen's peculiarity
To come back to Richmond's opening post, one could think about using
On 10/08/15 02:54, Michael Doub wrote:
Richmond,
Just so you know what is going on. Each time a change in made to a
field, a lot of management code is executed to properly render the
field in case it is needed to be visible. So when a field is
modified within a loop, that field management
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast, the girls walked to Meryton to inquire if Mr. Wickham
_were returned_, and to lament over his absence from the Netherfield ball.
On 08/08/15 20:48, Peter M. Brigham wrote:
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast, the girls walked to Meryton to inquire if Mr. Wickham
_were returned_, and to lament over
On Aug 8, 2015, at 1:56 PM, Richmond wrote:
On 08/08/15 20:48, Peter M. Brigham wrote:
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast, the girls walked to Meryton to inquire if
On 08/08/15 21:18, Peter M. Brigham wrote:
On Aug 8, 2015, at 1:56 PM, Richmond wrote:
On 08/08/15 20:48, Peter M. Brigham wrote:
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast,
I seem to be going wrong:
I have a fld WERBS containing:
found
returned
become
and my test to be analysed in a fld TEKST:
My Dad ate cheese.
My Mum and Dad were returned home when it
began to rain.
He had a house in Spain.
Richmond,
The key here is the “if” - which creates a conditional clause - which requires
the past plural of the verb (in this case “were”). This is similar to the
“wenn clause in German (Deutsch) and the “ut” clause in Latin.
If I were able, I’d thank you in person for mentioning this.
Paul
On 08/08/15 22:56, Paul Looney wrote:
Richmond,
The key here is the “if” - which creates a conditional clause - which requires the
past plural of the verb (in this case “were”). This is similar to the “wenn
clause in German (Deutsch) and the “ut” clause in Latin.
If I were able, I’d thank you
In your last example:
Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive) is correct (although a simple
“returned” would have been more powerful). There is no conditional, no “if”; as
in your first example:
to inquire if Mr. Wickham_were returned_,
Haven’t had this
On Aug 8, 2015, at 3:41 PM, Richmond wrote:
I seem to be going wrong:
I have a fld WERBS containing:
found
returned
become
and my test to be analysed in a fld TEKST:
My Dad ate cheese.
My Mum and Dad were returned home when it
began to
On 08/08/15 23:33, Peter M. Brigham wrote:
On Aug 8, 2015, at 3:41 PM, Richmond wrote:
I seem to be going wrong:
I have a fld WERBS containing:
found
returned
become
and my test to be analysed in a fld TEKST:
My Dad ate cheese.
My Mum and Dad were returned home
On 08/08/15 23:23, Paul Looney wrote:
In your last example:
Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive)
I'm not sure if that is a passive, or an older form of the past perfect
(= had returned) ???
is correct (although a simple “returned” would have been
On 08/08/15 23:33, Peter M. Brigham wrote:
snip
Missing an of in the two lines above:
put line textLine *of* $TEKST into line cookedLine of fld COOKED etc
Don't know if that's the problem.
snip
Your script logic seems unnecessarily complex. Since it looks as if only the
last occurrence
On Aug 8, 2015, at 4:44 PM, Richmond wrote:
On 08/08/15 23:23, Paul Looney wrote:
In your last example:
Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive)
I'm not sure if that is a passive, or an older form of the past perfect (=
had returned) ???
I believe
On 08/08/15 23:59, Peter M. Brigham wrote:
On Aug 8, 2015, at 4:44 PM, Richmond wrote:
On 08/08/15 23:23, Paul Looney wrote:
In your last example:
Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive)
I'm not sure if that is a passive, or an older form of the past
On Aug 8, 2015, at 4:51 PM, Richmond wrote:
On 08/08/15 23:33, Peter M. Brigham wrote:
snip
Missing an of in the two lines above:
put line textLine *of* $TEKST into line cookedLine of fld COOKED etc
Don't know if that's the problem.
snip
Your script logic seems unnecessarily
On 09/08/15 00:26, Peter M. Brigham wrote:
On Aug 8, 2015, at 4:51 PM, Richmond wrote:
On 08/08/15 23:33, Peter M. Brigham wrote:
snip
Missing an of in the two lines above:
put line textLine *of* $TEKST into line cookedLine of fld COOKED etc
Don't know if that's the problem.
snip
Your
on mouseUp
put fld TEKST into TEKST
put fld WERBS into WERBS
put findWere(TEKST) into linesList
repeat for each item i in linesList
put line i of TEKST cr after relevantLines
end repeat
put char 1 to -2 of relevantLines into fld COOKED
end mouseUp
function findWere pText
--
Oddly enough this does NOT seem to be a problem with my counters.
If I reorder my verbList the stack still only finds text bits with 'found'.
Retyping the list (rather than importing it from RTF) the first
occurrence of the first verb in the list results.
There seems to be a problem with the
Richmond wrote:
function findWere pText
-- returns a comma-delim list of all the line offsets matching were *ed
--or were a word in your preterite list.
put fld WERBS into pretList
put wordOffsets(were, pText, true) into offList
Unless the build you're using a custom build,
I think I'd agree that a conditional clause should be equired (could it
be any of 'if', 'unless', 'whether', ...)?
Otherwise, you'd be finding false positives like:
I gave two shillings to my brother and last night they _were returned_
to me.
-- Alex.
On 08/08/2015 20:56, Paul Looney
On Aug 8, 2015, at 6:41 PM, Richard Gaskin wrote:
Richmond wrote:
function findWere pText
-- returns a comma-delim list of all the line offsets matching were *ed
--or were a word in your preterite list.
put fld WERBS into pretList
put wordOffsets(were, pText, true) into
On Aug 8, 2015, at 5:44 PM, Richmond wrote:
executing at 12:43:43 AM
TypeFunction: error in function handler
ObjectBrigham
Lineput wordOffsets(were, pText, true) into offList
HintwordOffsets
Probably you didn't include the wordOffsets() handler from my post earlier
46 matches
Mail list logo