GithubHelp home page GithubHelp logo

supermemo / supermemoassistant.plugins.pdf Goto Github PK

View Code? Open in Web Editor NEW
32.0 10.0 5.0 17.22 MB

Incremental PDF for SuperMemo

Home Page: https://www.supermemo.wiki/sma/

License: MIT License

C# 98.33% HTML 1.67%
supermemo pdf knowledge incremental incremental-reading

supermemoassistant.plugins.pdf's People

Contributors

bjsi avatar fossabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

supermemoassistant.plugins.pdf's Issues

How to run PDF plugin?

Hi there!
Please tell -- how to run PDF plugin? I have already run legacy SupermemoAssistant, but what to do next? Ctrl+Win+i doesn't work.

Image selection problem in some pdfs

I have found some issues with certain pdfs where you are unable to select images.
For example when I click and drag to try to select an image I get a whole band selected or in some cases a whole page.
image

I'm attaching an example
testreg2.pdf

remove extract from pdf

Hi
Is there a way to remove an image extract from the pdf? I tried removing the extract from SM but the selection still shows in the pdf.

Display out-of-extract area

At least two strategies:

  • Text highlight / font shaping
  • Two polygons (accounting for line feeds):
    • Top left corner of page -> Last out-of-extract text character
    • Last extract text character -> Bottom right corner of page

Polygons solution may be problematic for multi-columns, or unconventional text flows documents.

Shift selection

  • Shift + Click: Extend Selection from Start to Clicked character (or Clicked character to Start)
  • Ctrl + Shift + Click: Union extend, keeps existing selection, adds new selected text

Split

  • Bookmark Split
  • Style Split

PDF reader feature requests

Hi
After using the PDF reader on several documents I realize that there are a couple of features that could be quite useful:

  • button to go back to previous view. The pdf I was reading had a glossary at the end and it would be useful if I could go to the glossary, extract the definition of a word and then go back where I was before I went to see the glossary. This could also be useful if we have to go several pages before to find an image or an equation. Or simple review another section. Or clicking on a link to a reference. There is not way to go back and continue reading.
  • alternatively, (probably more useful but probably more difficult too) would be to be able to split the screen in 2 and see 2 different sections of the same pdf . This way if I need to see another section of the pdf I don't need to lose my current location.

Navigation

  • Mimic SM's arrow-keys nav
    • Alt+Left
    • Alt+Right
    • Ctrl+Up
    • Ctrl+...
  • By clicking on highlighted extracts (0.2 Milestone ?)

Improve logging

  • Fix missing logs issue
  • Add log messages in relevant parts

OCR configuration

Hi
Where do you set the Appid and AppKey in order to use the OCR option for math?
Also how do you get the Appid and AppKey to use?

thanks
Fred

Improve interaction with concepts

I use concepts to organize my knowledge tree, and I have two issues with the way the SMA PDF plugin deals with concepts.

To begin with, I should explain that I have all my PDFs under a single "PDFs" concept element directly under the root of my knowledge tree.

My first issue occurs after I click Learn and a PDF comes up. Suppose, as is common, that the default concept (next to the light bulb in the Elements window) is something other than "PDFs". For example, suppose I was making some "Math" concept elements before I clicked Learn. Now, whenever I try to make an extract from the PDF, I get this error:

Concept verification
Hook not a child of root!

To work around this error, whenever a PDF appears in learning, I switch the focus to the element window, make sure the default concept is "PDFs", and then switch back to the PDF window. Maybe my feature request here is for SMA to do those steps for me automatically, and also, when I move on from the PDF, to change the default concept back to what it was before.

My second issue is that I wish I didn't have to keep all my PDFs under one top-level concept. I wish I could organize them under the concept that they actually belong under.

Toolbars

  • Standard Tools
    • Select Tool
    • Pan Tool
  • Layout
    • Single
    • Continuous
    • Side by Side
    • Grid
  • Zoom
    • +/-
    • Combo box [100% โ†“]
    • Fit
    • Stretch
  • IPDF Tools
    • SM Extract
    • IPDF Extract
    • Split

Drag & move in PDF

Ability to navigate around PDF with holding middle scroll press or right mouse button

Generic Element data format

Encoding format:

  • Plain
  • Base64

Location:

  • Element HTML content
  • Element HTML Reference (comment)
  • Text Element
    • Guards against saving/loading to/from file & potential lock issues
    • Loading from memory => Faster + Complete control
    • IPDF_DATA[[base64 content here]]

image selection of text fragments

Hi
When reading technical documents we often have math inline with text. I don't see any way to select the math inside a paragraph as image. It is treated as text.

Ideally I would like to run the OCR on the inline math but again this is not possible right now since there is no way to force image selection inside a text paragraph

thanks

ALT+LEFT behavior

inside iPDF ALT+LEFT works only when you

  1. extract
  2. alt+tab out of reader
  3. alt+left to extract you made
  4. alt right back to PDF

after that you can ALT+LEFT in reader but not without these steps

Done / Delete

  • Mimic Done (Ctrl+Shift+Enter)
  • Mimic Delete (Ctrl+Shift+Del)

sync extract with pdf location

Hi
Is there currently a way to jump from an extract in supermemo to the pdf location where the extract was taken?

it would be very useful
thanks
FKG

Context Menu

  • On Selection
    • Copy
    • IPDF Extract
    • SM Extract
    • Search in ... (Open browser) (0.1 Beta)
  • Free
    • Pan Tool
    • Select Tool

IPDF Extract

Strategies:

  • Text selection (page range + start/end character index)

Remoting IPC issue

Exception: RemotingException: Port is Busy: All pipe instances are busy.

Possible lead: The exception is thrown when you try to access a pipe from multiple threads at once. Pipes are not thread-safe

Manual notes for context

scenario:

you are reading book which requires context from previous chapters.

You stop reading suddenly.

Next time you are back at the book you need to retrieve context somehow.

Some simple system to add manual context (notes) to certain point or words in the text.

Area clipping

  • Ctrl+Mouse Drag: Create clipping area
  • Area resize
  • Alt+X: SM Extract area as Image

Synchronize display with SM

When SM displays:

  • An IPDF Element
    • Display in IPDF
  • Non-related Element
    • Hide window ?
    • Empty window ? (faster to load next PDF ?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.