This commit is contained in:
恍兮惚兮 2024-07-18 22:44:18 +08:00
parent 77e32c7f09
commit 7464252cb8
9 changed files with 359 additions and 118 deletions

View File

@ -1,6 +1,4 @@
- Start
- [Introduction](/en/README.md)
- [Introduction](/en/README.md)
- Usage
- [Start](/en/start.md)
@ -8,11 +6,8 @@
- [Settings](/en/settings.md)
- [Tray icon](/en/trayicon.md)
- OCR instructions
- [OCR instructions](/en/ocrsetsumei.md)
- [OCR instructions](/en/ocrsetsumei.md)
- HOOK instructions
- [HOOK instructions](/en/hooksetsumei.md)
- [HOOK instructions](/en/hooksetsumei.md)
- Support author
- [Support author](/en/support.md)
- [Support author](/en/support.md)

View File

@ -1,62 +1,99 @@
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<html>
<head>
<title>LunaTranslator 使用说明</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta charset="UTF-8" />
<link rel="icon" href="https://image.lunatranslator.xyz/luna.ico" type="image/x-icon">
<meta name="description" content="Description">
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate, max-age=0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="https://unpkg.com/docsify-themeable/dist/css/theme-simple.css" />
<link href="//unpkg.com/prismjs/plugins/line-numbers/prism-line-numbers.css" rel="stylesheet" />
<link
rel="stylesheet"
href="https://unpkg.com/docsify-themeable/dist/css/theme-simple.css"
/>
<link
href="//unpkg.com/prismjs/plugins/line-numbers/prism-line-numbers.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<!-- Fontawesome -->
<link
href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.14.0/css/all.min.css"
rel="stylesheet"
/>
<script src="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.14.0/js/all.min.js"></script>
</head>
<body>
<div class="headercenter">
<div class="header">
<div class="buttons">
<div class="buttonitem buttonsize"><a class="goodlink buttonsize" target="_blank" href="https://lunatranslator.xyz/" id="homepage"
>官方网站</a></div>
<div class="buttonitem buttonsize">
<div class="dropdown buttonsize">
<span class="goodlink" id="downloadlink">
软件下载
</span>
<div class="dropdown-content ">
<a class="goodlink buttonsize"
target="_blank" href="https://github.com/HIllya51/LunaTranslator/releases/latest/download/LunaTranslator.zip">64位<br></a>
<a class="goodlink buttonsize"
target="_blank" href="https://github.com/HIllya51/LunaTranslator/releases/latest/download/LunaTranslator_x86.zip">32位<br></a>
</div>
</div>
</div>
<div class="buttonitem buttonsize"><a class="goodlink buttonsize" href="https://space.bilibili.com/592120404/video"
target="_blank" id="vediotutorial">视频教学</a>
</div>
<div class="buttonitem buttonsize">
<div class="dropdown buttonsize">
<span class="goodlink" id="contactme">
交流群
</span>
<div class="dropdown-content ">
<a class="goodlink buttonsize"
target="_blank" href="https://lunatranslator.xyz/Resource/QQGroup">QQ群<br></a>
<a class="goodlink buttonsize"
target="_blank" href="https://lunatranslator.xyz/Resource/DiscordGroup">Discord<br></a>
</div>
</div>
</div>
</div>
</div></div>
<div class="backgroud">
</div>
<div id="app"></div>
<script src="/main.js"></script>
<script src="https://unpkg.com/docsify@4/lib/docsify.min.js"></script>
<script src="https://unpkg.com/docsify@4/lib/plugins/search.min.js"></script>
<script src="https://unpkg.com/docsify@4/lib/plugins/external-script.min.js"></script>
<!-- Prism -->
<script src="https://unpkg.com/prismjs@1/prism.js"></script>
<script src="https://unpkg.com/prismjs@1/components/prism-c.min.js"></script>
<script src="https://unpkg.com/prismjs@1/components/prism-cpp.min.js"></script>
<script src="https://unpkg.com/prismjs@1/components/prism-cmake.min.js"></script>
<script src="https://unpkg.com/prismjs@1/components/prism-pascal.min.js"></script>
<!-- Prism plugin: Line numbers -->
<script src="https://unpkg.com/prismjs@1/plugins/line-numbers/prism-line-numbers.js"></script>
<!-- docsify-katex -->
<script src="https://unpkg.com/docsify-katex@1.4.3/dist/docsify-katex.js"></script>
<link rel="stylesheet" href="//unpkg.com/katex@0.10.2/dist/katex.min.css" />
<!-- docsify-themeable -->
<script src="https://unpkg.com/docsify-themeable@0"></script>
<!-- docsify-sidebar-collapse -->
<script src="https://unpkg.com/docsify-sidebar-collapse@1.3.2/dist/docsify-sidebar-collapse.min.js"></script>
<!-- docsify-pagination --->
<script src="https://unpkg.com/docsify-pagination@2.6.0/dist/docsify-pagination.min.js"></script>
<!-- docsify-copy-code -->
<script src="https://unpkg.com/docsify-copy-code@2.1.0/dist/docsify-copy-code.min.js"></script>
<!-- Raphael and flowchart.js -->
<script src="https://unpkg.com/raphael@2.3.0/raphael.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/adrai/flowchart.js@1.15.0/release/flowchart.min.js"></script>
</body>
<script>
window.$docsify = {
homepage : '/redirect.html',
requestHeaders: {
'cache-control': 'max-age=0',
},
repo: 'https://lunatranslator.xyz/Github/LunaTranslator',
alias: {
'/zh/_sidebar.md': '/zh/sidebar.md',
'/ru/_sidebar.md': '/ru/sidebar.md',
'/en/_sidebar.md': '/en/sidebar.md',
'/_navbar.md': '/navbar.md',
},
loadNavbar:true,
loadSidebar: true,
subMaxLevel: 1,
// subMaxLevel: 2
auto2top: true,
search: {
noData: {
'/zh/': '没有结果!',
'/': 'No results!',
},
paths: 'auto',
placeholder: {
'/zh/': '搜索',
'/': 'Search',
}
},
}
</script>
<script src="https://unpkg.com/docsify@latest/lib/docsify.min.js"></script>
<script src="https://unpkg.com/docsify@latest/lib/plugins/search.min.js"></script>
<script src="https://unpkg.com/docsify@latest/lib/plugins/zoom-image.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-markdown.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-ruby.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-yaml.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-less.min.js"></script>
</html>
</html>

