summaryrefslogtreecommitdiff
path: root/contrib/skin_to_003.pl
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-25 17:54:38 +0000
committerlordjaxom <lordjaxom>2004-06-25 17:54:38 +0000
commitf2a4ea2dc8c0d915e0f2af6f4ec1a228e1e94453 (patch)
treee071f932913f57fa464a7e3cdd5cf774c3a629e5 /contrib/skin_to_003.pl
parentde602ae6486b181ec081749a510cfcf15c71c817 (diff)
downloadvdr-plugin-text2skin-0.0.7.tar.gz
vdr-plugin-text2skin-0.0.7.tar.bz2
- on devices capable of full-color OSD, bpp's have no meaning anymorev0.0.7
(but will still work like usual). On such devices, a full-screen 8-bit OSD will be used - new display-item "PresentTextDescription" displays combined ShortText/Description - displaying replay symbols only if information is actually available - exchanged x, y, width, height with x1, y1, x2, y2 coordinates (skin version is now 0.0.3) - coordinates may be negative to respect dynamic OSD settings (negative coordinates give pixels from the right or bottom edge) - added base parameter to Skin item to be able to use full screen in absolute mode - added a script to convert 0.0.2 skins to 0.0.3 - added parsing quoted texts (path="Bla.jpg" etc. will work correctly now) - fixed translator to escape the dollar sign - fixed display of scrollbar (REALLY!) - fixed linkage of libMagick++
Diffstat (limited to 'contrib/skin_to_003.pl')
-rwxr-xr-xcontrib/skin_to_003.pl23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/skin_to_003.pl b/contrib/skin_to_003.pl
new file mode 100755
index 0000000..0f4f88c
--- /dev/null
+++ b/contrib/skin_to_003.pl
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+
+while (defined($_ = <>)) {
+ $x = 0; $y = 0;
+ $w = 0; $h = 0;
+
+ s/version=0.0.2/version=0.0.3,base=rel/;
+
+ /,x=(\d+)[,;]/ and $x = $1;
+ /,y=(\d+)[,;]/ and $y = $1;
+ /,width=(\d+)[,;]/ and $w = $1;
+ /,height=(\d+)[,;]/ and $h = $1;
+
+ $x2 = $x + $w - 1;
+ $y2 = $y + $h - 1;
+
+ s/,x=$x/,x1=$x/;
+ s/,y=$y/,y1=$y/;
+ s/,width=$w/,x2=$x2/;
+ s/,height=$h/,y2=$y2/;
+
+ print $_;
+}