1
0
Fork 0
forked from 0x2620/oxjs

use minify in build script; add unicode module

This commit is contained in:
rlx 2011-10-05 17:07:21 +00:00
commit 66b9d41450
331 changed files with 114865 additions and 147253 deletions

View file

@ -1,4 +1,10 @@
import json
import os
import ox
base_path = os.path.dirname(__file__)
if base_path:
os.chdir(base_path)
f = open('../json/countries.json')
data = json.loads(f.read())

View file

@ -9,8 +9,6 @@ import ox
import re
"""
run this, then html/geo.html, then py/fix_json.py
311 countries
-- sovereign, dependent and disputed countries according to
http://en.wikipedia.org/wiki/List_of_sovereign_states
@ -26,6 +24,10 @@ both will used by html/geo.html
"""
base_path = os.path.dirname(__file__)
if base_path:
os.chdir(base_path)
MIN_LAT = -math.degrees(math.atan(math.sinh(math.pi)))
geo = {
@ -245,7 +247,6 @@ geo = {
'Kosovo': 'Kosova (Kosovo)',
'Macedonia': 'Former Yugoslav Republic of Macedonia',
'Myanmar': 'Burma',
'Netherlands': 'The Netherlands',
'Palestine': 'Palestinian Territories',
'Republic of the Congo': 'Congo',
'Sahrawi': 'Western Sahara',