aboutsummaryrefslogtreecommitdiff
path: root/ext/pitch-accents-preview.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-17 14:44:36 -0400
committerGitHub <noreply@github.com>2021-07-17 14:44:36 -0400
commit3e938f1a1fdb5064f8d11060685699d3217d16a2 (patch)
treed0589bf9ca95b32b0bc7720c1a3f6e05b767cce4 /ext/pitch-accents-preview.html
parenta933cfdc0780f618bb1ae60930a82a2af954e3cd (diff)
Display pronunciation refactor (#1835)
* Simplify svg and container styles * Rename pitch-accent-details to pitch-accent-graph-container * Rename pitch-accent-graph* to pronunciation-graph* * Remove unused template * Omit quotes * Rename pitch-accent-character to pronunciation-mora * Simplify names * Replace pronunciation-mora-inner with pronunciation-character * Improve grouping of nasal characters * Simplify character replacement * Replace pseudo-elements with real elements * Use an element rather than a fragment * Rename functions * Add wrapper * Rename pitch-accent-characters to pronunciation-text-container * Update test data * Update downstep notation generation * Rename pitch-accent-position to pronunciation-downstep-notation-container * Space * Wrap pronunciations in a container node * Update preview * Embed pitch accent styles directly
Diffstat (limited to 'ext/pitch-accents-preview.html')
-rw-r--r--ext/pitch-accents-preview.html54
1 files changed, 0 insertions, 54 deletions
diff --git a/ext/pitch-accents-preview.html b/ext/pitch-accents-preview.html
deleted file mode 100644
index 73b9bc8a..00000000
--- a/ext/pitch-accents-preview.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>Yomichan Pitch Accents Preview</title>
- <link rel="icon" type="image/png" href="/images/icon16.png" sizes="16x16">
- <link rel="icon" type="image/png" href="/images/icon19.png" sizes="19x19">
- <link rel="icon" type="image/png" href="/images/icon32.png" sizes="32x32">
- <link rel="icon" type="image/png" href="/images/icon38.png" sizes="38x38">
- <link rel="icon" type="image/png" href="/images/icon48.png" sizes="48x48">
- <link rel="icon" type="image/png" href="/images/icon64.png" sizes="64x64">
- <link rel="icon" type="image/png" href="/images/icon128.png" sizes="128x128">
- <link rel="stylesheet" type="text/css" href="/css/display-pronunciation.css">
- <link rel="stylesheet" type="text/css" href="/css/pitch-accents-preview.css">
-</head>
-<body>
-
-<div class="content"><div class="content-body">
-
-<ul>
- <li>
- <strong>Downstep notation</strong> -
- <span class="format-preview" lang="ja">
- <span class="pitch-accent-characters"><span class="pitch-accent-character" data-position="0" data-pitch="high" data-pitch-next="low"><span class="pitch-accent-character-inner">よ</span></span><span class="pitch-accent-character" data-position="1" data-pitch="low" data-pitch-next="low"><span class="pitch-accent-character-inner">む</span></span></span>
- </span>
- </li>
- <li>
- <strong>Downstep position</strong> -
- <span class="format-preview">
- <span class="pitch-accent-position">1</span>
- </span>
- </li>
- <li>
- <strong>Graph</strong> -
- <span class="format-preview">
- <span class="pitch-accent-details">
- <svg xmlns="http://www.w3.org/2000/svg" class="pitch-accent-graph" focusable="false" viewBox="0 0 150 100">
- <path class="pitch-accent-graph-line" d="M25 25 L75 75"></path>
- <path class="pitch-accent-graph-line-tail" d="M75 75 L125 75"></path>
- <circle class="pitch-accent-graph-dot-downstep1" cx="25" cy="25" r="15"></circle>
- <circle class="pitch-accent-graph-dot-downstep2" cx="25" cy="25" r="5"></circle>
- <circle class="pitch-accent-graph-dot" cx="75" cy="75" r="15"></circle>
- <path class="pitch-accent-graph-triangle" d="M0 13 L15 -13 L-15 -13 Z" transform="translate(125,75)"></path>
- </svg>
- </span>
- </span>
- </li>
-</ul>
-
-</div></div>
-
-</body>
-</html>