aboutsummaryrefslogtreecommitdiff
path: root/src/guile/skribilo/package
AgeCommit message (Collapse)Author
2022-05-05lncs: Change writers for the LaTeX engine only.Ludovic Courtès
* src/guile/skribilo/package/lncs.scm (&bib-entry-author) (&bib-entry-booktitle, &bib-entry-journal): Add missing LATEX argument to 'markup-writer'.
2022-05-05biblio: Replace template interpreter with a macro (a "compiler").Ludovic Courtès
This allows us to catch invalid templates at macro-expansion time and is more efficient. * src/guile/skribilo/biblio/template.scm (evaluate-bib-entry-template): Remove. (define-template-engine, bibliography-template): New macros. (output-bib-entry-template): Rewrite and remove 'get-field' optional argument. (make-bib-entry-template/default, make-bib-entry-template/skribe): Use 'bibliography-template' instead of quasiquote/unquote. * src/guile/skribilo/package/jfp.scm (le): Likewise. * src/guile/skribilo/package/lncs.scm (bib-entry-template): Likewise. * src/guile/skribilo/biblio.scm (&biblio-template-error): Remove. (handle-biblio-error): Adjust accordingly. * tests/biblio.test: New file. * tests/Makefile.am (TESTS): Add it.
2020-11-01info: Emit dir-category and dir-entry.Ludovic Courtès
Reported by nly <nly@disroot.org>. * src/guile/skribilo/package/base.scm (document): Add :info-dir-category and :info-dir-entry. * doc/user/document.skb: Document them. * doc/user/user.skb: Pass :info-dir-category. * src/guile/skribilo/engine/info.scm (scribe-document->info): Create INFO-DIR-CATEGORY and START-INFO-DIR-ENTRY.
2020-08-06Remove 'cond-expand' clauses for Guile 1.8.Ludovic Courtès
This is a followup to d183aa487d99baea3746f79759c17cf36c55dfbf. * src/guile/skribilo/debug.scm (with-debug): Remove 'cond-expand' and keep only 'guile-2' version. * src/guile/skribilo/engine/html.scm (&html-generic-document)[set-output-encoding]: Likewise. * src/guile/skribilo/engine/info.scm (document): Likewise. * src/guile/skribilo/engine/latex.scm (document): Likewise. * src/guile/skribilo/engine/lout.scm (document): Likewise. * src/guile/skribilo/evaluator.scm (%evaluate): Likewise. * src/guile/skribilo/location.scm <top level>: Likewise. * src/guile/skribilo/module.scm (maybe-set-module-name!): Likewise. * src/guile/skribilo/package/base.scm <top level>: Likewise. * src/guile/skribilo/utils/syntax.scm (unless, when): Remove. (set-correct-file-encoding!, default-to-utf-8): Keep only 'guile-2' variant. * tests/location.test <top level>: Likewise. * tests/readers/rss-2.test <top level>: Likewise.
2020-08-02Use '_' as the 'match' wildcard.Ludovic Courtès
This addresses '-Wunused-variable' warnings. * doc/modules/skribilo/documentation/api.scm (define-markup?) (make-engine?, make-engine-custom) (define-markup-formals, define-markup-options) (define-markup-rest, exp->skribe): Use '_' instead of 'else' as the 'match' wildcard. * src/guile/skribilo/package/slide/latex.scm (%slide-advi-setup!): Likewise. * src/guile/skribilo/source/lisp.scm (lisp-extractor) (scheme-extractor, stklos-extractor, skribe-extractor) (bigloo-extractor): Likewise. * src/guile/skribilo/sui.scm (load-sui): Likewise. (sui-title, sui-key, sui-find-ref, sui-filter): Likewise.
2020-08-01pie: Prevent inlining of '%ploticus-program'.Ludovic Courtès
* src/guile/skribilo/package/pie.scm (%ploticus-program): Add top-level 'set!'.
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-04-29slide/html: Do not emit <strong> and <big>.Ludovic Courtès
* src/guile/skribilo/package/slide/html.scm (html-slide-title): Remove <strong> and <big>.
2018-04-22'base' package: Replace the 'include' form on Guile 2.x.Ludovic Courtès
* src/guile/skribilo/package/base.scm: Add 'cond-expand' form with call to 'module-replace!'.
2018-03-30acmproc: "References" section is unnumbered.Ludovic Courtès
* src/guile/skribilo/package/acmproc.scm (references): Pass :number #f to 'chapter'.
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 '_'.
2016-03-01'base' package: Add note about non-translatable bits.Ludovic Courtès
* src/guile/skribilo/package/base.scm (source): Add 'TRANSLATORS' comment. Suggested by Anders Jonsson <anders.jonsson@norsjovallen.se>.
2015-10-12lncs: Make bibliography entries look closer to what's expected.Ludovic Courtès
* src/guile/skribilo/package/lncs.scm (bib-entry-template): New procedure. (&bib-entry-body): Use it instead of 'make-bib-entry-template/default'. (&bib-entry-author, &bib-entry-booktitle, &bib-entry-journal): New writers.
2015-06-21Assorted improvements of user-facing messages.Ludovic Courtès
* src/guile/skribilo.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/sui.scm: Tweak messages for consistency, as suggested by Benno Schulenberg <coordinator@translationproject.org>.
2015-03-11'base' package: Internationalize error messages.Ludovic Courtès
* src/guile/skribilo/package/base.scm (source): Use '_' to internationalize error messages. * po/POTFILES.in: Add it.
2015-03-11condition: Always use a literal format string.Ludovic Courtès
* src/guile/skribilo/condition.scm (%call-with-skribilo-error-catch) [message-condition? c]: Pass a format string to 'format'.
2015-03-11'base' package: Use 'invalid-argument-error' rather than 'skribe-error'.Ludovic Courtès
* src/guile/skribilo/package/base.scm (include, author, handle, toc, linebreak, flush, prog, tc, char, symbol, processor, mark, ref, bibliography, the-bibliography, index, the-index, counter, item, source, tc, !, index): Use 'invalid-argument-error' instead of 'skribe-error' or 'skribe-type-error'.
2015-03-11Replace "illegal" with "invalid" in error messages.Ludovic Courtès
There's nothing illegal here. * doc/modules/skribilo/documentation/api.scm, src/guile/skribilo/ast.scm, src/guile/skribilo/debug.scm, src/guile/skribilo/engine/base.scm, src/guile/skribilo/engine/context.scm, src/guile/skribilo/engine/html.scm, src/guile/skribilo/engine/html4.scm, src/guile/skribilo/engine/latex.scm, src/guile/skribilo/package/base.scm, src/guile/skribilo/package/html-navtabs.scm, src/guile/skribilo/package/jfp.scm, src/guile/skribilo/package/lncs.scm, src/guile/skribilo/package/slide/latex.scm, src/guile/skribilo/utils/justify.scm, src/guile/skribilo/utils/keywords.scm, src/guile/skribilo/utils/text-table.scm: Change "illegal" to "invalid".
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'.
2013-05-19acmproc: Make `references' conform to the ACM guidelines.Ludovic Courtès
* src/guile/skribilo/package/acmproc.scm (references): Always use `chapter'. Leave the font size unchanged. Sort entries according to `bib-sort/first-author-last-name'. * NEWS: Update.
2013-05-19`base' package: Insert an unbreakable space after `:text' in `numref'.Ludovic Courtès
* src/guile/skribilo/package/base.scm (numref): Remove explicit call to `resolve!'; insert an unbreakable space after TEXT. * NEWS: Update.
2013-03-18`base' package: Always show the location of erroneous `ref' calls.Ludovic Courtès
* src/guile/skribilo/lib.scm (warning/loc): New procedure. (skribe-warning/ast): Use it. * src/guile/skribilo/package/base.scm (ref)[unref]: Use `warning/loc', and use `&invocation-location' as the location. Remove the `ast' parameter; adjust callers accordingly.
2013-02-28acmproc: Fix typo in `author' markup writer.Ludovic Courtès
* src/guile/skribilo/package/acmproc.scm (le)[&latex-author]: Use `(format #t ...)', not #f.
2013-02-25acmproc: Use (skribilo package base) unconditionally.Ludovic Courtès
* src/guile/skribilo/package/acmproc.scm: Use (skribilo package base) unconditionally. This fixes issues with incomplete autoload list.
2012-05-17Change `define-markup' to generate a macro, to capture location syntactically.Ludovic Courtès
* src/guile/skribilo/lib.scm (dsssl->guile-formals): New procedure, formerly `fix-rest-arg' procedure in `define-markup'. (define-markup)[guile-2]: Turn into a macro-generating macro, such that markups capture their invocation location syntactically. * src/guile/skribilo/location.scm (source-properties->location): New procedure. (invocation-location): Use it. * src/guile/skribilo/package/base.scm (handle): Move above first use, since it's now a macro on Guile 2.0. * src/guile/skribilo/package/slide.scm (slide-vspace): Likewise. * src/guile/skribilo/package/eq.scm: Use (skribilo package base) instead of autoloading it. * tests/Makefile.am (TESTS): Add `location.test'. * tests/location.test: New file.
2012-05-17Switch to GPLv3+.Ludovic Courtès
2010-11-07eq: lout: Honor `:inline?' when it's not `auto'.Ludovic Courtès
* src/guile/skribilo/package/eq/lout.scm (eq): Honor `:inline?' when it's not `auto'.
2010-06-20pie: Fix unbound variable related to autoload tricks.Ludovic Courtès
* src/guile/skribilo/package/pie.scm: Use `(skribilo ast)' instead of trying to autoload it.
2010-03-08Autoload fixlet.Ludovic Courtès
* src/guile/skribilo/package/sigplan.scm: Use `(skribilo lib)' instead of autoloading it.
2009-11-27Add `coding:' comments.Ludovic Courtès
Add `coding:' comments for use by both Emacs and Guile 2.x.
2009-11-20Remove duplicate keyword argument from `pie'.Ludovic Courtès
* src/guile/skribilo/package/pie.scm (pie): Remove duplicate `class' keyword argument.
2009-11-20Remove occurrences of `use-syntax' and `export-syntax'.Ludovic Courtès
* src/guile/skribilo/debug.scm, src/guile/skribilo/index.scm, src/guile/skribilo/lib.scm, src/guile/skribilo/package/base.scm, src/guile/skribilo/reader.scm, src/guile/skribilo/utils/compat.scm: Replace `use-syntax' by `use-module' and `export-syntax' by `export'.
2009-05-27pie: Move generic `sliceweight' writer in the right place.Ludovic Courtès
* src/guile/skribilo/package/pie.scm (sliceweight): Add generic writer. * src/guile/skribilo/package/pie/lout.scm (sliceweight): Generic writer removed.
2009-05-27doc: Document `pie' markups.Ludovic Courtès
* doc/user/pie.skb (Syntax): Document markups. * src/guile/skribilo/package/pie.scm (pie, slice, sliceweight): Add `:class' option. (pie, slice, sliceweight)[writers]: Add `:options'.
2009-05-27pie: Choose saner defaults for Ploticus.Ludovic Courtès
* src/guile/skribilo/package/pie.scm (ploticus-script)[radius]: Default to 2.5. [center]: Default to (6.25, 6.25). The latter allows pie charts to not be truncated, even in `line+label', provided RADIUS remains in the [0..4cm] range.
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-01-07info: New `:info-node' for `chapter', `section', etc.Ludovic Courtès
* src/guile/skribilo/engine/info.scm (block-title): Use the `:info-node' option if available. (chapter, section, subsection, subsubsection): Mark `:info-node' as supported and `:html-file' as not supported. * src/guile/skribilo/package/base.scm (chapter, section, subsection, subsubsection): New `:info-node' option.
2008-04-23Fix SUI `:ident' references.Ludovic Courtès
* src/guile/skribilo/package/base.scm (skribe-ref): Pass the result of `dirname' as the DIR argument of `sui-ref->url'. Don't pass ":ident ident" to `ref'. * src/guile/skribilo/sui.scm (sui-find-ref): Fix invocation of `sui-search-all-refs'. (sui-search-all-refs): Actually implemented. * NEWS: Update.
2008-04-21eq: Use SRFI-35 exceptions instead of `skribe-error'.Ludovic Courtès
* src/guile/skribilo/package/eq.scm: Raise `&invalid-argument-error' when relevant.
2008-04-15eq: Use plain procedures instead of stupid macros.Ludovic Courtès
* src/guile/skribilo/package/eq.scm (simple-markup-writer, simple-binary-markup-writer): Turn into procedures, update callers.
2008-04-11eq/lout: Use procedures instead of macros.Ludovic Courtès
* src/guile/skribilo/package/eq/lout.scm (simple-lout-markup-writer, binary-lout-markup-writer, range-lout-markup-writer): Turned into procedures, callers updated. Guile-Lint (as of version 14) is unable to handle macros defined within the same source file as they are used, so it makes it happy.
2008-04-08Add `--sui-path'/`-U' command-line option.Ludovic Courtès
* NEWS: Update. * src/guile/skribilo.scm (skribilo-show-help): Update. (%options)[-U]: New. (%default-options): Add `:sui-path'. (skribilo): Handle it. * src/guile/skribilo/package/base.scm (ref)[skribe-ref]: Use `*sui-path*'. * src/guile/skribilo/parameters.scm (*sui-path*): New. * src/guile/skribilo/sui.scm (load-sui): Raise a `&file-search-error' exception if not found.
2008-04-07Recursive make sucks: remove 11 makefiles.Ludovic Courtès
2008-03-06`base' package: Add `:rulecolor' option to `table'.Ludovic Courtès
* NEWS, doc/user/colframe.skb, doc/user/table.skb: Update. * src/guile/skribilo/engine/lout.scm (table): Support `:rulecolor'. * src/guile/skribilo/package/base.scm (table): Support `:rulecolor'.
2008-03-03slide: Determine what to include in the outline slide based on `:toc'.Ludovic Courtès
* NEWS: Update. * doc/user/slide.skb: Update. * src/guile/skribilo/package/slide.scm (slide-topic, slide-subtopic): Add `toc' option. * src/guile/skribilo/package/slide/base.scm (make-subtopic-list): Filter topic nodes whose `:toc' is true.
2008-02-15slide: Add new customs.Ludovic Courtes
* src/guile/skribilo/package/slide/base.scm: Support the `slide-outline-title', `slide-outline-active-color' and `slide-outline-inactive-color' customs. * doc/user/slide.skb, NEWS: Update.
2008-01-30web-book2: Cosmetic changes.Ludovic Courtès
* src/guile/skribilo/package/web-book2.scm (%small-toc-class): New. (make-small-toc): New `e' argument. [enclose]: New. Use HTML <div>, preferably.
2008-01-25lout: Make it so that customs are not modified by `slide'.Ludovic Courtès
* src/guile/skribilo/engine/lout.scm (lout-pdf-bookmark-node?): Handle `slide-(sub)?topic' nodes. (lout-engine)[pdf-bookmark-closed-pred]: Likewise. * src/guile/skribilo/package/slide/lout.scm: Don't modify the `pdf-bookmark-closed-pred' and `pdf-bookmark-node-pred' customs. It had the side-effect of removing all bookmarks from the user manual.
2008-01-19Add `web-book2' package.Ludovic Courtès