#for part in parts: if not (len(sys.argv) > 1 and sys.argv[1] == '-t'): dsl.set_app_data({ dsl.INFILE: INFILE, dsl.OUTFILE: OUTFILE, dsl.DICTIONARY_PLUGIN_CLASS: RatijasDictionaryPlugin, dsl.ENTRY_PLUGIN_CLASS: BkrsEntryPlugin }) dsl.convert() jing_test.run(OUTFILE) pass dict_template.run( xml_filename=OUTFILE, plist_filename='bkrs/bkrsInfo.plist', prefs_filename='both/prefs.html', xsl_filename='both/dict.xsl', css_filename='bkrs/bkrs.css', images_dir='both/OtherResources/Images', display_name='大БКРС', # % ( ' ч.%s/3' % part if part else '' ), identifier='com.ratijas.dictionary.bkrs', # % part, bundle_name='大БКРС', # % ( ' %s' % part if part else '' ), version_string= VERSION # 'v63 (2014.09.30)' # % ( '-%s/3' % part if part else '' ) )
OUTFILE = 'bruks/bruks.xml' VERSION = open('downloads/version.txt').read().strip() if not ( len( sys.argv ) > 1 and sys.argv[ 1 ] == '-t' ): dsl.set_app_data({ dsl.INFILE: INFILE, dsl.OUTFILE: OUTFILE, dsl.DICTIONARY_PLUGIN_CLASS: RatijasDictionaryPlugin, dsl.ENTRY_PLUGIN_CLASS: BruksEntryPlugin }) dsl.convert() jing_test.run( OUTFILE ) pass dict_template.run( xml_filename = OUTFILE, plist_filename = 'bruks/bruksInfo.plist', prefs_filename = 'both/prefs.html', xsl_filename = 'both/dict.xsl', css_filename = 'bruks/bruks.css', images_dir = 'both/OtherResources/Images', display_name = 'БРуКС', identifier = 'com.ratijas.dictionary.bruks', bundle_name = 'БРуКС', version_string = VERSION # 'v63 (2014.09.30)' )
#for part in parts: if not ( len( sys.argv ) > 1 and sys.argv[ 1 ] == '-t' ): dsl.set_app_data({ dsl.INFILE: INFILE, dsl.OUTFILE: OUTFILE, dsl.DICTIONARY_PLUGIN_CLASS: RatijasDictionaryPlugin, dsl.ENTRY_PLUGIN_CLASS: BkrsEntryPlugin }) dsl.convert() jing_test.run( OUTFILE ) pass dict_template.run( xml_filename = OUTFILE, plist_filename = 'bkrs/bkrsInfo.plist', prefs_filename = 'both/prefs.html', xsl_filename = 'both/dict.xsl', css_filename = 'bkrs/bkrs.css', images_dir = 'both/OtherResources/Images', display_name = '大БКРС', # % ( ' ч.%s/3' % part if part else '' ), identifier = 'com.ratijas.dictionary.bkrs', # % part, bundle_name = '大БКРС', # % ( ' %s' % part if part else '' ), version_string = VERSION # 'v63 (2014.09.30)' # % ( '-%s/3' % part if part else '' ) )
OUTFILE = 'bruks/bruks.xml' VERSION = open('downloads/version.txt').read().strip() if not (len(sys.argv) > 1 and sys.argv[1] == '-t'): dsl.set_app_data({ dsl.INFILE: INFILE, dsl.OUTFILE: OUTFILE, dsl.DICTIONARY_PLUGIN_CLASS: RatijasDictionaryPlugin, dsl.ENTRY_PLUGIN_CLASS: BruksEntryPlugin }) dsl.convert() jing_test.run(OUTFILE) pass dict_template.run( xml_filename=OUTFILE, plist_filename='bruks/bruksInfo.plist', prefs_filename='both/prefs.html', xsl_filename='both/dict.xsl', css_filename='bruks/bruks.css', images_dir='both/OtherResources/Images', display_name='БРуКС', identifier='com.ratijas.dictionary.bruks', bundle_name='БРуКС', version_string=VERSION # 'v63 (2014.09.30)' )
dsl.set_app_data({ dsl.INFILE: infile, dsl.OUTFILE: xml_file, dsl.DICTIONARY_PLUGIN_CLASS: AppleDictionaryPlugin, dsl.ENTRY_PLUGIN_CLASS: UnderscoreEntryPlugin }) dsl.convert() try: jing_test.run( xml_file ) pass except Exception, e: pass except KeyboardInterrupt, ke: pass dict_template.run( xml_filename = xml_file, plist_filename = None, # prefs_filename = 'file.html', # xsl_filename = 'file.xsl', css_filename = 'style.css', images_dir = 'underscorejs.org/docs/images', display_name = '_.js', identifier = 'com.ratijas.dictionary._', bundle_name = 'underscore', version_string = '1.6.0' )