RedHat 4.2 and Ellinikos!

Lefteris Tsintjelis lefty at csd.hol.gr
Sun Aug 17 04:23:34 EEST 1997


Mike Kabrianis wrote:
 
> Mipos tha sou itan eykolo na mou steileis to meros ekeino toy .xinitrc (i opou allou to exeis) me tis rithmiseis gia ta ellinika?

Tha mporousa na sou ta steilw opos kai tha to kanw alla opws eipa exw
pervallon CDE kai oxi to kino fvwm/2. To problima me ta GRKbd otan ta
dokimasa einai oti mou skagan ta libs parolo pou ta ksanaekana epitixws
recompile!

Akolouthei to script me ta fonts:

#!/bin/ksh

#
###########################################################################
#
#  Common Desktop Environment
#
#  (c) Copyright 1993, 1994 Hewlett-Packard Company
#  (c) Copyright 1993, 1994 International Business Machines Corp.
#  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
#  (c) Copyright 1993, 1994 Novell, Inc.
#
#      ************** DO NOT EDIT THIS FILE **************
#
#  /usr/dt/config/Xsetup is a factory-default file and will
#  be unconditionally overwritten upon subsequent installation.
#  Before making changes to the file, copy it to the configuration 
#  directory, /etc/dt/config. You must also update the setup
#  resource in /etc/dt/config/Xconfig.
#
#
###########################################################################

#
###########################################################################
# 
# Directory specifications
# 
#
###########################################################################


  XDIR=/usr/bin/X11

    if [ "$DTXSERVERLOCATION" != "remote" ]; then

	$XDIR/xconsole -geometry 480x150-0-0 -daemon -nobuttons -verbose \
                       -notify -exitOnFail -nostdin -bg gray

      #
      # We can only modify the font path or the keymap if the X server
is
      # local.
      #
      # Since X server is local, optimize by checking local desktop
      # font directories and making one call to xset.
      #

	#
	# If the user just selected a language from dtgreet's menu,
	# then we're being run a second time (under the new language),
	# so we need to start over with the default font path.
	#
	xset fp default
      
	#
	# check if the system has a Low or High Resolution Monitor
	#   -  High Resolution (1280 x 1024) uses 100 dpi fonts.
	#   -  Medium Resolution (1024 x 864 ) uses 75 dpi fonts.
	#   -  Low Resolution (1024 x 768 or lower) uses 75 dpi fonts.
	# This will only switch to 75dpi fonts if there is a low or medium
	# resolution monitor found.  
	#
	#
	fd=""
	prefplist=""
	appfplist=""
	setfont="No"
	fontdpi="100dpi"
	othrfnt="75dpi"
	FONTLIB="/usr/lib/X11/fonts"
	I18N="$FONTLIB/$LANG"              # C or el_GR.ISO8859-7
	pixwidth=1280
	if [ ${pixwidth} -lt 1280 ] 
	then
	   fontdpi="75dpi"
	   othrfnt="100dpi"
	fi

	# Add scalable fonts to the font path, based on 
	# screen resolution
	if [ ${pixwidth} -lt 1024 ] 
	then
	    # Prepend fontpaths
	    prefplist=" ${FONTLIB}/cde ${FONTLIB}/misc ${FONTLIB}/Speedo
${FONTLIB}/Type1 ${FONTLIB}/Type1Adobe"
	else
	    # Append fontpaths 
	    appfplist="${FONTLIB}/Type1Adobe ${FONTLIB}/Speedo ${FONTLIB}/Type1
${FONTLIB}/misc ${FONTLIB}/cde "
	fi

	# Append fontpaths
	# add optional extra fonts
	appfplist="${appfplist}${FONTLIB}/user/${fontdpi} ${FONTLIB}/user/misc"
        if [ "$LANG" != "C" ]; then
          appfplist="${appfplist}
/etc/dt/config/xfonts/$LANG/${fontdpi}"
          appfplist="${appfplist}
/etc/dt/config/xfonts/$LANG/${othrfnt}"
        fi
        appfplist="${appfplist} /etc/dt/config/xfonts/C"
        if [ "$LANG" != "C" ]; then
            appfplist="${appfplist}
/usr/dt/config/xfonts/$LANG/${fontdpi}"
            appfplist="${appfplist}
/usr/dt/config/xfonts/$LANG/${othrfnt}"
        fi
        appfplist="${appfplist} /usr/dt/config/xfonts/C"

	# Prepend fontpaths
	# add i18n fonts if they exist
	prefplist="${I18N}/${fontdpi} ${I18N}/${othrfnt}${prefplist}"

	# Prepend to fontpath
	for i in ${prefplist} 
	do 
	   if [ -f ${i}/fonts.dir ]
	   then 
	       if [ $fd ] 
	       then
		  fd="${fd},${i}/" 
	       else
		  fd="${i}/"
		  setfont="Yes" 
	       fi
	   fi 
	done

	if [ ${setfont} = Yes ]
	then
	   xset +fp ${fd}
	   if [ $? -ne 0 ] 
	   then
	      # set the old slow way.....
	      for i in ${prefplist}
	      do
		if [ -f ${i}/fonts.dir ]
		then
		    xset +fp ${i}
		fi
	      done
	   fi
	   #End of the setting the old slow way.........
	   fd=""
	   setfont='No'
	fi  

	#Append to fontpath
	for i in ${appfplist}
	do
	   if [ -f ${i}/fonts.dir ]
	   then
	       if [ $fd ]
	       then
		  fd="${fd},${i}/"
	       else
		  fd="${i}/"
		  setfont="Yes"
	       fi
	   fi
	done

	if [ ${setfont} = Yes ]
	then
	   xset fp+ ${fd}
	   if [ $? -ne 0 ] 
	   then
	      # set the old slow way.....
	      for i in ${appfplist}
	      do
		if [ -f ${i}/fonts.dir ]
		then
		    xset fp+ ${i}
		fi
	      done
	   fi
	   #End of the setting the old slow way.........
	fi

    fi

  $XDIR/xhost lefty.ene.gr dec.ene.gr ->/dev/null


> Kai se poia programmata grafeis ellinika?

Tha protimousa se ola ta CDE applications (dtpad, dtmail .........)
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list