109
docs/main.js Normal file
View File

@ -0,0 +1,109 @@
window.$docsify = {
homepage: '/redirect.html',
requestHeaders: {
'cache-control': 'max-age=0',
},
pagination: {
previousText: '上一节',
nextText: '下一节',
crossChapter: true,
crossChapterText: true,
},
repo: 'https://lunatranslator.xyz/Github/LunaTranslator',
alias: {
'/zh/_sidebar.md': '/zh/sidebar.md',
'/ru/_sidebar.md': '/ru/sidebar.md',
'/en/_sidebar.md': '/en/sidebar.md',
'/_navbar.md': '/navbar.md',
'/_coverpage.md': '/coverpage.md',
},
loadNavbar: true,
loadSidebar: true,
auto2top: true,
search: {
noData: {
'/zh/': '没有结果!',
'/': 'No results!',
},
paths: 'auto',
placeholder: {
'/zh/': '搜索',
'/': 'Search',
}
},
executeScript: true
}
let dropdowns = document.getElementsByClassName('dropdown')
for (let i = 0; i < dropdowns.length; i++) {
let dropdown = dropdowns[i]
dropdown.addEventListener('mouseover', function () {
let dropdownContent = this.querySelector('.dropdown-content');
dropdownContent.style.display = 'block';
});
dropdown.addEventListener('mouseout', function () {
let dropdownContent = this.querySelector('.dropdown-content');
dropdownContent.style.display = 'none';
});
}
function randombg() {
let list = ['luna2.jpg']// ['luna.jpg', 'luna2.jpg', 'luna3.jpg', 'luna4.jpg'];
let randomIndex = Math.floor(Math.random() * list.length);
let selectedItem = list[randomIndex];
document.querySelector("body > div.backgroud").style.backgroundImage = `url("https://image.lunatranslator.xyz/${selectedItem}")`
}
randombg()
var currentlang = "";
const navitexts = {
zh: {
homepage: '官方网站',
downloadlink: '软件下载',
vediotutorial: '视频教学',
contactme: '交流群'
},
ru: {
homepage: 'HomePage',
downloadlink: 'Download',
vediotutorial: 'Vedio Tutorial',
contactme: 'Chat Groups'
},
en: {
homepage: 'HomePage',
downloadlink: 'Download',
vediotutorial: 'Vedio Tutorial',
contactme: 'Chat Groups'
}
}
window.onpopstate = function (event) {
let url = window.location.href;
let thislang = currentlang
if (url.includes('/zh/')) {
thislang = 'zh'
}
else if (url.includes('/en/')) {
thislang = 'en'
}
else if (url.includes('/ru/')) {
thislang = 'ru'
}
if (thislang != currentlang) {
currentlang = thislang
console.log(navitexts[currentlang])
for (let key in navitexts[currentlang]) {
document.getElementById(key).innerText = navitexts[currentlang][key]
}
}
};

