asciidoc-py / asciidoc-py2

Deprecated python2 implementation of AsciiDoc.py. See asciidoc-py/asciidoc-py for current work.
https://asciidoc.org/
GNU General Public License v2.0
466 stars 128 forks source link

Generating man pages on macOS is extremely slow #134

Closed martingalvan closed 3 years ago

martingalvan commented 6 years ago

Hi all,

I'm trying to generate a man page on macOS 10.13.6 (High Sierra). I did:

brew install asciidoc

and then added the following to ~/.bash_profile:

export XML_CATALOG_FILES=/user/local/etc/xml/catalog

Now, when I try to do a2x -f manpage mymanpage.1.txt, the command takes a really long time to complete (3.5 min). The same command takes less than a second on Ubuntu 18.04. What am I doing wrong?

elextr commented 6 years ago

How long does it take to run asciidoc -b docbook yourfile?

martingalvan commented 6 years ago

Just tried it, takes less than a second.

elextr commented 6 years ago

So the problem is in the docbook to manpage xslt transform. Thats a separate project, and I doubt anybody here can help you.

Alternatively you could try the Asciidoctor implementation of Asciidoc, it doesn't use docbook and xslt for manpages.

martingalvan commented 6 years ago

Alright, where should I report the issue instead?

elextr commented 6 years ago

Here I guess, don't know what version you installed but I guess the issues for the appropriate version.

martingalvan commented 6 years ago

I don't see which repository should I report the issue to, so I think I'll just try asciidoctor instead. Thanks.