pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/lowdown



Module Name:    pkgsrc
Committed By:   maya
Date:           Wed Oct 17 07:01:39 UTC 2018

Modified Files:
        pkgsrc/textproc/lowdown: Makefile PLIST distinfo

Log Message:
lowdown: update to 0.4.1.  From Charlotte Koch.

Push diff implementation (from libdiff) directly into the code instead of using the external library. From a patch by Anton Lindqvist as suggested on the OpenBSD ports mailing lits. Thank you!

Significantly update the diffing algorithm. First, make some general fixes to the algorithm. Second, improve the "optimisations" phase by adding top-down analysis that matches un-matched, 
non-terminal adjacent children. This helps with text changes in text-only paragraphs. Third, add a SES (shortest edit script) computation for matched adjacent text nodes. Lastly, add the new diff 
function manpages.

Portability: don't use %F for date formatting. This doesn't work with some libc versions. Also some documentation readability improvements.

Strip leading white-space from metadata extracted using -X. Sync with newest oconfigure.

Document the metadata functionality in lowdown(5), thanks to Christina Sophonpanich (thanks!). Also sync with newest oconfigure.

Add a "diff" tool, lowdown-diff(1). This utility uses an algorithm adapted from Detecting Changes in XML Documents to compute the semantic difference between two parse trees. It is fully documented. 
While there, also add more inter-paragraph spacing to -Tms output, producing more elegant documents, and continue fleshing out lowdown(5). Also add some more metadata recognition in -s output for all 
modes (copyright, affiliation, etc.).

Re-wrote escape parser to -Tms and -Tman to respect roff special characters. Have e-mail autolinks respect the mailto: in pdfhref'd output, and have links with mailto: omit the schema in display just 
like in -Thtml. Make block-list-items render properly in -Tms and -Tman. Also introduce lowdown(5), a work-in-progress to document the Markdown formatting accepting by this system. The first were 
noted, and the last contributed in full, by Christina Sophonpanich — thanks!

Fixed compilation on Linux and Mac OS X by adding memrchr compatibility. Noted by Christina Sophonpanich — thanks!

Considerable clean-up of -Tms and -Tman, with the aim of much higher PDF output quality: proper nested list support, hyperlinks, PS/PDF TOC, and even some images (PS/EPS only—experimental!). Also, 
after some pointers on the groff mailing list, use the correct invocation for generating PDF output. Fix up footnote printing to use automatic -ms macros and registers, if applicable.

Also added support for the "affiliation" metadata keyword.

Added some CommonMark support, initially just escaped newlines, supported only when the commonmark input flag is specified. Removed the sphd input flag in favour of commonmark. Also fixed raw HTML 
block outputting and setext-style level-two headers.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/lowdown/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/lowdown/PLIST \
    pkgsrc/textproc/lowdown/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/lowdown/Makefile
diff -u pkgsrc/textproc/lowdown/Makefile:1.4 pkgsrc/textproc/lowdown/Makefile:1.5
--- pkgsrc/textproc/lowdown/Makefile:1.4        Sun Sep 24 10:03:51 2017
+++ pkgsrc/textproc/lowdown/Makefile    Wed Oct 17 07:01:39 2018
@@ -1,10 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2017/09/24 10:03:51 wiedi Exp $
+# $NetBSD: Makefile,v 1.5 2018/10/17 07:01:39 maya Exp $
 
-DISTNAME=      lowdown-VERSION_0_2_4
-PKGNAME=       lowdown-0.2.4
+DISTNAME=      lowdown-0.4.1
 CATEGORIES=    textproc
-MASTER_SITES=  ${MASTER_SITE_GITHUB:=kristapsdz/}
-GITHUB_TAG=    VERSION_0_2_4
+MASTER_SITES=  https://kristaps.bsd.lv/lowdown/snapshots/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://kristaps.bsd.lv/lowdown/
@@ -16,9 +14,9 @@ HAS_CONFIGURE=        yes
 SUBST_CLASSES+=                install
 SUBST_SED.install+=    -e 's,/usr/local,${PREFIX},' \
                        -e 's,^MANDIR=.*,MANDIR=${PREFIX}/${PKGMANDIR},' \
