diff --git a/README.md b/README.md index 78a7d6c..4c748d2 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ ## Install ```sh -npm install @enumura1/glyphflow +npm install @enumura/glyphflow ``` ```ts -import { createKaraokeNarrator } from "@enumura1/glyphflow"; -import "@enumura1/glyphflow/styles.css"; +import { createKaraokeNarrator } from "@enumura/glyphflow"; +import "@enumura/glyphflow/styles.css"; const narrator = createKaraokeNarrator({ text: "This is a karaoke caption.", diff --git a/docs-site/docs/api.md b/docs-site/docs/api.md index 2cff028..d12a3a4 100644 --- a/docs-site/docs/api.md +++ b/docs-site/docs/api.md @@ -28,4 +28,4 @@ Returns an object with `speak()`, `pause()`, `resume()`, `cancel()`, `getDiagnos ## Styling -Import `@enumura1/glyphflow/styles.css`. Override `--kn-highlight-color`, `--kn-unhighlight-color`, font, size, and spacing in application CSS. +Import `@enumura/glyphflow/styles.css`. Override `--kn-highlight-color`, `--kn-unhighlight-color`, font, size, and spacing in application CSS. diff --git a/docs-site/docs/getting-started.md b/docs-site/docs/getting-started.md index 9346758..8313ab5 100644 --- a/docs-site/docs/getting-started.md +++ b/docs-site/docs/getting-started.md @@ -6,14 +6,14 @@ title: Getting started ## Install ```sh -npm install @enumura1/glyphflow +npm install @enumura/glyphflow ``` Import the API and stylesheet from your application entry point. ```ts -import { createKaraokeNarrator, getSpeechSynthesisSupport } from "@enumura1/glyphflow"; -import "@enumura1/glyphflow/styles.css"; +import { createKaraokeNarrator, getSpeechSynthesisSupport } from "@enumura/glyphflow"; +import "@enumura/glyphflow/styles.css"; ``` ## Create a caption target @@ -61,7 +61,7 @@ Calling `speak()` again cancels the active session and starts a fresh one. Call The browser may load its voice list asynchronously. `getVoices()` therefore returns an empty array until voices are ready. Refresh your own UI when the browser dispatches `voiceschanged`. ```ts -import { getVoices } from "@enumura1/glyphflow"; +import { getVoices } from "@enumura/glyphflow"; function refreshVoices() { const englishVoices = getVoices().filter((voice) => voice.lang.startsWith("en")); diff --git a/docs-site/docs/intro.md b/docs-site/docs/intro.md index ff4b4a0..7c15102 100644 --- a/docs-site/docs/intro.md +++ b/docs-site/docs/intro.md @@ -52,12 +52,12 @@ Word-boundary events provide observed timings. Between boundaries, GlyphFlow pre ## Quick start ```sh -npm install @enumura1/glyphflow +npm install @enumura/glyphflow ``` ```ts -import { createKaraokeNarrator } from "@enumura1/glyphflow"; -import "@enumura1/glyphflow/styles.css"; +import { createKaraokeNarrator } from "@enumura/glyphflow"; +import "@enumura/glyphflow/styles.css"; const narrator = createKaraokeNarrator({ text: "This is a caption.", diff --git a/docs-site/docs/troubleshooting.md b/docs-site/docs/troubleshooting.md index d1b0c3b..7b51135 100644 --- a/docs-site/docs/troubleshooting.md +++ b/docs-site/docs/troubleshooting.md @@ -13,7 +13,7 @@ The browser may support Web Speech but the selected voice may not emit usable `w ## I hear speech but the caption does not move -Confirm that you imported `@enumura1/glyphflow/styles.css` and that the selected voice emits word boundaries. The `unsupported` state after speech ends identifies a boundary-free voice. +Confirm that you imported `@enumura/glyphflow/styles.css` and that the selected voice emits word boundaries. The `unsupported` state after speech ends identifies a boundary-free voice. ## Speech does not start diff --git a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/api.md b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/api.md index 3a6696b..a8bf028 100644 --- a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/api.md +++ b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/api.md @@ -28,4 +28,4 @@ title: API ## スタイル -`@enumura1/glyphflow/styles.css`をimportしてください。`--kn-highlight-color`、`--kn-unhighlight-color`、フォント、サイズ、余白はアプリケーション側で上書きできます。 +`@enumura/glyphflow/styles.css`をimportしてください。`--kn-highlight-color`、`--kn-unhighlight-color`、フォント、サイズ、余白はアプリケーション側で上書きできます。 diff --git a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/getting-started.md b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/getting-started.md index e21a0e2..0586001 100644 --- a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/getting-started.md +++ b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/getting-started.md @@ -6,14 +6,14 @@ title: 使い始める ## インストール ```sh -npm install @enumura1/glyphflow +npm install @enumura/glyphflow ``` アプリケーションのエントリーポイントからAPIとstylesheetをimportします。 ```ts -import { createKaraokeNarrator, getSpeechSynthesisSupport } from "@enumura1/glyphflow"; -import "@enumura1/glyphflow/styles.css"; +import { createKaraokeNarrator, getSpeechSynthesisSupport } from "@enumura/glyphflow"; +import "@enumura/glyphflow/styles.css"; ``` ## 字幕の描画先を用意する @@ -61,7 +61,7 @@ narrator.speak(); ブラウザがvoice一覧を非同期で準備することがあります。そのため`getVoices()`は準備前には空配列を返します。`voiceschanged`イベントでUIを更新してください。 ```ts -import { getVoices } from "@enumura1/glyphflow"; +import { getVoices } from "@enumura/glyphflow"; function refreshVoices() { const englishVoices = getVoices().filter((voice) => voice.lang.startsWith("en")); diff --git a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/intro.md b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/intro.md index 3e2dea1..6fdc805 100644 --- a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/intro.md +++ b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/intro.md @@ -52,12 +52,12 @@ GlyphFlowは、Web Speech APIで文章を読み上げながら、読み上げ中 ## クイックスタート ```sh -npm install @enumura1/glyphflow +npm install @enumura/glyphflow ``` ```ts -import { createKaraokeNarrator } from "@enumura1/glyphflow"; -import "@enumura1/glyphflow/styles.css"; +import { createKaraokeNarrator } from "@enumura/glyphflow"; +import "@enumura/glyphflow/styles.css"; const narrator = createKaraokeNarrator({ text: "This is a caption.", diff --git a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/troubleshooting.md b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/troubleshooting.md index d7c8235..7566f73 100644 --- a/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/troubleshooting.md +++ b/docs-site/i18n/ja/docusaurus-plugin-content-docs/current/troubleshooting.md @@ -13,7 +13,7 @@ Web Speech APIに対応していても、選択したvoiceが利用可能な単 ## 音声は聞こえるが字幕が動かない -`@enumura1/glyphflow/styles.css`をimportしたか、選択したvoiceが単語境界を返すかを確認してください。音声終了後に`unsupported`になる場合は境界がないvoiceです。 +`@enumura/glyphflow/styles.css`をimportしたか、選択したvoiceが単語境界を返すかを確認してください。音声終了後に`unsupported`になる場合は境界がないvoiceです。 ## 音声が開始されない diff --git a/docs-site/src/pages/index.tsx b/docs-site/src/pages/index.tsx index 51296c6..eaed780 100644 --- a/docs-site/src/pages/index.tsx +++ b/docs-site/src/pages/index.tsx @@ -125,7 +125,7 @@ export default function Home(): JSX.Element {
-diff --git a/package-lock.json b/package-lock.json index 09fb93a..4736553 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@enumura1/glyphflow", + "name": "@enumura/glyphflow", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@enumura1/glyphflow", + "name": "@enumura/glyphflow", "version": "1.0.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 6a4cde1..2ca295b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@enumura1/glyphflow", + "name": "@enumura/glyphflow", "version": "1.0.0", "description": "Browser Web Speech narration with smoothly wiping inside-glyph captions.", "keywords": [npm install @enumura1/glyphflow+npm install @enumura/glyphflow