Converting skins to 1920x1080 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Converting skins to 1920x1080 (/showthread.php?tid=124314) |
- jmarshall - 2012-03-08 @Sinnocence: Nice - does that handle the "400r" case as done above in the xlst? On another note, is it possible with XSLT to transform say: <tag>Blah Blah Blah $INFO[foo,bar, $LOCALIZE[1234]] Foo Gary</tag> to: <tag>"Blah Blah Blah " + Info(foo, "bar", " " + Localize(1234)) + " Foo Gary"</tag> i.e. $INFO[] -> Info(), anything else (including whitespace) to be placed in quotes and separated via +. 2nd and third params in $INFO[] (including whitespace) to be placed in quotes. First param in $INFO[] to ignore whitespace. Doable, or pipe dream? Cheers, Jonathan - pecinko - 2012-03-08 jmarshall Wrote:@Sinnocence: Nice - does that handle the "400r" case as done above in the xlst? $ESCINFO please come back. Everything is forgiven.... - jmarshall - 2012-03-08 OT: Heh - after the initial pain it should make lots of nice things much easier - after all, ya'll want Info(foo,Info(bar),foo) and posx + 5 type stuff, right? - phil65 - 2012-03-09 Updated again, attribute conversion should now work for "start=" and "end=" in slide animation elements and "center=" in rotate and zoom animation elements. http://www.gtwf-koeln.de/xmlconvertgui.exe What´s missing apart from border attribute in <texture>, <texturefocus> and <texturenofocus> ? EDIT: doesn´t convert everything, have to check again EDIT2: got it i think. exe updated - phil65 - 2012-03-09 i´ve fixed some bugs and let it process the aeon nox skin. it looks usable some small corrections, but it´s really almost complete. - phil65 - 2012-03-09 Again an update, it seems as it would work perfectly for EVERYTHING now Please report if it works for you, too. - Sinnocence - 2012-03-09 jmarshall Wrote:@Sinnocence: Nice - does that handle the "400r" case as done above in the xlst? Apologies, I'm not familiar with the skin xmls & I never saw the 'r' comment - I was just trying to save someone else the headache putting the XSL together. I just took a look at the wiki (http://wiki.xbmc.org/index.php?title=Default_control_tags) and it looks like the only alpha char used is 'r' (?). Below is a quick update to cater for this: Code: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> jmarshall Wrote:On another note, is it possible with XSLT to transform say: That depends! It should be possible via (one very ugly) regex group substitution except that in your example the first and second parameters to $INFO look the same and are treated differently during/after convertion (one becomes a string literal). Is this a healthy example? I can't see any mention of this syntax change on the wiki to confirm but if you want to send on some concrete examples of the before & after then I'll take a look at this (and doing the 'r' substitution properly with regex also in case you guys add other chars in the future) if/when I get a few minutes. [edit] if the first param to every function is left clean, and all other params get wrapped in quotes then that's pretty straight forward - but is this true of all of the new function definitions?[/edit] - Sharpe - 2012-03-09 phil65 Wrote:Again an update, it seems as it would work perfectly for EVERYTHING now Works brilliantly - well done that's really cool. - ekim232 - 2012-03-09 Works good for me also. This is very cool since I was converting a skin to 1080 at the moment (old version of Aeon). This will definitely save sometime on the coverflow view! - BigNoid - 2012-03-09 Most of it works, only the r value is not put back now. >499r< becomes >798< and it doesn't convert 31 xml with error "Cannot insert the node in the specified location". Used it on Aeon Nox - phil65 - 2012-03-09 Big_Noid Wrote:Most of it works, only the r value is not put back now. >499r< becomes >798< and it doesn't convert 31 xml with error "Cannot insert the node in the specified location". Used it on Aeon Nox hmm then i broke something i think. worked 100%. will check. EDIT: just tested on DialogMuteBug from Aeon Nox. 40r becomes 60r, so everything´s corrrect. you´re using the newest version? - BigNoid - 2012-03-09 I checked add header. Without it it does convert the 31 missing xml's but 'r' is still broken. EDIT: used the link in post #34 - phil65 - 2012-03-09 updated, i hope everything works now. only thing is that 240.5 becomes 360 for example and not 361. the program just doesnt parse it correctly when it´s a double value, so i have to remove the last two chars and convert then. will look at it again perhaps in the future. - Martijn - 2012-03-09 maybe put the link in the OP so it's easier to find - phil65 - 2012-03-09 Martijn Wrote:maybe put the link in the OP so it's easier to find Thx |