Skip to content

Commit

Permalink
color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benemanuel committed Oct 27, 2022
1 parent b162d4f commit 40aa94c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 45 deletions.
21 changes: 8 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js.cookie.js"></script>
<script defer data-domain="hatanach.geulah.org.il/verse/trop-sequence-finder" src="https://plausible.geulah.org.il/js/plausible.js"></script>

<meta property="og:type" content="website" />
<meta property="og:title" content="Trop Sequence Finder" />
<meta property="og:description"
Expand Down Expand Up @@ -45,7 +45,7 @@ <h4 class="modal-title" id="prefsLabel">Trop Sequence Finder</h4>
<h5>What</h5>
<p>
A pedagogical tool for constructing <em>trop</em> sequences and finding matching
occurences throughout <em>chumash</em>.
occurences throughout <em>Tanach</em>.
</p>
<p>
Construct sequences by selecting <em>trop</em> on the right. The current sequence will
Expand All @@ -66,11 +66,13 @@ <h5>Credits</h5>
This site is just a slightly modified version of <a
href="https://quantifiedcantillation.nl/">Quantified Cantillation</a> by <a
href="https://noahliebman.net/">Noah Liebman</a>.
He did all the hard work and I slightly modified it to better suit my use case.
and of <a
href="https://github.com/jaykaron/trop-sequence-finder">trop sequence fork</a> by <a href="https://jaykaron.github.io/">Jay Karon</a>
They did all the hard work and I slightly modified it to better suit my use case.
</p>
<p>
<em>Trop</em> data is extracted from <a href="http://tanach.us/">Tanach.us</a>.
<em>Pasuk</em> text is from <a href="http://www.sefaria.org/">Sefaria</a>. Built with <a
<em>Trop and Pasuk</em> data is extracted from <a href="https://hatanach.geulah.org.il/">Hebrew Bible (1866) as was done by Meir (Max) Letteris</em>
<a href="https://github.com/benemanuel/letteris/">GitHub opensource copy</a>. Built with <a
href="http://d3js.org/">D3</a>.
</p>

Expand Down Expand Up @@ -166,13 +168,7 @@ <h5>Credits</h5>
</a>
</p>
<p>
<a href="https://ko-fi.com/jaykaron" target="_blank" class="kofi-button">
<span class="kofitext">
<img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi donations" class="kofiimg">
Buy me a cofee!
</span>
</a>
<a href="https://github.com/jaykaron/trop-sequence-finder">Fork it</a>.
<a href="https://github.com/benemanuel/trop-sequence-finder">Fork it</a>.
</p>
</div>
<div role="tabpanel" class="tab-pane" id="settings">
Expand Down Expand Up @@ -285,6 +281,5 @@ <h4 class="modal-title" id="detailsModalLabel"></h4>
</div>
</div>
<script type="text/javascript" src="tropsequences-localcompute.js"></script>
<!-- <script data-goatcounter="https://jaykaron.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> -->
</body>
</html>
54 changes: 22 additions & 32 deletions tropsequences-localcompute.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
var dataFile = "tropstrings-tanach.json";
//var dataFile = "tropstrings-Songofsongs.json.saved";
//var tanakhparts = "torah";
var tanakhparts = "tanach";

