FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » KOI8-R/WIN-1258 support
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
KOI8-R/WIN-1258 support [message #7654] Sun, 08 December 2002 09:30 Go to next message
KVentz is currently offline  KVentz   Russian Federation
Messages: 65
Registered: November 2002
Location: Moscow, Russia
Karma: 0
Member
Hi!

There are at least two Cyrillic encodings: koi8-r (Unix) and win-1251 (Windows).

Historically preconceived that we use koi8 in mail and Usenet and win for web.

In this case there are some problems: first, "msg" file in thm/default/i18n/russian is in koi8-r. I must recode it to win manually after every upgrade. Problem can be solved by making two translations in i18n: russian-koi (for some Unix fans Wink) and russian-win. You can recode texts using "convert_cyr_string($var,'k','w')" php function.

Second problem is with Newsgroup Manager. By leaving "as is" nntp.php just doesn't work with messages with Cyrillic spells. The problem is in "apply_custom_replace($text)" in include/theme/default/replace.inc file. nntp.php just returns an error. I don't remember what exactly it says, but after next upgrade I'll send you an error message.

Using barbarian method "delete anything than doesn't work" I have changed apply_custom_replace($text) to:

function apply_custom_replace($text)
{
	if ( !($arr = make_replace_array()) ) return convert_cyr_string($text,'k','w');
	return convert_cyr_string($text,'k','w');
}


I just don't know, what this function does, but everything works with this terrible interference. Now there is no error message in replace.inc and I can read all messages in win in my forum.

Again and again thank you for the best forum I ever saw.

P.S.: sorry for bad English.
Re: KOI8-R/WIN-1258 support [message #7907 is a reply to message #7654] Tue, 24 December 2002 04:37 Go to previous messageGo to next message
venus is currently offline  venus   Russian Federation
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member

KVentz писал(а) Вск, 08 Декабря 2002 14:30


There are at least two Cyrillic encodings: koi8-r (Unix) and win-1251 (Windows).

Historically preconceived that we use koi8 in mail and Usenet and win for web.

In this case there are some problems: first, "msg" file in thm/default/i18n/russian is in koi8-r. I must recode it to win manually after every upgrade. Problem can be solved by making two translations in i18n: russian-koi (for some Unix fans Wink) and russian-win. You can recode texts using "convert_cyr_string($var,'k','w')" php function.

this is wrong. koi8-r still standard russian encoding for web pages.
there is no any any rfc or similar standard which declare windows-1251 as russian web encoding. all modern browsers works with koi8 perfectly.

massive usage of convert_cyr_string() will slowdown fudforum. but you can use localized http server with transparent recoding function. russian apache from apache.lexa.ru is good example.
Re: KOI8-R/WIN-1258 support [message #7908 is a reply to message #7907] Tue, 24 December 2002 06:54 Go to previous messageGo to next message
KVentz is currently offline  KVentz   Russian Federation
Messages: 65
Registered: November 2002
Location: Moscow, Russia
Karma: 0
Member
venus wrote on Tue, 24 December 2002 07:37


this is wrong. koi8-r still standard russian encoding for web pages.
there is no any any rfc or similar standard which declare windows-1251 as russian web encoding. all modern browsers works with koi8 perfectly.

massive usage of convert_cyr_string() will slowdown fudforum. but you can use localized http server with transparent recoding function. russian apache from apache.lexa.ru is good example.


Don't want it - don't do it. It was just a suggestion, nothing more. But can koi8-r be a standart if most of web pages in russian are in windows-1251?

Most popular servers are in windows-1251:
www.rambler.ru (search and rating)
www.yandex.ru (search)
www.mail.ru (free mail)
www.google.ru (Google-Russia)
www.lenta.ru (newsline)

Are you still talk about standarts?
Re: KOI8-R/WIN-1258 support [message #7909 is a reply to message #7908] Tue, 24 December 2002 10:52 Go to previous messageGo to next message
venus is currently offline  venus   Russian Federation
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member

don't be a fool. Smile
this servers except mail.ru running russian apache under unixes, where koi8 is default. you can verify this by checking servers responces with any http tool like wget. and when apache detects windoze clients surfing with msie etc. it transparently recode pages to windoze codepage.
Re: KOI8-R/WIN-1258 support [message #7926 is a reply to message #7909] Sat, 28 December 2002 17:31 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Ideal solution would be to make another russian translation that would be based on windows-1251 encoding and then a user can choose what to use KOI8-R or windows-1251. Doing convert_cyr_string() in realtime will not only be slow but is simply impossible to do due to the nature of FUDforum's templating system.

FUDforum Core Developer
Re: KOI8-R/WIN-1258 support [message #7927 is a reply to message #7926] Sat, 28 December 2002 17:59 Go to previous messageGo to next message
KVentz is currently offline  KVentz   Russian Federation
Messages: 65
Registered: November 2002
Location: Moscow, Russia
Karma: 0
Member
prottoss wrote on Sat, 28 December 2002 20:31

Ideal solution would be to make another russian translation that would be based on windows-1251 encoding and then a user can choose what to use KOI8-R or windows-1251. Doing convert_cyr_string() in realtime will not only be slow but is simply impossible to do due to the nature of FUDforum's templating system.


When I talked about windows-1251, I mean exactly about another translation. Sorry, if I wasn't clear.
Re: KOI8-R/WIN-1258 support [message #7940 is a reply to message #7654] Tue, 31 December 2002 04:25 Go to previous messageGo to next message
Anonymous   Russian Federation
i'm not sure about locale for russian-1251 translation. it should be 'ru_RU.CP1251' for forum running on unix server. and just 'ru' for win32 platform. and i think there will be no aspell support in 1251 translation.
Re: KOI8-R/WIN-1258 support [message #7941 is a reply to message #7940] Tue, 31 December 2002 08:23 Go to previous messageGo to next message
venus is currently offline  venus   Russian Federation
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member

ops. this was my post. just forgot to logon.
Re: KOI8-R/WIN-1258 support [message #7942 is a reply to message #7927] Tue, 31 December 2002 08:30 Go to previous messageGo to next message
venus is currently offline  venus   Russian Federation
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member

which php locale server should use for 1251 codepage? and is there pspell/aspell support for 1251? do you plan to use forum software on win32 or unix platform (where is http server installed, i mean)?
Re: KOI8-R/WIN-1258 support [message #7966 is a reply to message #7942] Fri, 03 January 2003 16:25 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is no pspell support for 1251 and it is not likely to be added. I did recieve the 1251 version of the russian translation and the next release will include both cp1251 and KOI8-R

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mark all messages read
Next Topic: don't chmod 0666
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 07:16:55 GMT 2024

Total time taken to generate the page: 0.02242 seconds