Giter Club home page Giter Club logo

mittelmark / dgtcl Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 2.0 3.74 MB

Pandoc filters for Tcl, GraphViz dot syntax, LaTeX equations, PlantUML, Mermaid, PIC and Pikchr diagrams, R plots, ABC music notation, SQLite code, file includes and code for a few Tcl packages and Tk widgets.

License: MIT License

Tcl 92.99% CSS 1.61% TeX 3.36% Makefile 0.39% Roff 1.63% Lua 0.01% Shell 0.03%
tcl tk pandoc-filter latex-math pandoc pandoc-filters markdown abc-notation sqlite3

dgtcl's People

Contributors

github-actions[bot] avatar mittelmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ad-pro herberthhc

dgtcl's Issues

When shtmlview opens off-line file.html, it doesn't run links properly

Having test.html:

    <!DOCTYPE html>
    <html>
    <head>
    <link rel="stylesheet" href="/home/apl/TMP/mkdoc.css">
    </head>
    <body>

    <h2>Testing shtmlview</h2>
    <p>Click: <a href="https://wiki.tcl-lang.org/">Tcl/Tk</a></p>

    </body>
    </html>

and running the code:

    package require Tk
    package require snit
    lappend auto_path [file dirname [info script]]
    package require shtmlview::shtmlview
    set w [::shtmlview::shtmlview .htm]
    $w browse ~/TMP/test.html
    pack $w -expand 1 -fill both

and clicking the link, we get the error:

err_link

tcl code block should not be evaluated by default

When i use pandoc --filter... with block code :
```tcl
puts hello
```
the code is evaluated and display 'hello'

BUT in markdown, this syntax is used just for syntax highlighting, not to evaluate a code and display the result of the code.
You should set 'eval=false' by default

Ctrl+C in shtmlview

Selecting some text in shtmlview and pressing Ctrl+C, we get Tcl error:

invalid command name "tk::_textCopy"
invalid command name "tk::_textCopy"
    while executing
"tk::_textCopy .htm.mf.helptext"
    (command bound to event)

Unexpected file out.json

An unexpected file 'out.json' is written in $HOME directory when executing 'pandoc --filter pandoc-tcl-filter.tapp ...'
It happens even if the file does not contain block code.
( this file, if needed, should be in /tmp or .cache )

unmatched open brace in list

When testing this new addition, I get the following error using the filter version (not the standalone tapp):

pandoc threshold-analysis.tmd -f markdown -t markdown -o test.md --filter /Users/Torsten/Tcl/apps/pandoc-tcl-filter/pandoc-tcl-filter.tcl 
unmatched open brace in list
    while executing
"llength $res"
    (procedure "main" line 78)
    invoked from within
"main $jsonData"
    invoked from within
"puts -nonewline [main $jsonData]"
    (file "/Users/Torsten/Tcl/apps/pandoc-tcl-filter/pandoc-tcl-filter.tcl" line 675)
Error running filter /Users/Torsten/Tcl/apps/pandoc-tcl-filter/pandoc-tcl-filter.tcl:
Filter returned error status 1

The 'tmd' file is my markdown file with Tcl code blocks. It seems that the $res in line 616 of pandoc-tcl-filter.tcl is not a clean Tcl list.

I wish I could extract the Tcl code blocks into a Tcl file from the original 'tmd' file to test that it is not a problem with my code. But, could this be something in the filter code?

tpack doesn't provide all tar procedures

I have written a program that uses tcllib's tar package, and found that when I tried to build it using tpack that tpack overrides the tar that I included in my app.vfs/lib directory which creates a problem because tpack's tar doesn't include all of the procedures that normal tar does (namely ::tar::contents) in the output.tapp file. I don't understand why this is because I can see that the tpack script includes this procedure.

When shtmlview opens off-line file.html, it doesn't see file.css

Having test.html:

    <!DOCTYPE html>
    <html>
    <head>
    <link rel="stylesheet" href="/home/apl/TMP/mkdoc.css">
    </head>
    <body>

    <h2>Testing shtmlview</h2>
    <p>Click: <a href="https://wiki.tcl-lang.org/">Tcl/Tk</a></p>

    </body>
    </html>

and running the code:

    package require Tk
    package require snit
    lappend auto_path [file dirname [info script]]
    package require shtmlview::shtmlview
    set w [::shtmlview::shtmlview .htm]
    $w browse ~/TMP/test.html
    pack $w -expand 1 -fill both

we don't get rendering the page with mkdoc.css
The reason is in shtmlview, not in mkdoc of course.

scrolling with the mouse wheel

The scrolling with the mouse wheel doesn't work, only with the scroll bar and navigating keys.
Why? The wheel is a convenient thing.

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.