// https://stackoverflow.com/a/3855394
Expand Down Expand Up @@ -54,36 +52,28 @@ var probformat = d3.format(".1%");
var countformat = d3.format(",");
const TROP = [
{ "char": "\u0591", "name": "ETNAHTA", "color": "red", "heb": "אֶתְנַחְתָּ֑א", "examples": [] },
{ "char": "\u0592", "name": "SEGOL", "color": "yellowish pink", "heb": "סְגוֺלְתָּא֒", "examples": [] },
{ "char": "\u0593", "name": "SHALSHELET", "color": "orange yellow", "heb": "שַׁלְשֶׁ֓לֶת", "examples": [] },
{ "char": "\u0594", "name": "ZAQEF-QATAN", "color": "gray", "heb": "זָקֵף קָטֹ֔ן", "examples": [] },
{ "char": "\u0595", "name": "ZAQEF-GADOL", "color": "light gray", "heb": "זָקֵף גָּד֕וֹל", "examples": [] },
{ "char": "\u0596", "name": "TIPEHA", "color": "magenta", "heb": "טִפְּחָ֖א", "examples": [] },
{ "char": "\u0597", "name": "REVIA", "color": "buff", "heb": "רְבִ֗יעַ", "examples": [] },
{ "char": "\u0598", "name": "ZARQA", "color": "light green", "heb": "זַרְקָא֮", "examples": [] },
{ "char": "\u0599", "name": "PASHTA", "color": "light violet", "heb": "פַּשְׁטָא֙", "examples": [] },
{ "char": "\u059a", "name": "YETIV", "color": "yellow", "heb": "יְ֚תִיב", "examples": [] },
{ "char": "\u059b", "name": "TEVIR", "color": "green", "heb": "תְּבִ֛יר", "examples": [] },
{ "char": "\u059c", "name": "GERESH", "color": "light magenta", "heb": "גֵּ֜רֵשׁ", "examples": [] },
{ "char": "\u05a0", "name": "TELISHA-GEDOLA", "color": "light red", "heb": "תְּ֠לִישָא גְדוֹלָה", "examples": [] },
{ "char": "\u05a1", "name": "PAZER", "color": "purplish pink", "heb": "פָּזֵ֡ר", "examples": [] },
{ "char": "\u05a2", "name": "YERAH-BEN-YOMO", "color": "cyan", "heb": "יָרֵחַ בֶּן יוֹמ֪וֹ", "examples": [] },
{ "char": "\u05a3", "name": "MUNAH", "color": "orange", "heb": "מֻנַּ֣ח", "examples": [] },
{ "char": "\u05a5", "name": "MERKHA", "color": "violet", "heb": "מֵרְכָ֥א", "examples": [] },
{ "char": "\u05a7", "name": "DARGA", "color": "olive green", "heb": "דַּרְגָּ֧א", "examples": [] },
{ "char": "\u05a9", "name": "TELISHA-QETANA", "color": "light blue", "heb": "תְּלִישָׁא קְטַנָּה֩", "examples": [] },
{ "char": "\u05ab", "name": "OLE", "color": "light yellow", "heb": "עוֺלֶ֫ה", "examples": [] },
{ "char": "\u05ac", "name": "ILUY", "color": "light orange", "heb": "עִלּ֬וּי", "examples": [] },
{ "char": "\u05bd", "name": "METEG", "color": "blue", "heb": "מֶֽתֶג", "examples": [] },
{ "char": "\u059d", "name": "gereshmukdam", "color": "dodgerblue", "examples": [] },
{ "char": "\u059e", "name": "gershayim", "color": "darkcyan", "heb": "גֵּרְשַׁ֞יִם", "examples": ["בָּרָ֞א", "בָּ֞רָא"] },
{ "char": "\u059f", "name": "karnepara", "color": "dodgerblue", "heb": "קַרְנֵי פָרָ֟ה", "examples": [] },
{ "char": "\u05a4", "name": "mapakh", "color": "darkcyan", "heb": "מַהְפַּ֤ך", "examples": ["בָּ֤רָא", "בָּרָ֤א"] },
{ "char": "\u05a6", "name": "merkhakfula", "color": "dodgerblue", "heb": "מֵרְכָא־כְפוּלָ֦ה", "examples": [] },
{ "char": "\u05a8", "name": "kadma", "color": "darksalmon", "heb": "קַדְמָ֨א", "examples": ["בָּרָ֙א", "בָּ֙רָא"] },
{ "char": "\u05aa", "name": "yerakhbenyomo", "color": "dodgerblue", "heb": "יֵרֶח בֶּן יוֹמ֪וֹ", "examples": [] },
{ "char": "\u05ae", "name": "zarka", "color": "darkcyan", "heb": "זַרְקָא֮", "examples": ["בָּרָ֘א"] },
{ "char": "\u05c3", "name": "sofpasuk", "color": "indianred", "heb": "סוֹף פָּסוּק׃", "examples": ["בָּרָֽא׃", "בָּרָֽא׃"] }
{ "char": "\u0592", "name": "SEGOL", "color": "hotpink", "heb": "סְגוֺלְתָּא֒", "examples": [] },
{ "char": "\u0593", "name": "SHALSHELET", "color": "goldenrod", "heb": "שַׁלְשֶׁ֓לֶת", "examples": [] },
{ "char": "\u0594", "name": "ZAQEF-QATAN", "color": "gray", "heb": "זָקֵף קָטֹ֔ן", "examples": [] },
{ "char": "\u0595", "name": "ZAQEF-GADOL", "color": "lightgray", "heb": "זָקֵף גָּד֕וֹל", "examples": [] },
{ "char": "\u0596", "name": "TIPEHA", "color": "magenta", "heb": "טִפְּחָ֖א", "examples": [] },
{ "char": "\u0597", "name": "REVIA", "color": "brown", "heb": "רְבִ֗יעַ", "examples": [] },
{ "char": "\u0598", "name": "ZARQA", "color": "greenyellow", "heb": "זַרְקָא֮", "examples": [] },
{ "char": "\u0599", "name": "PASHTA", "color": "blueviolet", "heb": "פַּשְׁטָא֙,קַדְמָ֨א ", "examples": [] },
{ "char": "\u059a", "name": "YETIV", "color": "yellow", "heb": "יְ֚תִיב,שׁוֺפָר מְהֻפָּ֤ךְ", "examples": [] },
{ "char": "\u059b", "name": "TEVIR", "color": "green", "heb": "תְּבִ֛יר", "examples": [] },
{ "char": "\u059c", "name": "GERESH", "color": "steelblue", "heb": "גֵּ֜רֵשׁ", "examples": [] },
{ "char": "\u05a0", "name": "TELISHA-GEDOLA", "color": "indianred", "heb": "תְּ֠לִישָא גְדוֹלָה", "examples": [] },
{ "char": "\u05a1", "name": "PAZER", "color": "purplish pink", "heb": "פָּזֵ֡ר", "examples": [] },
{ "char": "\u05a2", "name": "YERAH-BEN-YOMO", "color": "cyan", "heb": "יָרֵחַ בֶּן יוֹמ֪וֹ", "examples": [] },
{ "char": "\u05a3", "name": "MUNAH", "color": "orange", "heb": "מֻנַּ֣ח", "examples": [] },
{ "char": "\u05a5", "name": "MERKHA", "color": "violet", "heb": "מֵרְכָ֥א", "examples": [] },
{ "char": "\u05a7", "name": "DARGA", "color": "forestgreen", "heb": "דַּרְגָּ֧א", "examples": [] },
{ "char": "\u05a9", "name": "TELISHA-QETANA", "color": "lightblue", "heb": "תְּלִישָׁא קְטַנָּה֩", "examples": [] },
{ "char": "\u05ab", "name": "OLE", "color": "khaki", "heb": "עוֺלֶ֫ה", "examples": [] },
{ "char": "\u05ac", "name": "ILUY", "color": "darkorange", "heb": "עִלּ֬וּי", "examples": [] },
{ "char": "\u05bd", "name": "METEG", "color": "blue", "heb": "מֶֽתֶג", "examples": [] },
{ "char": "\u05c3", "name": "SOFPASUK", "color": "indianred", "heb": "סוֹף פָּסוּק׃", "examples": ["בָּרָֽא׃", "בָּרָֽא׃"] }
];
var tropnames = d3.map(TROP, function (t) { return t.name; });

Expand Down

0 comments on commit 40aa94c

Please sign in to comment.