[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#243034: languagechooser: console-cyrillic support



Maybe it is better to handle all cyrillic languages in termwrap in the same 
way?
Like in the attached patch ...

> Denis Barbier wrote:
>> tags 243034 + pending
>> thanks
>> 
>> On Sat, Apr 10, 2004 at 04:54:26PM +0300, Eugeniy Meshcheryakov wrote:
>> 
>>>Package: languagechooser
>>>Version: svn
>>>Severity: wishlist
>>>Tags: patch l10n d-i
>>>
>>>Attached patch adds console-cyrillic support for languagechooser
>>>prebaseconfig (similar to console-tools). Prebaseconfig expects
>>>information about cyrillic keyboard in form:
>>>
>>>cyr=style,size,encoding,layout(options)
>>>
>>>Example for Ukrainian:
>>>
>>>cyr=uni,16,koi8-u,ua_ms(ctrl_shift_toggle)
>> 
>> 
>> Looks good, committed.
>> Could someone please update the Russian entry in languagelist?
>> 
> 
> Done (parameters from termwrap).
> But Bulgarian remains.
> 
> 
--- termwrap.orig	2004-04-10 08:35:26.000000000 +0400
+++ termwrap	2004-04-13 18:24:15.000000000 +0400
@@ -253,9 +253,21 @@
 	# Load ISO-8859-15 charset mapping into console
 	try_load_charset "$ENCODING" iso15 lat0-sun16
 	;;
+KOI8-R)
+	# Russian
+	if [ -x /usr/bin/cyr ]; then
+		/usr/bin/cyr -s uni -t 16 -e koi8-r --ttys=/dev/tty1 ru_ms ctrl_shift_toggle
+	else
+		try_load_charset "$ENCODING" koi8r koi8_8x16
+	fi
+	;;
 KOI8-U)
-	# Load KOU8-U charset mapping into console
-	try_load_charset "$ENCODING" koi8u koi8u_8x16
+	# Ukrainian
+	if [ -x /usr/bin/cyr ]; then
+		/usr/bin/cyr -s uni -t 16 -e koi8-u --ttys=/dev/tty1 ua_ms ctrl_shift_toggle
+	else
+		try_load_charset "$ENCODING" koi8u koi8u_8x16
+	fi
 	;;
 eucJP|EUC-JP)
 	# Japanese
@@ -277,20 +289,6 @@
 	# if the terminal can display japanese fonts...
 	esac
 	;;
-KOI8-R)
-	# Russian
-	case $TERMINAL in
-	console)
-		if [ -x /usr/bin/cyr ]; then
-			/usr/bin/cyr -s uni -t 16 -e koi8-r --ttys=/dev/tty1 ru_ms ctrl_shift_toggle
-		else
-			# Don't try to install in russian withour cyrrilic support on console
-			LANG=C
-			LC_ALL=C
-		fi
-		;;
-	esac
-	;;
 UTF-8)
 	# Enable UTF-8 in console
 	case $TERMINAL in

Reply to: