Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Services exported messages line length  (Read 3351 times)

0 Members and 1 Guest are viewing this topic.

chaos

  • Anope User
  • Offline Offline
  • Posts: 4
Services exported messages line length
« on: April 07, 2008, 04:41:21 PM »

Hello
I installed anope-1.7.21 and unreal ircd 3.2.7 under fedora core 8 64bits.
I read tons of manuals and I manage to set up them pretty good also with CGI:IRC interface.
But I can’t find some details that I need.
First of all I try to use UTF-8 and Greek translation but I receive garbage in output of services.
And second detail is the line width of reply messages….
Is there any parameter that handles how many characters are per line on reply messages of various services like Nickserv? For example the reply on nick identification :

***-NickServ- This nickname is registered and protected.  If it is your
***-NickServ- nick, type /msg NickServ IDENTIFY password.  Otherwise,
***-NickServ- please choose a different nick.
***-NickServ- If you do not change within 20 seconds, I will change your nick.
***-NickServ- Password accepted - you are now recognized.

To be something like that :

***-NickServ- This nickname is registered and protected.  If it is your nick, type /msg NickServ IDENTIFY password.  Otherwise, please choose a different nick.
***-NickServ- If you do not change within 20 seconds, I will change your nick.Password accepted - you are now recognized.

I understand that with Unicode I have 2 bytes per character so the limit must be doubled…

I receive the same result from MOTD text, after various test I conclude that the line limit is 80 characters but with Unicode this is reduced to 40 characters.

So I need to set characters per line to 160 to get 80 characters…

Any thoughts ?
Logged

katsklaw

  • Guest
(No subject)
« Reply #1 on: April 07, 2008, 07:54:49 PM »

The width of the specified text is hard coded and can not be changed without altering the source code which is not supported.
Logged

chaos

  • Anope User
  • Offline Offline
  • Posts: 4
(No subject)
« Reply #2 on: April 08, 2008, 10:05:36 AM »

katsklaw thanks for reply

Ok i understand that is hard coded but in Greek the limit of 40 chars per line for MOTD is to small.....

as for unicode Greek? is any solution?

Also i suggest a change in php pages of documentation  the definition of codepage content="text/html; charset=ISO-8859-1" must be content="text/html; charset=ISO-8859-7" for greek pages to be normally...


Thanks again.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #3 on: April 08, 2008, 10:51:52 AM »

Firstly, if by MOTD you mean the MOTD returned by /motd, then that has nothing to do with Anope.

Secondly, the display of Unicode characters depends on your client too. Most IRCd's allow Unicode in regular messages, just not in places such as nick's. Anope on the other hand, although will accept Unicode, does not support it for anything to my knowledge.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

chaos

  • Anope User
  • Offline Offline
  • Posts: 4
(No subject)
« Reply #4 on: April 08, 2008, 11:45:13 AM »

hello jobe1986

yes i mean the text from /motd witch is also truncated to 40 chars....after more investigation i see that also unreal ircd has the same problem with unicode.... 80 bytes line limit...in system messages....

my client use and support unicode (cgi:irc) ... and the site is locked internally so no other client has access...

so i will live with that :) ...

thanks anyway...
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #5 on: April 08, 2008, 06:30:53 PM »

CGI:IRC may support Unicode, but that's useless if the browser doesn't.

Not to mention, a classic example, irssi supports Unicode, but by default doesn't have the support enabled.

[Edited on 8-4-2008 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

chaos

  • Anope User
  • Offline Offline
  • Posts: 4
(No subject)
« Reply #6 on: April 09, 2008, 02:22:47 PM »

Jobe

Yes this is true...but my environment is controlled i use irc for software help desk support throw an application with Microsoft internet explorer ocx... so browser is not in my worries...

:)
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #7 on: April 09, 2008, 04:54:10 PM »

in your specific case it may not, but anope doesn't support utf-8 atm..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up