pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/lowdown lowdown: update to 0.8.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/84d325f92aad
branches:  trunk
changeset: 446103:84d325f92aad
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Thu Feb 04 09:09:42 2021 +0000

description:
lowdown: update to 0.8.0.

ChangeLog:

Version 0.8.0, 2021-01-31

Recognise the volume, source, and section metadata. These are currently
only used by -Tman.

Convert all internal functions to return an error code on memory allocation
failure. Prior to this, these functions had a chance of exiting and
printing failure to stderr. Now, this is left as the responsibility of
the front-end. There's no significant API change except that all renderers
return a value.

Fix the difference engine in several subtle ways, improving the produced
scripts, and also fix crashes where similar text would match multiple
parts of the parse tree, resulting in assertions.

Re-write the -Tms and -Tman generator to use a completely different
internal algorithm. This algorithm, instead of formatting directly into
output, converts the AST into an array of output blocks marked either as
text, literal, macro, or font/colour change. An assembler for this array
manages newlines and spacing between blocks. This fixes all known instances
of unexpected line breaks and allows for significantly simplified handling
of text interspersed with macros (e.g., links, etc.). An API result of
this is that the tree passed to lowdown_nroff_rndr(3) is now const.

Recognise non-block and block lists for -Tlatex output.

Emit a UTF-8 preconv header to all -Tms and -Tman so that -Kutf8 need not
be passed to the formatter.

Remove the --nroff-hardwrap option, which needlessly complicates code
without benefit.

diffstat:

 textproc/lowdown/Makefile |   4 ++--
 textproc/lowdown/PLIST    |   5 ++---
 textproc/lowdown/distinfo |  10 +++++-----
 3 files changed, 9 insertions(+), 10 deletions(-)

diffs (51 lines):

diff -r 1341192ceb83 -r 84d325f92aad textproc/lowdown/Makefile
--- a/textproc/lowdown/Makefile Thu Feb 04 08:42:11 2021 +0000
+++ b/textproc/lowdown/Makefile Thu Feb 04 09:09:42 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2021/01/25 09:48:36 fcambus Exp $
+# $NetBSD: Makefile,v 1.15 2021/02/04 09:09:42 fcambus Exp $
 
-DISTNAME=      lowdown-0.7.9
+DISTNAME=      lowdown-0.8.0
 CATEGORIES=    textproc
 MASTER_SITES=  https://kristaps.bsd.lv/lowdown/snapshots/
 
diff -r 1341192ceb83 -r 84d325f92aad textproc/lowdown/PLIST
--- a/textproc/lowdown/PLIST    Thu Feb 04 08:42:11 2021 +0000
+++ b/textproc/lowdown/PLIST    Thu Feb 04 09:09:42 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2020/12/10 09:19:35 fcambus Exp $
+@comment $NetBSD: PLIST,v 1.8 2021/02/04 09:09:42 fcambus Exp $
 bin/lowdown
 bin/lowdown-diff
 include/lowdown.h
@@ -26,13 +26,12 @@
 man/man3/lowdown_latex_new.3
 man/man3/lowdown_latex_rndr.3
 man/man3/lowdown_metaq_free.3
+man/man3/lowdown_node_free.3
 man/man3/lowdown_nroff_free.3
 man/man3/lowdown_nroff_new.3
 man/man3/lowdown_nroff_rndr.3
 man/man3/lowdown_term_free.3
 man/man3/lowdown_term_new.3
 man/man3/lowdown_term_rndr.3
-man/man3/lowdown_tree_free.3
-man/man3/lowdown_tree_new.3
 man/man3/lowdown_tree_rndr.3
 man/man5/lowdown.5
diff -r 1341192ceb83 -r 84d325f92aad textproc/lowdown/distinfo
--- a/textproc/lowdown/distinfo Thu Feb 04 08:42:11 2021 +0000
+++ b/textproc/lowdown/distinfo Thu Feb 04 09:09:42 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.13 2021/01/25 09:48:36 fcambus Exp $
+$NetBSD: distinfo,v 1.14 2021/02/04 09:09:42 fcambus Exp $
 
-SHA1 (lowdown-0.7.9.tar.gz) = c6d289cfb1aacb8e16daabbdf85ce5e16a5f174e
-RMD160 (lowdown-0.7.9.tar.gz) = 389cbf1c384ef9fb18ecbf4feb1c41fc88ffd0a8
-SHA512 (lowdown-0.7.9.tar.gz) = ec642b285202c932394f84a29c04dfa21882abd4c2d0e80df0d9957c6dc1dc164933d274d034fc96501ca3c90dca42c82ad97f017b92e17f1f11388214458451
-Size (lowdown-0.7.9.tar.gz) = 190887 bytes
+SHA1 (lowdown-0.8.0.tar.gz) = 08cb4bbe000849350adf1b9f625446167bcacff6
+RMD160 (lowdown-0.8.0.tar.gz) = 8fe662a10b35448ac86b4a3f36e796bfc6eed1c1
+SHA512 (lowdown-0.8.0.tar.gz) = 53d59e1a82274fdbeb6b0c1ae7bb7abbd74475181ee3f3fed302f1990c8e2fd9e1cce114536151cf605ef47d1d0a3604ee9dafdef097218938d0cfa38d42c04f
+Size (lowdown-0.8.0.tar.gz) = 193798 bytes



Home | Main Index | Thread Index | Old Index