aboutsummaryrefslogtreecommitdiff
path: root/src/guile/skribilo/reader
AgeCommit message (Collapse)Author
2020-08-01Adjust autoload lists.Ludovic Courtès
In preparation for Guile 3 support, adjust #:autoload clauses to include list all the necessary bindings, or replace them with #:use-module.
2020-08-01Write '#:use-module', '#:export', etc. instead of ':use-module', etc.Ludovic Courtès
Changes made by running: for i in $(git ls-tree -r HEAD --name-only) ; do sed -i $i -e's/:use-module/#:use-module/g ; s/:autoload/#:autoload/g ; s/:export/#:export/g' ; done
2018-03-30syntax: Rename '_' to 'G_' to avoid issues on Guile 2.2.Ludovic Courtès
Failing to do that, literal '_' would not match in contexts such as 'match' patterns on Guile 2.2. * src/guile/skribilo/utils/syntax.scm (_): Rename to... (G_): ... this. * po/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * src/guile/skribilo.scm, src/guile/skribilo/ast.scm, src/guile/skribilo/biblio.scm, src/guile/skribilo/biblio/author.scm, src/guile/skribilo/condition.scm, src/guile/skribilo/engine.scm, src/guile/skribilo/engine/info.scm, src/guile/skribilo/engine/lout.scm, src/guile/skribilo/index.scm, src/guile/skribilo/package/base.scm, src/guile/skribilo/package/lncs.scm, src/guile/skribilo/reader/rss-2.scm, src/guile/skribilo/source.scm, src/guile/skribilo/sui.scm, src/guile/skribilo/biblio/template.scm, src/guile/skribilo/verify.scm: Use 'G_' instead of '_'.
2015-03-11Use quotes instead of backticks in user-facing messages.Ludovic Courtès
Suggested by Benno Schulenberg <coordinator@translationproject.org>. * doc/modules/skribilo/documentation/api.scm, src/guile/skribilo.scm, src/guile/skribilo/condition.scm, src/guile/skribilo/engine/lout.scm, src/guile/skribilo/package/base.scm, src/guile/skribilo/package/jfp.scm, src/guile/skribilo/package/lncs.scm, src/guile/skribilo/package/pie.scm, src/guile/skribilo/package/slide/latex.scm, src/guile/skribilo/utils/compat.scm, src/guile/skribilo/ast.scm, src/guile/skribilo/biblio.scm, src/guile/skribilo/engine/html.scm, src/guile/skribilo/engine/info.scm, src/guile/skribilo/index.scm, src/guile/skribilo/package/web-book2.scm, src/guile/skribilo/reader/rss-2.scm, src/guile/skribilo/source.scm, src/guile/skribilo/utils/compat.scm, src/guile/skribilo/verify.scm: Change `foo' to 'foo'.
2012-05-17Switch to GPLv3+.Ludovic Courtès
2011-09-15rss-2: Work around an obscure match bug (?).Ludovic Courtès
* src/guile/skribilo/reader/rss-2.scm (shtml->skribe): Change the order of the two tr/th/td/tc patterns; otherwise we'd get a match error, leading to a test failure in `rss-2.test'. Problem could not be reproduced outside of this context.
2009-03-24Add `(skribilo-module-syntax)'.Ludovic Courtès
* src/guile/skribilo/utils/syntax.scm (skribilo-module-syntax): New macro. * src/guile/*/*.scm: Use `(skribilo-module-syntax)' instead of `(fluid-set! current-reader %skribilo-module-reader)'. The goal is to be more compilation-friendly.
2009-03-17outline: Don't store multiple values in a single variable.Ludovic Courtès
Don't store multiple-value results in a single variable as it may behave in unspecified ways (see http://thread.gmane.org/gmane.lisp.guile.devel/8289). * src/guile/skribilo/reader/outline.scm (apply-any): New VALUE-COUNT argument. Properly handle multiple values, e.g., by not comparing multiple-value returns against `#f'. (make-line-processor, make-node-processor, make-document-processor): Safely assume `apply-any' always returns the right number of values.
2008-12-23rss-2: Rename `generic-tag->skribe' to `shtml->skribe'.Ludovic Courtès
2008-12-23rss-2: Fix buglets.Ludovic Courtès
* src/guile/skribilo/reader/rss-2.scm (html-string->parse-tree): Remove. (generic-tag->skribe): Handle `*TOP*' here. This allows us to make sure we generate a valid tree, regardless of whether TAG is flat or not. (item->section): Parse the title as HTML, too. Don't `unquote-splice' the result of `generic-tag->skribe'. (feed->document): Likewise.
2008-12-23rss-2: Remove debugging statement.Ludovic Courtès
* src/guile/skribilo/reader/rss-2.scm (generic-tag->skribe): Remove `format' call.
2008-12-21Add `rss-2' reader, for RSS 2.0 feeds as an input syntax.Ludovic Courtès
* src/guile/skribilo/reader/rss-2.scm: New file. * src/guile/Makefile.am (readers): Add `rss-2.scm'. * po/POTFILES.in: Add `rss-2.scm'. * doc/user/syntax.skb (rss2-syntax): New section. * NEWS: Update.
2008-04-07Recursive make sucks: remove 11 makefiles.Ludovic Courtès
2008-01-29outline: Better handle paragraphs.Ludovic Courtès
* src/guile/skribilo/reader/outline.scm (process-paragraph): When returning, enclose RESULT in a list. Previously, we'd end up with paragraphs like this: `(p list (list "something"))', where the first occurrence of `list' is wrong (although `output' silently ignores it).
2008-01-29outline: Liberated the list and mode-line syntax.Ludovic Courtès
* src/guile/skribilo/reader/outline.scm (%list-processors): Allow leading whitespace for list items. (outline-reader)[modeline-rx]: Allow figures, semi-colons and all.
2008-01-24outline: Add support for Org-Mode-style hyperlinks.Ludovic Courtès
* src/guile/skribilo/reader/outline.scm (%inline-markup): Add Org-Mode-style hyperlinks.
2007-11-15Fix module installation directory.Ludovic Courtès
* src/guile/skribilo/**/Makefile.am (moduledir): New. (dist_guilemodule_DATA): Changed to... (dist_module_DATA): This. This fixes module installation.
2007-10-28Add configure `--with-guilemoduledir' option.Ludovic Courtès
* configure.ac: Add support for `--with-guilemoduledir'. * */Makefile.am (guilemoduledir): Don't override the configure-provided value. * src/skribilo.in: Add `-L "@guilemoduledir@"'.
2007-07-26`outline' reader: Fixed `append-trees'.Ludovic Courtes
* src/guile/skribilo/reader/outline.scm (append-trees): Make sure only symbols can appear as the head of the resulting list. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-139
2007-06-05Added support for Guile-Lint.Ludovic Court`es
* configure.ac: Look for `guile-lint'. * */Makefile.am: Include `guile-lint.am'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-56
2006-11-17outline reader: Support keywords.Ludovic Court`es
* src/guile/skribilo/reader/outline.scm (outline-reader)[keywords-rx]: New. [author-rx]: Support "Authors" (plural). [extract-keywords]: New. Use a `cond' instead of nested `if's when matching the title/author/keywords regexps. git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-74
2006-07-24Updated the FSF address.Ludovic Court`es
From "59 Temple Place - Suite 330, Boston, MA 02111-1307" to "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301". Magic command line: find . -type f -print0 | xargs -0 sed -i -e 's/51 Franklin Street, Fifth Floor/51 Franklin Street, Fifth Floor/;s/02110-1301/02110-1301/; git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-29
2006-07-14Fixed the handling of `:' by the Skribe reader.Ludovic Courtes
* src/guile/skribilo/reader/skribe.scm (make-colon-free-token-reader): New. (%make-skribe-reader): Make sure `:' is handled only by the keyword reader. git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-10
2006-07-03outline: Fixed the regexps of the inline markup for `tt' and `q'.Ludovic Court`es
* src/guile/skribilo/reader/outline.scm (%inline-markup): Fixed the regexps for `tt' and `q' so that these markups can occur multiple times per line. git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-2
2006-02-15Skribe reader: consider square brackets as delimiters.Ludovic Court`es
* src/guile/skribilo/reader/skribe.scm (%make-skribe-reader): Use the `r6rs-keyword-*' and `r6rs-number' token readers so that square brackets are rightfully considered as delimiters. git-archimport-id: lcourtes@laas.fr--2004-libre/skribilo--devel--1.2--patch-45
2006-02-06Outline reader: added support to parse lists.Ludovic Court`es
* src/guile/skribilo/reader/outline.scm (make-markup): New. (make-list-processor): New. (make-node-processor): Take a list of subnode procedures instead of a single procedure. (%list-processors): New. (%node-processors): Updated accordingly. git-archimport-id: lcourtes@laas.fr--2004-libre/skribilo--devel--1.2--patch-40
2006-02-01Added support for subsections and subsubsections in the outline reader.Ludovic Court`es
* src/guile/skribilo/reader/outline.scm (make-node-processor): Consider the END-OF-NODE? case _after_ the SUBNODE case. (%node-processors): Added support for subsections and subsubsections. git-archimport-id: lcourtes@laas.fr--2004-libre/skribilo--devel--1.2--patch-39
2006-01-24First working outline reader.Ludovic Court`es
* src/guile/skribilo/reader/outline.scm (apply-any): New. (append-trees): New. (null-string?): New. (empty-line?): New. (%inline-markup): Added URLs and quotations. (make-line-processor): Use `apply-any'. Avoid infinite recursion. (process-paragraph): Use `empty-line?' and `append-trees'. (make-node-processor): Pass the title through LINE-PROC. Use `empty-line?'. (make-document-processor): Use `apply-any' and `empty-line?'. Fixed the empty document/EOF case: actually return EOF instead of returning an empty document. (outline-reader): Likewise. git-archimport-id: lcourtes@laas.fr--2004-libre/skribilo--devel--1.2--patch-34
2006-01-23First implementation of a reader for Emacs' outline syntax.Ludovic Court`es
* src/guile/skribilo/reader/outline.scm: New. * src/guile/skribilo/reader/Makefile.am (dist_guilemodule_DATA): Added `outline.scm'. git-archimport-id: lcourtes@laas.fr--2004-libre/skribilo--devel--1.2--patch-33
2006-01-10Syntax highlighting and `image'-related fixes.Ludovic Courtes
* src/guile/skribilo/coloring/lisp.scm: Use `(skribilo reader)'. (lisp-family-fontifier): Take a READ argument. (skribe-fontifier): Pass `(make-reader 'skribe)' as the reader. * src/guile/skribilo/module.scm (%skribilo-user-autoloads): Added `(skribilo prog)'. * src/guile/skribilo/parameters.scm (*ref-base*): New. * src/guile/skribilo/prog.scm: Guilified. * src/guile/skribilo/reader/skribe.scm: Nothing changed. * src/guile/skribilo/runtime.scm (suffix): New. (string-ref-base): Don't use `file-separator'. Use `string-contains' instead of Bigloo/STkLos' `substring=?'. (convert-image): Use `*image-path*' instead of `skribe-image-path'. Don't use `make-path'. git-archimport-id: lcourtes@laas.fr--2005-mobile/skribilo--devel--1.2--patch-20
2005-12-04Added the `~' markup. Added SRFI-62 and SRFI-30 support to the Skribe reader.Ludovic Courtes
* NEWS: Added actual news. * src/guile/skribilo/skribe/api.scm (~): New markup. * src/guile/skribilo/engine/html.scm: Added a writer for `~'. * src/guile/skribilo/engine/latex.scm: Likewise. * src/guile/skribilo/engine/lout.scm: Likewise. * src/guile/skribilo/evaluator.scm (skribe-include): Added a `:reader' argument. * src/guile/skribilo/reader/skribe.scm (*skribe-reader*): Renamed to `%skribe-reader'. (%make-skribe-reader): Moved the sharp reader code to... (&sharp-reader): ... here. Added support for SRFI-62 and SRFI-30 (Bigloo supports both). git-archimport-id: lcourtes@laas.fr--2005-mobile/skribilo--devel--1.2--patch-16
2005-11-25Overhaul: emphasized logical separation of the modules.Ludovic Court`es
* src/guile/skribilo/types.scm: Removed. Moved the class and method definitions in the relevant files. * src/guile/skribilo/ast.scm: New. * src/guile/skribilo/location.scm: New. * src/guile/skribilo/parameters.scm: Same as part of the former `vars.scm' except that it uses fluids instead of globals. * src/guile/skribilo/vars.scm: Renamed to `compat.scm'. * doc/Makefile: Removed (generated by `configure'). git-archimport-id: lcourtes@laas.fr--2004-libre/skribilo--devel--1.2--patch-11
2005-10-31Installed Autoconf/Automake machinery. Fixed a few things.Ludovic Courtes
* src/guile/skribilo/evaluator.scm (skribe-load): Search through `%load-path' and try with a `.scm' extension (rather than the `.skr' one provided by the user). (skribe-include): Added a few debugging statements. * src/guile/skribilo/lib.scm (fix-rest-arg): Handle the dot notation for rest arguments. * src/guile/skribilo/reader/skribe.scm (%make-skribe-reader): Use SQUARE-BRACKET-FREE-SYMBOL-MISC-CHARS. * src/guile/skribilo/skribe/index.scm: Use `define-public' instead of `define'. * src/guile/skribilo/packages/*.scm: Moved to `skribilo/package'. * LICENSE: Removed. * COPYING: New. * AUTHORS: New. * NEWS: New. * ChangeLog: New. * configure.ac: New. * Makefile.am: New. In various directories. git-archimport-id: lcourtes@laas.fr--2005-mobile/skribilo--devel--1.2--patch-10
2005-10-31Removed useless files, integrated packages.Ludovic Courtes
* src/guile/skribilo/packages: New directory and files. * bin: Removed. * skr: Removed (files moved to `src/guile/skribilo/packages'). * skribe: Removed. * doc/skr/env.skr (*courtes-mail*): New. * doc/user/user.skb: Removed postal addresses, added my name. * src/guile/skribilo/engine/lout.scm: Uncommented the slide-related markup writers. * src/guile/skribilo/evaluator.scm (%evaluate): Try weird things with source properties. * src/guile/skribilo/reader/skribe.scm: Comply with the new guile-reader API. * src/guile/skribilo/types.scm: Removed the special `initialize' method for ASTs which was supposed to set their location. git-archimport-id: lcourtes@laas.fr--2005-mobile/skribilo--devel--1.2--patch-7
2005-07-01Lots of changes.Ludovic Courtes
Too many changes to describe here, among which, moving the `(skribe)' module namespace to `(skribilo)'. This is work in progress. git-archimport-id: lcourtes@laas.fr--2005-mobile/skribilo--devel--1.2--patch-1