Skip to main content

Literate Programming Tool

Project description

Project HOME

Presentation

Documentation

Discussion

ChangeLog

Introduction

It’s new literate programming (LP) tool. Main idea is too avoid processing document (LP source) format, so input document format is supported by it’s traditional external tool. So it’s possible to have favourite workflow: WYSIWYG editing/text processing/converting with you favourite tool/suite (OpenOffice/Markdown tool/TeX/etc.).

At the moment, supported input formats are:

  • Markdown/MultiMarkdown

  • OpenOffice/LibreOffice

  • Creole

  • reStructuredText

  • TeX/LaTeX

  • Txt2Tags

  • Asciidoc

  • HTML/XML

  • … and any compatible

Supported schemes are:

  • FSfile - <path>

  • FSURLfile - file:///<path>

  • HTTPfile - http://<url><:port?>/<path>

  • FTPfile - ftp://<url><:port?>/<path>

  • SHELLfile - shell:<path-to-exec>#<options>

  • ZIPfile - zip:<path-to-zip>#<path-in-zip>

with crypting (ZIP), authorizing (FTP, HTTP).

Main features

  • definition of command (macros) with placeholders in the body (code chunk)

  • variables dictionaries (for substitution of placeholders)

  • pasting command code chunk with substitution of placeholders

  • definition of multiple parts code-chunks (for wrapping, etc.)

  • joining, ‘ending’, etc. several code chunks

  • ‘globbing’ commands when paste

  • including one file to another (library)

  • custom surround symbols (different for doc and code)

  • custom event handlers (filters in chain/pipe manner)

  • supporting URLs in file names (read via HTTP)

  • prepare of HTML files (with LP commands) for Web publishing

  • generating cross-references file

  • auto-detecting of cycles

  • configurable via simple .INI like file

  • works with Python 2.7 - Python 3+

  • works with Unicode (UTF8)

  • highly extendible

Installation

Install Python (2.7 or 3+) first, then run:

$ python setup.py install

Then run:

$ nlp.py -h

or:

$ python path-to-scripts/nlp.py -h

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanolp-1.0.zip (935.8 kB view details)

Uploaded Source

File details

Details for the file nanolp-1.0.zip.

File metadata

  • Download URL: nanolp-1.0.zip
  • Upload date:
  • Size: 935.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nanolp-1.0.zip
Algorithm Hash digest
SHA256 9b75897069236c05be79a7c569918c60c6cec6e129cd88f6ae3667eba22c9336
MD5 cd3f6c375cd798617ed70fb9965074cf
BLAKE2b-256 6ddd01653a78eba68e826e934c85900e71966ec2bad7c479e687383963ff18ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page