View File

@ -1,6 +1,4 @@
- Начало
- [Введение](/ru/README.md)
- [Введение](/ru/README.md)
- Инструкции
- [Первый запуск](/ru/start.md)
@ -8,11 +6,8 @@
- [Основные настройки](/ru/settings.md)
- [Иконка на панели задач](/ru/trayicon.md)
- OCR
- [Подробное описание OCR](/ru/ocrsetsumei.md)
- [Подробное описание OCR](/ru/ocrsetsumei.md)
- HOOK
- [Подробное описание HOOK](/ru/hooksetsumei.md)
- [Подробное описание HOOK](/ru/hooksetsumei.md)
- Поддержать автора программы
- [Поддержать автора программы](/ru/support.md)
- [Поддержать автора программы](/ru/support.md)

123
docs/style.css Normal file
View File

@ -0,0 +1,123 @@
:root {
/* Change link's style */
--link-color: var(--theme-color);
--link-text-decoration: none;
/* Change navbar's style*/
--sidebar-nav-pagelink-background-image: none;
--sidebar-nav-link-before-content-l3: none;
}
/* Fix sidebar fold arrow */
.sidebar-nav li>a[href^='#/']:not([href*='?id=']):not(:only-child) {
background-image: var(--sidebar-nav-pagelink-background-image--collapse,
var(--sidebar-nav-pagelink-background-image--loaded,
var(--sidebar-nav-pagelink-background-image)));
background-position: var(--sidebar-nav-pagelink-background-position--collapse,
var(--sidebar-nav-pagelink-background-position--loaded,
var(--sidebar-nav-pagelink-background-image)));
}
.sidebar-nav li.open>a[href^='#/']:not([href*='?id=']):not(:only-child) {
background-image: var(--sidebar-nav-pagelink-background-image--active,
var(--sidebar-nav-pagelink-background-image--loaded,
var(--sidebar-nav-pagelink-background-image)));
background-position: var(--sidebar-nav-pagelink-background-position--active,
var(--sidebar-nav-pagelink-background-position--loaded,
var(--sidebar-nav-pagelink-background-image)));
}
.markdown-section {
border: 1px solid deepskyblue;
margin-top: 60px;
margin-bottom: 10px;
border-radius: 5px;
}
.app-nav {
font-size: 21px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: rgba(255, 255, 255, 0.9);
}
.goodlink {
text-decoration: none;
color: black;
line-height: 50px;
display: block;
}
.goodlink:hover {
color: deepskyblue;
background-color: rgba(255, 255, 255, 0.9);
}
.buttonsize {
width: 180px;
line-height: 50px;
}
.buttonitem {
display: inline-block;
text-align: center;
}
.headercenter {
width: 100%;
display: flex;
justify-content: center;
}
.header {
font-size: 21px;
position: fixed;
height: 50px;
box-shadow: 0 0 4px 1px gray;
z-index: 100;
background-color: #ffffff80;
backdrop-filter: blur(4px);
}
.backgroud {
/* background-image: url("./luna.jpg"); */
background-size: 100% auto;
content: '';
opacity: 0.33;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -2;
}
.xiamian {
position: fixed;
left: 0;
right: 0;
top: 60px;
bottom: 0;
overflow-x: auto;
overflow-y: auto;
}
.buttons {
align-items: center;
display: flex;
justify-content: center;
white-space: nowrap;
}

View File

