Giter VIP home page Giter VIP logo

mittelmark / pantcl Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 0.0 3.05 MB

Document conversion with Tcl based filters using pandoc or Tcl only. Example filter for ABC music, GraphViz, PlantUML, R, Python etc are provided.

License: BSD 2-Clause "Simplified" License

Tcl 91.41% Roff 1.29% CSS 0.36% TeX 6.53% Makefile 0.40% Lua 0.01%
diagram graphviz markdown pandoc pandoc-filter plantuml python r r-programming tcl

pantcl's People

Contributors

mittelmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pantcl's Issues

Question about eval=true

I have the feeling that with 0.9.9 version, for code/sqlite evaluation, you always need :

  • either eval=true
  • or environmental FILTEREVAL = true

I prefer this way, but that means your documentation is not up-to-date ( eval=true by default in your documentation)

Error with text containing '@'

pantcl version V0.9.0

When using pandoc --filter pantcl.tapp with a text like 'foo @text bar', i have an error :

===== ERROR LOG ========
Path element 9: "t" not found
while executing
"::rl_json::json get $jsonData blocks {*}$tkey"
(procedure "walk" line 30)
invoked from within
"walk $nkey $ind"
(procedure "walk" line 21)
invoked from within
"walk $nkey $ind"
(procedure "walk" line 21)
invoked from within
"walk $ckey $ind "
(procedure "walk" line 40)
invoked from within
"walk [list $i c $j]"
(procedure "main" line 59)
invoked from within
"main $jsonData"
invoked from within
"puts -nonewline [main $jsonData]"
(file "/home/myself/.bin/Xwriter/plugin/pantcl.tapp" line 1507)
Error running filter /home/myself/.bin/Xwriter/plugin/pantcl.tapp:
Filter returned error status 1

unexpected temporary files with sqlite/cmd filters

When using sqlite/cmd filters, you create files in the current folder.
As far as i understood, it's only temporary files that should be written in /tmp or $HOME/.cache/pantcl/ if possible
The 'file=...' should be reserved only if user want to redirect output to a permanent file, but i have the feeling you cannot make code evaluation without
if 'file=...' is absolutely necessary, may be you should authorize absolute path as 'file=/tmp/temp.c' ( I got an error when i tried: couldn't execute "./tmp/temp.c")

Note : i had problem with /tmp and ubuntu last time i tried ubuntu with my application. But .cache can be a good place for small files

low processing speed

The filters works on small document but introduce a high processing time with medium/high-sized document.
I have a difference of nearly 15 seconds with/without filters with an average laptop
This extra processing time append even if the document contains no code block

Is it possible to reduce this processing time with :

  • Disable some filters ?
  • Change the parsing strategy to apply your filters only on Code block ?

I have introduced your filters in my application : https://github.com/htopkill/Xwriter

Error with filter-pipe

Error with filter-pipe on this document: https://github.com/htopkill/test-only file : docs.md

=== ERROR LOG ===
Error running filter /home/myself/.bin/Xwriter/plugin/pantcl.tapp:
Filter returned error status 1
[WARNING] Could not parse YAML metadata at line 3794 column 1: Unexpected '`'
couldn't execute "R": no such file or directory
while executing
"open "|R -q --interactive --vanilla 2>@1" r+"
(procedure "filter-pipe" line 26)
invoked from within
"filter-pipe $c $d"
(procedure "main" line 78)
invoked from within
"main $jsonData"
invoked from within
"puts -nonewline [main $jsonData] "
(file "/home/myself/.bin/Xwriter/plugin/pantcl.tapp" line 1509)

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.