Skip to content

Commit

Permalink
tdd: Apply #123 and port to tale
Browse files Browse the repository at this point in the history
  • Loading branch information
r12a committed Jan 3, 2023
1 parent 489083f commit d883c17
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 38 deletions.
10 changes: 10 additions & 0 deletions tale/block-globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
window.version = 'v29'
window.scriptName = 'Tai Le'
window.ghDirectory = 'taile'
window.blockDirectory = 'taile'
window.languageList = ['tdd'] // lang tags for each orthography handled
window.detailsfileList = ['tdd'] // first part of xx-details for each orthography
window.scriptISO = 'tale'
window.webfonts = ["Noto Sans Tai Le WF"]
window.defaultSize = '24px'

23 changes: 7 additions & 16 deletions tale/block.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Tai Le character notes</title>
<meta name="description" content="Notes about characters in the Unicode Tai Le script blocks."/>
<link rel="stylesheet" href="../../shared/style/docs.css" />
<link rel="stylesheet" href="../common28/block-style.css" />
<link rel="stylesheet" href="../common29/block-style.css" />
<link rel="stylesheet" href="local.css" />

<script src="../../shared/fontdb/db.js"> </script>
Expand All @@ -16,16 +16,17 @@
<script src="../../shared/code/all-names.js"></script>
<script src="../../shared/code/show_codepoints.js"></script>
<script src="../../shared/code/scriptGroups.js"></script>
<script src="../common28/block-functions.js"></script>
<script src="../common28/transliterate.js"></script>
<script src="../common29/block-functions.js"></script>
<script src="../common29/transliterate.js"></script>
<script src="../../app-charuse/langs.js"></script>
<script src="../../app-charuse/makeCharLangArray.js"></script>
<script src="../common28/egcode.js"></script>
<script src="../common28/references.js"></script>
<script src="../common29/egcode.js"></script>
<script src="../common29/references.js"></script>
<script src="refs.js"></script>

<script src="tdd-examples.js"></script>
<script src="tdd-translit.js"> </script>
<script src="block-globals.js"> </script>

<script src="../../uniview/descriptions.js"></script>

Expand Down Expand Up @@ -200,7 +201,7 @@ <h2>References</h2>
<script src="tdd-details.html"> </script>
<script src="../../shared/manifests/tale-tdd.js">/* global variables */</script>
<script>
addDetails (languageName, letterClassName, lang, direction, spreadsheet, cols)
addDetails (languageName, letterClassName, blockLangtag, blockDirection, spreadsheet, cols)
addExamples(letterClassName)
convertTranscriptionData(lang)
setMarks()
Expand All @@ -218,16 +219,6 @@ <h2>References</h2>


<script>
window.version = 'v28'
window.scriptName = 'Tai Le'
window.ghDirectory = 'taile'
window.blockDirectory = 'taile'
window.languageList = ['tdd'] // lang tags for each orthography handled
window.detailsfileList = ['tdd'] // first part of xx-details for each orthography
window.scriptISO = 'tale'
window.webfonts = ["Noto Sans Tai Le WF"]
window.defaultSize = '24px'

buildPage()
</script>
</body>
Expand Down
19 changes: 19 additions & 0 deletions tale/tdd-globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langTag='tdd' // BCP47 language tag for this orthography
scriptTag='tale' // BCP47 script tag for this orthography
notesLangtag='tdd'
blockLangtag = 'tdd' // same as langTag; used in block.html
blockDirection='' // ltr/rtl or '' for ltr; used by block.html

blockDirectoryName='tale' // folder name where block file is found, no slash
orthogFilePath='tale/tdd' // path below /scripts, including filename, but no extension, eg. lana/nod
pickerDir='tale-tdd' // directory name for picker, no slash at end
scriptSummaryTableName='tdd' // id used for langs record in xx-langdata.js; used to make summary table
charUsageBCP='tdd' // bcp tag to find the orthography in the charuse app; used in makeIndexIntro only
orthogName = 'Tai Le' // natural language name for the orthography; used only in makeIndexIntro
languageName = 'Tai Nüe' // natural language name of language; used in various places, esp block
scriptIsIndic = true // true if there are indic syllabic categories; used only in makeIndexIntro


