From patchwork Fri Oct 21 22:28:12 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 12068 Received: from c-24-10-6-146.hsd1.ca.comcast.net ([24.10.6.146] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.50) id 1ET5Lo-0007tE-5o for vdr@linuxtv.org; Sat, 22 Oct 2005 00:27:01 +0200 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by nofear.bounceme.net (Postfix) with ESMTP id 317F473534 for ; Fri, 21 Oct 2005 15:26:24 -0700 (PDT) Message-ID: <43596B7C.2040908@syphir.sytes.net> Date: Fri, 21 Oct 2005 15:28:12 -0700 From: "C.Y.M" Organization: CooLNeT User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR Subject: Re: [vdr] Testing Enigma 4pre2 References: <4353806A.7080109@syphir.sytes.net> <43540DDB.40207@gmx.net> <435415A9.3060801@syphir.sytes.net> <43552332.6090407@gmx.net> <43555561.9020302@syphir.sytes.net> <4358E33E.9040409@gmx.net> <43593FE7.20507@syphir.sytes.net> <4359493B.3030400@syphir.sytes.net> In-Reply-To: <4359493B.3030400@syphir.sytes.net> X-Enigmail-Version: 0.92.1.0 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 22:27:01 -0000 Status: O X-Status: X-Keywords: X-UID: 5595 C.Y.M wrote: >>I do like the idea you suggest about "scrolltext" instead of using "marquee". >>One directional might be better on the eyes. What ever method you do decide on, >>it would be very helpful to just place strategic comments into the template so a >>person that wants to modify the code can easily find the code blocks. Or, if we >>want to get really crazy, we could fix the template to use a variable which can >>be configured by UpdateEnigma.sh. We could have a different variable for >>different areas of the skin (ie; Menu, Channel Info, Timers, etc..) >> >>--SNIP-- >> >># defines preferred display method in skin ("text" or "scrolltext" or "marquee") >>MENU_DISPLAY="scrolltext" >>CHAN_DISPLAY="marquee" >>TIMER_DISPLAY="scrolltext" >> >>--SNIP-- >> > > > Here are some more changes required for the substitution method. > Here is a tested and working patch for UpdateEnigma.sh. This patch in conjunction with the previous attachment (enigma-4pre2-display.diff) seems to work fine. The final stage of this patch is now to decide what areas of the skin are going to be substituted and made configurable. Best Regards, --- Enigma/scripts/UpdateEnigma.sh.orig 2005-10-21 14:47:19.000000000 -0700 +++ Enigma/scripts/UpdateEnigma.sh 2005-10-21 15:13:43.000000000 -0700 @@ -4,14 +4,17 @@ SKINPATH="/etc/vdr/plugins/text2skin/Enigma/" CONFIGPATH="/etc/vdr/" # defines if the patch text2skin_extensions is installed ("true" or "false") -T2S_EXT="false" +T2S_EXT="true" # defines if the switchonly-patch by LightYear is installed ("true" or "false") SW_ONLY="false" - +# defines preferred display method in skin ("text" or "scrolltext" or "marquee") +MENU_DISPLAY="scrolltext" +CHAN_DISPLAY="marquee" # don't edit beyond here SKIN_TEMPLATE="$SKINPATH/Enigma.skin.template" -SKIN_TMP="$SKINPATH/Enigma.skin.tmp" +SKIN_TMP1="$SKINPATH/Enigma.skin.tmp1" +SKIN_TMP2="$SKINPATH/Enigma.skin.tmp2" SKIN="$SKINPATH/Enigma.skin" SETUP="$CONFIGPATH/setup.conf" @@ -71,11 +74,17 @@ | sed -e "s/%BLUE_R%/"$b_r"/" \ | sed -e "s/%BLUE_R_T%/"`expr $b_r + 0`"/" \ | sed -e "s/%BLUE_R_M1%/"`expr $b_r - 1`"/" \ -> $SKIN_TMP +> $SKIN_TMP1 + +# substitute display settings +cat $SKIN_TMP1 \ +| sed -e "s/%MENU_DISPLAY%/"$MENU_DISPLAY"/g" \ +| sed -e "s/%CHAN_DISPLAY%/"$CHAN_DISPLAY"/g" \ +> $SKIN_TMP2 # we have to avoid ',' in m4 so we replace it with ';' if [ "$T2S_EXT" = "true" ] ; then - cat $SKIN_TMP \ + cat $SKIN_TMP2 \ | sed -e "s/,/;/g" \ | sed -e "s/ifdef(\`ext';;/ifdef(\`ext',,/" \ | sed -e "s/ifdef(\`ext';/ifdef(\`ext',/" \ @@ -83,7 +92,7 @@ | sed -e "s/;/,/g" \ > $SKIN else - cat $SKIN_TMP \ + cat $SKIN_TMP2 \ | sed -e "s/,/;/g" \ | sed -e "s/ifdef(\`ext';;/ifdef(\`ext',,/" \ | sed -e "s/ifdef(\`ext';/ifdef(\`ext',/" \ @@ -92,4 +101,5 @@ > $SKIN fi -rm $SKIN_TMP +rm $SKIN_TMP1 +rm $SKIN_TMP2