head 1.12; access; symbols pkgsrc-2023Q4:1.12.0.6 pkgsrc-2023Q4-base:1.12 pkgsrc-2023Q3:1.12.0.4 pkgsrc-2023Q3-base:1.12 pkgsrc-2023Q2:1.12.0.2 pkgsrc-2023Q2-base:1.12 pkgsrc-2023Q1:1.11.0.10 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.8 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.6 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.4 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.11.0.2 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.10.0.2 pkgsrc-2021Q4-base:1.10 pkgsrc-2021Q3:1.9.0.6 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.4 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.2 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.7.0.2 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.6.0.2 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.5.0.2 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.4.0.2 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.3.0.12 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.8 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.6 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.4 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.2 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.2.0.12 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.10 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.8 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.6 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.4 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.1.0.4 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.2 pkgsrc-2017Q1-base:1.1; locks; strict; comment @# @; 1.12 date 2023.05.26.20.38.47; author schmonz; state Exp; branches; next 1.11; commitid T31tVOILmNfsXvqE; 1.11 date 2022.02.23.08.20.29; author fcambus; state Exp; branches; next 1.10; commitid bd3Q51CAj7tQyItD; 1.10 date 2021.11.05.11.06.24; author fcambus; state Exp; branches; next 1.9; commitid 5PdtZGK0MEQ01BfD; 1.9 date 2021.02.21.13.29.23; author fcambus; state Exp; branches; next 1.8; commitid Ra91cIUDx7ze4AIC; 1.8 date 2021.02.04.09.09.42; author fcambus; state Exp; branches; next 1.7; commitid j32VR7DasWY1bnGC; 1.7 date 2020.12.10.09.19.35; author fcambus; state Exp; branches; next 1.6; commitid PQZg4oU5lKNY1bzC; 1.6 date 2020.07.09.19.38.02; author fcambus; state Exp; branches; next 1.5; commitid 4AQjEccpSH86prfC; 1.5 date 2020.05.22.19.32.02; author fcambus; state Exp; branches; next 1.4; commitid 6Ne050ZKJ6QAUg9C; 1.4 date 2020.03.07.22.17.01; author fcambus; state Exp; branches; next 1.3; commitid Iar5NoBDvJtKgwZB; 1.3 date 2018.10.17.07.01.39; author maya; state Exp; branches; next 1.2; commitid Uw1w43kolOePuhWA; 1.2 date 2017.09.16.14.27.48; author ryoon; state Exp; branches; next 1.1; commitid 3tqdJXlOBXVoHq7A; 1.1 date 2017.03.08.15.05.02; author wiz; state Exp; branches; next ; commitid QJyDKD1OwS3Q4LIz; desc @@ 1.12 log @Update to 1.0.2. From the changelog: 1.0.2: Accept DOS CRLF newlines in all situations. Prior to this, CRLF newlines would cause problems in some contexts. Add support for pandoc title blocks as a metadata block syntax choice. Pandoc and MMD syntaxes are mutually exclusive, so only one may be used in any given document. The syntax is documented in lowdown(5). While there, support starting and ending an MMD metadata block with "---" on its own line, as in the MMD specification. Add the --html-titleblock option. If specified, output a Pandoc-style title header. Pandoc has a poorly-executed feature where -stman outputs have the title metadata line additionally parsed into a manpage title, section, and optional source and volume. This allows titles like `TITLE(1) Source | Volume` to be split into their respective manpage parts -- but only when in -stman mode, so an HTML document generated from the same page will not inherit the additional parsing. In lowdown(5), introduce this parsing for all outputs if --parse-mantitle is specified, which is now the default. Behaviour change: do not use "Untitled article" as the default title for media supporting (or requiring) titles when in standalone -s mode. Instead, just the empty string if a title is required. This is a more logical choice: not only is "Untitled article" language-specific, it also assumes the output is an article. For the previous behaviour, `--mtitle="Untitled article"` may always be used. Fix support for GFM tables. Specifically, don't arbitrarily require a certain three or more dashes/colons per cell in the layout row. Also allow for escaped vertical bars in the header row. 1.0.1: Numerous build and configuration improvements (via oconfigure) for building into WASI targets and on Mac OS X. Add -L for listing all metadata keys. Some fixes to smart typography around hard linebreaks. These aren't likely to affect normal documents. Recognise void HTML elements as block elements. Switch between types (e.g., unordered to ordered) instead of continuing with the current list type. Fix parsing of block versus non-block lists when switching between list types. Fix parsing of block versus non-block lists when sublists contain block elements, but top-level lists don't. The Markdown spec isn't clear on how to accept these instances, so use pandoc as a guiding tool. For -tman output, normalise list marker widths (unordered or ordered) to three spaces by default, increasing for ordered lists depending on the number of entries. For -tms, it's five. Make other small cleanups to -tms, making sure that paragraph indentation looks the same as with -tlatex. Fix that escaped text (e.g., `\-\-foo`) is not changed by the smart typography formatter. Use `TP` in -tman for definition lists. To align with existing lists, use a subsequent paragraph offset of three. Similarly, use `XP` for -tms. pkgsrc changes: - Libtoolize for portable shared libraries. @ text @@@comment $NetBSD: PLIST,v 1.11 2022/02/23 08:20:29 fcambus Exp $ bin/lowdown bin/lowdown-diff include/lowdown.h lib/liblowdown.la lib/pkgconfig/lowdown.pc man/man1/lowdown-diff.1 man/man1/lowdown.1 man/man3/lowdown.3 man/man3/lowdown_buf.3 man/man3/lowdown_buf_diff.3 man/man3/lowdown_buf_free.3 man/man3/lowdown_buf_new.3 man/man3/lowdown_diff.3 man/man3/lowdown_doc_free.3 man/man3/lowdown_doc_new.3 man/man3/lowdown_doc_parse.3 man/man3/lowdown_file.3 man/man3/lowdown_file_diff.3 man/man3/lowdown_gemini_free.3 man/man3/lowdown_gemini_new.3 man/man3/lowdown_gemini_rndr.3 man/man3/lowdown_html_free.3 man/man3/lowdown_html_new.3 man/man3/lowdown_html_rndr.3 man/man3/lowdown_latex_free.3 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_odt_free.3 man/man3/lowdown_odt_new.3 man/man3/lowdown_odt_rndr.3 man/man3/lowdown_term_free.3 man/man3/lowdown_term_new.3 man/man3/lowdown_term_rndr.3 man/man3/lowdown_tree_rndr.3 man/man5/lowdown.5 share/lowdown/odt/styles.xml @ 1.11 log @lowdown: update to 0.11.0. Version 0.11.0, 2022-02-21 Add class and identifier extended attributes to headers. These are stipulated in PHP Markdown Extra. Documentation in lowdown(5). When using header identifiers (the default) and the names collide, use pandoc's method of creating unique header names. Also handle the case of markup in headers and the identifier created from those to also be like pandoc. This isn't a fix, but rather make output consistent with other tools. Fix output of how links are handled in -Tms when part of headers. The same applies to other block-level macros with link children such as in definition lists. This also cleans up how headers are shown in the PDF TOC. While here, make header identifiers the same as in -Thtml so that intra-document links are consistent, and enable linking within a document using the PDF markers. Fix footnotes to be actual footnotes in -Tlatex and -Tms instead of endnotes. The other formats (-Tman, etc.) all continue to use endnotes. The note system has internally been cleaned up and now allows for more flexible note placement, e.g., side-notes. Allow footnotes to properly exist in -Tlatex tables. Also allow for table alignment. Bump the minor number as the ABI has been tidied up with respect to footnotes: they're now all in their LOWDOWN_FOOTNOTE blocks instead of split into definitions and references. The LOWDOWN_DOC_FOOTER element, which was not used, has also been removed. The system in general has spent many, many computer-hours being fuzzed with AFL thanks to hardware donated by Michael Dexter. Thank you! Finally, make -T be a synonym for the new -t, which is used by pandoc. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.10 2021/11/05 11:06:24 fcambus Exp $ d5 1 a5 2 lib/liblowdown.a lib/liblowdown.so.1 @ 1.10 log @lowdown: update to 0.10.0. Version 0.10.0, 2021-10-08 Add "flat" OpenDocument output with -Tfodt. This implements the OpenDocument v1.3 standard, and is readable at least on LibreOffice. This further implements -Tfodt change tracking in lowdown-diff(1). It does not support images or definition lists yet. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.9 2021/02/21 13:29:23 fcambus Exp $ d6 1 d43 1 @ 1.9 log @lowdown: update to 0.8.2. Version 0.8.2, 2021-02-19 Fix tables as processed by the difference engine. Tables are now fully opaque, which means that any changes will result in the deletion and re-addition of the table. This isn't a good fix, but it does mean that any tables run through the difference engine will be sane for output. Fix metadata to also be properly handled by both the difference engine and conforming front-ends. This is a bit unusual since metadata is both processed during parse and also affects document output, such as in document title. For now use the same rule that front-ends with metadata differences affecting document layout (e.g., title) use the new form, if changed. Lastly, fix footnote reference. When they're emitted in the new document, the reference definitions are re-ordered in the correct way to allow -Tms and such to work properly. While here, make sure that all printed footnote numbers start at one and colours are properly represented in output. Split lowdown(1) into lowdown-diff(1) for easier reading. Properly render tables for -Tgemini as fixed-width displays. By default, render Gemini link labels using "Excel" format (hexavigesimal) with the option of using Roman numerals (--gemini-link-roman) or without labels at all (--gemini-link-noref). This choice of default may change in later versions, hwoever. @ text @d1 1 a1 1 @@comment $NetBSD$ d34 3 @ 1.8 log @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. @ text @d7 1 @ 1.7 log @lowdown: update to 0.7.5. Version 0.7.5, 2020-12-09 - Add support for the Gemini protocol I've been hearing so much about. This may now be used from lowdown(1) or as a library in lowdown(3). This is a very simple output: it basically does no formatting at all, but does have some logic to shuffle around links. Version Version 0.7.4, 2020-08-29 - Bug-fix: don't emit stray .PP macros when in -Tman or -Tms mode. This bug was introduced in version 0.7.3. - The library is now usable from C++ applications as-is, without needing extra compilation flags. - Add missing lowdown_diff(3) and lowdown_metaq_free(3) manpages. Version 0.7.3, 2020-08-20 - Fix some smart typography bugs, specifically with ending single or double quotes. While doing so, create a regression suite for smart typography and update the manpage. Bug submitted by Larry Kollar, thanks! - Make base header level metadata key work properly. Another bug submitted by Larry Kollar, thanks! - Fix --nroff-hard-wrap to emit trailing newlines. Yet another bug submitted by Larry Kollar, thanks! Larry further suggested using typographic conventions in both the -Tlatex and -Tms output to have initial paragraphs not indent, but subsequent ones should. This is the default mode in LaTeX, which I was disabling. I've now removed my override to be more like default LaTeX, and Larry proposed an initial patch for having -Tms do the same. Thanks yet again! @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.6 2020/07/09 19:38:02 fcambus Exp $ d29 1 a35 2 man/man3/lowdown_tree_free.3 man/man3/lowdown_tree_new.3 @ 1.6 log @lowdown: update to 0.7.1. Version 0.7.1, 2020-06-21 - For -Tms, make numbered output the default. This is because earlier, it was not possible to make numbered output at all with --nroff-groff. Also clarify the role of --no-groff while at it. - Add --latex-no-numbered to -Tlatex for symmetry with -Tms. - Initial support for extended image attributes as in PHP Markdown Extra. For the time being, these only allow for non-pixel widths and heights for images. Spend time in the documentation explaining image support, as it's a little complicated: LaTeX and HTML support any images, but ms only supports EPS and PS, and only in block mode. (Among other complexities...) - Changes to internal API: the hdoc and hbuf structures have been renamed to struct lowdown_doc and struct lowdown_buf. First, I dislike typedefing away the fact that a variable is a structure very much. Second, the names were a holdover from the old system and shouldn't be part of the exported API. - Add lowdown_buf_new(3) and lowdown_buf_free(3) to make the low-level library usable, where before it was pointing to private functions. Version 0.7.0, 2020-06-04 - Simple support for LaTeX documents with -Tlatex. This will be expanded in future versions, but for now gets most documents having maths and graphics, too. - Significantly improve metadata handling. Until now, metadata was handled inconsistently across output formats, and not always in line with the documented behaviour with respect to overriding. Now, all of the basic metadata keys are properly handled, RCS-specified keys properly override, and all of these is documented more rigorously in lowdown(1). - Support base header level metadata on all outputs. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.5 2020/05/22 19:32:02 fcambus Exp $ d13 1 d19 3 d28 1 @ 1.5 log @lowdown: update to 0.6.5. ChangeLog: Version 0.6.5, 2020-05-20 - Fix an off-by-one where smarty-pants would be applied to some terms not on a word boundary. For example, 1/40 was erroneously construed as 1/4 then a zero. - Use pkg-config(1) for the installed library and improve the documentation. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.4 2020/03/07 22:17:01 fcambus Exp $ d11 2 d21 3 @ 1.4 log @lowdown: update to 0.6.1. ChangeLog: lowdown 0.6.1: - Quick fix: we never actually... printed for the diff. lowdown 0.6.0: - Pull in newest oconfigure. - Add common usage. - Emit surrounding