-                       -e '/CC=.*/d' \
-                       -e '/CFLAGS=.*/d' \
-                       -e '/LDFLAGS=.*/d'
+                       -e '/^CC=.*/d'                                          \
+                       -e '/^CFLAGS=.*/d'                                      \
+                       -e '/^LDFLAGS=.*/d'
 SUBST_FILES.install+=  configure
 SUBST_STAGE.install=   pre-configure
 SUBST_MESSAGE.install= Fixing installation path.

Index: pkgsrc/textproc/lowdown/PLIST
diff -u pkgsrc/textproc/lowdown/PLIST:1.2 pkgsrc/textproc/lowdown/PLIST:1.3
--- pkgsrc/textproc/lowdown/PLIST:1.2   Sat Sep 16 14:27:48 2017
+++ pkgsrc/textproc/lowdown/PLIST       Wed Oct 17 07:01:39 2018
@@ -1,15 +1,18 @@
-@comment $NetBSD: PLIST,v 1.2 2017/09/16 14:27:48 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/10/17 07:01:39 maya Exp $
 bin/lowdown
+bin/lowdown-diff
 include/lowdown.h
 lib/liblowdown.a
 man/man1/lowdown.1
 man/man3/lowdown.3
 man/man3/lowdown_buf.3
+man/man3/lowdown_buf_diff.3
 man/man3/lowdown_doc_free.3
 man/man3/lowdown_doc_new.3
 man/man3/lowdown_doc_parse.3
 man/man3/lowdown_errstr.3
 man/man3/lowdown_file.3
+man/man3/lowdown_file_diff.3
 man/man3/lowdown_html_free.3
 man/man3/lowdown_html_new.3
 man/man3/lowdown_html_rndr.3
@@ -19,3 +22,4 @@ man/man3/lowdown_nroff_rndr.3
 man/man3/lowdown_tree_free.3
 man/man3/lowdown_tree_new.3
 man/man3/lowdown_tree_rndr.3
+man/man5/lowdown.5
Index: pkgsrc/textproc/lowdown/distinfo
diff -u pkgsrc/textproc/lowdown/distinfo:1.2 pkgsrc/textproc/lowdown/distinfo:1.3
--- pkgsrc/textproc/lowdown/distinfo:1.2        Sat Sep 16 14:27:48 2017
+++ pkgsrc/textproc/lowdown/distinfo    Wed Oct 17 07:01:39 2018
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/09/16 14:27:48 ryoon Exp $
+$NetBSD: distinfo,v 1.3 2018/10/17 07:01:39 maya Exp $
 
-SHA1 (lowdown-VERSION_0_2_4.tar.gz) = 2ed84bb432bfdceeccd168a82cc073133717716f
-RMD160 (lowdown-VERSION_0_2_4.tar.gz) = cbc0fbce8510e533c923174c0cec3f783d193ff8
-SHA512 (lowdown-VERSION_0_2_4.tar.gz) = aaebf9acceebca75e95ca19f70cc2b0b59c125a291841d7f00f40dd54878c1cb89e3deba9c3b87e2326d960a094a71fd293bc898bd164d3e4cc54c2c137c11aa
-Size (lowdown-VERSION_0_2_4.tar.gz) = 76634 bytes
+SHA1 (lowdown-0.4.1.tar.gz) = 127f85e340e70657544b3564ba2361ff059abe2d
+RMD160 (lowdown-0.4.1.tar.gz) = 7cba95e2e8ffbd77b0195418560c5e1800866b10
+SHA512 (lowdown-0.4.1.tar.gz) = 9d2c026fa319f7b9f5b2c11b67ec5ec97a70a5cf3560c55545e571c929c3a8253014fa219dc9a78e59472a0c94472d218630f214cf03276a3cb7065c5aa54ef6
+Size (lowdown-0.4.1.tar.gz) = 94595 bytes



Home | Main Index | Thread Index | Old Index