Code Monkey home page Code Monkey logo

Comments (6)

c-okelly avatar c-okelly commented on July 2, 2024

Can you expand on the example? I'm not exactly sure what you mean?

Like a secondary .html file that is used is just inserted as is?

from org_to_anki.

michaelsjackson avatar michaelsjackson commented on July 2, 2024

Yes, exactly, as you put the path to .png, we would put the path to some .html file on our harddisk, same as pdf example would be a prepared .html with a few sentences only inside.

One example: Those .html files could contain source codes, converted from source codes via highlight for example, just as one use case scenario.

from org_to_anki.

c-okelly avatar c-okelly commented on July 2, 2024

Ye it's an interesting idea but I really don't think there is much demand for something like that.

Also the add-on already supports source code with syntax highlighting

from org_to_anki.

michaelsjackson avatar michaelsjackson commented on July 2, 2024

Well, I do not use it for source codes. πŸ˜„ It should be just an example so many people understand where it could be used. I create my own language definitions, on the fly, just adding a list of "important" words, so those are shown in a different color or bold, just to emphasize them. If you want to convert quickly a huge list of sentences, for example books 😸 this technique can be useful, even not knowing what the book is about beforehand, you would just do some pre analysis on most used words, most used word pairs, filtering out disturbing stopwords, plus use automatically generated noun lists, a combination of those, then take e.g. head 50 of those words, just as one technique. We can combine tools freely, even if it was developed originally for source code highlighting, we can highlight any other text as well.

Regarding not much demand, is a weak thinking style, but no problem, whoever needs it so hardly can develop and use it, the idea is here now, anyone can read and think about it. Thanks for responding.

Those important words one could not only highlight but also cloze delete!

from org_to_anki.

c-okelly avatar c-okelly commented on July 2, 2024

Regarding not much demand, is a weak thinking style, but no problem, whoever needs it so hardly can develop and use it, the idea is here now, anyone can read and think about it. Thanks for responding.

To be more clear on what I really mean is that without a few people asking for something I do find it a bit hard to understand exactly what their usecase is. Thus is can be hard to design acceptance criteria to meet them. I general the conversation is a lot easier with some who is technical as they can express more clearly what they want.

For the example of the html files a few question would come to to mind straight away.

  1. Would Anki support a full html page being embedded eg <html>.......</html>
  2. Should I expect a full html page from the user
  3. If i just support sinppets instead because anki does support a full page do I warn users that what they are uploading won't work or do I try and parse out a snippet from what they have provided
  4. etc

from org_to_anki.

michaelsjackson avatar michaelsjackson commented on July 2, 2024
  1. This is not necessary, just take the content of body, ignoring rest.
  2. No, only what is output of highlight. Preprocessed according to 1.

Important is to find a way which will work always in Anki.

Probably I should check the requirements of Anki first.

from org_to_anki.

Related Issues (20)

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.