-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1,764 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
title: Phonemic transcription with the DISC alphabet | ||
subtitle: Archive of Pittsburgh Language and Speech (APLS) | ||
author: Dan Villarreal | ||
date: "Last updated `r gsub(' 0', ' ', format(Sys.Date(), '%B %d, %Y'))`" | ||
output: | ||
html_document: | ||
toc: yes | ||
toc_float: | ||
collapsed: no | ||
anchor_sections: | ||
style: "icon" | ||
md_extensions: -smart | ||
includes: | ||
in_header: site-assets/header.html | ||
css: site-assets/css/doc.css | ||
number_sections: yes | ||
pandoc_args: "--shift-heading-level-by=-1" | ||
--- | ||
|
||
```{r, echo=FALSE} | ||
knitr::opts_chunk$set(echo=FALSE) | ||
``` | ||
|
||
```{css} | ||
/* Inline DISC examples */ | ||
li code:not(.counterex), p code:not(.counterex) { | ||
font-weight: bold; | ||
} | ||
li code.counterex, p code.counterex { | ||
font-weight: normal; | ||
text-decoration: line-through; | ||
} | ||
/* Consonants & vowels tables */ | ||
.table-condensed { | ||
max-width: 500px; | ||
font-size: 1.2em; | ||
} | ||
td:nth-child(2) { | ||
font-family: monospace; | ||
} | ||
td:nth-child(4) { | ||
font-family: monospace; | ||
} | ||
/* Syllabification table */ | ||
#syll-table.table-condensed { | ||
max-width: 300px; | ||
} | ||
#syll-table td:nth-child(1) { | ||
font-family: monospace; | ||
} | ||
#syll-table td:nth-child(2) { | ||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; | ||
} | ||
/* Extra padding for list elements */ | ||
ul { | ||
padding-bottom: 6px; | ||
} | ||
li { | ||
padding-top: 2px; | ||
} | ||
``` | ||
|
||
[Test 1](/) | ||
|
||
[Test 2](/#APLS) | ||
|
||
|
||
```{js, file="site-assets/js/doc.js"} | ||
/* Common documentation JS */ | ||
``` | ||
|
||
```{js} | ||
/* Add headers above consonants and vowels tables */ | ||
var newHead = ` | ||
<tr> | ||
<th style='empty-cells:hide; border-bottom:hidden;' colspan='2'/> | ||
<th style='border-bottom:hidden; padding-bottom:0; padding-left:3px; padding-right:3px; text-align:center;' colspan='2'> | ||
<div style='border-bottom: 1px solid #ddd; padding-bottom: 5px;'>Example word</div> | ||
</th> | ||
</tr> | ||
`; | ||
Array.from($("#disc-consonants tr.header")) | ||
.map(a => a.insertAdjacentHTML('beforebegin', newHead)); | ||
Array.from($("#disc-vowels tr.header")) | ||
.map(a => a.insertAdjacentHTML('beforebegin', newHead)); | ||
``` | ||
|
||
|