•   
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 13
  •   
Release Skin XML Converter + Formatter
#16
(2012-06-05, 15:28)Jezz_X Wrote:
(2012-06-05, 14:12)phil65 Wrote: yep, i´m always pushing the code change + the compiled exe to github so people do not have to compile themselves.

btw you do know github has a binary downloads section do you don't have to commit it to your git repo (but I guess putting it in the repo is easier)
https://github.com/phil65/xmlconvertgui/downloads

yes i know. I´m just lazy.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#17
Great stuff, this is just what I need.

Feature Request:
On conversion from 1080 to 720 it would be cool if also the images would be downscaled. :-)
Reply
#18
I've always used Faststone Image Viewer for batch downscaling textures.
Reply
#19
Hey Phil65,

Been playing around with this. It's great, cheers. Wink

I have a couple of requests though... Big Grin

1) Would it be poss to add a 'No Change' option on the indenting?
2) Would it be poss to have an option to not remove vertical spacing. I remember seeing an old option to remove white space. Was that related to removing vertical spacing?

Many thanks
Reply
#20
(2012-07-25, 15:48)liquidskin76 Wrote: Hey Phil65,

Been playing around with this. It's great, cheers. Wink

I have a couple of requests though... Big Grin

1) Would it be poss to add a 'No Change' option on the indenting?
2) Would it be poss to have an option to not remove vertical spacing. I remember seeing an old option to remove white space. Was that related to removing vertical spacing?

Many thanks

1) no, i completely re-write the xmls, so i can´t keep indenting. could add more indenting values ofc.
2) also not, sorry. same reason. here you can find all formatting possibilities i have: http://msdn.microsoft.com/de-de/library/...tings.aspx
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#21
(2012-07-26, 08:13)phil65 Wrote:
(2012-07-25, 15:48)liquidskin76 Wrote: Hey Phil65,

Been playing around with this. It's great, cheers. Wink

I have a couple of requests though... Big Grin

1) Would it be poss to add a 'No Change' option on the indenting?
2) Would it be poss to have an option to not remove vertical spacing. I remember seeing an old option to remove white space. Was that related to removing vertical spacing?

Many thanks

1) no, i completely re-write the xmls, so i can´t keep indenting. could add more indenting values ofc.
2) also not, sorry. same reason. here you can find all formatting possibilities i have: http://msdn.microsoft.com/de-de/library/...tings.aspx

Regarding 1)... Is it possible to add an indent option of 1 tab (like Notepad++ uses), so you can choose to use either 2 spaces, 4 spaces, or 1 tab? At the mo it's using spaces, so the 4 space option lines up with one tab in Notepad++.

It's not a massive problem if not poss... just that it's less work to indent with a tab than with 4 presses of the space bar. Then you have further possible indenting within controls, so even more space bar presses!

What do think?

No problem on 2). I can add spacing back in manually.

Cheers
Reply
#22
(2012-07-26, 12:28)liquidskin76 Wrote:
(2012-07-26, 08:13)phil65 Wrote:
(2012-07-25, 15:48)liquidskin76 Wrote: Hey Phil65,

Been playing around with this. It's great, cheers. Wink

I have a couple of requests though... Big Grin

1) Would it be poss to add a 'No Change' option on the indenting?
2) Would it be poss to have an option to not remove vertical spacing. I remember seeing an old option to remove white space. Was that related to removing vertical spacing?

Many thanks

1) no, i completely re-write the xmls, so i can´t keep indenting. could add more indenting values ofc.
2) also not, sorry. same reason. here you can find all formatting possibilities i have: http://msdn.microsoft.com/de-de/library/...tings.aspx

Regarding 1)... Is it possible to add an indent option of 1 tab (like Notepad++ uses), so you can choose to use either 2 spaces, 4 spaces, or 1 tab? At the mo it's using spaces, so the 4 space option lines up with one tab in Notepad++.

It's not a massive problem if not poss... just that it's less work to indent with a tab than with 4 presses of the space bar. Then you have further possible indenting within controls, so even more space bar presses!

What do think?

No problem on 2). I can add spacing back in manually.

Cheers

if you use notepad++, look in options, you can choose to replace tabs with whitespaces.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#23
Is there any chance you could add 480p and NTSC + PAL options?
Reply
#24
so which target and source resolutions? (they have to be same aspect ratio)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#25
(2012-10-17, 03:23)phil65 Wrote: so which target and source resolutions? (they have to be same aspect ratio)

Just whatever is standard these days, 1080p and 720p I imagine. I would like a way to convert downwards to NTSC and 480p, to make it easier to run skins on my SDTV.
Reply
#26
(2012-10-17, 15:58)bornagainpengui Wrote:
(2012-10-17, 03:23)phil65 Wrote: so which target and source resolutions? (they have to be same aspect ratio)

Just whatever is standard these days, 1080p and 720p I imagine. I would like a way to convert downwards to NTSC and 480p, to make it easier to run skins on my SDTV.

NTSC/PAL have 4:3 aspect ratios so it doesn´t make sense to convert 16:9 skins to those resolutions.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#27
Touched has 4:3 does it not? Either way my initial plan was to support 4:3 and make it touch friendly.

