From: Ben Soares Date: Mon, 6 Jan 2020 16:08:30 +0000 (+0000) Subject: JAL-3447 minor corrections to cif and mmcif file associations X-Git-Tag: Develop-2_11_2_0-d20201215~80^2~28^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8274786b07649fc3cc2bbb4269e98c57df085dc3;p=jalview.git JAL-3447 minor corrections to cif and mmcif file associations --- diff --git a/utils/install4j/auto_file_associations-i4j8.pl b/utils/install4j/auto_file_associations-i4j8.pl index bf24b11..9b26f22 100755 --- a/utils/install4j/auto_file_associations-i4j8.pl +++ b/utils/install4j/auto_file_associations-i4j8.pl @@ -23,7 +23,7 @@ my $mimetypes = { scorematrix => "application/x-jalview-scorematrix+text", pdb => "chemical/x-pdb", mmcif => "chemical/x-cif", - mmcif2 => "chemical/x-mcif", + mmcif2 => "chemical/x-mmcif", jalview => "application/x-jalview+xml+zip", jvl => "application/x-jalview-jvl+text", annotations => "application/x-jalview-annotations+text", @@ -37,6 +37,7 @@ my $add_associations = { gff3 => {shortname=>"gff3",name=>"Generic Features Format v3",extensions=>["gff3"]}, features => {shortname=>"features",name=>"Jalview Features",extensions=>["features","jvfeatures"]}, annotations => {shortname=>"annotations",name=>"Jalview Annotations",extensions=>["annotations","jvannotations"]}, + mmcif => {shortname=>"mmcif",name=>"CIF",extensions=>["cif"]}, mmcif2 => {shortname=>"mmcif2",name=>"mmCIF",extensions=>["mcif","mmcif"]}, jvl => {shortname=>"jvl",name=>"Jalview Launch",extensions=>["jvl"],iconfile=>"Jalview-Launch"}, jnet => {shortname=>"jnet",name=>"JnetFile",extensions=>["concise","jnet"]}, @@ -213,6 +214,6 @@ close(MA); sub xml_escape { my $x = shift; # stolen from Pod::Simple::XMLOutStream in base distro - $x =~ s/([^-\n\t !\#\$\%\(\)\*\+,\.\~\/\:\;=\?\@\[\\\]\^_\`\{\|\}abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789])/'&#'.(ord($1)).';'/eg; + $x =~ s/([^-\n\t !\#\$\%\(\)\*\+,\.\~\/\:\;=\?\@\[\\\]\^_\`\{\|\}a-zA-Z0-9])/'&#'.(ord($1)).';'/eg; return $x; } diff --git a/utils/install4j/file_associations_auto-Info_plist.xml b/utils/install4j/file_associations_auto-Info_plist.xml index 67f5ba0..fac86a3 100644 --- a/utils/install4j/file_associations_auto-Info_plist.xml +++ b/utils/install4j/file_associations_auto-Info_plist.xml @@ -45,7 +45,7 @@ cif CFBundleTypeName -mmCIF File +CIF File CFBundleTypeIconFile Jalview-File.icns CFBundleTypeRole @@ -72,7 +72,7 @@ Viewer CFBundleTypeMIMETypes -chemical/x-mcif +chemical/x-mmcif LSIsAppleDefaultForType diff --git a/utils/install4j/file_associations_auto-install4j8.xml b/utils/install4j/file_associations_auto-install4j8.xml index 9314f6a..c9f5dc6 100644 --- a/utils/install4j/file_associations_auto-install4j8.xml +++ b/utils/install4j/file_associations_auto-install4j8.xml @@ -90,25 +90,25 @@ - - + + - mmCIF (.cif) + CIF (.cif) Creating file associations... - + - + - mmCIF File + CIF File cif 737 @@ -163,7 +163,7 @@ Jalview-File.icns - + @@ -172,7 +172,7 @@ Jalview-File.png - chemical/x-mcif + chemical/x-mmcif Jalview-File.ico diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index 134bc7d..3d39720 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -1164,6 +1164,7 @@ return console.askYesNo(message, true); +