-
Notifications
You must be signed in to change notification settings - Fork 5
Area snapshot (left-> right), MathPix pricing, phrasing edits #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nikedinikedi
wants to merge
4
commits into
supermemo-wiki:develop
Choose a base branch
from
nikedinikedi:master
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b700a9c
Merge pull request #1 from supermemo/master
nikedinikedi 2ecab7f
added "Hotkeys not working currently"
nikedinikedi fe6be53
Elaborated Mathpix pricing with an example. Changed area snipping fro…
nikedinikedi 699285b
Added a short summary in the beginning of PDF section for experienced…
nikedinikedi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- **PDF element**: [Element in SuperMemo](content/images/plugin-pdf/pdf-element.png ':ignore'), which contains the data relating to an imported PDF. | ||
- **PDF window**: [The window](content/images/plugin-pdf/pdf-window.png ':ignore') that displays the actual PDF, and where extracts can be created. | ||
- **Sub-PDFs**: PDF elements which contain only a [part of your original PDF](content/images/plugin-pdf/pdf-subpdf-out-of-extract.png ':ignore'). | ||
- **Area snapshot**: Image selection mode which [captures a region](content/videos/plugin-pdf/pdf-image-drag-result) of your PDF into an image. Hold left or right click, then drag an area with your mouse. | ||
- **Multi-selection**: Selection that contains more than one object (text, image, area snapshot, OCR). Types of objects can be mixed and matched. To start a multi-selection, **hold** the <kbd>Ctrl</kbd> key, and select your content. | ||
- **Area snapshot**: Image selection mode which [captures a region](content/videos/plugin-pdf/pdf-image-drag-result) of your PDF into an image. Hold right click, then drag an area with your mouse. | ||
- **Multi-selection**: Selection that contains more than one object (text, image, area snapshot, OCR). Types of objects can be mixed and matched. To start a multi-selection, **hold** the <kbd>Ctrl</kbd> key, and select your content. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
### PDF: Force selection | ||
|
||
When you have PDF made of images only, or when you find it hard to select the image (interference with text) you can use force selection by holding <kbd>Right click</kbd>. This will ignore text selection. | ||
When you have PDF made of images only, or when you find it hard to select the image (because text is in the way) you can use force selection by holding <kbd>Right click</kbd>. This will ignore text selection. | ||
|
||
You can use <dfn aria-label="Selection mode that ignores text or image under the cursor. Hold Right click and drag to use.">force selection</dfn> with OCR as shown in the video clip below. (See [built-in OCR](#pdf-built-in-ocr)) | ||
|
||
|
@@ -16,27 +16,42 @@ You can use <dfn aria-label="Selection mode that ignores text or image under the | |
|
||
### PDF: Built-in OCR | ||
|
||
The PDF plugin implements an optional **OCR**, working with both **text** and **scientific formulas** (math, chemestry, ...). Make sure that you also configure the [LaTeX plugin](plugin-LaTeX). | ||
The PDF plugin implements an optional **OCR** functionality, which reads out text from images as well as converts scientific formulas (math, chemistry, ...) into Latex. For the latter, please make sure that the separate [LaTeX plugin](plugin-LaTeX) is correctly configured. | ||
|
||
#### Setup | ||
|
||
Behind the scene, SMA uses [MathPix](https://www.mathpix.com/) to recognize images. [Register](https://dashboard.mathpix.com/) an account to unlock the OCR feature. At the day of writing this guide, pricing is free up to 1000 requests. | ||
Behind the scene, SMA uses [MathPix](https://www.mathpix.com/) to recognize images. [Register](https://dashboard.mathpix.com/) an account to unlock the OCR feature. As of **24.2.2020**, pricing is free up to 1000 requests (1 request = 1 OCR on image/formula). | ||
|
||
Once you are registered, copy your **MathPix App Name** and **Key** and paste them in the [PDF plugin settings](#). | ||
!> **Example**: You want to OCR math book which holds 2000 pieces of formulas. First 1000 formulas you OCR are free, the other 1000 formulas will cost a total of $4. However, if you OCR the first 1000 formulas in January and second 1000 in February, it will cost you nothing. | ||
|
||
<div class="pure-g"> | ||
<div class="pure-u-1-3" style="padding-right: 30px;"> | ||
<img src="content/images/plugin-pdf/pdf-mathpix-pricing.png" /> | ||
<img src="content/images/plugin-pdf/pdf-mathpix-usage.png" /> | ||
</div> | ||
<div class="pure-u-2-3"> | ||
<img src="content/images/plugin-pdf/pdf-mathpix-pricing.png"width="220" height="240" /> | ||
</div> | ||
</div> | ||
|
||
*You can find amount of requests you made each month in https://dashboard.mathpix.com* | ||
|
||
|
||
|
||
|
||
|
||
Once you are registered, copy your **MathPix App Name** and **Key** and paste them in the [PDF plugin settings](#). | ||
|
||
Comment on lines
-23
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor improvements + example of payment system to those worried of using credit card etc. |
||
<div class="pure-u-2-3"> | ||
<img src="content/images/plugin-pdf/pdf-mathpix-settings.png" /> | ||
</div> | ||
|
||
</div> | ||
|
||
#### Using the OCR | ||
|
||
1. In the **PDF window**, press the <kbd>Alt</kbd> key, then capture an <dfn aria-label="Image selection mode which captures a region of your PDF into an image. Hold left or right click, then drag an area with your mouse.">[area snapshot](#extract-images)</dfn>. | ||
2. If your image was success recognized, a window titled *TeX editor* will display your result. | ||
#### How to use OCR | ||
|
||
1. In the **PDF window**, press the <kbd>Alt</kbd> key, then capture an <dfn aria-label="Image selection mode which captures a region of your PDF into an image. Hold right click, then drag an area with your mouse.">[area snapshot](#extract-images)</dfn>. | ||
2. If your image was successfully recognized, a *TeX editor* window pops up, in which you can preview your result and make changes before you extract it into SM. | ||
|
||
 | ||
|
||
|
@@ -105,7 +120,7 @@ There are two layers of settings available: | |
- **Global PDF settings**: To access these settings, either | ||
- <kbd>Right click</kbd> the  icon in your Window tray bar, and click on the <kbd>PDF</kbd> menu item | ||
- Press <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd> and click on the cog  icon next to the PDF plugin | ||
|
||
- **Per-PDF settings**: In the <dfn aria-label="The window that displays the actual PDF, and where extracts can be created.">PDF window</dfn>, press <kbd>Ctrl</kbd> + <kbd>O</kbd> to bring up [settings dialog ](content/images/plugin-pdf/pdf-per-pdf-settings.png ':ignore @tooltip-preview'). | ||
|
||
> [!NOTE] | ||
|
@@ -128,15 +143,12 @@ HotKeys | |
- SM extract (Alt+X) | ||
- Mark text as ignored (Ctrl+Shift+I) | ||
- Show selected text in Dictionary (Ctrl+D) | ||
- Go To Page (Ctrl+G) | ||
- SM Learn (Ctrl+L) | ||
- Learn And Reschedule (Ctrl+Shift+L) | ||
- SM Reschedule (Ctrl+J) | ||
- SM LaterToday (Ctrl+Shift+J) | ||
- SM Done (Ctrl+Shift+Enter) | ||
- SM Delete (Ctrl+Shift+Del) | ||
- SM Previous (Alt+Left) | ||
- SM Next (Alt+Right) | ||
- SM Parent (Ctrl+Alt+Up) | ||
- SM Child (Ctrl+Alt+Down) | ||
- SM Prev Sibling (Ctrl+Alt+Left) | ||
|
@@ -152,20 +164,28 @@ HotKeys | |
``` | ||
Non-hotkeys | ||
- OCR (Alt+Click) | ||
- Image area selection (Hold left click) | ||
- Force image area selection (Hold right click) | ||
- Image area selection (Hold right click) | ||
- Zoom (Ctrl+Wheel) | ||
- Extend text selection (Shift+Click, Shift+Left/Right) | ||
- Deselect (Escape) | ||
- PDF navigation (Up/Down/Left/Right/Pg. Down/Pg. Up/Home/End) | ||
- Select word (Double click) | ||
- Select paragraph (Triple click) | ||
- Select page text (Quadra click) | ||
- Select page (double click on empty space in page) | ||
- Extend page selection (Shift+Click page) | ||
- Add to selection (Hold ctrl) | ||
- Select image (Click image) | ||
``` | ||
``` | ||
Hotkeys not working currently: | ||
- Go To Page (Ctrl+G) | ||
- SM Previous (Alt+Left) | ||
- SM Next (Alt+Right) | ||
- Deselect (Escape) | ||
- Select paragraph (Triple click) | ||
- Select page text (Quadra click) | ||
``` | ||
|
||
|
||
|
||
> [!NOTE] | ||
> When you extract text from the PDF file, the windows error sound may play. You can [disable it by switching off system sounds](#faq). | ||
|
||
|
@@ -175,10 +195,6 @@ Non-hotkeys | |
|
||
## FAQ | ||
|
||
**Q: Concept verification error: hook is not a child of root!** | ||
|
||
A: Change currently activated concept as the one with hook in it for the PDFs. | ||
|
||
**Q: PDFs stop working after repair of SM collection** | ||
|
||
A: This is because when you do repair, SM restarts itself, while SMA doesn't. So the solution is to restart SMA manually. | ||
|
@@ -197,4 +213,4 @@ A: Use <kbd>Ctrl</kbd> + <kbd>G</kbd>. | |
|
||
**Q:How do I disable the Windows Sound from playing when I extract from a PDF?** | ||
|
||
A: In order to stop the sound from playing, you can right click the volume icon on the taskbar, then open the volume mixer and set system sounds to zero. | ||
A: In order to stop the sound from playing, you can right click the volume icon on the taskbar, then open the volume mixer and set system sounds to zero. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For experienced users who just want to glance at wiki