Removed Santali language (since it doesnt' have transliteration support)

resizeSvg
Aadhavan Srinivasan 2 weeks ago
parent 3d0c20ae48
commit 49b4820c2d

@ -36,7 +36,6 @@ type translationStruct struct {
As string `db:"assamese" json:"as"`
Pa string `db:"punjabi" json:"pa"`
Mai string `db:"maithili" json:"mai"`
Sat string `db:"santali" json:"sat"`
Ne string `db:"nepali" json:"ne"`
Gom string `db:"konkani" json:"gom"`
Tcy string `db:"tulu" json:"tcy"`
@ -62,7 +61,6 @@ var lang_codes []string = []string{
"as", // Assamese
"pa", // Punjabi
"mai", // Maithili
"sat", // Santali
"ne", // Nepali
"gom", // Konkani
"tcy", // Tulu
@ -81,7 +79,6 @@ func cleanup() {
return
}
/*
Returns the cached translation from the database, for the given english text. The first parameter
@ -107,7 +104,7 @@ func getCachedTranslation(data string) (bool, translationStruct) {
}
func addToDatabase(translation translationStruct) {
_, err := db.NamedExec(`INSERT INTO translations VALUES (:english, :hindi, :bengali, :marathi, :tamil, :telugu, :kannada, :malayalam, :oriya, :gujarati, :urdu, :mizo, :assamese, :punjabi, :maithili, :santali, :nepali, :konkani, :tulu, :bhojpuri, :dogri, :manipuri, :sindhi, :awadhi)`, &translation)
_, err := db.NamedExec(`INSERT INTO translations VALUES (:english, :hindi, :bengali, :marathi, :tamil, :telugu, :kannada, :malayalam, :oriya, :gujarati, :urdu, :mizo, :assamese, :punjabi, :maithili, :nepali, :konkani, :tulu, :bhojpuri, :dogri, :manipuri, :sindhi, :awadhi)`, &translation)
if err != nil {
panic(err)
}

@ -23,7 +23,6 @@ const languages = {
urdu: {name: "Urdu", color: "#3fa179", code: "ur", districts: []},
tulu: {name: "Tulu", color: "#dedc52", code: "tcy", districts: []},
maithali: {name: "Maithali", color: "#4472a6", code: "mai", districts: []},
santali: {name: "Santali", color: "#96bf60", code: "sat", districts: []},
sindhi: {name: "Sindhi", color: "#e89931", code: "sd", districts: []},
awadhi: {name: "Awadhi", color: "#847fb5", code: "awa", districts: []},
};
@ -117,17 +116,6 @@ const district2lang = { // Should override state colors
"Kutch": languages["sindhi"],
"Godda": languages["santali"],
"Deoghar": languages["santali"],
"Dumka": languages["santali"],
"Jamtara": languages["santali"],
"Sahibganj": languages["santali"],
"Pakur": languages["santali"],
"East Singhbhum": languages["santali"],
"Jhargram": languages["santali"],
"Bankura": languages["santali"],
"Purulia": languages["santali"],
"Kanpur": languages["awadhi"],
"Lakhimpur Kheri": languages["awadhi"],
"Sitapur": languages["awadhi"],
@ -246,6 +234,9 @@ function drawMap(world) {
}
if (d.properties.lang_name == "Konkani") {
rtv -= 15;
}
if (d.properties.lang_name == "Bengali") {
rtv -= 15;
}
return rtv
}
@ -268,6 +259,9 @@ function drawMap(world) {
if (d.properties.lang_name == "Nepali") {
rtv -= 10;
}
if (d.properties.lang_name == "Bengali") {
rtv += 25;
}
return rtv
}
@ -357,6 +351,7 @@ function drawMap(world) {
// .attr("font-size", "12px")
// .attr("fill", "black")
// .text("Hello, Map!");
// for (const [langId,lang] of Object.entries(languages)) {
// let geojson = {
// "type": "FeatureCollection",

@ -6342,20 +6342,76 @@
22.9967235114937
],
[
86.18778547532466,
22.94723235336187
86.50126897280225,
22.993974002708597
],
[
86.19848978987267,
22.818005440462084
86.43551389772158,
22.926611037473606
],
[
86.15873090726576,
22.75201722961964
86.41869283200327,
22.790510352611065
],
[
86.55937810892004,
22.713524106628213
],
[
86.64195424971902,
22.65715917653363
],
[
86.65877531543732,
22.576048667373126
],
[
86.76581846091747,
22.576048667373126
],
[
86.80098978014666,
22.488064386249867
],
[
86.7642892731249,
22.426200438585077
],
[
86.84533622613131,
22.400080105126612
],
[
86.83310272379072,
22.32584336792886
],
[
86.72758876610314,
22.21586301652479
],
[
86.55479054554232,
22.298348280077846
],
[
86.14955578051031,
22.63103884307516
86.49668140942453,
22.346464683817125
],
[
86.42939714655128,
22.316220087181005
],
[
86.3590545080929,
22.349214192602226
],
[
86.28259511846423,
22.44819650886589
],
[
86.11897202465885,
22.486689631857317
],
[
86.06697963971135,
@ -9635,6 +9691,54 @@
"coordinates": [
[
[
[
85.81925121731442,
23.268924881218776
],
[
85.8834771046025,
23.35003539037928
],
[
85.85901009992133,
23.42977114514723
],
[
85.88500629239508,
23.48338656645672
],
[
86.03945425944502,
23.498508864774777
],
[
86.08227151763708,
23.565871830009772
],
[
86.15873090726576,
23.558998058047017
],
[
86.17708116077664,
23.469639022531208
],
[
86.31012049873054,
23.411899338044073
],
[
86.36517125926319,
23.531502970195998
],
[
86.48597709487652,
23.63598430402987
],
[
86.7122968881774,
23.69922300608721
],
[
86.80098978014666,
23.69922300608721
@ -10380,100 +10484,92 @@
21.964282962687975
],
[
87.13741109451287,
22.12650398100898
],
[
87.1817575404975,
22.191117437458875
],
[
87.2046953573861,
22.303847297648048
87.10835652645397,
21.924415085304
],
[
87.16187809919404,
22.424825684192527
87.10071058749111,
21.86392589203176
],
[
87.08236033398022,
22.471567333539255
87.00131338097381,
21.913417050163595
],
[
87.09918139969852,
22.6942775451325
87.02883876124014,
22.038519699885725
],
[
87.07624358280992,
22.725896896161174
86.96461287395205,
22.085261349232454
],
[
87.06401008046933,
22.850999545883305
86.83769028716844,
22.097634138765414
],
[
87.27045043246677,
22.903240212800238
86.72758876610314,
22.21586301652479
],
[
87.35761413664346,
22.95410612532462
86.83310272379072,
22.32584336792886
],
[
87.45701134316076,
22.912863493548095
86.84533622613131,
22.400080105126612
],
[
87.52276641824142,
22.927985791866156
86.7642892731249,
22.426200438585077
],
[
87.63133875151414,
22.899115949622587
86.80098978014666,
22.488064386249867
],
[
87.64204306606216,
22.98160121317564
86.76581846091747,
22.576048667373126
],
[
87.71238570452054,
23.01047105541921
86.65877531543732,
22.576048667373126
],
[
87.76437808946804,
23.0750845118691
86.64195424971902,
22.65715917653363
],
[
87.64510144164731,
23.19606289841358
86.55937810892004,
22.713524106628213
],
[
87.55640854967804,
23.312917021780407
86.41869283200327,
22.790510352611065
],
[
87.44936540419789,
23.402276057296216
86.43551389772158,
22.926611037473606
],
[
87.27809637142964,
23.499883619167328
86.50126897280225,
22.993974002708597
],
[
87.20928292076383,
23.557623303654466
86.24130704806473,
22.9967235114937
],
[
87.01507607110698,
23.631860040852214
86.04404182282273,
23.145196985889196
],
[
86.90191617445653,
23.63873381281497
85.88500629239508,
23.16719305617001
],
[
86.80098978014666,
23.69922300608721
85.81925121731442,
23.268924881218776
]
]
],
@ -14635,68 +14731,116 @@
25.258194487239926
],
[
87.69250626321708,
25.31180990854941
87.77814077960122,
25.24994596088462
],
[
87.55182098630031,
25.331056470045123
87.77966996739379,
25.144089872658203
],
[
87.47841997225677,
25.194955785182586
87.79496184531952,
25.087724942563614
],
[
87.327030380792,
25.223825627426155
87.95399737574718,
24.97362032798189
],
[
87.29491743714794,
25.089099696956165
87.96011412691746,
24.921379661064957
],
[
87.1756407893272,
25.057480345927495
87.89130067625166,
24.855391450222513
],
[
87.14505703347574,
25.01898722293607
87.83930829130415,
24.74541109881844
],
[
87.15729053581632,
24.88151178368098
87.90812174196996,
24.722040274145076
],
[
87.10988571424654,
24.85126718704486
87.88977148845908,
24.565318273394276
],
[
87.05177657812874,
24.627182221059066
87.79343265752695,
24.583190080497435
],
[
86.95237937161146,
24.631306484236717
87.80107859648982,
24.382475939185007
],
[
86.91262048900455,
24.547446466291113
87.70626895335025,
24.260122798247973
],
[
86.7535849585769,
24.61755894031121
87.638984690477,
24.254623780677772
],
[
86.65265856426703,
24.570817290964477
87.63133875151414,
24.163889990769412
],
[
86.61137049386755,
24.607935659563353
87.44019027744244,
23.982422410952694
],
[
86.49973978500967,
24.510328097692238
87.33620550754743,
24.034663077869627
],
[
87.23374992544501,
24.02503979712177
],
[
87.29491743714794,
23.90131190179219
],
[
87.23374992544501,
23.85594500683801
],
[
87.12976515555,
23.85319549805291
],
[
87.08541870956536,
23.811952866276382
],
[
86.9156788645897,
23.882065340296478
],
[
86.80098978014666,
23.833948936557196
],
[
86.58231592580864,
23.982422410952694
],
[
86.48138953149879,
24.02229028833667
],
[
86.57008242346805,
24.1418939204886
],
[
86.48444790708393,
24.152891955629006
],
[
86.51503166293541,
24.2230044296491
],
[
86.4523349634399,
@ -14911,451 +15055,6 @@
},
"id": "langMaithali"
},
{
"type": "Feature",
"properties": {
"lang_name": "Santali",
"lang_code": "sat"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
85.81925121731442,
23.268924881218776
],
[
85.8834771046025,
23.35003539037928
],
[
85.85901009992133,
23.42977114514723
],
[
85.88500629239508,
23.48338656645672
],
[
86.03945425944502,
23.498508864774777
],
[
86.08227151763708,
23.565871830009772
],
[
86.15873090726576,
23.558998058047017
],
[
86.17708116077664,
23.469639022531208
],
[
86.31012049873054,
23.411899338044073
],
[
86.36517125926319,
23.531502970195998
],
[
86.48597709487652,
23.63598430402987
],
[
86.7122968881774,
23.69922300608721
],
[
86.80098978014666,
23.69922300608721
],
[
86.90191617445653,
23.63873381281497
],
[
87.01507607110698,
23.631860040852214
],
[
87.20928292076383,
23.557623303654466
],
[
87.27809637142964,
23.499883619167328
],
[
87.44936540419789,
23.402276057296216
],
[
87.55640854967804,
23.312917021780407
],
[
87.64510144164731,
23.19606289841358
],
[
87.76437808946804,
23.0750845118691
],
[
87.71238570452054,
23.01047105541921
],
[
87.64204306606216,
22.98160121317564
],
[
87.63133875151414,
22.899115949622587
],
[
87.52276641824142,
22.927985791866156
],
[
87.45701134316076,
22.912863493548095
],
[
87.35761413664346,
22.95410612532462
],
[
87.27045043246677,
22.903240212800238
],
[
87.06401008046933,
22.850999545883305
],
[
87.07624358280992,
22.725896896161174
],
[
87.09918139969852,
22.6942775451325
],
[
87.08236033398022,
22.471567333539255
],
[
87.16187809919404,
22.424825684192527
],
[
87.2046953573861,
22.303847297648048
],
[
87.1817575404975,
22.191117437458875
],
[
87.13741109451287,
22.12650398100898
],
[
87.24292505220045,
21.964282962687975
],
[
87.10835652645397,
21.924415085304
],
[
87.10071058749111,
21.86392589203176
],
[
87.00131338097381,
21.913417050163595
],
[
87.02883876124014,
22.038519699885725
],
[
86.96461287395205,
22.085261349232454
],
[
86.83769028716844,
22.097634138765414
],
[
86.72758876610314,
22.21586301652479
],
[
86.55479054554232,
22.298348280077846
],
[
86.49668140942453,
22.346464683817125
],
[
86.42939714655128,
22.316220087181005
],
[
86.3590545080929,
22.349214192602226
],
[
86.28259511846423,
22.44819650886589
],
[
86.11897202465885,
22.486689631857317
],
[
86.06697963971135,
22.556802105877413
],
[
86.14955578051031,
22.63103884307516
],
[
86.15873090726576,
22.75201722961964
],
[
86.19848978987267,
22.818005440462084
],
[
86.18778547532466,
22.94723235336187
],
[
86.24130704806473,
22.9967235114937
],
[
86.04404182282273,
23.145196985889196
],
[
85.88500629239508,
23.16719305617001
],
[
85.81925121731442,
23.268924881218776
]
]
],
[
[
[
86.4523349634399,
24.37285265843715
],
[
86.49973978500967,
24.510328097692238
],
[
86.61137049386755,
24.607935659563353
],
[
86.65265856426703,
24.570817290964477
],
[
86.7535849585769,
24.61755894031121
],
[
86.91262048900455,
24.547446466291113
],
[
86.95237937161146,
24.631306484236717
],
[
87.05177657812874,
24.627182221059066
],
[
87.10988571424654,
24.85126718704486
],
[
87.15729053581632,
24.88151178368098
],
[
87.14505703347574,
25.01898722293607
],
[
87.1756407893272,
25.057480345927495
],
[
87.29491743714794,
25.089099696956165
],
[
87.327030380792,
25.223825627426155
],
[
87.47841997225677,
25.194955785182586
],
[
87.55182098630031,
25.331056470045123
],
[
87.69250626321708,
25.31180990854941
],
[
87.71085651672797,
25.258194487239926
],
[
87.77814077960122,
25.24994596088462
],
[
87.77966996739379,
25.144089872658203
],
[
87.79496184531952,
25.087724942563614
],
[
87.95399737574718,
24.97362032798189
],
[
87.96011412691746,
24.921379661064957
],
[
87.89130067625166,
24.855391450222513
],
[
87.83930829130415,
24.74541109881844
],
[
87.90812174196996,
24.722040274145076
],
[
87.88977148845908,
24.565318273394276
],
[
87.79343265752695,
24.583190080497435
],
[
87.80107859648982,
24.382475939185007
],
[
87.70626895335025,
24.260122798247973
],
[
87.638984690477,
24.254623780677772
],
[
87.63133875151414,
24.163889990769412
],
[
87.44019027744244,
23.982422410952694
],
[
87.33620550754743,
24.034663077869627
],
[
87.23374992544501,
24.02503979712177
],
[
87.29491743714794,
23.90131190179219
],
[
87.23374992544501,
23.85594500683801
],
[
87.12976515555,
23.85319549805291
],
[
87.08541870956536,
23.811952866276382
],
[
86.9156788645897,
23.882065340296478
],
[
86.80098978014666,
23.833948936557196
],
[
86.58231592580864,
23.982422410952694
],
[
86.48138953149879,
24.02229028833667
],
[
86.57008242346805,
24.1418939204886
],
[
86.48444790708393,
24.152891955629006
],
[
86.51503166293541,
24.2230044296491
],
[
86.4523349634399,
24.37285265843715
]
]
]
]
},
"id": "langSantali"
},
{
"type": "Feature",
"properties": {
@ -34545,7 +34244,7 @@
{
"type": "Feature",
"properties": {
"district": "Dakshina Kannada",
"district": "Dakshina Kannada",
"dt_code": "575",
"st_nm": "Karnataka",
"st_code": "29",
@ -90915,7 +90614,7 @@
{
"type": "Feature",
"properties": {
"district": "Kutch",
"district": "Kutch",
"dt_code": "468",
"st_nm": "Gujarat",
"st_code": "24",
@ -124468,6 +124167,6 @@
]
]
}
}
]
}
]
}

File diff suppressed because one or more lines are too long

@ -14910,451 +14910,6 @@
},
"id": "langMaithali"
},
{
"type": "Feature",
"properties": {
"lang_name": "Santali",
"lang_code": "sat"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
85.81925121731442,
23.268924881218776
],
[
85.8834771046025,
23.35003539037928
],
[
85.85901009992133,
23.42977114514723
],
[
85.88500629239508,
23.48338656645672
],
[
86.03945425944502,
23.498508864774777
],
[
86.08227151763708,
23.565871830009772
],
[
86.15873090726576,
23.558998058047017
],
[
86.17708116077664,
23.469639022531208
],
[
86.31012049873054,
23.411899338044073
],
[
86.36517125926319,
23.531502970195998
],
[
86.48597709487652,
23.63598430402987
],
[
86.7122968881774,
23.69922300608721
],
[
86.80098978014666,
23.69922300608721
],
[
86.90191617445653,
23.63873381281497
],
[
87.01507607110698,
23.631860040852214
],
[
87.20928292076383,
23.557623303654466
],
[
87.27809637142964,
23.499883619167328
],
[
87.44936540419789,
23.402276057296216
],
[
87.55640854967804,
23.312917021780407
],
[
87.64510144164731,
23.19606289841358
],
[
87.76437808946804,
23.0750845118691
],
[
87.71238570452054,
23.01047105541921
],
[
87.64204306606216,
22.98160121317564
],
[
87.63133875151414,
22.899115949622587
],
[
87.52276641824142,
22.927985791866156
],
[
87.45701134316076,
22.912863493548095
],
[
87.35761413664346,
22.95410612532462
],
[
87.27045043246677,
22.903240212800238
],
[
87.06401008046933,
22.850999545883305
],
[
87.07624358280992,
22.725896896161174
],
[
87.09918139969852,
22.6942775451325
],
[
87.08236033398022,
22.471567333539255
],
[
87.16187809919404,
22.424825684192527
],
[
87.2046953573861,
22.303847297648048
],
[
87.1817575404975,
22.191117437458875
],
[
87.13741109451287,
22.12650398100898
],
[
87.24292505220045,
21.964282962687975
],
[
87.10835652645397,
21.924415085304
],
[
87.10071058749111,
21.86392589203176
],
[
87.00131338097381,
21.913417050163595
],
[
87.02883876124014,
22.038519699885725
],
[
86.96461287395205,
22.085261349232454
],
[
86.83769028716844,
22.097634138765414
],
[
86.72758876610314,
22.21586301652479
],
[
86.55479054554232,
22.298348280077846
],
[
86.49668140942453,
22.346464683817125
],
[
86.42939714655128,
22.316220087181005
],
[
86.3590545080929,
22.349214192602226
],
[
86.28259511846423,
22.44819650886589
],
[
86.11897202465885,
22.486689631857317
],
[
86.06697963971135,
22.556802105877413
],
[
86.14955578051031,
22.63103884307516
],
[
86.15873090726576,
22.75201722961964
],
[
86.19848978987267,
22.818005440462084
],
[
86.18778547532466,
22.94723235336187
],
[
86.24130704806473,
22.9967235114937
],
[
86.04404182282273,
23.145196985889196
],
[
85.88500629239508,
23.16719305617001
],
[
85.81925121731442,
23.268924881218776
]
]
],
[
[
[
86.4523349634399,
24.37285265843715
],
[
86.49973978500967,
24.510328097692238
],
[
86.61137049386755,
24.607935659563353
],
[
86.65265856426703,
24.570817290964477
],
[
86.7535849585769,
24.61755894031121
],
[
86.91262048900455,
24.547446466291113
],
[
86.95237937161146,
24.631306484236717
],
[
87.05177657812874,
24.627182221059066
],
[
87.10988571424654,
24.85126718704486
],
[
87.15729053581632,
24.88151178368098
],
[
87.14505703347574,
25.01898722293607
],
[
87.1756407893272,
25.057480345927495
],
[
87.29491743714794,
25.089099696956165
],
[
87.327030380792,
25.223825627426155
],
[
87.47841997225677,
25.194955785182586
],
[
87.55182098630031,
25.331056470045123
],
[
87.69250626321708,
25.31180990854941
],
[
87.71085651672797,
25.258194487239926
],
[
87.77814077960122,
25.24994596088462
],
[
87.77966996739379,
25.144089872658203
],
[
87.79496184531952,
25.087724942563614
],
[
87.95399737574718,
24.97362032798189
],
[
87.96011412691746,
24.921379661064957
],
[
87.89130067625166,
24.855391450222513
],
[
87.83930829130415,
24.74541109881844
],
[
87.90812174196996,
24.722040274145076
],
[
87.88977148845908,
24.565318273394276
],
[
87.79343265752695,
24.583190080497435
],
[
87.80107859648982,
24.382475939185007
],
[
87.70626895335025,
24.260122798247973
],
[
87.638984690477,
24.254623780677772
],
[
87.63133875151414,
24.163889990769412
],
[
87.44019027744244,
23.982422410952694
],
[
87.33620550754743,
24.034663077869627
],
[
87.23374992544501,
24.02503979712177
],
[
87.29491743714794,
23.90131190179219
],
[
87.23374992544501,
23.85594500683801
],
[
87.12976515555,
23.85319549805291
],
[
87.08541870956536,
23.811952866276382
],
[
86.9156788645897,
23.882065340296478
],
[
86.80098978014666,
23.833948936557196
],
[
86.58231592580864,
23.982422410952694
],
[
86.48138953149879,
24.02229028833667
],
[
86.57008242346805,
24.1418939204886
],
[
86.48444790708393,
24.152891955629006
],
[
86.51503166293541,
24.2230044296491
],
[
86.4523349634399,
24.37285265843715
]
]
]
]
},
"id": "langSantali"
},
{
"type": "Feature",
"properties": {

@ -13,7 +13,6 @@ Mizo
Assamese
Punjabi
Maithili
Santali
Nepali
Konkani
Tulu

Binary file not shown.
Loading…
Cancel
Save