for a list item if it's in a block and not already containing block element(s). - Bring docs up to date with code. - Allow blank-separated definition key/value pairs to trigger block mode. - Record whether a paragraph ends with a blank line or not. - Proper styling of line prefixes. - Get proper spacing for definition lists with -Tterm. - Paragraphs in definition values don't get two newlines. - Don't needlessly break up paragraphs that have a dli prefix in them when within a list context. - Show in alpha order. - Document definition lists. - Make line breaking around definition lists consistent. - Merge multiple definition lists. - Report definition list status. - Complete parsing support for single-title description lists. There's still work to be done, but this covers most uses. - Recognise two newlines before a dli prefix as starting a block dli. - Parse multiple definition list titles, don't parse zero-length trailing definition list data, and properly form nroff definition lists w/multiple datas. - Add definition lists to -Tterm, documentation to nroff, forgotten header change. - Add nroff support for definition lists and clean up regular lists, too. - Parse definition lists by default and add disabling documentation for them. - Support for definition lists. - const-ify and make sure formatters don't puke on definition lists. - Add initial support for PHP Markdown Extra (and the many others inheriting this functionality) definition lists. So far very simple and not enabled by default. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.3 2018/10/17 07:01:39 maya Exp $ d6 1 @ 1.3 log @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. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.2 2017/09/16 14:27:48 ryoon Exp $ a12 1 man/man3/lowdown_errstr.3 d21 3 @ 1.2 log @Update to 0.2.4 * Add lowdown(3) library * Bugfixes @ text @d1 1 a1 1 @@comment $NetBSD$ d3 1 d9 1 d15 1 d25 1 @ 1.1 log @Import lowdown-0.1.9 as textproc/lowdown. lowdown is just another Markdown translator. It can output traditional HTML or a document for your troff type-setter of choice, such as groff(1), Heirloom troff, or even mandoc(1). lowdown doesn't require XSLT, Python, or even Perl - it's just clean, secure, open source C code with no dependencies. @ text @d7 15 @