-edit-
Another idea, not sure if it's anything for this program, but...
A way to pull all the labels that are in plain text to a file. As prep for translation / make sure you did not miss anything.
Maybe even replace them with a localize?
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#28
small new feature: paranthesis check
https://github.com/phil65/xmlconvertgui/...041c779da4

will list you all tags with missing (,[,) or ]

checks are done for the content of the tags
Code:
"visible", "enable", "usealttexture", "selected"
and for the condition attributes of these tags:
Code:
//include | //onup | //ondown | //onleft | //onright | //animation | //onload | //onunload | //onclick | //onback | //focusedlayout | //itemlayout | //onfocus | //value

as usual, if anything is missing, just post it.

@JezzX
one mistake in Confluence:
Processing ViewsMusicLibrary.xml
Unmatched parenthesis: Control.IsVisible(509) + Skin.HasSetting(View509HideInfo)]

cheers

(2012-10-17, 16:21)MassIV Wrote: Another idea, not sure if it's anything for this program, but...
A way to pull all the labels that are in plain text to a file. As prep for translation / make sure you did not miss anything.
Maybe even replace them with a localize?

sorry, forgot to anwer that. will look at it when i find some time but could be tricky because the content of <label> tags can vary a lot.
better way is to use a simple regex search string. something like
Code:
<label>[^0-9$]
to use that activate regex option in notepad++ search dialog for example.
bit of RegEx skills will make a lot of skinning stuff easier, worth lookin into it Smile
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#29
Well i don't think you need something that complicated. Or at least that wasn't what i meant.

-If it has a $ or [ in it -> Dump a copy to a file without replacing it (maybe with file name or window id behind it?)
-If it has only numbers -> ignore
-The rest -> Replace with $LOCALIZE[number + 1] -> Dump text to file with the number behind it (+ maybe file name)

Just that, would give a dump file that is very easy to check.
Scroll / search through the dump file for [UPPERCASE] ect, to see if you forgot some real text inbetween those.
Add what you missed to language file, and done.

Code:
$LOCALIZE[341] - MyVideoNav.xml
$LOCALIZE[4442] - MyVideoNav.xml
$LOCALIZE[342][COLOR=darkblue]$INFO[Container.FolderName][/COLOR] - Variables.xml
[UPPERCASE]NOW WATCHING[/UPPERCASE] - Includes.xml
$INFO[Skin.String(CustomFavourite1.Label)] - IncludesNav.xml
WEATHER - 81267 - MyWeather.xml
PLAY DISK - 81266 - IncludesNav.xml
$INFO[Weather.Temperature] - MyWeather.xml

In this case, WEATHER and PLAY DISK were replaced for you. The number is behind them.
NOW WATCHING, fell through the cracks (again). But now you know.
All the $LOCALIZE you can just ignore / read over (they were already $LOCALIZE). Only if they contain a bit more, do you have to read more careful.

That is not going to take a long time to go through.

Think i'll give the new features a spin tomorrow, i'm tired...
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#30
(2012-11-25, 07:42)MassIV Wrote: Well i don't think you need something that complicated. Or at least that wasn't what i meant.

-If it has a $ or [ in it -> Dump a copy to a file without replacing it (maybe with file name or window id behind it?)
-If it has only numbers -> ignore
-The rest -> Replace with $LOCALIZE[number + 1] -> Dump text to file with the number behind it (+ maybe file name)

Just that, would give a dump file that is very easy to check.
Scroll / search through the dump file for [UPPERCASE] ect, to see if you forgot some real text inbetween those.
Add what you missed to language file, and done.

Code:
$LOCALIZE[341] - MyVideoNav.xml
$LOCALIZE[4442] - MyVideoNav.xml
$LOCALIZE[342][COLOR=darkblue]$INFO[Container.FolderName][/COLOR] - Variables.xml
[UPPERCASE]NOW WATCHING[/UPPERCASE] - Includes.xml
$INFO[Skin.String(CustomFavourite1.Label)] - IncludesNav.xml
WEATHER - 81267 - MyWeather.xml
PLAY DISK - 81266 - IncludesNav.xml
$INFO[Weather.Temperature] - MyWeather.xml

In this case, WEATHER and PLAY DISK were replaced for you. The number is behind them.
NOW WATCHING, fell through the cracks (again). But now you know.
All the $LOCALIZE you can just ignore / read over (they were already $LOCALIZE). Only if they contain a bit more, do you have to read more careful.

That is not going to take a long time to go through.

Think i'll give the new features a spin tomorrow, i'm tired...

it´s not always that easy in real world Big Grin
sometimes translating isn´t wanted. (when using a symbol charset or for virtual keyboard), sometimes skinners only put a "-" or simething like that into a label. i don´t think that an automatic solution would be better or more skinner-friendly than just a quick RegEx Search through all files.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
  •   
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 13
  •   



Logout Mark Read Team Forum Stats Members Help
Skin XML Converter + Formatter3
This forum uses Lukasz Tkacz MyBB addons.