aboutsummaryrefslogtreecommitdiff
path: root/src/guile/skribilo/biblio
AgeCommit message (Collapse)Author
2022-12-10biblio: Template compiler recognizes 'doi' and 'note'.Ludovic Courtès
* src/guile/skribilo/biblio/template.scm (bibliography-template): Add 'doi' and 'note'.
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-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-10-12biblio: template: Fix a couple of erroneous quotes.Ludovic Courtès
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Change quote to quasiquote for forms that contain an unquote.
2015-10-12biblio: Add alternate author name abbreviation.Ludovic Courtès
* src/guile/skribilo/biblio/author.scm (abbreviate-author-first-names): Add an example as a comment. (abbreviate-author-first-names/family-first): New procedure. (abbreviate-first-names): Add 'abbreviate-author-names' optional parameter.
2015-06-21biblio: Internationalize the word "In".Ludovic Courtès
Reported by Benno Schulenberg <coordinator@translationproject.org>. * src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Gettextize "In".
2015-06-20biblio: Move misplaced "TRANSLATORS:" comment.Ludovic Courtès
This is a followup to 830523e. * src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Move "TRANSLATORS:" comment right before keyword line.
2015-06-20biblio: Tell translators what these messages are.Ludovic Courtès
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Add comment for translators.
2012-05-17Switch to GPLv3+.Ludovic Courtès
2009-11-27Add `coding:' comments.Ludovic Courtès
Add `coding:' comments for use by both Emacs and Guile 2.x.
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.
2008-04-15Use SRFI-35 exceptions in `(skribilo biblio author)'.Ludovic Courtès
* src/guile/skribilo/biblio/author.scm (bib-sort/first-author-last-name): Use `raise'.
2008-04-07Recursive make sucks: remove 11 makefiles.Ludovic Courtès
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-08-31biblio: Fixed default template for `book' and `inbook'.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): For `book', use `(or author editor)'. Added an `inbook' case. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-104
2007-08-29biblio: SRFI'd `author.scm'.Ludovic Court`es
* src/guile/skribilo/biblio/author.scm: Use `srfi-14'. (%no-comma): New. (comma-separated->author-list): Use `string-tokenize'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-101
2007-08-29biblio: Properly handle non-string authors.Ludovic Court`es
* src/guile/skribilo/biblio/author.scm (bib-sort/first-author-last-name)[maybe-first-author-last-name]: New. Use it. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-97
2007-08-29biblio: Improved `bib-sort/first-author-last-name'.Ludovic Court`es
* src/guile/skribilo/biblio/author.scm (bib-sort/first-author-last-name)[entry-field, <=?]: New. Use them such that ordering also takes `year' and `title' into account. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-96
2007-06-06Cleaned up the `biblio' modules.Ludovic Court`es
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-64
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
2007-06-01eq/biblio: Small additions.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Issue `institution' for `misc' entries. * src/guile/skribilo/package/eq.scm (%operators): Added `modulo'. (eq:modulo): New. * src/guile/skribilo/package/eq/lout.scm (eq:modulo): New writer. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-54
2007-05-04biblio: Implemented the `name+year' label style.Ludovic Court`es
* src/guile/skribilo/biblio.scm: Use `biblio author'. (assign-entries-numbers!): New (formerly `count!' in `resolve-the-bib'). (assign-entries-name+years!): New. (resolve-the-bib): New optional `assign-entries-identifiers!' argument. Use it. * src/guile/skribilo/biblio/author.scm (short-author-names): New. * src/guile/skribilo/engine/lout.scm (lout-bib-refs-sort/number): Accept non-number identifiers. (&the-bibliography): Use simply `@TaggedList' when a style other than `number' is used. (&bib-entry): Use `@DropTagItem' when the bibliography style is not `number'. * src/guile/skribilo/package/base.scm (the-bibliography): New `:labels' option. Pass the right label assignment function to `resolve-the-bib'. --This line, and those below, will be ignored-- Files to commit: src/guile/skribilo/package/base.scm src/guile/skribilo/engine/lout.scm src/guile/skribilo/biblio.scm doc/user/bib.skb src/guile/skribilo/biblio/author.scm This list might be incomplete or outdated if editing the log message was not invoked from an up-to-date changes buffer! git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-51
2007-04-02biblio template: Small fix.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Fixed `books'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-37
2007-02-05biblio: Use SRFI-3[45] conditions instead of `skribe-error'.Ludovic Court`es
* src/guile/skribilo/biblio.scm (&biblio-error): New. (&biblio-entry-error): New. (&biblio-template-error): New. (handle-biblio-error): New. (%bib-error): Removed. (bib-add!, parse-bib, bib-load!, resolve-bib, resolve-the-bib): Use error conditions instead of `skribe-error'. * src/guile/skribilo/biblio/template.scm: Use srfi-3[45] and `(skribilo biblio)'. (evaluate-bib-entry-template): Use error conditions. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-15
2007-02-05Cleaned up the default bibliography template.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Cleaned up. Produces better output. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-14
2007-02-05Rewrote the bib entry template evaluator, added support for `if'.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (evaluate-bib-entry-template): New procedure. (output-bib-entry-template): Use it. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-13
2007-02-05Fixed biblio template output.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (output-bib-entry-template): Fixed output for strings. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-12
2007-02-02Added basic GNU Gettext support.Ludovic Court`es
* .arch-inventory: Mark `ABOUT-NLS' as precious. * Makefile.am (SUBDIRS): Added `po'. (ACLOCAL_AMFLAGS): New. (EXTRA_DIST): New. * configure.ac: Look for `gettext', output `po/Makefile.in'. * src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Internationalized a bit. (make-bib-entry-template/skribe): Likewise. * src/guile/skribilo/utils/syntax.scm (%skribilo-module-reader): I18ned. (_): New. (N_): New. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-11
2006-12-08Fixed `publisher' in default biblio entry style.Ludovic Court`es
* src/guile/skribilo/biblio/template.scm (make-bib-entry-template/default): Issue `publisher' for `inproceedings' entries. * src/guile/skribilo/engine/base.scm (&bib-entry-publisher): No italics. git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-89
2006-11-12Added the `(skribilo biblio template)' module.Ludovic Courtes
* src/guile/skribilo/engine/base.scm: Autoload `(skribilo biblio template)'. (&bib-entry-url): New writer. (&bib-entry-body)[output-fields]: Removed. Moved to the new module as `output-bib-entry-template'. Use it, as well as `make-bib-entry-template/default'. (&bib-entry-title): Don't produce bold text. (&bib-entry-booktitle): New writer. (&bib-entry-journal): New writer. * src/guile/skribilo/biblio/Makefile.am (dist_guilemodule_DATA): Added `template.scm'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-13
2006-10-11slide: Propagate the `outline?' parameter in `slide-(sub)?topic'.Ludovic Court`es
* src/guile/skribilo/package/slide.scm (slide-topic): Propagate the `outline?' parameter as an option. (slide-subtopic): Likewise. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-1