@ -1,15 +1,5 @@
# LunaTranslator 使用说明
<p align="left">
<a href="./LICENSE"><img src="https://img.shields.io/github/license/HIllya51/LunaTranslator"></a>
<a href="https://lunatranslator.xyz/Github/LunaTranslator/releases"><img src="https://img.shields.io/github/v/release/HIllya51/LunaTranslator?color=ffa"></a>
<a href="https://lunatranslator.xyz/Github/LunaTranslator/releases/latest/download/LunaTranslator.zip" target="_blank"><img src="https://img.shields.io/badge/download_64bit-blue"/></a> <a href="https://lunatranslator.xyz/Github/LunaTranslator/releases/latest/download/LunaTranslator_x86.zip" target="_blank"><img src="https://img.shields.io/badge/download_32bit-blue"/></a></p>
### [使用说明](https://docs.lunatranslator.xyz/#/zh/) [视频教程](https://space.bilibili.com/592120404/video) [QQ群](https://lunatranslator.xyz/Resource/QQGroup) [Discord](https://discord.gg/f8NSvaDU)
> **一款galgame翻译器**
## 功能支持

View File

@ -25,4 +25,4 @@
![img](https://image.lunatranslator.xyz/zh/mangaocr/succ.png)
等待一会儿首次运行的下载模型和每次运行都需要的加载模型。显示“* Running on http://127.0.0.1:5665”表示服务已正常启动。
等待一会儿首次运行的下载模型和每次运行都需要的加载模型。显示“`* Running on http://127.0.0.1:5665`”表示服务已正常启动。

13
docs/zh/qas.md Normal file
View File

@ -0,0 +1,13 @@
[mangaocr 整合包无法启动怎么办](/zh/mangaocr.md)
[OCR 自动化执行方法的参数含义](/zh/ocrparam.md)
[Windows OCR 如何安装额外的语言支持](/zh/windowsocr.md)
[如何使用 Mecab 分词&词性颜色标注](/zh/qa1.md)
[如何自动划词进 anki](/zh/qa2.md)
[如何使用离线 chatgpt](/zh/qa3.md)
[如何使用 gemini 免费 api](/zh/qa4.md)

View File

@ -1,34 +1,13 @@
- 简介
- [简介](/zh/README.md)
- 基本用法
- [获取软件和启动](/zh/start.md)
- [最基本的使用](/zh/basicuse.md)
<!--
- 进阶使用
- [工具栏](/zh/toolbar.md)
- [设置](/zh/settings.md)
- [托盘图标](/zh/trayicon.md)
- OCR说明
- [OCR说明](/zh/ocrsetsumei.md)
- HOOK说明
- [HOOK说明](/zh/hooksetsumei.md) -->
- 软件更新
- [软件更新](/zh/update.md)
- 常见问题
- [mangaocr 整合包无法启动怎么办](/zh/mangaocr.md)
- [OCR 自动化执行方法的参数含义](/zh/ocrparam.md)
- [Windows OCR 如何安装额外的语言支持](/zh/windowsocr.md)
- [如何使用 Mecab 分词&词性颜色标注](/zh/qa1.md)
- [如何自动划词进 anki](/zh/qa2.md)
- [如何使用离线 chatgpt](/zh/qa3.md)
- [如何使用 gemini 免费 api](/zh/qa4.md)
- [其他问题](https://github.com/HIllya51/LunaTranslator/issues?q=label%3AQ%26A)
- 支持作者
- [支持作者](/zh/support.md)
- [简介](/zh/README.md)
- [基本用法](/zh/basicuse.md)
- [获取软件和启动](/zh/start.md)
- [软件更新](/zh/update.md)
- [常见问题](/zh/qas.md)
- [mangaocr 整合包无法启动怎么办](/zh/mangaocr.md)
- [OCR 自动化执行方法的参数含义](/zh/ocrparam.md)
- [Windows OCR 如何安装额外的语言支持](/zh/windowsocr.md)
- [如何使用 Mecab 分词&词性颜色标注](/zh/qa1.md)
- [如何自动划词进 anki](/zh/qa2.md)
- [如何使用离线 chatgpt](/zh/qa3.md)
- [如何使用 gemini 免费 api](/zh/qa4.md)
- [支持作者](/zh/support.md)