Added column header audio
This commit is contained in:
parent
13012d6d29
commit
1800530774
BIN
resources/public/audio/bihaaree.mp3
Normal file
BIN
resources/public/audio/bihaaree.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/dulankar.mp3
Normal file
BIN
resources/public/audio/dulankar.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/dulavan.mp3
Normal file
BIN
resources/public/audio/dulavan.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/hora.mp3
Normal file
BIN
resources/public/audio/hora.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/kanaura.mp3
Normal file
BIN
resources/public/audio/kanaura.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/kanna.mp3
Normal file
BIN
resources/public/audio/kanna.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/kanna_ute_bindi.mp3
Normal file
BIN
resources/public/audio/kanna_ute_bindi.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/lava.mp3
Normal file
BIN
resources/public/audio/lava.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/mukta.mp3
Normal file
BIN
resources/public/audio/mukta.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/ongkar.mp3
Normal file
BIN
resources/public/audio/ongkar.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/siharee.mp3
Normal file
BIN
resources/public/audio/siharee.mp3
Normal file
Binary file not shown.
BIN
resources/public/audio/tippi.mp3
Normal file
BIN
resources/public/audio/tippi.mp3
Normal file
Binary file not shown.
|
@ -51,34 +51,71 @@ src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
|
|||
summary="Table of Punjabi characters from which to select sound recordings">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>ਮੁਕਤਾ</th>
|
||||
<th>ਕੰਨਾ</th>
|
||||
<th>ਸਿਹਾਰੀ</th>
|
||||
<th>ਬਿਹਾਰੀ</th>
|
||||
<th>ਔਂਕੜ</th>
|
||||
<th>ਦੁਲੈਂਕੜ</th>
|
||||
<th>ਲਾਂਵਾਂ</th>
|
||||
<th>ਦੁਲਾਂਵਾਂ</th>
|
||||
<th>ਹੋੜਾ</th>
|
||||
<th>ਕਨੌੜਾ</th>
|
||||
<th>ਟਿੱਪੀ</th>
|
||||
<th>ਬਿੰਦੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/mukta.mp3').play();">ਮੁਕਤਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/kanna.mp3').play();">ਕੰਨਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/siharee.mp3').play();">
|
||||
ਸਿਹਾਰੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/bihaaree.mp3').play();">
|
||||
ਬਿਹਾਰੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/ongkar.mp3').play();">ਔਂਕੜ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/dulankar.mp3').play();">
|
||||
ਦੁਲੈਂਕੜ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/lava.mp3').play();">ਲਾਂਵਾਂ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/dulavan.mp3').play();">
|
||||
ਦੁਲਾਂਵਾਂ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/hora.mp3').play();">ਹੋੜਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/kanaura.mp3').play();">
|
||||
ਕਨੌੜਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/tippi.mp3').play();">ਟਿੱਪੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/kanna_ute_bindi.mp3').play();">
|
||||
ਬਿੰਦੀ</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Muktā</th>
|
||||
<th>Kannā</th>
|
||||
<th>Sihārī</th>
|
||||
<th>Bihārī</th>
|
||||
<th>Auṅkaṛ</th>
|
||||
<th>Dulaiṅkaṛ</th>
|
||||
<th>Lāvā</th>
|
||||
<th>Dulāvā</th>
|
||||
<th>Hōṛā</th>
|
||||
<th>Kanauṛā</th>
|
||||
<th>Ṭippī</th>
|
||||
<th>Bindī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/mukta.mp3').play();">Muktā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/kanna.mp3').play();">Kannā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/siharee.mp3').play();">
|
||||
Sihārī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/bihaaree.mp3').play();">
|
||||
Bihārī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/ongkar.mp3').play();">
|
||||
Auṅkaṛ</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/dulankar.mp3').play();">
|
||||
Dulaiṅkaṛ</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/lava.mp3').play();">Lāvā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/dulavan.mp3').play();">
|
||||
Dulāvā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/hora.mp3').play();">Hōṛā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/kanaura.mp3').play();">
|
||||
Kanauṛā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/tippi.mp3').play();">Ṭippī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/kanna_ute_bindi.mp3').play();">
|
||||
Bindī</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -3289,34 +3326,71 @@ src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
|
|||
summary="Table of Punjabi characters from which to select sound recordings">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>ਮੁਕਤਾ</th>
|
||||
<th>ਕੰਨਾ</th>
|
||||
<th>ਸਿਹਾਰੀ</th>
|
||||
<th>ਬਿਹਾਰੀ</th>
|
||||
<th>ਔਂਕੜ</th>
|
||||
<th>ਦੁਲੈਂਕੜ</th>
|
||||
<th>ਲਾਂਵਾਂ</th>
|
||||
<th>ਦੁਲਾਂਵਾਂ</th>
|
||||
<th>ਹੋੜਾ</th>
|
||||
<th>ਕਨੌੜਾ</th>
|
||||
<th>ਟਿੱਪੀ</th>
|
||||
<th>ਬਿੰਦੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/mukta.mp3').play();">ਮੁਕਤਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/kanna.mp3').play();">ਕੰਨਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/siharee.mp3').play();">
|
||||
ਸਿਹਾਰੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/bihaaree.mp3').play();">
|
||||
ਬਿਹਾਰੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/ongkar.mp3').play();">ਔਂਕੜ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/dulankar.mp3').play();">
|
||||
ਦੁਲੈਂਕੜ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/lava.mp3').play();">ਲਾਂਵਾਂ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/dulavan.mp3').play();">
|
||||
ਦੁਲਾਂਵਾਂ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/hora.mp3').play();">ਹੋੜਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/kanaura.mp3').play();">
|
||||
ਕਨੌੜਾ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/tippi.mp3').play();">ਟਿੱਪੀ</th>
|
||||
<th class="punjabi"
|
||||
onclick="new Audio('audio/kanna_ute_bindi.mp3').play();">
|
||||
ਬਿੰਦੀ</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Muktā</th>
|
||||
<th>Kannā</th>
|
||||
<th>Sihārī</th>
|
||||
<th>Bihārī</th>
|
||||
<th>Auṅkaṛ</th>
|
||||
<th>Dulaiṅkaṛ</th>
|
||||
<th>Lāvā</th>
|
||||
<th>Dulāvā</th>
|
||||
<th>Hōṛā</th>
|
||||
<th>Kanauṛā</th>
|
||||
<th>Ṭippī</th>
|
||||
<th>Bindī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/mukta.mp3').play();">Muktā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/kanna.mp3').play();">Kannā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/siharee.mp3').play();">
|
||||
Sihārī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/bihaaree.mp3').play();">
|
||||
Bihārī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/ongkar.mp3').play();">
|
||||
Auṅkaṛ</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/dulankar.mp3').play();">
|
||||
Dulaiṅkaṛ</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/lava.mp3').play();">Lāvā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/dulavan.mp3').play();">
|
||||
Dulāvā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/hora.mp3').play();">Hōṛā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/kanaura.mp3').play();">
|
||||
Kanauṛā</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/tippi.mp3').play();">Ṭippī</th>
|
||||
<th class="english"
|
||||
onclick="new Audio('audio/kanna_ute_bindi.mp3').play();">
|
||||
Bindī</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -58,18 +58,18 @@
|
|||
(def columns
|
||||
"This is essentially just Lucy's own encoding of the sound file names,
|
||||
I think, and has no further significance."
|
||||
[{:name "Muktā", :punjabi "ਮੁਕਤਾ", :lower-latin "b", :upper-latin "B"}
|
||||
{:name "Kannā", :punjabi "ਕੰਨਾ", :lower-latin "c", :upper-latin "C"}
|
||||
{:name "Sihārī", :punjabi "ਸਿਹਾਰੀ", :lower-latin "d", :upper-latin "D"}
|
||||
{:name "Bihārī", :punjabi "ਬਿਹਾਰੀ", :lower-latin "e", :upper-latin "E"}
|
||||
{:name "Auṅkaṛ", :punjabi "ਔਂਕੜ", :lower-latin "f", :upper-latin "F"}
|
||||
{:name "Dulaiṅkaṛ", :punjabi "ਦੁਲੈਂਕੜ", :lower-latin "g", :upper-latin "G"}
|
||||
{:name "Lāvā", :punjabi "ਲਾਂਵਾਂ", :lower-latin "h", :upper-latin "H"}
|
||||
{:name "Dulāvā", :punjabi "ਦੁਲਾਂਵਾਂ", :lower-latin "i", :upper-latin "I"}
|
||||
{:name "Hōṛā", :punjabi "ਹੋੜਾ", :lower-latin "j", :upper-latin "J"}
|
||||
{:name "Kanauṛā", :punjabi "ਕਨੌੜਾ", :lower-latin "k", :upper-latin "K"}
|
||||
{:name "Ṭippī", :punjabi "ਟਿੱਪੀ", :lower-latin "l", :upper-latin "L"}
|
||||
{:name "Bindī", :punjabi "ਬਿੰਦੀ", :lower-latin "m", :upper-latin "M"}])
|
||||
[{:name "Muktā", :punjabi "ਮੁਕਤਾ", :lower-latin "b", :upper-latin "B", :audio "mukta.mp3"}
|
||||
{:name "Kannā", :punjabi "ਕੰਨਾ", :lower-latin "c", :upper-latin "C" :audio "kanna.mp3"}
|
||||
{:name "Sihārī", :punjabi "ਸਿਹਾਰੀ", :lower-latin "d", :upper-latin "D" :audio "siharee.mp3"}
|
||||
{:name "Bihārī", :punjabi "ਬਿਹਾਰੀ", :lower-latin "e", :upper-latin "E" :audio "bihaaree.mp3"}
|
||||
{:name "Auṅkaṛ", :punjabi "ਔਂਕੜ", :lower-latin "f", :upper-latin "F" :audio "ongkar.mp3"}
|
||||
{:name "Dulaiṅkaṛ", :punjabi "ਦੁਲੈਂਕੜ", :lower-latin "g", :upper-latin "G" :audio "dulankar.mp3"}
|
||||
{:name "Lāvā", :punjabi "ਲਾਂਵਾਂ", :lower-latin "h", :upper-latin "H" :audio "lava.mp3"}
|
||||
{:name "Dulāvā", :punjabi "ਦੁਲਾਂਵਾਂ", :lower-latin "i", :upper-latin "I" :audio "dulavan.mp3"}
|
||||
{:name "Hōṛā", :punjabi "ਹੋੜਾ", :lower-latin "j", :upper-latin "J" :audio "hora.mp3"}
|
||||
{:name "Kanauṛā", :punjabi "ਕਨੌੜਾ", :lower-latin "k", :upper-latin "K" :audio "kanaura.mp3"}
|
||||
{:name "Ṭippī", :punjabi "ਟਿੱਪੀ", :lower-latin "l", :upper-latin "L" :audio "tippi.mp3"}
|
||||
{:name "Bindī", :punjabi "ਬਿੰਦੀ", :lower-latin "m", :upper-latin "M" :audio "kanna_ute_bindi.mp3"}])
|
||||
|
||||
;; (defn audio
|
||||
;; [^Integer col ^Integer row ^Boolean long?]
|
||||
|
@ -125,8 +125,11 @@
|
|||
(defn col-header-cell
|
||||
"Return a header cell for the indicated `column`."
|
||||
[^Integer column ^Boolean punjabi?]
|
||||
(vector :th
|
||||
((if punjabi? :punjabi :name) (columns column))))
|
||||
(let [col (columns column)](vector :th
|
||||
{:class (if punjabi? "punjabi" "english")
|
||||
:onclick (format "new Audio('audio/%s').play();"
|
||||
(:audio col))}
|
||||
((if punjabi? :punjabi :name) col))))
|
||||
|
||||
(defn col-headers-row
|
||||
[^Boolean punjabi?]
|
||||
|
|
Loading…
Reference in a new issue