From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="koi8-r" From: "Nikita V. Youshchenko" Message-Id: <200112080029.30565@sercond.localdomain> To: kde-rus@kde.ru Date: Sat, 8 Dec 2001 00:35:29 +0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [kde-russian] =?koi8-r?b?8/Lv/u7vOiD00sXC1cXU09Eg0M/Nz93YIMTM0Q==?= kdevelop Sender: kde-russian-admin@lists.kde.ru Errors-To: kde-russian-admin@lists.kde.ru X-BeenThere: kde-russian@lists.kde.ru X-Mailman-Version: 2.0.8 Precedence: bulk Reply-To: kde-russian@lists.kde.ru List-Help: List-Post: List-Subscribe: , List-Id: KDE russian translation mailing list List-Unsubscribe: , List-Archive: Archived-At: List-Archive: Люди ! Для того, чтобы новый релиз kdevelop включил патчи для работы с не-latin1 языками, требуется помощь. Суть вопроса излагается в нижеследующей переписке. Дело ОЧЕНЬ срочное. Пожалуйста, если кто-то может разобраться, в чем там проблема, сделайте это. Если кто-нибудь знает человека, который пишет на linux.org.ru под ником RM, передайте информацию ему. Возможно, он поможет. ---------- Forwarded Message ---------- Subject: patch of Nikita Youshchenko Date: Thu, 06 Dec 2001 09:59:02 +0100 From: "F@lk Brettschneider" To: mokhin@bog.msu.ru Hi, Unfortunately, I had to disable the lines below (sent by you from Nikita) in the cvs of KDevelop because it introduces a big bug because many users cannot set their fonts any more. Everything is set to a font which wasn't chosen. Even worse that default font is non-fixed width. :-( void HlManager::makeAttribs(Highlight *highlight, Attribute *a, int n) { { ... ... font.setCharSet(charsets->charsetForEncoding(defaultFont.charset)); ... font.setCharSet(charsets->charsetForEncoding(itemData->charset)); } Can you correct your patch for non-latin languages, please? It's urgent!!! Otherwise it wont get into KDevelop-2.1 coming out next days. Cheers,F@lk Subject: Re: Fwd: patch of Nikita Youshchenko Date: Thu, 6 Dec 2001 13:19:40 +0300 From: "Nikita V. Youshchenko" To: Gregory Mokhin , gigafalk@yahoo.com Unfortunately, I am not experienced KDE programmer, and without your help I can't quickly fix the issue. It works with cyrillic, and I don't know what is the problem with other languqges. Inside kwrite sources, a textual name of font encoding is read from user, and it is in defaultFont.charset and itemData->charset QStrings. QFont class wants numeric value instead. I don't know what is the correct way to convert between those, and how to handle defaults correctly. I thought that using KCharsets::charsetForEncoding() is what is needed, but your report shows that I was wrong. To fix the problem, the following should be done/checked: - the correct way to convert between QString and QFont::CharSet should be found. - what is in defaultFont.charset by default - maybe there is garbage or some default string that is not a valid charset name. - what default typeface is used - maybe, charset selection works correctly, but font with the selected charset and typeface does not exist, and another typeface is chosen. Maybe code should be added that initializes default values better. Unfortunately, I don't have enouth time and experience to do the above. ----- Subject: Re: Fwd: patch of Nikita Youshchenko Date: Fri, 07 Dec 2001 17:02:39 +0100 From: "F@lk Brettschneider" To: "Nikita V. Youshchenko" Hi Nikita, "Nikita V. Youshchenko" wrote: > Unfortunately, I don't have enouth time and experience to do the above. Me neither. :-( So I reverted your patch for that code line in cvs to have a working latin version (default) again. Thanks anyway,Ciao,F@lk