2 Commits

Author SHA1 Message Date
himeditator
564954a834 release v1.1.1 2026-01-31 13:45:25 +08:00
himeditator
aed15af386 feat(window): 字幕窗口改为始终顶置,窗口顶置选项改为鼠标穿透选项(#26) 2026-01-31 13:38:53 +08:00
16 changed files with 49 additions and 26 deletions

View File

@@ -3,7 +3,7 @@
<h1 align="center">auto-caption</h1>
<p>Auto Caption 是一个跨平台的实时字幕显示软件。</p>
<p>
<a href="https://github.com/HiMeditator/auto-caption/releases"><img src="https://img.shields.io/badge/release-1.1.0-blue"></a>
<a href="https://github.com/HiMeditator/auto-caption/releases"><img src="https://img.shields.io/badge/release-1.1.1-blue"></a>
<a href="https://github.com/HiMeditator/auto-caption/issues"><img src="https://img.shields.io/github/issues/HiMeditator/auto-caption?color=orange"></a>
<img src="https://img.shields.io/github/languages/top/HiMeditator/auto-caption?color=royalblue">
<img src="https://img.shields.io/github/repo-size/HiMeditator/auto-caption?color=green">
@@ -14,7 +14,7 @@
| <a href="./README_en.md">English</a>
| <a href="./README_ja.md">日本語</a> |
</p>
<p><i>v1.1.0 版本已经发布,新增 GLM-ASR 云端字幕模型和 OpenAI 兼容模型翻译...</i></p>
<p><i>v1.1.1 版本已经发布,新增 GLM-ASR 云端字幕模型和 OpenAI 兼容模型翻译...</i></p>
</div>
![](./assets/media/main_zh.png)

View File

@@ -3,7 +3,7 @@
<h1 align="center">auto-caption</h1>
<p>Auto Caption is a cross-platform real-time caption display software.</p>
<p>
<a href="https://github.com/HiMeditator/auto-caption/releases"><img src="https://img.shields.io/badge/release-1.1.0-blue"></a>
<a href="https://github.com/HiMeditator/auto-caption/releases"><img src="https://img.shields.io/badge/release-1.1.1-blue"></a>
<a href="https://github.com/HiMeditator/auto-caption/issues"><img src="https://img.shields.io/github/issues/HiMeditator/auto-caption?color=orange"></a>
<img src="https://img.shields.io/github/languages/top/HiMeditator/auto-caption?color=royalblue">
<img src="https://img.shields.io/github/repo-size/HiMeditator/auto-caption?color=green">
@@ -14,7 +14,7 @@
| <b>English</b>
| <a href="./README_ja.md">日本語</a> |
</p>
<p><i>v1.1.0 has been released, adding the GLM-ASR cloud caption model and OpenAI compatible model translation...</i></p>
<p><i>v1.1.1 has been released, adding the GLM-ASR cloud caption model and OpenAI compatible model translation...</i></p>
</div>
![](./assets/media/main_en.png)

View File

@@ -3,7 +3,7 @@
<h1 align="center">auto-caption</h1>
<p>Auto Caption はクロスプラットフォームのリアルタイム字幕表示ソフトウェアです。</p>
<p>
<a href="https://github.com/HiMeditator/auto-caption/releases"><img src="https://img.shields.io/badge/release-1.1.0-blue"></a>
<a href="https://github.com/HiMeditator/auto-caption/releases"><img src="https://img.shields.io/badge/release-1.1.1-blue"></a>
<a href="https://github.com/HiMeditator/auto-caption/issues"><img src="https://img.shields.io/github/issues/HiMeditator/auto-caption?color=orange"></a>
<img src="https://img.shields.io/github/languages/top/HiMeditator/auto-caption?color=royalblue">
<img src="https://img.shields.io/github/repo-size/HiMeditator/auto-caption?color=green">
@@ -14,7 +14,7 @@
| <a href="./README_en.md">English</a>
| <b>日本語</b> |
</p>
<p><i>v1.1.0 バージョンがリリースされました。GLM-ASR クラウド字幕モデルと OpenAI 互換モデル翻訳が追加されました...</i></p>
<p><i>v1.1.1 バージョンがリリースされました。GLM-ASR クラウド字幕モデルと OpenAI 互換モデル翻訳が追加されました...</i></p>
</div>
![](./assets/media/main_ja.png)

View File

@@ -180,3 +180,11 @@
- 添加基于 GLM-ASR 的字幕引擎
- 添加 OpenAI API 兼容模型作为新的翻译模型
## v1.1.1
### 优化体验
- 取消字幕窗口的顶置选项,字幕窗口将始终处于顶置状态
- 将字幕窗口顶置选项改为鼠标穿透选项,当图钉图标为实心时,表示启用鼠标穿透

View File

@@ -202,9 +202,9 @@
**数据类型:** `number`
### `caption.pin.set`
### `caption.mouseEvents.ignore`
**介绍:** 是否将窗口置顶
**介绍:** 是否设置鼠标穿透
**发起方:** 前端字幕窗口

View File

@@ -1,6 +1,6 @@
# Auto Caption User Manual
Corresponding Version: v1.1.0
Corresponding Version: v1.1.1
**Note: Due to limited personal resources, the English and Japanese documentation files for this project (except for the README document) will no longer be maintained. The content of this document may not be consistent with the latest version of the project. If you are willing to help with translation, please submit relevant Pull Requests.**
@@ -116,7 +116,7 @@ After completing all configurations, click the "Start Caption Engine" button on
### Adjusting the Caption Display Window
The following image shows the caption display window, which displays the latest captions in real-time. The three buttons in the upper right corner of the window have the following functions: pin the window to the front, open the caption control window, and close the caption display window. The width of the window can be adjusted by moving the mouse to the left or right edge of the window and dragging the mouse.
The following image shows the caption display window, which displays the latest captions in real-time. The functions of the three buttons in the upper right corner of the window are: to close the caption display window, to open the caption control window, and to enable mouse pass-through. The width of the window can be adjusted by moving the mouse to the left or right edge of the window and dragging the mouse.
![](../img/01.png)

View File

@@ -1,6 +1,6 @@
# Auto Caption ユーザーマニュアル
対応バージョンv1.1.0
対応バージョンv1.1.1
この文書は大規模モデルを使用して翻訳されていますので、内容に正確でない部分があるかもしれません。
@@ -116,7 +116,7 @@ sudo yum install pulseaudio pavucontrol
### 字幕表示ウィンドウの調整
下の図は字幕表示ウィンドウです。このウィンドウは現在の最新の字幕をリアルタイムで表示します。ウィンドウの右上にある3つのボタンの機能はそれぞれ次の通りです:ウィンドウを最前面に固定する、字幕制御ウィンドウを開く、字幕表示ウィンドウを閉じる。このウィンドウの幅は調整可能です。マウスをウィンドウの左右の端に移動し、ドラッグして幅を調整します。
下の図は字幕表示ウィンドウです。このウィンドウは現在の最新の字幕をリアルタイムで表示します。ウィンドウの右上にある3つのボタンの機能はそれぞれ字幕表示ウィンドウを閉じる、字幕制御ウィンドウを開く、マウス透過を有効化することです。このウィンドウの幅は調整可能です。マウスをウィンドウの左右の端に移動し、ドラッグして幅を調整します。
![](../img/01.png)

View File

@@ -1,6 +1,6 @@
# Auto Caption 用户手册
对应版本v1.1.0
对应版本v1.1.1
## 软件简介
@@ -113,7 +113,7 @@ sudo yum install pulseaudio pavucontrol
### 调整字幕展示窗口
如下图为字幕展示窗口,该窗口实时展示当前最新字幕。窗口右上角三个按钮的功能分别是:将窗口固定在最前面、打开字幕控制窗口、关闭字幕展示窗口。该窗口宽度可以调整,将鼠标移动至窗口的左右边缘,拖动鼠标即可调整宽度。
如下图为字幕展示窗口,该窗口实时展示当前最新字幕。窗口右上角三个按钮的功能分别是:关闭字幕展示窗口、打开字幕控制窗口、启用鼠标穿透。该窗口宽度可以调整,将鼠标移动至窗口的左右边缘,拖动鼠标即可调整宽度。
![](../img/01.png)

View File

@@ -1,7 +1,7 @@
{
"name": "auto-caption",
"productName": "Auto Caption",
"version": "1.1.0",
"version": "1.1.1",
"description": "A cross-platform subtitle display software.",
"main": "./out/main/index.js",
"author": "himeditator",

View File

@@ -77,10 +77,9 @@ class CaptionWindow {
}
})
ipcMain.on('caption.pin.set', (_, pinned) => {
ipcMain.on('caption.mouseEvents.ignore', (_, ignore: boolean) => {
if(this.window){
if(pinned) this.window.setAlwaysOnTop(true, 'screen-saver')
else this.window.setAlwaysOnTop(false)
this.window.setIgnoreMouseEvents(ignore, { forward: ignore })
}
})
}

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>Auto Caption v1.1.0</title>
<title>Auto Caption v1.1.1</title>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"

View File

@@ -101,7 +101,7 @@
<p class="about-desc">{{ $t('status.about.desc') }}</p>
<a-divider />
<div class="about-info">
<p><b>{{ $t('status.about.version') }}</b><a-tag color="green">v1.1.0</a-tag></p>
<p><b>{{ $t('status.about.version') }}</b><a-tag color="green">v1.1.1</a-tag></p>
<p>
<b>{{ $t('status.about.author') }}</b>
<a

View File

@@ -146,7 +146,7 @@ export default {
"projLink": "Project Link",
"manual": "User Manual",
"engineDoc": "Caption Engine Manual",
"date": "January 10th, 2026"
"date": "January 31, 2026"
}
},
log: {

View File

@@ -145,7 +145,7 @@ export default {
"projLink": "プロジェクトリンク",
"manual": "ユーザーマニュアル",
"engineDoc": "字幕エンジンマニュアル",
"date": "2026 年 1 月 10 日"
"date": "2026 年 1 月 31 日"
}
},
log: {

View File

@@ -145,7 +145,7 @@ export default {
"projLink": "项目链接",
"manual": "用户手册",
"engineDoc": "字幕引擎手册",
"date": "2026 年 1 月 10 日"
"date": "2026 年 1 月 31 日"
}
},
log: {

View File

@@ -61,7 +61,11 @@
</template>
</div>
<div class="title-bar" :style="{color: captionStyle.fontColor}">
<div class="title-bar"
:style="{color: captionStyle.fontColor}"
@mouseenter="onTitleBarEnter()"
@mouseleave="onTitleBarLeave()"
>
<div class="option-item" @click="closeCaptionWindow">
<CloseOutlined />
</div>
@@ -96,7 +100,7 @@ const captionLog = useCaptionLogStore();
const { captionData } = storeToRefs(captionLog);
const caption = ref();
const windowHeight = ref(100);
const pinned = ref(true);
const pinned = ref(false);
onMounted(() => {
const resizeObserver = new ResizeObserver(entries => {
@@ -114,7 +118,7 @@ onMounted(() => {
function pinCaptionWindow() {
pinned.value = !pinned.value;
window.electron.ipcRenderer.send('caption.pin.set', pinned.value)
window.electron.ipcRenderer.send('caption.mouseEvents.ignore', pinned.value)
}
function openControlWindow() {
@@ -124,6 +128,18 @@ function openControlWindow() {
function closeCaptionWindow() {
window.electron.ipcRenderer.send('caption.window.close')
}
function onTitleBarEnter() {
if(pinned.value) {
window.electron.ipcRenderer.send('caption.mouseEvents.ignore', false)
}
}
function onTitleBarLeave() {
if(pinned.value) {
window.electron.ipcRenderer.send('caption.mouseEvents.ignore', true)
}
}
</script>
<style scoped>