Re: Another time macro mistake!

2001-04-16 Thread Marck D. Pearlstone

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Andreas,

On 08 April 2001 at  10:14:48 +0200 (which was 09:14 where I  live)
Andreas Schwartmann wrote to [EMAIL PROTECTED] and made these
points:

>>> As to the %ODate macro: I rather use the english one, because
>>> otherwise the day gets pinned down in German. I gather you'd rather
>>> like to read "Wednesday" than "Mittwoch". Right? ;-)

RB>> That isn't right! I only use "%ODate" and I don't have the German
RB>> version! I don't know how it is possible to get the German
RB>> version of the date.

AS> As you can see above, it happens: I just changed the last
AS> "%ODATEEN" back to "%ODATE" and it produces Sonntag instead of
AS> sunday!

If you are still looking for an answer to this problem, an old friend
of the UDL and a famed RegEx wizard would like to take a shot. This
would require you to join TBTECH and post a question about it there.

- --
Cheers -- .\\arck D. Pearlstone -- Moderator TBUDL / TBBETA / TBTECH
 
[ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com  ]
[Any opinions are my own and not those of RIT labs   ]

TB! v1.52 Beta/5/iKey1000 S/N 14F4B4B2 on Windows NT 5.0 Build 2195 Service Pack 1

-BEGIN PGP SIGNATURE-
Version: 6.5.8ckt (build 04)
Comment: PGP Sealed for freshness

iQA/AwUBOtrLLTnkJKuSnc2gEQIjVQCeLET3vgj9owWVggtwlylfQXmW5Y0AnR9Y
CkBCZFhFFz7/K4/0MOtykkq9
=YU78
-END PGP SIGNATURE-

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 

You are subscribed as : archive@jab.org





Re: Another time macro mistake!

2001-04-08 Thread Ming-Li

On Sun, 8 Apr 2001 at 10:49:13 +0200 Roland Burger wrote:

> The first part of the date (on Sun ...) is still in English and
> not in German.  I,  however,  search  to write this part in
> German, because I have relative in the USA to whom I write in
> German language!

The first part was taken (by the Regexp macro pair %SETPATTREGEXP
and %REGEXPBLINDMATCH) from the Date field of the original message's
header, which is always in English. There's nothing we can do about
it. You may use %ODate instead, as Andreas originally did (see the
starting post of this thread), but then you'll run into problem of
wrong dates as reported by Andreas.

-- 
Best regards,
Ming-Li

The Bat! 1.52 Beta/4 | Win2k SP1



-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Ming-Li

On Sun, 8 Apr 2001 at 10:07:53 +0200 Joan Josep wrote:

> Since I am also interested in the argument, and the statement is
> obviously wrong, could you please review it and advise accordingly
> ?

Sorry, but I don't get your question. Which statement is obviously
wrong? You mean the original regexp macros? I think the problem has
been solved (see Allie's instruction). What other problem is there?

-- 
Best regards,
Ming-Li

The Bat! 1.52 Beta/4 | Win2k SP1



-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Ming-Li

On Sat, 7 Apr 2001 at 22:59:52 +0200 Andreas Schwartmann wrote:

> As to the %ODate macro: I rather use the english one, because
> otherwise the day gets pinned down in German.

Ah-so. That makes sense.

> I gather you'd rather like to read "Wednesday" than "Mittwoch".
> Right? ;-)

Not really. :-) I don't mean to brag, but even though my German is
poor, ehhh, very poor, I can still read days of week, numbers, etc.

