mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
ocr: add how to series
doc: move howto to website
This commit is contained in:
parent
715512eda3
commit
3ea5ebeebf
|
@ -17,6 +17,7 @@ on:
|
||||||
- "howto/**"
|
- "howto/**"
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "locale/**"
|
- "locale/**"
|
||||||
|
- "website/**"
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
|
2
.github/workflows/ubuntu-PR-check.yml
vendored
2
.github/workflows/ubuntu-PR-check.yml
vendored
|
@ -17,6 +17,8 @@ on:
|
||||||
- "howto/**"
|
- "howto/**"
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "locale/**"
|
- "locale/**"
|
||||||
|
- "website/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
|
2
.github/workflows/windows-PR-check.yml
vendored
2
.github/workflows/windows-PR-check.yml
vendored
|
@ -17,6 +17,8 @@ on:
|
||||||
- "howto/**"
|
- "howto/**"
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "locale/**"
|
- "locale/**"
|
||||||
|
- "website/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
# prerequisite
|
|
||||||
1. install anki
|
|
||||||
2. install ankiconnect
|
|
||||||
|
|
||||||
# configure anki
|
|
||||||
|
|
||||||
## 1. create a new model, or use an existing model
|
|
||||||
|
|
||||||
For example, the model could have `Front` and `Back` fields.
|
|
||||||
|
|
||||||
![Snipaste_2022-05-21_14-08-21](https://user-images.githubusercontent.com/105986/169638410-c6aa8038-df03-40de-8731-9f0b9f43bf59.png)
|
|
||||||
## 2. configure the template
|
|
||||||
the front template
|
|
||||||
|
|
||||||
![image](https://user-images.githubusercontent.com/105986/169638457-2358d020-0132-469f-a6b4-0fb6d1590fa2.png)
|
|
||||||
the back template
|
|
||||||
|
|
||||||
![image](https://user-images.githubusercontent.com/105986/169638440-7191fcdd-c338-48a3-a899-7216a5c77425.png)
|
|
||||||
|
|
||||||
# configure goldendict
|
|
||||||
## 1. through toolbar=>preference=>network
|
|
||||||
![screenshot](https://user-images.githubusercontent.com/69171671/224496944-dbf31d6e-26be-42c9-98fc-257f70a8428e.png)
|
|
||||||
|
|
||||||
* Word - Vocabulary headword.
|
|
||||||
* Text - Selected definition.
|
|
||||||
* Sentence - Search string. You can leave it blank.
|
|
||||||
|
|
||||||
**Example for adding Japanese sentences:**
|
|
||||||
![screenshot](https://user-images.githubusercontent.com/69171671/224497112-ab027a16-89b2-48d8-8308-a3dbb5b9e1e4.png)
|
|
||||||
|
|
||||||
## 2. action
|
|
||||||
![image](https://user-images.githubusercontent.com/105986/169638740-abecde84-d33b-45ce-932c-d465c6650334.png)
|
|
||||||
## 3. result
|
|
||||||
|
|
||||||
**Word and definition:**
|
|
||||||
![image](https://user-images.githubusercontent.com/105986/169638761-f67c009d-27cd-440d-bafa-ebbdce9577e3.png)
|
|
||||||
|
|
||||||
**Sentence, word, and definition:**
|
|
||||||
![screenshot](https://user-images.githubusercontent.com/69171671/224497528-889d6393-e04d-4af7-b1a7-816ba010f2b2.png)
|
|
|
@ -1,13 +0,0 @@
|
||||||
Developers need to check the html occassionly.
|
|
||||||
|
|
||||||
based on qtcreator.
|
|
||||||
|
|
||||||
Steps:
|
|
||||||
1. set enviroment variable QTWEBENGINE_REMOTE_DEBUGGING=10000
|
|
||||||
![image](https://user-images.githubusercontent.com/105986/142788556-f97a6d21-21ea-4e65-862a-5f63bd198bae.png)
|
|
||||||
|
|
||||||
2.run goldendict project
|
|
||||||
|
|
||||||
3.open chrome ,and navigate to http://localhost:10000
|
|
||||||
|
|
||||||
4.in goldendict ,right mouse menu ,select "Inspect",this will navigate to the corresponding element in the chrome.
|
|
|
@ -1,5 +1,49 @@
|
||||||
# Anki Integration
|
# Anki Integration
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# prerequisite
|
||||||
|
1. install anki
|
||||||
|
2. install ankiconnect
|
||||||
|
|
||||||
|
# configure anki
|
||||||
|
|
||||||
|
## 1. create a new model, or use an existing model
|
||||||
|
|
||||||
|
For example, the model could have `Front` and `Back` fields.
|
||||||
|
|
||||||
|
![Snipaste_2022-05-21_14-08-21](https://user-images.githubusercontent.com/105986/169638410-c6aa8038-df03-40de-8731-9f0b9f43bf59.png)
|
||||||
|
## 2. configure the template
|
||||||
|
the front template
|
||||||
|
|
||||||
|
![image](https://user-images.githubusercontent.com/105986/169638457-2358d020-0132-469f-a6b4-0fb6d1590fa2.png)
|
||||||
|
the back template
|
||||||
|
|
||||||
|
![image](https://user-images.githubusercontent.com/105986/169638440-7191fcdd-c338-48a3-a899-7216a5c77425.png)
|
||||||
|
|
||||||
|
# configure goldendict
|
||||||
|
## 1. through toolbar=>preference=>network
|
||||||
|
![screenshot](https://user-images.githubusercontent.com/69171671/224496944-dbf31d6e-26be-42c9-98fc-257f70a8428e.png)
|
||||||
|
|
||||||
|
* Word - Vocabulary headword.
|
||||||
|
* Text - Selected definition.
|
||||||
|
* Sentence - Search string. You can leave it blank.
|
||||||
|
|
||||||
|
**Example for adding Japanese sentences:**
|
||||||
|
![screenshot](https://user-images.githubusercontent.com/69171671/224497112-ab027a16-89b2-48d8-8308-a3dbb5b9e1e4.png)
|
||||||
|
|
||||||
|
## 2. action
|
||||||
|
![image](https://user-images.githubusercontent.com/105986/169638740-abecde84-d33b-45ce-932c-d465c6650334.png)
|
||||||
|
## 3. result
|
||||||
|
|
||||||
|
**Word and definition:**
|
||||||
|
![image](https://user-images.githubusercontent.com/105986/169638761-f67c009d-27cd-440d-bafa-ebbdce9577e3.png)
|
||||||
|
|
||||||
|
**Sentence, word, and definition:**
|
||||||
|
![screenshot](https://user-images.githubusercontent.com/69171671/224497528-889d6393-e04d-4af7-b1a7-816ba010f2b2.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Using URI schemes
|
## Using URI schemes
|
||||||
|
|
||||||
`goldendict://word` link can be use to query a word directly on Goldendict.
|
`goldendict://word` link can be use to query a word directly on Goldendict.
|
||||||
|
@ -11,7 +55,3 @@ On your Anki card's template, you can add the code below to have a "1 click open
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that this feature doesn't available on macOS
|
Note that this feature doesn't available on macOS
|
||||||
|
|
||||||
## AnkiConnects
|
|
||||||
|
|
||||||
See [how to connect with anki.md](https://github.com/xiaoyifang/goldendict/blob/staged/howto/how%20to%20connect%20with%20anki.md)
|
|
|
@ -42,7 +42,16 @@ nav:
|
||||||
- Portable Mode: topic_portablemode.md
|
- Portable Mode: topic_portablemode.md
|
||||||
- Custom transliteration: topic_transliteration.md
|
- Custom transliteration: topic_transliteration.md
|
||||||
- Customize Dictionary Name: custom_dictionary_name.md
|
- Customize Dictionary Name: custom_dictionary_name.md
|
||||||
|
- OCR Integration: howto/How to use ocr together with GoldenDict.md
|
||||||
- Report Bugs & Feedbacks: feedbacks.md
|
- Report Bugs & Feedbacks: feedbacks.md
|
||||||
- Contributor Guides:
|
- Contributor Guides:
|
||||||
- Developer: developer.md
|
- Developer: developer.md
|
||||||
|
- How to:
|
||||||
|
- Build and debug with VS2019: howto/how to build and debug with VS2019.md
|
||||||
|
- Compile with cmake: howto/how to compile with cmake.md
|
||||||
|
- Customize the opencc: howto/how to customize the opencc.md
|
||||||
|
- Qt version and github action: howto/how to find out the latest qt version and module in github qt action.md
|
||||||
|
- Use .clang-format: howto/how to use .clang-format to format the code.md
|
||||||
|
- Breadpad crash analysis: howto/how to use breadpad crash analysis.md
|
||||||
|
- Build ffmpeg on Windows: howto/how to build ffmpeg for visual studio.md
|
||||||
- 中文文档: index_cn.md
|
- 中文文档: index_cn.md
|
||||||
|
|
Loading…
Reference in a new issue