-----原始郵件-----
寄件者: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
收件者: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
日期: 2001年4月20日 PM 11:21
主旨: Digest metacard.v004.n288


>
>-------------- BEGIN metacard.v004.n288 --------------
>
>    001 - Peter Reid <preid@reidit. - RE: Referencing Variables & Objects
>    002 - michael kann <mikekann@ya - Re: Cookies?
>    003 - LiangTyan Fui <fuityan@pc - Re: Cookies?
>    004 - Scott Raney <raney@metaca - Re: Massive Search and Replace in
Binary Files
>    005 - Sivakatirswami <katir@hin - Tracking the "Replace" command
>    006 - "Monte Goulding" <monte.g - RE: Referencing Variables & Objects
>    007 - "Phil Davis" <phildavis@m - Re: Referencing Variables & Objects
>    008 - Hugh Senior <H@flexibleLe - Re: Massive Search and Replace in
Binary Files
>    009 - Dave Cragg <dcragg@lacsce - German keyboard, Win 2000, Alt Gr key
>    010 - "Mark J. Luetzelschwab" < - Re: Massive Search and Replace in
Binary Files
>
>This is the MetaCard mailing list.
>Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send any bug reports to <[EMAIL PROTECTED]>, not this list.
>
>
>--------------- MESSAGE metacard.v004.n288.1 ---------------
>
>From: Peter Reid <[EMAIL PROTECTED]>
>Subject: RE: Referencing Variables & Objects
>Date: Fri, 20 Apr 2001 01:22:37 +0100
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>References: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>
>>  > How can I script inside the handler to determine that the 1st call
>>>  was with "myArr" and the second was with "hisArr".  I know how to get
>>>  values, but I can't see how I get names??
>>
>>The question is why would you want to do this?
>
>So I can process a number of arrays to export/import them to/from
>text files.  In fact there are a number of occasions when I'd like to
>be able to use generic code to handle objects as well as variables,
>so I can loop through all variables in a stack or all objects on a
>card etc.
>
>Cheers
>Peter
>--
>--------------------------------------------------------
>Peter Reid
>Reid-IT Limited, Loughborough, Leics., UK
>Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
>E-mail: [EMAIL PROTECTED]
>Web: http://www.reidit.co.uk
>
>
>--------------- MESSAGE metacard.v004.n288.2 ---------------
>
>From: michael kann <[EMAIL PROTECTED]>
>Subject: Re: Cookies?
>Date: Thu, 19 Apr 2001 17:50:00 -0700 (PDT)
>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>In-Reply-To: <[EMAIL PROTECTED]>
>
>
>--- Scott Rossi <[EMAIL PROTECTED]> wrote:
>> Is there any way to simulate browser cookie
>> behavior/functionality from MC?
>>
>> For example, if I script:
>>
>>   get url "http://www.coolsite.com"
>>
>> Is there some way to send what would otherwise be
>> cookie information along
>> with this URL?  If possible, would the cookie info
>> simply be appended to the
>> address or does it need to be handled differently
>> than a parameter?
>
>--- Reply
>
>Using HTTPtracer I found that when I access a NYTimes
>page (which requires a logon password)the browser
>sends the following (see below). Notice that the
>cookie has its own line: it is not appended to the
>address. The actual cookies are much longer, I just
>shortened them to fit into the email. Others on the
>list most likely can post a script that opens up the
>socket and sends the cookie header along with the
>other headers, then waits for a reply. But it doesn't
>seem that the GET or POST that is built into Metacard
>can do it.
>
> ---- HTTPtracer output of request with a cookie
>
>GET /reuters/technology/tech-gateway-earns-dc.html
>HTTP/1.0
>Accept: */*
>Referer: http://www.nytimes.com/
>Accept-Language: en-us
>Accept-Encoding: gzip, deflate
>User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows
>98; DigExt)
>Host: www.nytimes.com
>Proxy-Connection: Keep-Alive
>Pragma: no-cache
>Cookie: RMID=c; RDB=C; NYT-S=1; EmailAd=toshiba10-nyt2
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>
>--------------- MESSAGE metacard.v004.n288.3 ---------------
>
>From: LiangTyan Fui <[EMAIL PROTECTED]>
>Subject: Re: Cookies?
>Date: Fri, 20 Apr 2001 09:09:07 +0800
>MIME-Version: 1.0
>Content-Type: text/plain; charset="US-ASCII"
>Content-Transfer-Encoding: 7bit
>In-Reply-To: <[EMAIL PROTECTED]>
>
>On 4/20/01 4:35 AM, Scott Rossi wrote:
>
>> Is there any way to simulate browser cookie behavior/functionality from
MC?
>>
>> For example, if I script:
>
>set httpheaders to "Cookie: xxxxxxx"
>
>> get url "http://www.coolsite.com"
>>
>> Is there some way to send what would otherwise be cookie information
along
>> with this URL?  If possible, would the cookie info simply be appended to
the
>> address or does it need to be handled differently than a parameter?
>>
>> Thanks & Regards,
>>
>> Scott
>
>Regards,
>LiangTyan Fui
>
>> _____________________________________________________________________
>> Scott Rossi                       Tactile Media - Multimedia & Design
>> Creative Director                 Email: [EMAIL PROTECTED]
>> Web: www.tactilemedia.com
>
>
>
>--------------- MESSAGE metacard.v004.n288.4 ---------------
>
>From: Scott Raney <[EMAIL PROTECTED]>
>Subject: Re: Massive Search and Replace in Binary Files
>Date: Thu, 19 Apr 2001 21:26:58 -0600
>MIME-Version: 1.0
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>Content-Transfer-Encoding: 8bit
>References: <[EMAIL PROTECTED]>
>
>Sivakatirswami <[EMAIL PROTECTED]> wrote:
>>
>> This is a "yes it's doable" or "No forget it" query
>>
>> I am facing a challenge with some very large QuarkXpress documents that
need
>> to be repurposed for either "simple" text distribution,  Web distribution
or
>> MC eBook distribution, where we want to remove all non-cross platform
>> "Diacriticalized" characters
>>
>> e.g.
>>  "j鼀na" should be come "jnana" and
>> 玦va becomes Siva
>>
>> etc.
>>
>> the current "Batch" finds and replace extension we are using for Quark
>> Express "chokes" on large files (10-23 megabyte files)  where we are
trying
>> to get it to find some 45 plus different characters or strings and
replace
>> them with 45 cross platform characters/strings (I should learn the proper
>> name for the different Key sets)
>
>The character chooser stack should help you at least learn
>what works cross platform and what doesn't.  If you're really
>interested in esoterica like the ISO character names, I've got
>the original tables the character chooser was built with which
>has this information in it.  I could email them to you if you
>want.
>
>> and the projected number of instances will
>> reach to 5,000-6,000 changes... conceively, if we can do it, I can work
with
>> smaller files.
>
>My first reaction is: Big files!  Lots of changes!
>
>(snip)
>
>> a) Can you do this on binary "native" applications files like a Quark
>> Express document, without corrupting the original document?
>> envision:
>>
>> put URL ("binary:whatever path") tBlob
>>
>> repeat here a replace "old char-string" with "new char-string)
>
>I would guess no.  It depends on the exact format, though.  If
>it were something like HTML or RTF, this should work OK, but not
>if the data has markup in binary format because you'll end up
>changing some of the markup when you only want to change the
>data.
>
>> b) If the answer is yes, then, is there any performance gain in loading
the
>> strings into a custom property array rather than simply loading them in a
>> field with a tab or comma separator? Us low level scripter's struggle
with
>> some of the higher level options (we just don't know what they are...)
>
>Loading them into a variable and doing the work there would
>be the most efficient way.  If the files are close in size
>to available RAM, you'll want to do the work in a loop with
>read/replace/write, working on a MB or two at a time.
>
>> c) What is the best way to "handle the data" read in a portion, run the
>> replace on it and write out to a new variable of file? Or can MC "Crunch"
>> the entire file in Ram, all 6000 changes and simply write out the file
back
>> to disk?
>
>It can, if you've got the RAM ;-)
>
>> d) Question is: if you can simply enter the strings to a field, or if a
>> charToNum conversion is needed first?
>
>You don't want to do that: putting stuff in fields is much
>slower and takes a lot more RAM than just dealing with it
>in variables.  And if possible, avoid using charToNum or
>anything that works a character at a time.  The replace
>command is *much* faster.
>   Scott
>
>
>>
>> Hinduism Today
>>
>> Sivakatirswami
>> Editor's Assistant/Production Manager
>> [EMAIL PROTECTED]
>> www.HinduismToday.com, www.HimalayanAcademy.com,
>> www.Gurudeva.org, www.hindu.org
>
>
>
>--------------- MESSAGE metacard.v004.n288.5 ---------------
>
>From: Sivakatirswami <[EMAIL PROTECTED]>
>Subject: Tracking the "Replace" command
>Date: Thu, 19 Apr 2001 18:52:42 -1000
>MIME-Version: 1.0
>Content-Type: text/plain; charset="US-ASCII"
>Content-Transfer-Encoding: 7bit
>
>Is there any internal counter that is incremented and can be queried to
>determine the number of replaces that have been made in a
>
>replace string1 with string2 in tOblisk
>
>get (something that tells us the number of replaces made?)
>
>the result is empty after replace is run, so it's not there.
>
>
>
>
>Hinduism Today
>
>Sivakatirswami
>Editor's Assistant/Production Manager
>[EMAIL PROTECTED]
>www.HinduismToday.com, www.HimalayanAcademy.com,
>www.Gurudeva.org, www.hindu.org
>
>
>
>
>--------------- MESSAGE metacard.v004.n288.6 ---------------
>
>From: "Monte Goulding" <[EMAIL PROTECTED]>
>Subject: RE: Referencing Variables & Objects
>Date: Fri, 20 Apr 2001 14:35:13 +0930
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>In-Reply-To: <[EMAIL PROTECTED]>
>
>>
>> >  > How can I script inside the handler to determine that the 1st call
>> >>  was with "myArr" and the second was with "hisArr".  I know how to get
>> >>  values, but I can't see how I get names??
>> >
>> >The question is why would you want to do this?
>>
>> So I can process a number of arrays to export/import them to/from
>> text files.  In fact there are a number of occasions when I'd like to
>> be able to use generic code to handle objects as well as variables,
>> so I can loop through all variables in a stack or all objects on a
>> card etc.
>
>Wouldn't having the handler recieve what type of data it is and what format
>it's going to be simpler in terms of building a generic handler thne you
can
>handle any variation of those. Anyway try the params function if you must.
>
>>
>> Cheers
>> Peter
>> --
>> --------------------------------------------------------
>> Peter Reid
>> Reid-IT Limited, Loughborough, Leics., UK
>> Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
>> E-mail: [EMAIL PROTECTED]
>> Web: http://www.reidit.co.uk
>>
>> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>>
>
>
>
>--------------- MESSAGE metacard.v004.n288.7 ---------------
>
>From: "Phil Davis" <[EMAIL PROTECTED]>
>Subject: Re: Referencing Variables & Objects
>Date: Thu, 19 Apr 2001 22:45:03 -0700
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
>
>
>----- Original Message -----
>From: "Peter Reid" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, April 19, 2001 5:22 PM
>Subject: RE: Referencing Variables & Objects
>
>
>> >  > How can I script inside the handler to determine that the 1st
>call
>> >>  was with "myArr" and the second was with "hisArr".  I know how
>to get
>> >>  values, but I can't see how I get names??
>> >
>> >The question is why would you want to do this?
>>
>> So I can process a number of arrays to export/import them to/from
>> text files.  In fact there are a number of occasions when I'd like
>to
>> be able to use generic code to handle objects as well as variables,
>> so I can loop through all variables in a stack or all objects on a
>> card etc.
>
>How about something for arraynames that works like "the globals" or
>"the customPropertySets of <object>"? Would that give you what you
>need? I'm thinkin' that would let you cycle through all arrays known
>to (within the scope of) the currently executing handler.
>
>Since it resembles other existing functionality, maybe it wouldn't be
>so difficult to create. (Famous last words)
>
>Phil Davis
>
>
>>
>> Cheers
>> Peter
>> --
>> --------------------------------------------------------
>> Peter Reid
>> Reid-IT Limited, Loughborough, Leics., UK
>> Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
>> E-mail: [EMAIL PROTECTED]
>> Web: http://www.reidit.co.uk
>>
>> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>>
>>
>
>
>
>--------------- MESSAGE metacard.v004.n288.8 ---------------
>
>From: Hugh Senior <[EMAIL PROTECTED]>
>Subject: Re: Massive Search and Replace in Binary Files
>Date: Fri, 20 Apr 2001 09:22:14 +0100
>MIME-Version: 1.0
>Content-Type: text/plain; charset="iso-8859-1"
>Content-Transfer-Encoding: 8bit
>In-Reply-To: <[EMAIL PROTECTED]>
>
>>I am facing a challenge with some very large QuarkXpress documents that
need
>>to be repurposed for either "simple" text distribution,  Web distribution
or
>>MC eBook distribution, where we want to remove all non-cross platform
>>"Diacriticalized" characters
>>
>>e.g.
>> "j鼀na" should be come "jnana" and 玦va becomes Siva
>
>Go for it. Try using the 'replace' command and 2 paired variables...
>
>put "??? into oldChars
>put "S,n,a" into new chars
>repeat with i=1 to 3
>  replace char (item i of oldChars) with char (item i of newChars) in tText
>end repeat
>
>The only drawback will be the available RAM you have available to store
>such a large text file in memory during the operation. Maybe you will have
>to break the original file down into more mamagable sized portions, or do a
>read/replace/write in chunks.
>
>/H
>
>Hugh Senior
>
>The Flexible Learning Company
>Consultant Programming & Software Solutions
>Fax/Voice: +44 (0)1483.27 87 27
>Email: [EMAIL PROTECTED]
>Web: www.flexibleLearning.com
>
>
>--------------- MESSAGE metacard.v004.n288.9 ---------------
>
>From: Dave Cragg <[EMAIL PROTECTED]>
>Subject: German keyboard, Win 2000, Alt Gr key
>Date: Fri, 20 Apr 2001 09:31:07 +0100
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
>Hi
>
>I wonder if someone can help out.
>
>I have a user with Windows 2000 using German keyboard layout. On this
>keyboard, to enter the "@" character, you enter Alt Gr + q. On my NT
>4.0 machine, with German keyboard selected, this works fine. But he
>reports that nothing happens on his machine. The application is using
>Metacard 2.3.2 engine. Apparently the keyboard combination works in
>other programs such as Word, Wordpad, etc.
>
>If there's anyone out there using Win 2000 and a German keyboard,
>could you let me know whether you can type the "@" character in a
>standard Metacard field?
>
>Before anyone asks, the field in question has no handlers attached.
>Just a plain, editable text field.
>
>Cheers
>Dave Cragg
>
>
>
>
>--------------- MESSAGE metacard.v004.n288.10 ---------------
>
>From: "Mark J. Luetzelschwab" <[EMAIL PROTECTED]>
>Subject: Re: Massive Search and Replace in Binary Files
>Date: Fri, 20 Apr 2001 09:09:05 -0500
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>
>My guess is that it is doable...you will have to be careful about the
>actual character numbers as ones beyond 128 are not necessarily the same
>for every font.  You will need to check that for each font that is used in
>the document (Quark should tell you that).
>
>Also, you need to determine where the text is stored in the file (i.e. some
>formats put text between ( )) Open the file in BBEdit to get a look at it
>(don't save it as text, though..that can cause problems ;)
>
>Read the Metacard reference carefully on the read/write functions to
>determine how you should be reading the files and if you will need to strip
>characters out when writing back to binary (i.e. returns) When you
>read/write all in binary (i.e. copying a file from a server), its
>straightforward, but I'm not sure about the binary/text/binary conversions.
>
>Good luck!
>
>-ml
>
>
>
>
>Mark J. Luetzelschwab     [EMAIL PROTECTED]
>Graduate Research Assistant   v: (512) 232 6034
>Instructional Technology   f: (512) 232 2322
>Center for Reading and Language Arts
>University of Texas at Austin
>
>
>--------------- END metacard.v004.n288 ---------------
>


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to