Ok, I admit it ... I'm bragging. ;-) Not that there's much to brag,
tough. Give me a whole sentence and I'll be looking all over for the
dictionary. :-(

-- 
Best regards,
Ming-Li

The Bat! 1.52 Beta/4 | Win2k SP1



-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Lars Geiger

Hi Roland,
On Sun, 8 Apr 2001, at 10:43:53 +0200 you wrote:

> Country settings in control panel say: Deutsch (Standard)!

> Here my RegEx:
> 
>%WRAPPED='on%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPMATCH="%HEADERS"
> GMT (which was %ODateShort, %OTime +0100 GMT where I live) %OFromName wrote:'

It won't work because you don't use %ODate in your regexp, do
you? Your regexp takes just the whole information from the "Date:
..." line from the headers and puts it into your message. If you
want the date to be in German, try something like

%WRAPPED='am %ODate schrieb %OFromName:'

This will produce the correct output. But if you use a regexp to
get the date and timezone from the headers, how should that be
translated into German?

-- 
Regards,
Lars

The Bat! 1.52 Beta/1 on Windows NT 5.0 Build 2195 Service Pack 1
 
|Lars Geiger  |  |
| PGP Key:  |

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Roland Burger

Hi Andreas,

on  Sun,  8  Apr  2001 10:14:48 +0200 GMT (which was 08.04.2001, 10:14
+0100 GMT where I live) Andreas Schwartmann wrote:


> As you can see above, it happens: I just changed the last "%ODATEEN"
> back to "%ODATE" and it produces Sonntag instead of sunday!

The first part of the date (on Sun ...) is still in English and not in
German.  I,  however,  search  to write this part in German, because I
have relative in the USA to whom I write in German language!

-- 
Best regards,
Roland   mailto: [EMAIL PROTECTED]

PGP-Key: 0x0D023C45

I use The Bat! v1.51 under Windows 98 4.10 Build   A !

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Roland Burger



Hi Lars,

on  Sun,  8  Apr  2001 09:56:52 +0200 GMT (which was 08.04.2001, 09:56
+0100 GMT where I live) Lars Geiger wrote:


> I also use %ODate in my reply template and it produces a correct
> date in German format. What do your Windows localisation settings
> say? Perhaps you changed your country settings for some reason?

Country settings in control panel say: Deutsch (Standard)!

Here my RegEx:
%WRAPPED='on%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPMATCH="%HEADERS"
 GMT (which was %ODateShort, %OTime +0100 GMT where I live) %OFromName wrote:'

-- 
Best regards,
Roland   mailto: [EMAIL PROTECTED]

PGP-Key: 0x0D023C45

I use The Bat! v1.51 under Windows 98 4.10 Build   A !

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Roland Burger



Hi André,

on  Sun,  8  Apr  2001 09:53:50 +0200 GMT (which was 08.04.2001, 09:53
+0100 GMT where I live) André Engelhardt wrote:


> It depends on your system wide location settings (control panel)
> if you set it to German it will display the date in German format and
> language and if you set it to any other it will change corresponding
> to that.

My  country  settings in control panel: Deutsch (Standard)! However, I
get the date only in English, as you can see above!


-- 
Best regards,
Roland   mailto: [EMAIL PROTECTED]

PGP-Key: 0x0D023C45

I use The Bat! v1.51 under Windows 98 4.10 Build   A !

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Lars Geiger

Hi Roland,
On Sun, 8 Apr 2001, at 09:45:38 +0200 you wrote:

> That isn't right! I only use "%ODate" and I don't have the
> German version! I don't know how it is possible to get the
> German version of the date.

I also use %ODate in my reply template and it produces a correct
date in German format. What do your Windows localisation settings
say? Perhaps you changed your country settings for some reason?

-- 
Regards,
Lars

The Bat! 1.52 Beta/1 on Windows NT 5.0 Build 2195 Service Pack 1
 
|Lars Geiger  |  |
| PGP Key:  |

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-08 Thread Roland Burger



Hi Andreas,

on  Sat,  7  Apr  2001 22:59:52 +0200 GMT (which was 07.04.2001, 22:59
+0100 GMT where I live) Andreas Schwartmann wrote:

> As to the %ODate macro: I rather use the english one, because
> otherwise the day gets pinned down in German. I gather you'd rather
> like to read "Wednesday" than "Mittwoch". Right? ;-)

