From: skeezix Date: Sun, 20 Feb 2011 03:51:43 +0000 (-0500) Subject: Updated documentation (PXML_schema.xsd and human readable version) and genpxml.sh... X-Git-Tag: sz_beta3~65 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=2c3dd8599c78a60e554d3ea14adcf872ab3d80c8 Updated documentation (PXML_schema.xsd and human readable version) and genpxml.sh -- should pass PXML_schema.xsd --- diff --git a/docs/PXML_schema.xsd b/docs/PXML_schema.xsd index 2d28bbe..e756003 100644 --- a/docs/PXML_schema.xsd +++ b/docs/PXML_schema.xsd @@ -1,123 +1,207 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/PXML_schema_plaintext.txt b/docs/PXML_schema_plaintext.txt new file mode 100644 index 0000000..4509177 --- /dev/null +++ b/docs/PXML_schema_plaintext.txt @@ -0,0 +1,68 @@ +1) at the root there is *exactly* one PXML block +2) inside this PXML block are >=1 blocks + (required) id=DUMBFOLDERNAME + (optional) appdata=DUMBFOLDERNAME + +inside each application block: +1) =1 + (required) command=TOKEN + (optional) arguments=TOKEN + (optional) background=BOOLEAN + (optional) startdir=DUMBPATH + (optional) standalone=BOOLEAN + (optional) x11=[req|stop|ignore] +2) >=1 TEXT + (required) lang=LANGCODE ( [a-zA-Z]{2,3}(_[a-zA-Z0-9]{2,3})* ) +3) =1 + (required) name=TEXT + (optional) website=anyURI + (optional) email=EMAILADDRESS +4) =1 + (required) major=VERSION_NR + (required) minor=VERSION_NR + (required) release=VERSION_NR + (required) build=VERSION_NR +5) <=1 + (required) major=VERSION_NR + (required) minor=VERSION_NR + (required) release=VERSION_NR + (required) build=VERSION_NR +6) >=0 TEXT + (required) lang=LANGCODE ( [a-zA-Z]{2,3}(_[a-zA-Z0-9]{2,3})* ) +7) <=1 + (required) src=DUMBPATH +8) <=1 + (optional) >=0 + (required) src=DUMBPATH +9) <=1 + (required) name=TEXT + (required) type=[text/html|text/plain] + (required) src=DUMBPATH +10)=1 + (required) >=1 + (required) name=fdoCategory + (optional) + (required) name=fdoSubCategory +11)<=1 + (required) >=1 + (required) name=TEXT + (required) filetype=TOKEN + (required) arguments=TOKEN +12)<=1 + (required) frequency=positiveInteger + + + +Filetype/variable explaination: +anyURI: should be some URL, no idea what exactly XML accepts there... (XML variable 'anyURI'!) +BOOLEAN: 0 or 1 or true or false (XML variable 'boolean'!) +DUMBFOLDERNAME: TEXT without ?>:/ +DUMBPATH: TEXT without ?>: +EMAILADDRESS: [^@]+@[^\.]+\..+ in normal lang: something with an @ in the middle and some domain like thingie +LANGCODE: [a-zA-Z]{2,3}(_[a-zA-Z0-9]{2,3})* example: en, eng, en_US, fur_IT +TEXT: The normalizedString data type also contains characters, but the XML processor will remove line feeds, carriage returns, and tab characters. (XML variable 'normalizedString'!) +TOKEN: The token data type also contains characters, but the XML processor will remove line feeds, carriage returns, tabs, leading and trailing spaces, and multiple spaces. (XML variable 'token'!) +VERSION_NR: [a-zA-Z0-9+-]* example: 1, a, +svn, -svn, 123456789123456789 + +fdoCategory=AudioVideo|Audio|Video|Development|Education|Game|Graphics|Network|Office +fdoSubCategory=Building|Debugger|IDE|GUIDesigner|Profiling|RevisionControl|Translation|Calendar|ContactManagement|Database|Dictionary|Chart|Email|Finance|FlowChart|PDA|ProjectManagement|Presentation|Spreadsheet|WordProcessor|2DGraphics|VectorGraphics|RasterGraphics|3DGraphics|Scanning|OCR|Photography|Publishing|Viewer|TextTools|DesktopSettings|HardwareSettings|Printing|PackageManager|Dialup|InstantMessaging|Chat|IRCClient|FileTransfer|HamRadio|News|P2P|RemoteAccess|Telephony|TelephonyTools|VideoConference|WebBrowser|WebDevelopment|Midi|Mixer|Sequencer|Tuner|TV|AudioVideoEditing|Player|Recorder|DiscBurning|ActionGame|AdventureGame|ArcadeGame|BoardGame|BlocksGame|CardGame|KidsGame|LogicGame|RolePlaying|Simulation|SportsGame|StrategyGame|Art|Construction|Music|Languages|Science|ArtificialIntelligence|Astronomy|Biology|Chemistry|ComputerScience|DataVisualization|Economy|Electricity|Geography|Geology|Geoscience|History|ImageProcessing|Literature|Math|NumericalAnalysis|MedicalSoftware|Physics|Robotics|Sports|ParallelComputing|Amusement|Archiving|Compression|Electronics|Emulator|Engineering|FileTools|FileManager|TerminalEmulator|Filesystem|Monitor|Security|Accessibility|Calculator|Clock|TextEditor|Documentation|Core|KDE|GNOME|GTK|Qt|Motif|Java|ConsoleOnly diff --git a/testdata/scripts/genpxml.sh b/testdata/scripts/genpxml.sh index d54f683..f859bfa 100755 --- a/testdata/scripts/genpxml.sh +++ b/testdata/scripts/genpxml.sh @@ -15,15 +15,23 @@ echo ' + + '$BASENAMEnoex' - '$BASENAMEnoex' - German (lol!) + '$BASENAMEnoex' - German (lol!) - + + + + en_US Automatically generated pxml from'$(pwd)' exe='$BASENAME' de_DE Automatisch generiertes pxml aus'$(pwd)' exe='$BASENAME' + + + ' #add all images in the folder as preview pics for image in $(file -i -0 * | grep -a image | cut -d" " -f1) @@ -32,14 +40,17 @@ echo " " done echo ' - - - - + + - - + + + + + @@ -47,9 +58,10 @@ echo ' - + + -' \ No newline at end of file +'