Re: Pasted Text reflow

2002-04-02 Thread Marck D Pearlstone

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Roelof,

@02 April 2002, 10:49:41 +0200 (09:49 UK time) Roelof Otten wrote in
[EMAIL PROTECTED]">mid:[EMAIL PROTECTED]

>>>%WRAPPED="%INCLUDE='c:\foo.txt'"

DiP>> Ooops I spoke to soon that it works... Worked for just long text in
DiP>> template but not from file.  I have:

> Does your text file consists of multiple paragraphs? (text separated
> by empty lines) In that case the wrapped-macro won't work.

Correct.

However, the 1.54/1.60 series introduces a new concept in macros -
recursion. There are some nice recursive macros to do multi-paragraph
wrapping using a couple of quick templates that look like this:

,- [ wq ]
| %COMMENT="%QUOTES"%-
| %QINCLUDE="wrap2"
| %COMMENT=""
`-

,- [ wrap2 ]
| %IF:'%-
| %SETPATTREGEXP="(?is-m)[^\n]+"%-
| %REGEXPMATCH="%COMMENT"'<>'':'%-
| %-
| %WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\n((\w{0,5}(\>\s*)+)?\n)+(.*)$|\z)"%-
| %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
| %-%-%-%-%-%SUBPATT="1"_
|
| %COMMENT=_%SETPATTREGEXP="(?is-m)^.*?(\n((\w{0,5}(\>\s*)+)?\n)+(.*)$|\z)"%-
| %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
| %-%-%-%-%-%SUBPATT="5"_%-
| %QINCLUDE="wrap2"'
`-

The wq template produces wrapped quotes. We can extrapolate one that
will plain-text wrap a file like this:

,- [ wf ]
| %COMMENT="%PUT='c:\foo.txt'"%-
| %QINCLUDE="wrap2"
| %COMMENT=""
`-

To make that a little more flexible, we can grab a filename from the
clipboard instead, so the procedure for add a wrapped file becomes:

   1) type the filename
   2) cut the filename to the clipboard
   3) type 'wfc' .
   4) grin widely and carry on typing the message.

,- [ wfc ]
| %COMMENT="%PUT='%CLIPBOARD'"%-
| %QINCLUDE="wrap2"
| %COMMENT=""
`-

Does that help?

- --
Cheers -- .\\arck D. Pearlstone -- List moderator
SB! v1.60d/iKey1000-5523848F0B1 on Windows 2000 5.0.2195 Service Pack 2
·
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6-2 (MingW32)

iD8DBQE8qXu0OeQkq5KdzaARAgtQAJ4tblGjfpR9ZC/dSwLPETjmj4O+UQCdGG6S
B7IsAmkRRnOaapU2mqvsarA=
=w9E8
-END PGP SIGNATURE-




Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-02 Thread Anthony Xin Chen


Hello Dave,

On 2 Apr 2002 01:35:06 [GMT -0700] (which was 02 Apr 2002 16:35:06
where I live) you wrote:

>> On Monday, April 1, 2002, 10:37:45 PM, Anthony Xin Chen wrote:
>>%WRAPPED="%INCLUDE='c:\foo.txt'"

> Ooops I spoke to soon that it works... Worked for just long text in
> template but not from file.  I have:

> %WRAPPED="%INCLUDE='D:\-upload.net\-SEXWKS\Phoenix Private\A Welcome see 
>attached.txt'"
> %SUBJECT="Phoenix Private Mailing List"
> %ATTACHFILE="D:\-upload.net\-SEXWKS\Phoenix Private\2002 1st Quarter.txt"

> Everything works except the the included file is not wrapped.  The text
> of the include file is included so is finding the file..just not
> wrapping

Seems that the wrapping stops upon the first occurrence of a blank
line.

It may be due to the limitation of TB's editor, which doesn't
distinguish between soft and hard return. Even manually formatting of
more than one paragraph together results in loss of blank lines.


PS. The best macro to use for your purpose is %PUT instead of
%INCLUDE. Sadly it doesn't do wrapping correctly either.


-- 
Regards, Anthony



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-02 Thread Dierk Haasis

Hello Roelof!

On Tuesday, April 2, 2002 at 10:49:41 AM you wrote:

> Does your text file consists of multiple paragraphs? (text separated
> by empty lines) In that case the wrapped-macro won't work.

Cookies have to be in one long line anyway, regardless if you use
TB!'s internal cookie management or a separate file.

You can wrap cookies either automatically (with the %WRAPPED macro) or
by hand as you wish it to be broken up with the parameter "\n"
((without quotation marks)).



-- 
Dierk Haasis
http://www.Write4U.de
http://Interest.Write4U.de/pongo

PGP keys available: mailto:[EMAIL PROTECTED]?Subject=SendMyPGPkeys

The Bat 1.60c on Windows 95 4.0 1212 C

Marriage is a wonderful institution, but who wants to live in an
institution?



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-02 Thread Roelof Otten

Hello Dave,

