From 63cf3175e6d62acbf5a0ca355966173513cad955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Li=20Chenghao=20=28=E6=9D=8E=E6=88=90=E6=B5=A9=29?= <94270615+Chenghao999@users.noreply.github.com> Date: Sun, 2 Feb 2025 21:26:11 +0800 Subject: [PATCH] update (#1066) --- docs/docusaurus.config.js | 76 +++++++++---------- .../current/usage/4_edit_and_resize.md | 12 +-- 2 files changed, 39 insertions(+), 49 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index cf27e2d6..e155d619 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -1,28 +1,28 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require('prism-react-renderer/themes/github'); -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +const lightCodeTheme = require("prism-react-renderer/themes/github"); +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'Buzz', - tagline: 'Audio transcription and translation', - favicon: 'img/favicon.ico', + title: "Buzz", + tagline: "Audio transcription and translation", + favicon: "img/favicon.ico", // Set the production url of your site here - url: 'https://chidiwilliams.github.io', + url: "https://chidiwilliams.github.io", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/buzz/', + baseUrl: "/buzz/", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'chidiwilliams', // Usually your GitHub org/user name. - projectName: 'buzz', // Usually your repo name. + organizationName: "chidiwilliams", // Usually your GitHub org/user name. + projectName: "buzz", // Usually your repo name. - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', + onBrokenLinks: "throw", + onBrokenMarkdownLinks: "warn", trailingSlash: false, @@ -30,38 +30,38 @@ const config = { // metadata like html lang. For example, if your site is Chinese, you may want // to replace "en" with "zh-Hans". i18n: { - defaultLocale: 'en', - locales: ['en', 'zh'], - path: 'i18n', + defaultLocale: "en", + locales: ["en", "zh"], + path: "i18n", localeConfigs: { en: { - label: 'English', - direction: 'ltr', - htmlLang: 'en-US', - path: 'en', + label: "English", + direction: "ltr", + htmlLang: "en-US", + path: "en", }, zh: { - label: 'Chinese', - direction: 'ltr', - htmlLang: 'zh-CN', - path: 'zh', + label: "简体中文", + direction: "ltr", + htmlLang: "zh-CN", + path: "zh", }, }, }, presets: [ [ - 'classic', + "classic", /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { - sidebarPath: require.resolve('./sidebars.js'), + sidebarPath: require.resolve("./sidebars.js"), }, blog: { showReadingTime: true, }, theme: { - customCss: require.resolve('./src/css/custom.css'), + customCss: require.resolve("./src/css/custom.css"), }, }), ], @@ -71,28 +71,28 @@ const config = { /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card - image: 'img/favicon.ico', + image: "img/favicon.ico", navbar: { - title: 'Buzz', + title: "Buzz", logo: { - alt: 'Buzz', - src: 'img/favicon.ico', + alt: "Buzz", + src: "img/favicon.ico", }, items: [ { - type: 'docSidebar', - sidebarId: 'tutorialSidebar', - position: 'left', - label: 'Docs', + type: "docSidebar", + sidebarId: "tutorialSidebar", + position: "left", + label: "Docs", }, { - href: 'https://github.com/chidiwilliams/buzz', - label: 'GitHub', - position: 'right', + href: "https://github.com/chidiwilliams/buzz", + label: "GitHub", + position: "right", }, { - type: 'localeDropdown', - position: 'left', + type: "localeDropdown", + position: "left", }, ], }, diff --git a/docs/i18n/zh/docusaurus-plugin-content-docs/current/usage/4_edit_and_resize.md b/docs/i18n/zh/docusaurus-plugin-content-docs/current/usage/4_edit_and_resize.md index e3210da5..18ebb5ff 100644 --- a/docs/i18n/zh/docusaurus-plugin-content-docs/current/usage/4_edit_and_resize.md +++ b/docs/i18n/zh/docusaurus-plugin-content-docs/current/usage/4_edit_and_resize.md @@ -1,17 +1,7 @@ --- -title: Edit and Resize +title: 编辑与调整 --- -When transcript of some audio or video file is generated you can edit it and export to different subtitle formats or plain text. Double-click the transcript in the list of transcripts to see additional options for editing and exporting. - -Transcription view screen has option to resize the transcripts. Click on the "Resize" button so see available options. Transcripts that have been generated **with word-level timings** setting enabled can be combined into subtitles specifying different options, like maximum length of a subtitle and if subtitles should be split on punctuation. For transcripts that have been generated **without word-level timings** setting enabled can only be recombined specifying desired max length of a subtitle. - -If audio file is still present on the system word-level timing merge will also analyze the audio for silences to improve subtitle accuracy. Subtitle generation from transcripts with word-level timings is available since version 1.3.0. - ---- - -## title: 编辑与调整 - 当某个音频或视频文件完成转录后,你可以对其进行编辑,并将其导出为不同的字幕格式或纯文本。在转录列表中双击转录内容,即可查看用于编辑和导出的其他选项。 转录视图界面提供了调整转录内容的选项。点击“调整”按钮,可查看可用的选项。对于在 **启用单词级时间戳** 设置下生成的转录内容,可以通过指定不同选项(如字幕的最大长度以及是否应在标点处拆分字幕)将其合并成字幕。而对于在 **未启用单词级时间戳** 设置下生成的转录内容,仅能通过指定所需的字幕最大长度来重新组合。