From 6b625d0fcf8176dc4d5cfcac236148b7d0892afc Mon Sep 17 00:00:00 2001
From: Nanoskript <96655713+nanoskript@users.noreply.github.com>
Date: Thu, 28 Dec 2023 04:22:10 +1100
Subject: [PATCH] feat: add help section and amend README.md
---
README.md | 9 ++++++++-
public/index.html | 2 +-
public/index.js | 26 +++++++++++++++++++++++++-
public/styles.css | 10 ++++++++++
4 files changed, 44 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 9ada9dd..424c438 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,15 @@
# jp-onomatopoeia
-Compiled dataset of Japanese onomatopoeia and sound effects.
+[Japanese Onomatopoeia Search](https://nsk.sh/tools/jp-onomatopoeia/)
+
+Compiled dataset and search tool for Japanese onomatopoeia and sound effects.
+
+## Preview
+
+![](media/preview.png)
## Data sources
- [nihongoresources.com](https://github.com/Pomax/nihongoresources.com)
- [Japanese Manga SFX spreadsheet](https://docs.google.com/spreadsheets/d/1iXFIVmSzukN1PYD1JakdqMmrNNlc7TtkutDKevuKM0c/edit)
+- [The Jaded Network](http://thejadednetwork.com/sfx/) (included in the Japanese Manga SFX spreadsheet)
diff --git a/public/index.html b/public/index.html
index cf11bf9..581515d 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,7 +7,7 @@
{
type="text"
value=${string}
class="term-search-input"
- placeholder="Romaji / Hiragana / Katakana"
+ placeholder="Romaji · ひらがな · カタカナ"
oninput=${(e) => setString(e.target.value)}
autocomplete="off"
autocapitalize="none"
@@ -141,6 +141,29 @@ const SearchResults = ({ query }) => {
`;
};
+const Help = () => {
+ return html`
+
+ This tool lets you easily search for definitions of manga sound
+ effects and onomatopoeia. Type a sound effect in the search box, and
+ press${" "}
+ Search to find definitions for that sound effect. You can
+ search using romaji, hiragana, or katakana.
+
+ Results where your search term appears at the start of a sound effect
+ will appear under Exact matches. Results where your search term
+ appears in the middle of a sound effect will appear under${" "}
+ Similar matches.
+ Help
+