コード例 #1
0
#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 '' )
)
コード例 #2
0
ファイル: bruks.py プロジェクト: gubnota/convert_bkrs
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)'
	)
コード例 #3
0
ファイル: bkrs.py プロジェクト: gubnota/convert_bkrs
#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 '' )
	)

コード例 #4
0
ファイル: bruks.py プロジェクト: gubnota/convert_bkrs
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)'
)
コード例 #5
0
ファイル: __init__.py プロジェクト: qunwang6/convert__
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'
	)