On Tue, 2 Apr 2002 01:35:06 -0700GMT (2-4-02, 10:35 +0100GMT, where I
live), you wrote:

>>%WRAPPED="%INCLUDE='c:\foo.txt'"
DiP> Ooops I spoke to soon that it works... Worked for just long text in
DiP> template but not from file.  I have:

Does your text file consists of multiple paragraphs? (text separated
by empty lines) In that case the wrapped-macro won't work.

-- 
Groetjes, Roelof



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Anthony Xin Chen


Hello Nick,


On 1 Apr 2002 22:34:32 [GMT -0800] (which was 02 Apr 2002 14:34:32
where I live) you wrote:

>> %WRAPPED="%INCLUDE='c:\foo.txt'"
   ^^
> "foo" text?

It is a bogus file name used for illustration. Replace *c:\foo.txt* with the
file name you wish to be included.

-- 
Regards, Anthony



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Nick Andriash

Hello Anthony,

On Monday, April 1, 2002, at 10:33:38 PM (-0700), you typed
the following in reference to "Pasted Text reflow":

> %WRAPPED="%INCLUDE='c:\foo.txt'"

"foo" text?


Nick
--
PGP Public Keys:
Mailto:[EMAIL PROTECTED]?subject=PGPKeys



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Anthony Xin Chen


Hello Dave,

%WRAPPED or %WRAPJUSTIFY is perhaps what you are looking for.

The quick template may resemble the below:

%WRAPPED="%INCLUDE='c:\foo.txt'"

On 1 Apr 2002 21:34:58 [GMT -0700] (which was 02 Apr 2002 12:34:58
where I live) you wrote:

> I may be missing the obvious as a newbie...but is there a way to include
> this reflow in a new message template that pastes text from a file?  No
> micro for it at least in the standard list that I can find.

> I use a lot of templates and am hearing from folks where messages hard
> to read since no reflow...AOL for example, unless they open in a text
> editor so will not have to do long horizontal scroll to read the text.

-- 
Regards, Anthony



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Nick Andriash

Hello Marck,

On Monday, April 1, 2002, at 10:19:08 AM (-0700), you typed
the following in reference to "Pasted Text reflow":

> Yes - Paste formatted.

That is hidden in the Edit menu of the Message Editor Toolbar. I wonder
how difficult it would be to include that command on the right click
context menu alongside 'Paste' and 'Past as Quotation'?  Would it not make
more sense there?


Nick
--
PGP Public Keys:
Mailto:[EMAIL PROTECTED]?subject=PGPKeys



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Allie C Martin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In a message dated, Mon, 1 Apr 2002 09:13:10 -0500, Gene Gough [GG]
wrote:
...
GG> Agree, as another ex PMMAIL user I also miss the auto flow when
GG> pasting.

PMMail is one of those that formats mail upon sending while it soft
formats while composing. I didn't miss that aspect about it at all.

- --
Allie C Martin   --   List Moderator
PGPKey - mailto:[EMAIL PROTECTED]

[MUA: TB! v1.60c (*) OS: Windows XP 5.1.2600]
__
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6-2 (on WinXP)

iEYEARECAAYFAjyokiEACgkQV8nrYCsHF+InPACfeB+F/SeXZ+pOnxirjXx1pdNb
/SUAnRh3cz+dZdokKnT9gq3COcfB+grc
=BDOo
-END PGP SIGNATURE-




Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Gene Gough



Agree, as another ex PMMAIL user I also miss the auto flow when
pasting.




Monday, April 1, 2002, 2:29:30 AM, Dave wrote:

> The reflow and wrap options work fine when I am typing a message
> directly.  But if I paste either from clipboard of a file (I often use
> pasted canned messages) it doesn't reflow but shows up as one very long
> line you have to horizontal scroll to read.




-- 


Genemailto:[EMAIL PROTECTED]
Windows 2000 [version 5.0.2195]
Mail Client: THE BAT 1.60c



Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]




Re: Pasted Text reflow

2002-04-01 Thread Marck D Pearlstone

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Dave,

@01 April 2002, 00:29:30 -0700 (08:29 UK time) Dave in Phoenix wrote
in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED]

> Am I missing something simple...probably...

Yes - Paste formatted.


Please don't use reply to start a new thread. Your question has been
posted at the bottom of un unrelated topic. The Bat! is a threading
mail client.

See "View | View threads by | Reference" to see where it ended up.

The result is that it will only be seen by those reading that thread
instead of by all users.

I recommend that you post your question again using a "New message".


- --
Cheers -- .\\arck D. Pearlstone -- List moderator
TB! v1.60c-14F4B4B2 on Windows 2000 5.0.2195 Service Pack 2
·
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6-2 (MingW32)

iD8DBQE8qCzROeQkq5KdzaARAmM9AKD4TtZZBVTd052iOz58nmIu+vJ21QCeJoxQ
2BM9sdVGQhSLsHe2xyF8ghc=
=fNU5
-END PGP SIGNATURE-




Current Ver: 1.60c
FAQ: http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]