Spaces:
Running
Running
Anonymous commited on
Commit ·
f0fe2fc
1
Parent(s): 4552c2a
Italicize paralinguistic cue words
Browse files- index.html +1 -1
- static/css/index.css +5 -0
index.html
CHANGED
|
@@ -114,7 +114,7 @@
|
|
| 114 |
if (!highlightParalinguistic) {
|
| 115 |
return escapedText;
|
| 116 |
}
|
| 117 |
-
return escapedText.replace(/[唉嗯哈呵嘿哼呼咳啧]/g,
|
| 118 |
}
|
| 119 |
|
| 120 |
function createScriptCell(item, highlightParalinguistic = false) {
|
|
|
|
| 114 |
if (!highlightParalinguistic) {
|
| 115 |
return escapedText;
|
| 116 |
}
|
| 117 |
+
return escapedText.replace(/[唉嗯哈呵嘿哼呼咳啧]/g, '<em class="paralinguistic-cue">$&</em>');
|
| 118 |
}
|
| 119 |
|
| 120 |
function createScriptCell(item, highlightParalinguistic = false) {
|
static/css/index.css
CHANGED
|
@@ -244,6 +244,11 @@ body {
|
|
| 244 |
content: ")";
|
| 245 |
}
|
| 246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
.reference-cell {
|
| 248 |
display: grid;
|
| 249 |
gap: 0.55rem;
|
|
|
|
| 244 |
content: ")";
|
| 245 |
}
|
| 246 |
|
| 247 |
+
.paralinguistic-cue {
|
| 248 |
+
font-style: italic;
|
| 249 |
+
font-weight: 700;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
.reference-cell {
|
| 253 |
display: grid;
|
| 254 |
gap: 0.55rem;
|