<gh_stars>10-100
#!/usr/bin/python

from utils import *
import sys

def format(categoryName, categoryList, version):
	return '// All code points in the `' + categoryName + '` category as per Unicode v' + version + ':\n[\n\t' + ',\n\t'.join(categoryList) + '\n];'

def main(sourceFile, version):
	dictionary = parseDatabase(sourceFile)
	#print(dictionary)
	# for item in sorted(dictionary.items()):
	# 	category = item[0]
	# 	codePoints = map(hexify, item[1])
	# 	result = format(category, codePoints, version)
	# 	#writeFile(version + '/categories/' + category + '-names.js', result)
	# 	print(result)

if __name__ == '__main__':
	main(sys.argv[1], sys.argv[2])

#!/usr/bin/python

from utils import *
import sys

def format(categoryName, categoryList, version):
	return '// All code points in the `' + categoryName + '` category as per Unicode v' + version + ':\n[\n\t' + ',\n\t'.join(categoryList) + '\n];'

def main(sourceFile, version):
	dictionary = parseDatabase(sourceFile)
	#print(dictionary)
	# for item in sorted(dictionary.items()):
	# 	category = item[0]
	# 	codePoints = map(hexify, item[1])
	# 	result = format(category, codePoints, version)
	# 	#writeFile(version + '/categories/' + category + '-names.js', result)
	# 	print(result)

if __name__ == '__main__':
	main(sys.argv[1], sys.argv[2])
#!/usr/bin/python #print(dictionary) # for item in sorted(dictionary.items()): # 	category = item[0] # 	codePoints = map(hexify, item[1]) # 	result = format(category, codePoints, version) # 	#writeFile(version + '/categories/' + category + '-names.js', result) # 	print(result)