|
List Info
Thread: Unicode support for Status Mode Messages
|
|
| Unicode support for Status Mode
Messages |
  Czech Republic |
2007-05-01 06:01:11 |
|
|
Hello all,
there is two major ideas how to implement unicode
support for Status Mode Messages, I just wanted to sumarize that and perhaps get
some new points for this.
All core protocols except AIM & ICQ knows
status messages and stores them in DB... so the best for them is idea 1), ICQ
and AIM otherwise does not know the real status message, and for each time it
requests the message from server/client.
Here is the summary:
1) use Unicode support in DB as define some
resident variable, which will be used to comunicate this to other
plugins.
2) define some PS_GETCAPS flags and use this to
detect the same Unicode formatted hack in current ACKTYPE_AWAYMSG.
The idea 2) is awful in realisation, but provides
the easiest solution for ICQ - just because with idea 1) ICQ has a problem:
either keep outdated status msg in DB, or delete it after broadcasting an ack...
either way it is a wrong way to go...
So what I think about this:
- define two new PS_GETCAPS
- one e.g. PF1_AWAYMSG_DB, which notes idea 1)
and no PSS_GETAWAYMSG or ACKTYPE_AWAYMSG is necessary
- second e.g. PF1_AWAYMSG_UNICODE for
idea 2) where it will not be stored in DB, but broadcasted using ACKTYPE_AWAYMSG
with Unicode hack same as the one for message blob
- with Miranda IM 0.8+ we can safely remove all
that "hack" code PSS_GETAWAYMSG for MSN and others, which only reads the status
message from DB and broadcasts it...
So, what do you think about this ?
Have a nice day,
Joe Whale |
| Re: Unicode support for Status Mode
Messages |
  United States |
2007-05-01 06:49:48 |
|
|
Joe,
I was under an impression that the plan was to change
all strings in Miranda from ASCII to UTF8, and this would
resolve problem with status messages as well as many
others.
Have it changed?
Hello all,
there is two major ideas how to implement unicode
support for Status Mode Messages, I just wanted to sumarize that and perhaps get
some new points for this.
All core protocols except AIM & ICQ knows
status messages and stores them in DB... so the best for them is idea 1), ICQ
and AIM otherwise does not know the real status message, and for each time it
requests the message from server/client.
Here is the summary:
1) use Unicode support in DB as define some
resident variable, which will be used to comunicate this to other
plugins.
2) define some PS_GETCAPS flags and use this to
detect the same Unicode formatted hack in current ACKTYPE_AWAYMSG.
The idea 2) is awful in realisation, but provides
the easiest solution for ICQ - just because with idea 1) ICQ has a problem:
either keep outdated status msg in DB, or delete it after broadcasting an ack...
either way it is a wrong way to go...
So what I think about this:
- define two new PS_GETCAPS
- one e.g. PF1_AWAYMSG_DB, which notes idea 1)
and no PSS_GETAWAYMSG or ACKTYPE_AWAYMSG is necessary
- second e.g. PF1_AWAYMSG_UNICODE for
idea 2) where it will not be stored in DB, but broadcasted using ACKTYPE_AWAYMSG
with Unicode hack same as the one for message blob
- with Miranda IM 0.8+ we can safely remove all
that "hack" code PSS_GETAWAYMSG for MSN and others, which only reads the status
message from DB and broadcasts it...
So, what do you think about this ?
Have a nice day,
Joe Whale |
| Re: Unicode support for Status Mode
Messages |
  Czech Republic |
2007-05-08 05:26:02 |
|
|
Well,
I was not aware that something such is
planned...
That idea was a product of discussion between me
and George (he actually suggested idea 1) ). It was not meant as something
crucial, but merely as a survey - which is others points of view.
Have a nice day,
Joe Whale
----- Original Message -----
Sent: Tuesday, May 01, 2007 1:49 PM
Subject: Re: [Miranda-Develop] Unicode
support for Status Mode Messages
Joe,
I was under an impression that the plan was
to change all strings in Miranda from ASCII to UTF8, and this would
resolve problem with status messages as well as many
others.
Have it changed?
Hello all,
there is two major ideas how to implement unicode
support for Status Mode Messages, I just wanted to sumarize that and perhaps
get some new points for this.
All core protocols except AIM & ICQ knows
status messages and stores them in DB... so the best for them is idea 1), ICQ
and AIM otherwise does not know the real status message, and for each time it
requests the message from server/client.
Here is the summary:
1) use Unicode support in DB as define some
resident variable, which will be used to comunicate this to other
plugins.
2) define some PS_GETCAPS flags and use this to
detect the same Unicode formatted hack in current
ACKTYPE_AWAYMSG.
The idea 2) is awful in realisation, but provides
the easiest solution for ICQ - just because with idea 1) ICQ has a problem:
either keep outdated status msg in DB, or delete it after broadcasting an
ack... either way it is a wrong way to go...
So what I think about this:
- define two new PS_GETCAPS
- one e.g. PF1_AWAYMSG_DB, which notes idea
1) and no PSS_GETAWAYMSG or ACKTYPE_AWAYMSG is necessary
- second e.g. PF1_AWAYMSG_UNICODE for
idea 2) where it will not be stored in DB, but broadcasted using
ACKTYPE_AWAYMSG with Unicode hack same as the one for message
blob
- with Miranda IM 0.8+ we can safely remove all
that "hack" code PSS_GETAWAYMSG for MSN and others, which only reads the
status message from DB and broadcasts it...
So, what do you think about this ?
Have a nice day,
Joe Whale
------------------------------------------------------------------------- This
SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE
version of DB2 express and take control of your XML. No limits. Just data.
Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Miranda-Develop
mailing
list Miranda-Develop lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/miranda-develop
|
| Re: Unicode support for Status Mode
Messages |
  United States |
