Code Monkey home page Code Monkey logo

Comments (12)

ProgramFan avatar ProgramFan commented on June 3, 2024

Maybe we shall move asciidoc to asciidoc support into a seperate class, to make the code cleaner.

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

@mojavelinux, How can I create an ordered list or an unordered list and replace the corrent block with the generated content in a treeprocessor? I have tried several approaches but no success yet.

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

Solved. Asciidoctor::Extension::parse_content can construct an AST from any content. So I can generated required asciidoc conent and use parse_content to generate blocks. To replace current block with new blocks, operate directly on block.parent.blocks.

from asciidoctor-bibtex.

mojavelinux avatar mojavelinux commented on June 3, 2024

That's indeed one way to do it. You can also construct the nodes using the API. It's best to look at the core parser to see how it's done.

Obviously you don't need to do the parsing...just create the :ulist block and add child ListItem objects to it. If you need a simple example, I can try to put one together.

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

Thanks, @mojavelinux. I experimented with the idea and it works well.

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

BTW. Is it possible for this extension to become part of asciidoctor.org? @mojavelinux

from asciidoctor-bibtex.

mojavelinux avatar mojavelinux commented on June 3, 2024

I experimented with the idea and it works well.

Great!

Is it possible for this extension to become part of asciidoctor.org?

Indeed. That would be wonderful! I think it will be less confusing for people if we disassociate from the asciidoc-bib fork. It will also give us more freedom to take it in our own direction. We can certainly reference asciidoc-bib in the README and explain that this extension was inspired by that one. But I don't think that we are a fork in the GitHub definition of the term.

Do you foresee the project supporting other bibliography schemas, or will it remain focused on bibtex? I ask because if it's the former, we might consider naming it asciidoctor-bibliography (similar to asciidoctor-diagram). But only if that's the case.

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

It is of course possible for this project to support other bibliography schemas. But since bibtex is used so widely in the scientific community, I would like to focus on bibtex and make it perfect. Focusing on bibtex also makes it easy to integrate with the latex toolchain, which is the de-facto standard in scientific publication.

One problem we may face when disassociating from the asciidoc-bib fork is the licence. asciidoc-bib is licenced under OpenWorks licence, which makes me doub if we can safely disassociate from the original package, since this extension reuses a lot of its code. Anyway, this extension is quite different from asciidoc-bib, and we can contact the original author if disassociation is necessary.

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

I checked the OpenWorks licence, it has almost no restrictions, given the licence itself is included somewhere in the software. So I will take your suggestion and brand this extension as "inspired by asciidoc-bib".

By the way, I have made a transfer request for this extension to be part of asciidoctor.org. Would you please check it? @mojavelinux

from asciidoctor-bibtex.

ProgramFan avatar ProgramFan commented on June 3, 2024

Hi, @mojavelinux, I have transfered the repo to asciidoctor.org but lost all administration rights (see #12 ). Would you please help restore it? Thanks a lot.

from asciidoctor-bibtex.

mojavelinux avatar mojavelinux commented on June 3, 2024

since bibtex is used so widely in the scientific community, I would like to focus on bibtex and make it perfect

Sounds good to me! I was asking in order to understand how best to choose a name for the project. Since the focus will remain on bibtex, I think we should keep the current name.

which makes me doub if we can safely disassociate from the original package

When I say "disassociate", I merely mean removing the upstream link on GitHub. That is unrelated to licensing compliance as it's specific to the GitHub UI.

we can contact the original author if disassociation is necessary.

We have every right to make that decision ourselves.

from asciidoctor-bibtex.

mojavelinux avatar mojavelinux commented on June 3, 2024

I've asked GitHub to remove the fork status.

from asciidoctor-bibtex.

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.