Testing Enigma 4pre2

Message ID 43597351.3090902@syphir.sytes.net
State New
Headers

Commit Message

C.Y.M Oct. 21, 2005, 11:01 p.m. UTC
  >>
>>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.
> 


Hmm, I sure did that the hard way. :)  Here is a better, more simplified patch
for UpdateEnigma.sh.
  

Comments

Andreas Brugger Oct. 22, 2005, 10:24 a.m. UTC | #1
C.Y.M schrieb:

>>>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.
>>
>>
>
>
>Hmm, I sure did that the hard way. :)  Here is a better, more simplified patch
>for UpdateEnigma.sh.
>
>
>
>
>
>------------------------------------------------------------------------
>
>diff -ruN Enigma.orig/scripts/UpdateEnigma.sh Enigma/scripts/UpdateEnigma.sh
>--- Enigma.orig/scripts/UpdateEnigma.sh	2005-10-21 15:55:16.000000000 -0700
>+++ Enigma/scripts/UpdateEnigma.sh	2005-10-21 15:57:16.000000000 -0700
>@@ -7,7 +7,9 @@
> T2S_EXT="false"
> # 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="marquee"
>+CHAN_DISPLAY="marquee"
> 
> # don't edit beyond here
> SKIN_TEMPLATE="$SKINPATH/Enigma.skin.template"
>@@ -71,6 +73,8 @@
> | 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`"/" \
>+| sed -e "s/%MENU_DISPLAY%/"$MENU_DISPLAY"/g" \
>+| sed -e "s/%CHAN_DISPLAY%/"$CHAN_DISPLAY"/g" \
> > $SKIN_TMP
> 
> # we have to avoid ',' in m4 so we replace it with ';'
>
I also thought about a configurable scrolling-mode. But I would rather 
make it dependend on the menu-element, which is much easier to implement:

MAIN_MENU_ITEM="text"     # main menu entries
SUB_MENU_ITEM="marquee"   # entries in the sub-menu (timer and so on)
SIDEBAR_ITEM="marquee"    # Info in the main-menu (next timer, current 
recording and so on)

maybe also:

REPLAY_BAR="marquee"      # title of the replay

Does it really make sense to use both, a marquee (btw, scrolltext token 
is already used for text wich goes over more lines) which scrolls in one 
direction and a marquee that scrolls in both directions? I would think 
this is a user-opinion which is best and the user would always use 
either of those. So it would be best to make this configurable in 
text2skin. Therefore the upper lines in UpdateEnigma.sh could also look 
like this:

SCROLL_MAIN_MENU_ITEM="false"     # true or false
SCROLL_ SUB_MENU_ITEM="true"
SCROLL_ SIDEBAR_ITEM="false"
SCROLL_ REPLAY_BAR="true"

What do you think about that?
  
C.Y.M Oct. 22, 2005, 11:06 a.m. UTC | #2
> I also thought about a configurable scrolling-mode. But I would rather
> make it dependend on the menu-element, which is much easier to implement:
> 
> MAIN_MENU_ITEM="text"     # main menu entries
> SUB_MENU_ITEM="marquee"   # entries in the sub-menu (timer and so on)
> SIDEBAR_ITEM="marquee"    # Info in the main-menu (next timer, current
> recording and so on)
> 
> maybe also:
> 
> REPLAY_BAR="marquee"      # title of the replay

Making the scrolling configurable with UpdateEnigma.sh is the best overall
solution.  I like how you have divided it up by menu elements.

> 
> Does it really make sense to use both, a marquee (btw, scrolltext token
> is already used for text wich goes over more lines) which scrolls in one
> direction and a marquee that scrolls in both directions? I would think
> this is a user-opinion which is best and the user would always use
> either of those. So it would be best to make this configurable in
> text2skin. Therefore the upper lines in UpdateEnigma.sh could also look

I doubt anyone will want to mix marquee with one-directional scrolling.  Making
this a configure option in text2skin should be fine.

> like this:
> 
> SCROLL_MAIN_MENU_ITEM="false"     # true or false
> SCROLL_ SUB_MENU_ITEM="true"
> SCROLL_ SIDEBAR_ITEM="false"
> SCROLL_ REPLAY_BAR="true"

Is the space after "SCROLL_ " on purpose?

> 
> What do you think about that?
> 

Its great. Thanks!
  
Andreas Brugger Oct. 22, 2005, 12:13 p.m. UTC | #3
C.Y.M schrieb:

>>like this:
>>
>>SCROLL_MAIN_MENU_ITEM="false"     # true or false
>>SCROLL_ SUB_MENU_ITEM="true"
>>SCROLL_ SIDEBAR_ITEM="false"
>>SCROLL_ REPLAY_BAR="true"
>>    
>>
>
>Is the space after "SCROLL_ " on purpose?
>  
>
Oh, this was a failure. There shouldn't be a space between

>>What do you think about that?
>>
>>    
>>
>
>Its great. Thanks!
>  
>
I will try to work this in. The TODO has become quite long now ... 
haven't thought that there was so much to do and there are so much ideas 
out there. ;-)
  

Patch

diff -ruN Enigma.orig/scripts/UpdateEnigma.sh Enigma/scripts/UpdateEnigma.sh
--- Enigma.orig/scripts/UpdateEnigma.sh	2005-10-21 15:55:16.000000000 -0700
+++ Enigma/scripts/UpdateEnigma.sh	2005-10-21 15:57:16.000000000 -0700
@@ -7,7 +7,9 @@ 
 T2S_EXT="false"
 # 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="marquee"
+CHAN_DISPLAY="marquee"
 
 # don't edit beyond here
 SKIN_TEMPLATE="$SKINPATH/Enigma.skin.template"
@@ -71,6 +73,8 @@ 
 | 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`"/" \
+| sed -e "s/%MENU_DISPLAY%/"$MENU_DISPLAY"/g" \
+| sed -e "s/%CHAN_DISPLAY%/"$CHAN_DISPLAY"/g" \
 > $SKIN_TMP
 
 # we have to avoid ',' in m4 so we replace it with ';'