2007-05-08 07:30:49 |
|
|
Joe,
in my opinion option #1 is prefarable (no impact to
anything really).
BTW, storing status messages in the DB variable is not
a "hack" for MSN. It a normal mode operation (and the only
possible).
In MSN, server sends Personal Message only once when it
changes or on login and it's a job to of the client to keep it from that
point to the next change.
There is no capability in protocol to
request Personal Message from anybody.
This code (to read DB variable and use it for
broadcast) will most likely stay in MSN regardless of API
changes.
If I am not mistaken the same statement applicable to
Yahoo.
Thank you
Well,
I was not aware that something such is
planned...
That idea was a product of discussion between me
and George (he actually suggested idea 1) ). It was not meant as something
crucial, but merely as a survey - which is others points of view.
Have a nice day,
Joe Whale
----- Original Message -----
Sent: Tuesday, May 01, 2007 1:49 PM
Subject: Re: [Miranda-Develop] Unicode
support for Status Mode Messages
Joe,
I was under an impression that the plan was
to change all strings in Miranda from ASCII to UTF8, and this would
resolve problem with status messages as well as many
others.
Have it changed?
Hello all,
there is two major ideas how to implement unicode
support for Status Mode Messages, I just wanted to sumarize that and perhaps
get some new points for this.
All core protocols except AIM & ICQ knows
status messages and stores them in DB... so the best for them is idea 1), ICQ
and AIM otherwise does not know the real status message, and for each time it
requests the message from server/client.
Here is the summary:
1) use Unicode support in DB as define some
resident variable, which will be used to comunicate this to other
plugins.
2) define some PS_GETCAPS flags and use this to
detect the same Unicode formatted hack in current
ACKTYPE_AWAYMSG.
The idea 2) is awful in realisation, but provides
the easiest solution for ICQ - just because with idea 1) ICQ has a problem:
either keep outdated status msg in DB, or delete it after broadcasting an
ack... either way it is a wrong way to go...
So what I think about this:
- define two new PS_GETCAPS
- one e.g. PF1_AWAYMSG_DB, which notes idea
1) and no PSS_GETAWAYMSG or ACKTYPE_AWAYMSG is necessary
- second e.g. PF1_AWAYMSG_UNICODE for
idea 2) where it will not be stored in DB, but broadcasted using
ACKTYPE_AWAYMSG with Unicode hack same as the one for message
blob
- with Miranda IM 0.8+ we can safely remove all
that "hack" code PSS_GETAWAYMSG for MSN and others, which only reads the
status message from DB and broadcasts it...
So, what do you think about this ?
Have a nice day,
Joe Whale
------------------------------------------------------------------------- This
SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE
version of DB2 express and take control of your XML. No limits. Just data.
Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Miranda-Develop
mailing
list Miranda-Develop lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/miranda-develop
|
| Re: Unicode support for Status Mode
Messages |
  Czech Republic |
2007-05-08 07:35:36 |
|
|
Yeaaaaah, I did not meant, that storing in DB is a
hack - I had those PS_GETAWAYMSG wrappers in mind...
Btw. with ICQ 6 the old way of handling status
messages for ICQ will die... so it will behave just like MSN...
Regards,
Joe Whale
----- Original Message -----
Sent: Tuesday, May 08, 2007 2:30 PM
Subject: Re: [Miranda-Develop] Unicode
support for Status Mode Messages
Joe,
in my opinion option #1 is prefarable (no impact to
anything really).
BTW, storing status messages in the DB variable is
not a "hack" for MSN. It a normal mode operation (and the only
possible).
In MSN, server sends Personal Message only once when
it changes or on login and it's a job to of the client to keep it from
that point to the next change.
There is no capability in protocol to
request Personal Message from anybody.
This code (to read DB variable and use it for
broadcast) will most likely stay in MSN regardless of API
changes.
If I am not mistaken the same statement applicable to
Yahoo.
Thank
you
|
| Re: Unicode support for Status Mode
Messages |
  Czech Republic |
2007-05-10 05:20:56 |
Well, it is not about protocol version - that remains the
same... We need to
update our client ident and a lot of code to handle new
White Pages... quite
a lot of work...
Joe
Whale
----- Original Message -----
From: "George Hazan" <george.hazan gmail.com>
To: <miranda-develop lists.sourceforge.net>
Sent: Thursday, May 10, 2007 11:24 AM
Subject: Re: [Miranda-Develop] Unicode support for Status
Mode Messages
> Hello, Josef!
> Tue, 8 May 2007 14:35:36 +0200 you wrote:
>
> JK> Btw. with ICQ 6 the old way of handling status
messages for ICQ will
> JK> die... so it will behave just like MSN...
>
> I.e., if I've got your idea correct, we should just
upgrade our ICQ
> protocol
> version to 10/11, and all these problems will go away?
>
> --
> WMBR, George Hazan (ghazan postman.ru)
>
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Miranda-Develop mailing list
> Miranda-Develop lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/miranda
-develop
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/miranda
-develop
|
|
| Re: Unicode support for Status Mode
Messages |
  Russian Federation |
2007-05-10 04:24:09 |
Hello, Josef!
Tue, 8 May 2007 14:35:36 +0200 you wrote:
JK> Btw. with ICQ 6 the old way of handling status
messages for ICQ will
JK> die... so it will behave just like MSN...
I.e., if I've got your idea correct, we should just upgrade
our ICQ protocol
version to 10/11, and all these problems will go away?
--
WMBR, George Hazan (ghazan postman.ru)
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/miranda
-develop
|
|
[1-7]
|
|