summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-11sfeed_html/sfeed_frames: fix bold markup for lynxHiltjo Posthuma
The previous style was not bold: <b><a href="">some link</a></b> The following link is now bold: <a href=""><b>some link</b></a>
2020-03-10sfeed_html/sfeed_frames: use a <pre> section per feedHiltjo Posthuma
This improves output with Dillo, w3m and possibly other simple browsers. - Dillo has a bug where it resets its block-style after <h2> when it is inside <pre>. Then it ignores newlines (inside <pre>) and the links are inlined. - w3m does not have a (line)margin for h2.
2020-03-10sfeed_plain: optimize utf8-decoding and column position calculationHiltjo Posthuma
Optimize for the common-case: assuming ASCII. The input is assumed to be valid UTF-8 input (output of sfeed). This saves 2 function calls for determining the width of a single ASCII character, which of course is 1. Ranges: < 32 are control-characters and are skipped. < 127 is typical ASCII and is 1 column wide. >= 127 is the normal path (control-character and multi-byte UTF-8). Tested on OpenBSD and Linux with various compilers (clang, gcc, pcc and tcc). On OpenBSD and Linux glibc much improvement. On Linux musl (almost) no change. In a common-case upto 40% performance improvement. In the worst-case negligible performance degration (<1%).
2020-02-23bump version to 0.9.16Hiltjo Posthuma
2020-02-23sfeed_update: don't preserve permissions of tmp files by moving, so copyHiltjo Posthuma
noticed on DragonFlyBSD where it prints a warning when moving the file from /tmp. To reproduce it: touch /tmp/file mv /tmp/file ~/ On other systems this would not print a warning, but it would preserve the group permissions etc.
2020-02-06README: simplify sfeed_archive example using awkHiltjo Posthuma
Also use a more portable date +'%s' (remove -j). NOTE though: date +'%s' is not POSIX, but it is supported in most cases.
2020-02-04sfeed_update: tiny style fix in commentHiltjo Posthuma
2020-02-04man page improvementsHiltjo Posthuma
- sfeedrc.5: use the same order as executed in the sfeed_update file. - sfeedrc.5: reference iconv and curl, which are option, but used by default. - sfeedrc.5: use a .Sh VARIABLES section for sfeedpath and maxjobs. - sfeed_update.1: split config format-specific documentation and reference it. - just use the term "url" instead of "uri". - shorten some texts, increasing readability.
2020-02-01sync README.xml comment about white-space handlingHiltjo Posthuma
2020-01-24cleanup some includesHiltjo Posthuma
2020-01-23improve man pages, some rewordings and add a referenceHiltjo Posthuma
2020-01-18minor style: use plain int for xml_entitytostr()Hiltjo Posthuma
2020-01-18improve XML entity conversionHiltjo Posthuma
- return -1 for invalid XML entities. - separate between NUL (&#0;) and invalid entities: although both are unwanted in sfeed. - validate the number range more strictly and don't wrap to unsigned. entities lik: "&#-1;" are handled as invalid now. "&#;" is also invalid instead of the same as "&#0;".
2020-01-18sfeed_opml_import: use code-style pattern similar to other programsHiltjo Posthuma
2020-01-18sfeed_web: remove unneeded optimizationHiltjo Posthuma
2020-01-18style.css: sort properties alphabeticallyHiltjo Posthuma
2020-01-18bump LICENSE year to 2020Hiltjo Posthuma
2020-01-18improve README a bitHiltjo Posthuma
2020-01-18add sfeed_gopher: generic gopher formatting program, remove sfeed_gphHiltjo Posthuma
2019-11-25bump version to 0.9.15Hiltjo Posthuma
2019-11-24README: add rss2email OPML import exampleHiltjo Posthuma
2019-11-24sfeed_opml_import: improve import with nested <outline>Hiltjo Posthuma
This nested format is used by Mozilla Thunderbird: <outline title=""> <outline type="rss" title="" text="" xmlUrl=""/> </outline> other tests: - newsboat -e uses the title attribute, not text. - rss2email 3.x, r2e opmlexport uses type, text and xmlUrl (correct).
2019-11-24OPML export improvementsHiltjo Posthuma
- set type="rss", this is mandatory for OPML2 (although we use OPML v1). This fixes importing OPML with Mozilla Thunderbird. other: - Do not set the optional htmlUrl. This was (ab)used for the baseurl. - awk: set FS using the awk -F option (no need for OFS here). - awk: remove forced C locale.
2019-11-22xml.c: upper-case named-entities are invalid in XMLHiltjo Posthuma
Named entities are case-sensitive and in XML lower-case. (In HTML some of these are valid. Although &APOS; is invalid there too). References: 4.6 Predefined entities: https://www.w3.org/TR/xml/#sec-predefined-ent In the definition of "match": https://www.w3.org/TR/xml/#dt-match "No case folding is performed."
2019-10-13bump version to 0.9.14Hiltjo Posthuma
2019-10-12string_append: check for addition and multiplication overflowHiltjo Posthuma
This could overflow / wrap the buffer. Note: SIZE_MAX is defined in POSIX to atleast 65535. On most platforms on 64-bit this is 0xffffffffffffffffUL bytes.
2019-10-05Makefile: simplify, remove config.mkHiltjo Posthuma
2019-09-30README: remove wrong $LC_LOCALE, also remove $LC_ALL from examplesHiltjo Posthuma
2019-09-12xml.h: remove #if 0 blockHiltjo Posthuma
2019-09-06README: minor typosHiltjo Posthuma
2019-09-06README: improve mail example and add an example similar to rss2emailHiltjo Posthuma
2019-09-05sfeed.c: fix typo in commentHiltjo Posthuma
2019-08-22README, README.xml: improve some wordingHiltjo Posthuma
2019-08-01bump version to 0.9.13Hiltjo Posthuma
2019-07-27README: improve dmenu exampleHiltjo Posthuma
2019-07-20documentation: document "new" items in format programsHiltjo Posthuma
2019-07-20sfeed_gph: prefix/mark "new" items with "N" too.Hiltjo Posthuma
minor consistency fix in sfeed_html.c comment
2019-07-20use the same XML handler names as the fields and shorten variable namesHiltjo Posthuma
Use the same XML handlers names as the fields to improve readability a bit. This is also consistent across all the programs using xml.c. Shorten the variable names aswell.
2019-07-20man pages: reference sfeed(5) in format programs, reword sfeed(5) descriptionHiltjo Posthuma
2019-07-14sfeed_update.1, sfeedrc.5: document replacing '/' in filenamesHiltjo Posthuma
2019-07-07sfeed_update.1: remove an old filename referenceHiltjo Posthuma
2019-07-04sfeed_gph: escape prefix pathHiltjo Posthuma
2019-07-04sfeed_gph: improvementsHiltjo Posthuma
- pledge(2) sooner. - Don't use getenv when it has no arguments and reads only from stdin. prefixpath is unused in that case. - Check for path truncation or an encoding error. No need to format the same path twice. - Use a fixed feed structure, no need for memory allocation in this format program. - Remove "totalnew" of all feeds. It was unused.
2019-07-04util: struct feed: remove old unused fields and tiny code-styleHiltjo Posthuma
2019-06-25bump version to 0.9.12Hiltjo Posthuma
2019-06-21README.xml: add comment about parser limitation/restrictionHiltjo Posthuma
2019-06-17sfeed: optimization: xmlattr: when not in some RSS/Atom tag skip further checksHiltjo Posthuma
2019-06-11fix typo in commentHiltjo Posthuma
2019-06-11xml: improve cdata and comment callback logicHiltjo Posthuma
it used to call both handlers twice at the end for "-->" (comment) or "]]>" (CDATA) with the data "" and length 0. Now it is only called when non-empty. The start and end handlers can still be used.
2019-06-11README: remove an old filename reference, simplify sfeed_update purpose hereHiltjo Posthuma