defaultSize = '24px' // used by block.html to set size of font, including in font mgt panel
letterClassName = 'tdd' // classname for a given orthography in the block page

36 changes: 14 additions & 22 deletions tale/tdd.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
<title>Tai Nüa orthography notes</title>

<link rel="stylesheet" href="../../shared/style/docs.css"/>
<link rel="stylesheet" href="../common28/local.css"/>
<link rel="stylesheet" href="../common29/local.css"/>
<link rel="stylesheet" href="tdd.css"/>

<script src="../../shared/fontdb/db.js"> </script>
<script src="../../shared/fontdb/managefonts.js"></script>

<script src="../common29/debug.js"></script>
<script src="../../shared/scriptdb/tale-tdd.js"> </script>
<script src="tdd-details.html"> </script>
Expand All @@ -19,18 +16,18 @@
<script src="../../shared/code/toc_2020.js"></script>
<script src="../../shared/code/show_codepoints.js"></script>
<script src="../../shared/code/scriptGroups.js"></script>
<script src="../common28/functions.js"></script>
<script src="../common28/transliterate.js"></script>
<script src="../common28/prompts.js"> </script>
<script src="../common29/functions.js"></script>
<script src="../common29/transliterate.js"></script>
<script src="../common29/prompts.js"> </script>
<script src="../glossary/glossary.js"> </script>
<script src="../common28/egcode.js"></script>
<script src="../common28/references.js"></script>
<script src="../common29/egcode.js"></script>
<script src="../common29/references.js"></script>
<script src="refs.js"></script>

<script src="tdd-langdata.js"></script>
<script src="tdd-examples.js"></script>
<script src="tdd-translit.js"> </script>
<script src="../../shared/manifests/tale-tdd.js"></script>
<script src="tdd-globals.js"></script>
</head>

<body class="useBlockExamples">
Expand Down Expand Up @@ -557,13 +554,13 @@ <h3>Consonant sounds</h3>
</tr>
<tr>
<th></th>
<td class="mouth"><a href="../common28/mouth/mouth_labial.png" target="_blank"><img src="../common28/mouth/mouth_small_labial.png" alt=" "/></a></td>
<td class="mouth"><a href="../common28/mouth/mouth_dental.png" target="_blank"><img src="../common28/mouth/mouth_small_dental.png" alt=" "/></a></td>
<td class="mouth"><a href="../common28/mouth/mouth_alveolar.png" target="_blank"><img src="../common28/mouth/mouth_small_alveolar.png" alt=" "/></a></td>
<td class="mouth"><a href="../common28/mouth/mouth_postalveolar.png" target="_blank"><img src="../common28/mouth/mouth_small_postavleolar.png" alt=" "/></a></td>
<td class="mouth"><a href="../common28/mouth/mouth_palatal.png" target="_blank"><img src="../common28/mouth/mouth_small_palatal.png" alt=" "/></a></td>
<td class="mouth"><a href="../common28/mouth/mouth_velar.png" target="_blank"><img src="../common28/mouth/mouth_small_velar.png" alt=" "/></a></td>
<td class="mouth"><a href="../common28/mouth/mouth_glottal.png" target="_blank"><img src="../common28/mouth/mouth_small_glottal.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_labial.png" target="_blank"><img src="../common29/mouth/mouth_small_labial.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_dental.png" target="_blank"><img src="../common29/mouth/mouth_small_dental.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_alveolar.png" target="_blank"><img src="../common29/mouth/mouth_small_alveolar.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_postalveolar.png" target="_blank"><img src="../common29/mouth/mouth_small_postavleolar.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_palatal.png" target="_blank"><img src="../common29/mouth/mouth_small_palatal.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_velar.png" target="_blank"><img src="../common29/mouth/mouth_small_velar.png" alt=" "/></a></td>
<td class="mouth"><a href="../common29/mouth/mouth_glottal.png" target="_blank"><img src="../common29/mouth/mouth_small_glottal.png" alt=" "/></a></td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1735,11 +1732,6 @@ <h2>References</h2>



<div id="analytics"></div>
<script>addAnalytics()</script>




<div id="phoneLinks"></div>

Expand Down

0 comments on commit d883c17

Please sign in to comment.