That  isn't  right!  I  only  use "%ODate" and I don't have the German
version!  I don't know how it is possible to get the German version of
the date.

-- 
Best regards,
Roland   mailto: [EMAIL PROTECTED]

PGP-Key: 0x0D023C45

I use The Bat! v1.51 under Windows 98 4.10 Build   A !

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-07 Thread Ming-Li

On Sat, 7 Apr 2001 at 17:56:59 +0200 Andreas Schwartmann wrote:

> Thanks, now I guess I got it right. :-)

Good to hear that. Two side notes I forgot to mention:

1. You may want to add a caret sign ("^") between "(?m-s)" and
"Date" at the start of the %SETPATTREGEXP macro expression, like
this

%Wrapped='%SETPATTREGEXP="(?m-s)^Date\:\s*? 

which would match only header field that starts with "Date". The
original macro would match a field like "Delivery-date", which
rarely appears (I've never seen one until someone reported it on the
list) but does exist.

2. As you can see, The "EN" part of the %ODateEN macro (the one for
"where I live") asks TB to show the original date (adjusted to your
local time zone) in the "day-of-week, month day, year" format
commonly used in the U.S. (and where?). If you prefer the
"day-of-week, day month year" format commonly used in Europe (I
assume you would since you're in Germany), use %ODate instead, in
which case TB would use your Windows system settings.

-- 
Best regards,
Ming-Li

The Bat! 1.52 Beta/3 | Win2k SP1



-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-07 Thread Ming-Li

On Sat, 7 Apr 2001 at 16:06:28 +0200 Andreas Schwartmann wrote:

ACM>> In the macro you included, " On %ODateen..". This macro

ACM>> Replace %ODATEEN with %SUBPATT="2".

> I have done so, but now I get

I guess you replaced the wrong "%ODATEEN" in your macro. There were
two in the macro you gave us, and as Allie said, the one that should
be replaced is the first one (see how Allie put it? He told you to
replace the one in "On %ODateen..", not the one in "which was
%ODATEEN").

You didn't include the header (the "Date" field in the header) in
your original message, but I believe its original date is 2 April,
which translate into 3 April when using the %ODateEn macro. IOW, the
correct outcome should be:

"on Tuesday, 2 Apr 2001 at 18:34:57 GMT -0700 (PDT) (which was Mon,
April 03, 2001 03:34 where I live)"

If you still have trouble getting it right, please post the header
of the original message.

-- 
Best regards,
Ming-Li

The Bat! 1.52 Beta/3 | Win2k SP1



-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: 




Re: Another time macro mistake!

2001-04-07 Thread A Curtis Martin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, 7 Apr 2001 13:30:19 +0200, Andreas graced us with these comments:

AS> "on Tuesday, April 03, 2001 at 18:34:57 GMT -0700 (PDT) (which was
AS> Tuesday, April 03, 2001 03:34 where I live) you wrote the following
AS> ..."

AS> This is of course wrong! Since it was already Wednesday in Germany,
AS> where I live, when the mail was sent from Canada!

AS> I used this macro:

 

AS> What went wrong here?

In the macro you included, " On %ODateen..". This macro generates the
original day the message was sent corrected to your time zone corrected.

If you  wish to include the day the message was sent, uncorrected to your
time zone, you need to take it from the message headers.

Replace %ODATEEN with %SUBPATT="2".

- --
Allie,
 -= A. Curtis Martin =-
List Moderator (and fellow end-user)
   The Bat! v1.52 Beta/1 \\// Win2k (SP1)


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8ckt Build/04..
Comment: PGP Key ID: 0x57C9EB602B0717E2   (Sealed for security).

iQA/AwUBOs8UhlfJ62ArBxfiEQI8MQCg2oVKSGgYSJ7djWXtPOjOQdVUYokAn2QG
vK47f/CM59kWinFV55+LQXKN
=4bjU
-END PGP SIGNATURE-

-- 
__
Archives   : 
Moderators : 
TBTech List: 
Unsubscribe: