Skip to content

Commit

Permalink
NEW: Display em dash when there's no gloss (#67)
Browse files Browse the repository at this point in the history
closes #67
  • Loading branch information
dwhieb committed Jun 7, 2024
1 parent bc8cc78 commit 6c309f9
Show file tree
Hide file tree
Showing 13 changed files with 310 additions and 304 deletions.
5 changes: 4 additions & 1 deletion data/Components.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export default class Components extends Map {
const ortho = record[cols.orthography]
const form = orthographies.transliterate(ortho, original)

// Definition
const definition = (record[cols.definition] ?? ``).replaceAll(`NG`, ``)

this.transliterations.push({
language,
originalOrthography: original.replaceAll(`-`, `\u2011`),
Expand All @@ -147,7 +150,7 @@ export default class Components extends Map {
})

return {
definition: record[cols.definition],
definition,
form,
id,
language,
Expand Down
5 changes: 4 additions & 1 deletion data/Issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export default class Issues extends Map {
async load() {

const csv = await readFile(Issues.filePath, `utf8`)
const records = parseCSV(csv, { columns: Issues.columns })
const records = parseCSV(csv, {
columns: Issues.columns,
trim: true,
})

for (const record of records) {
this.set(record.id, record)
Expand Down
14 changes: 7 additions & 7 deletions data/json/components/Arapaho.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
{"definition":"","form":"","id":"Arapaho-385","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-386","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-387","language":"Arapaho"}
{"form":"","id":"Arapaho-388","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-388","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-389","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-390","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-391","language":"Arapaho"}
Expand Down Expand Up @@ -450,7 +450,7 @@
{"definition":"","form":"","id":"Arapaho-450","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-451","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-452","language":"Arapaho"}
{"form":"","id":"Arapaho-453","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-453","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-454","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-455","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-456","language":"Arapaho"}
Expand Down Expand Up @@ -511,7 +511,7 @@
{"definition":"","form":"","id":"Arapaho-511","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-512","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-513","language":"Arapaho"}
{"form":"","id":"Arapaho-514","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-514","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-515","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-516","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-517","language":"Arapaho"}
Expand Down Expand Up @@ -574,12 +574,12 @@
{"definition":"","form":"","id":"Arapaho-574","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-575","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-576","language":"Arapaho"}
{"form":"","id":"Arapaho-577","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-577","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-578","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-579","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-580","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-581","language":"Arapaho"}
{"form":"","id":"Arapaho-582","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-582","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-583","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-584","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-585","language":"Arapaho"}
Expand Down Expand Up @@ -700,7 +700,7 @@
{"definition":"","form":"","id":"Arapaho-700","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-701","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-702","language":"Arapaho"}
{"form":"","id":"Arapaho-703","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-703","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-704","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-705","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-706","language":"Arapaho"}
Expand Down Expand Up @@ -927,7 +927,7 @@
{"definition":"","form":"","id":"Arapaho-927","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-928","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-929","language":"Arapaho"}
{"form":"","id":"Arapaho-930","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-930","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-931","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-932","language":"Arapaho"}
{"definition":"","form":"","id":"Arapaho-933","language":"Arapaho"}
Expand Down
2 changes: 1 addition & 1 deletion data/json/components/Blackfoot.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
{"definition":"","form":"s·konák","id":"Blackfoot-200","language":"Blackfoot"}
{"definition":"","form":"s·ok","id":"Blackfoot-201","language":"Blackfoot"}
{"definition":"","form":"s·p-","id":"Blackfoot-202","language":"Blackfoot"}
{"form":"s·ta-","id":"Blackfoot-203","language":"Blackfoot"}
{"definition":"","form":"s·ta-","id":"Blackfoot-203","language":"Blackfoot"}
{"definition":"","form":"s·to-","id":"Blackfoot-204","language":"Blackfoot"}
{"definition":"","form":"s·tonat-","id":"Blackfoot-205","language":"Blackfoot"}
{"definition":"","form":"s·ton·at-","id":"Blackfoot-206","language":"Blackfoot"}
Expand Down
4 changes: 2 additions & 2 deletions data/json/components/Cree_Innu.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
{"definition":"sew","form":"kwaat","id":"Cree_Innu-198","language":"Cree_Innu"}
{"definition":"dole out with tongs","form":"kut","id":"Cree_Innu-199","language":"Cree_Innu"}
{"definition":"cut","form":"š","id":"Cree_Innu-200","language":"Cree_Innu"}
{"definition":"NG","form":"am","id":"Cree_Innu-201","language":"Cree_Innu"}
{"definition":"","form":"am","id":"Cree_Innu-201","language":"Cree_Innu"}
{"definition":"arranged in space","form":"aay-","id":"Cree_Innu-203","language":"Cree_Innu"}
{"definition":"place, put","form":"ast-","id":"Cree_Innu-204","language":"Cree_Innu"}
{"definition":"take something away","form":"aaw-","id":"Cree_Innu-205","language":"Cree_Innu"}
Expand Down Expand Up @@ -278,7 +278,7 @@
{"definition":"","form":"-te-","id":"Cree_Innu-292","language":"Cree_Innu"}
{"definition":"","form":"wâk-","id":"Cree_Innu-293","language":"Cree_Innu"}
{"definition":"","form":"-âwkun-","id":"Cree_Innu-294","language":"Cree_Innu"}
{"form":"lâlewe-","id":"Cree_Innu-295","language":"Cree_Innu"}
{"definition":"","form":"lâlewe-","id":"Cree_Innu-295","language":"Cree_Innu"}
{"definition":"","form":"-ay-","id":"Cree_Innu-296","language":"Cree_Innu"}
{"definition":"","form":"-pal-","id":"Cree_Innu-297","language":"Cree_Innu"}
{"definition":"","form":"-âwč-","id":"Cree_Innu-298","language":"Cree_Innu"}
Expand Down
6 changes: 3 additions & 3 deletions data/json/components/Menominee.ndjson
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{"definition":"eye","form":"-'kw-","id":"Menominee-1","language":"Menominee"}
{"definition":"earth, soil","form":"-aamæhk-","id":"Menominee-2","language":"Menominee"}
{"definition":"earth, soil","form":"-aamæhkw-","id":"Menominee-3","language":"Menominee"}
{"definition":"NG","form":"-aan","id":"Menominee-4","language":"Menominee"}
{"definition":"","form":"-aan","id":"Menominee-4","language":"Menominee"}
{"definition":"hole","form":"-aan-ak","id":"Menominee-5","language":"Menominee"}
{"definition":"blaze","form":"-ahkonÆÆ-","id":"Menominee-6","language":"Menominee"}
{"definition":"NG","form":"-ak-","id":"Menominee-7","language":"Menominee"}
{"definition":"","form":"-ak-","id":"Menominee-7","language":"Menominee"}
{"definition":"suffer pain","form":"-amami","id":"Menominee-8","language":"Menominee"}
{"definition":"think of inanimate thing","form":"-ææniht","id":"Menominee-9","language":"Menominee"}
{"definition":"NG","form":"-ātaʔnōhkä-","id":"Menominee-10","language":"Menominee"}
{"definition":"","form":"-ātaʔnōhkä-","id":"Menominee-10","language":"Menominee"}
{"definition":"","form":"-aʔnōhkä-","id":"Menominee-11","language":"Menominee"}
{"definition":"","form":"-čyaaN-","id":"Menominee-12","language":"Menominee"}
{"definition":"","form":"-ehk-","id":"Menominee-13","language":"Menominee"}
Expand Down
2 changes: 1 addition & 1 deletion data/json/components/Ojibwe_Algonquin.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{"definition":"","form":"-aw","id":"Ojibwe_Algonquin-5","language":"Ojibwe_Algonquin"}
{"definition":"","form":"-toos·k·wan-","id":"Ojibwe_Algonquin-6","language":"Ojibwe_Algonquin"}
{"definition":"","form":"-ikan","id":"Ojibwe_Algonquin-7","language":"Ojibwe_Algonquin"}
{"form":"-ikaniwi","id":"Ojibwe_Algonquin-8","language":"Ojibwe_Algonquin"}
{"definition":"","form":"-ikaniwi","id":"Ojibwe_Algonquin-8","language":"Ojibwe_Algonquin"}
{"definition":"","form":"-ikeē","id":"Ojibwe_Algonquin-9","language":"Ojibwe_Algonquin"}
{"definition":"","form":"-iweē","id":"Ojibwe_Algonquin-10","language":"Ojibwe_Algonquin"}
{"definition":"","form":"-iwi","id":"Ojibwe_Algonquin-11","language":"Ojibwe_Algonquin"}
Expand Down
12 changes: 6 additions & 6 deletions data/json/components/Ojibwe_Odawa.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{"definition":"","form":"-aas·-","id":"Ojibwe_Odawa-52","language":"Ojibwe_Odawa"}
{"definition":"","form":"-aas·̌i","id":"Ojibwe_Odawa-53","language":"Ojibwe_Odawa"}
{"definition":"","form":"-aas·in","id":"Ojibwe_Odawa-54","language":"Ojibwe_Odawa"}
{"form":"-aawah-","id":"Ojibwe_Odawa-55","language":"Ojibwe_Odawa"}
{"definition":"","form":"-aawah-","id":"Ojibwe_Odawa-55","language":"Ojibwe_Odawa"}
{"definition":"","form":"-aapiik-","id":"Ojibwe_Odawa-56","language":"Ojibwe_Odawa"}
{"definition":"","form":"-aapoo","id":"Ojibwe_Odawa-57","language":"Ojibwe_Odawa"}
{"definition":"","form":"-aakam-","id":"Ojibwe_Odawa-58","language":"Ojibwe_Odawa"}
Expand All @@ -77,7 +77,7 @@
{"definition":"","form":"-ak·wee-","id":"Ojibwe_Odawa-77","language":"Ojibwe_Odawa"}
{"definition":"","form":"-ak·ošiwee","id":"Ojibwe_Odawa-78","language":"Ojibwe_Odawa"}
{"definition":"","form":"-am","id":"Ojibwe_Odawa-79","language":"Ojibwe_Odawa"}
{"form":"-am-","id":"Ojibwe_Odawa-80","language":"Ojibwe_Odawa"}
{"definition":"","form":"-am-","id":"Ojibwe_Odawa-80","language":"Ojibwe_Odawa"}
{"definition":"","form":"-am-","id":"Ojibwe_Odawa-81","language":"Ojibwe_Odawa"}
{"definition":"","form":"-am-","id":"Ojibwe_Odawa-82","language":"Ojibwe_Odawa"}
{"definition":"","form":"-am-","id":"Ojibwe_Odawa-83","language":"Ojibwe_Odawa"}
Expand Down Expand Up @@ -216,7 +216,7 @@
{"definition":"","form":"-k·otam-","id":"Ojibwe_Odawa-216","language":"Ojibwe_Odawa"}
{"definition":"","form":"-k·on-","id":"Ojibwe_Odawa-217","language":"Ojibwe_Odawa"}
{"definition":"","form":"-konak-","id":"Ojibwe_Odawa-218","language":"Ojibwe_Odawa"}
{"form":"-m-","id":"Ojibwe_Odawa-219","language":"Ojibwe_Odawa"}
{"definition":"","form":"-m-","id":"Ojibwe_Odawa-219","language":"Ojibwe_Odawa"}
{"definition":"","form":"-m-","id":"Ojibwe_Odawa-220","language":"Ojibwe_Odawa"}
{"definition":"","form":"-mak-","id":"Ojibwe_Odawa-221","language":"Ojibwe_Odawa"}
{"definition":"","form":"-mak·isin-","id":"Ojibwe_Odawa-222","language":"Ojibwe_Odawa"}
Expand All @@ -225,7 +225,7 @@
{"definition":"","form":"-mo","id":"Ojibwe_Odawa-225","language":"Ojibwe_Odawa"}
{"definition":"","form":"-mokos·k·-","id":"Ojibwe_Odawa-226","language":"Ojibwe_Odawa"}
{"definition":"","form":"-n","id":"Ojibwe_Odawa-227","language":"Ojibwe_Odawa"}
{"form":"-n-","id":"Ojibwe_Odawa-228","language":"Ojibwe_Odawa"}
{"definition":"","form":"-n-","id":"Ojibwe_Odawa-228","language":"Ojibwe_Odawa"}
{"definition":"","form":"-N-","id":"Ojibwe_Odawa-229","language":"Ojibwe_Odawa"}
{"definition":"","form":"-naas·̌k·aw-","id":"Ojibwe_Odawa-230","language":"Ojibwe_Odawa"}
{"definition":"","form":"-ntam-","id":"Ojibwe_Odawa-231","language":"Ojibwe_Odawa"}
Expand All @@ -240,7 +240,7 @@
{"definition":"","form":"-oontam-","id":"Ojibwe_Odawa-240","language":"Ojibwe_Odawa"}
{"definition":"","form":"-os·-","id":"Ojibwe_Odawa-241","language":"Ojibwe_Odawa"}
{"definition":"","form":"-os·ee","id":"Ojibwe_Odawa-242","language":"Ojibwe_Odawa"}
{"form":"-p·-","id":"Ojibwe_Odawa-243","language":"Ojibwe_Odawa"}
{"definition":"","form":"-p·-","id":"Ojibwe_Odawa-243","language":"Ojibwe_Odawa"}
{"definition":"","form":"-pipoonak-","id":"Ojibwe_Odawa-244","language":"Ojibwe_Odawa"}
{"definition":"","form":"-piis·-","id":"Ojibwe_Odawa-245","language":"Ojibwe_Odawa"}
{"definition":"","form":"-pit-","id":"Ojibwe_Odawa-246","language":"Ojibwe_Odawa"}
Expand All @@ -263,7 +263,7 @@
{"definition":"","form":"-s·̌k·am-","id":"Ojibwe_Odawa-263","language":"Ojibwe_Odawa"}
{"definition":"","form":"-s·k·aw-","id":"Ojibwe_Odawa-264","language":"Ojibwe_Odawa"}
{"definition":"","form":"-s·̌k·aw-","id":"Ojibwe_Odawa-265","language":"Ojibwe_Odawa"}
{"form":"-t·-","id":"Ojibwe_Odawa-266","language":"Ojibwe_Odawa"}
{"definition":"","form":"-t·-","id":"Ojibwe_Odawa-266","language":"Ojibwe_Odawa"}
{"definition":"","form":"-t·oo-","id":"Ojibwe_Odawa-267","language":"Ojibwe_Odawa"}
{"definition":"","form":"-t·ook-","id":"Ojibwe_Odawa-268","language":"Ojibwe_Odawa"}
{"definition":"","form":"-w","id":"Ojibwe_Odawa-269","language":"Ojibwe_Odawa"}
Expand Down
2 changes: 1 addition & 1 deletion data/json/components/Passamaquoddy_Maliseet.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@
{"definition":"","form":"","id":"Passamaquoddy_Maliseet-135","language":"Passamaquoddy_Maliseet"}
{"definition":"","form":"","id":"Passamaquoddy_Maliseet-136","language":"Passamaquoddy_Maliseet"}
{"definition":"","form":"","id":"Passamaquoddy_Maliseet-137","language":"Passamaquoddy_Maliseet"}
{"form":"","id":"Passamaquoddy_Maliseet-138","language":"Passamaquoddy_Maliseet"}
{"definition":"","form":"","id":"Passamaquoddy_Maliseet-138","language":"Passamaquoddy_Maliseet"}
Loading

0 comments on commit 6c309f9

Please sign in to comment.