Giter Site home page Giter Site logo

jason-fox / fox.jason.passthrough.pandoc Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 4.0 619 KB

Pandoc DITA-OT Plug-in for extending the available input formats for DITA-OT. Non DITA input sources can be pre-processed to create create valid DITA source.

Home Page: https://jason-fox.github.io/dita-ot-plugins/pandoc

License: Apache License 2.0

Lua 97.96% Java 2.04%
dita-ot-plugin pandoc dita-ot markdown html rst odt dita word lua-script

fox.jason.passthrough.pandoc's Issues

Problem generating with Oxygen 24 on Windows

We don't ever use the terminal to generate DITA docs - only Oxygen.

My Pandoc executable is located here on my machine: C:\Users\gscott\AppData\Local\Pandoc
I use a plugin directory outside of Oxygen. dita.dir=C:\DITA-OT

I uncommented and set configuration.properties: pandoc.dir=C:\Users\gscott\AppData\Local\

Am I entering the path incorrectly? Here's the log: oxygenlog.txt

Thanks for your plugins

Hey Jason, this is not an "issue" but a compliment. You've added several cool plugins (such as this pandoc one) to the registry and I wanted to say thanks a lot and keep up the good work!

Regards,
Mark Giffin
https://github.com/markgif

Cannot convert a Word document to DITA topic

I had success in converting Markdown to DITA using the plugin.
I'm attaching a Word Document (DOCX).

Word File with various structures.docx

If I refer to it from a DITA Map:

<topicref format="pandoc" href="Word%20File%20with%20various%20structures.docx" type="topic"/>

the publishing is not able to convert it to DITA:

pandoc.process:
   [pandoc] Processing D:/projects/eXml/frameworks/dita/DITA-OT3.x/plugins/fox.jason.passthrough.pandoc-master/test/input-markdown/markdown.md
[file-rename] Moving 1 file to D:\projects\eXml\frameworks\dita\DITA-OT3.x\plugins\fox.jason.passthrough.pandoc-master\test\input-markdown\temp\html5\oxygen_dita_temp
    [pandoc] Processing D:/projects/eXml/frameworks/dita/DITA-OT3.x/plugins/fox.jason.passthrough.pandoc-master/test/input-markdown/Word File with various structures.docx
   [pandoc] Result: 1
   [pandoc] pandoc: File: openBinaryFile: does not exist (No such file or directory)

Running pandoc from the command line on the same Word document seems to work for me:

pandoc "D:/projects/eXml/frameworks/dita/DITA-OT3.x/plugins/fox.jason.passthrough.pandoc-master/test/input-markdown/Word File with various structures.docx"

Plugin fails to find pandoc even though it is installed

I receive this error when I run DITA-OT build, even though I've confirmed pandoc is installed and can run from anywhere:
/Applications/Oxygen XML Editor/frameworks/dita/DITA-OT3.x/plugins/fox.jason.passthrough.pandoc-master/resource/antlib.xml:27: Execute failed: java.io.IOException: Cannot run program "pandoc" (in directory "/var/folders/hm/51jzs7b97tvctw489dj_9w180000gp/T"): error=2, No such file or directory

Create pandoc transtype for XXX=>dita

Related: jason-fox/fox.jason.passthrough#1

  • Using the dita output format does not produce files with .dita or .xml extension. Instead it is the source files extension even though the contents of the converted file are in fact DITA. I'm forced to rename the extension.

This is a limitation of the dita plugin - the xslt there is converting the treated files with the same file names as the input. There is no extension point I could use, so I'd have to create a new transtype for pandoc-dita post-processing.

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.