aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-07-01Removed global hash tables for marks and program lines.Ludovic Courtes
* src/guile/skribilo/package/base.scm (*mark-table*): Removed. (mark): Return the new mark without touching `*mark-table*'. Use `bs' as the mark's identifier. (ref)[mark-ref]: Simplified using `do-ident-ref'. [line-ref]: Use the new `resolve-line'. * src/guile/skribilo/prog.scm: Use `srfi-1'. (*lines*): Removed. (make-line-mark): Don't use `*lines*'. Removed `m' parameter. (resolve-line): Take an additional `doc' argument. (extract-string-mark): Fixed. (flat-lines): Use `concatenate' instead of `apply append'. (make-prog-body)[regexp]: Use brackets. Fixed invocation of `make-line-mark'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-132
2007-07-01`base' package: Honor `:line #f' in `prog'.Ludovic Courtes
* src/guile/skribilo/prog.scm: Use `srfi-11' instead of `receive'. (make-prog-body): When creating a `&prog-line', set the `:number' option only if `lnum-init' is true. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-130
2007-07-01`lout' engine: Fixed argument passing for `lout-illustration'.Ludovic Courtes
* src/guile/skribilo/engine/lout.scm (lout-illustration): Better compute argument string for `lout'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-129
2007-07-01Autoload `(skribilo coloring c)' in the default module.Ludovic Courtes
* src/guile/skribilo/module.scm (%skribilo-user-autoloads): Fixed the `lout' autoload list. Added `(skribilo coloring c)'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-128
2007-07-01Fixed (or almost so) the C lexer.Ludovic Courtes
* src/guile/skribilo/coloring/Makefile.am (.l.scm): Have the generated module use `srfi-1'. * src/guile/skribilo/coloring/c-lex.l: Support multi-line comments and properly use `*the-keys*'. * src/guile/skribilo/coloring/c-lex.scm: Updated. * src/guile/skribilo/coloring/c.scm: Fixed module name. (c-language): New. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-127
2007-06-29`lncs' package: Honor `:sort-bib-refs'.Ludovic Court`es
* src/guile/skribilo/package/lncs.scm (bib-ref+): Honor `:sort-bib-refs'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-82
2007-06-29Factorized `bib-ref+', add a `:sort-bib-refs' options to `ref'.Ludovic Court`es
* src/guile/skribilo/biblio.scm (bib-sort-refs/number): New. * src/guile/skribilo/engine/base.scm: Use `%skribilo-module-reader' instead of the Skribe reader. (bib-ref, bib-ref+): New writer. Handle `:sort-bib-refs' in `bib-ref+'. * src/guile/skribilo/engine/context.scm (bib-ref+): Removed. * src/guile/skribilo/engine/html.scm (bib-ref+): Removed. * src/guile/skribilo/engine/latex.scm (bib-ref, bib-ref+): Removed. * src/guile/skribilo/engine/lout.scm (lout-bib-refs-sort/number): Removed. (lout-engine): Documented `bib-refs-sort-proc' as unused. (bib-ref, bib-ref+): Removed. * src/guile/skribilo/package/base.scm (ref): New `:sort-bib-refs' option. [bib-ref]: Add it to the markup's option list. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-80
2007-06-25`diff' package: Small bug fix.Ludovic Court`es
* src/guile/skribilo/package/diff.scm (make-diff-document): Don't use `ast-loc' when AST2 is not `ast?'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-78
2007-06-24eq/lout: Fixed spacing around in-line equations.Ludovic Courtes
* src/guile/skribilo/package/eq/lout.scm (eq): Don't output a space in front of in-line equations. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-121
2007-06-24eq/lout: Use the new `@BypassNumber' option for numbered displays.Ludovic Courtes
* src/guile/skribilo/package/eq.scm (eq)[number]: Default to `#t'. * src/guile/skribilo/package/eq/lout.scm (eq): Use `@CAND'/`@CAD' instead of `@IAD' (because `@IAND' is broken). Handle `:number'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-119
2007-06-24eq: Implemented equation numbering.Ludovic Courtes
* src/guile/skribilo/package/base.scm (chapter): Augmented environment to include `equation-env' and `equation-counter'. * src/guile/skribilo/package/eq.scm: Use `(skribilo resolve)'. (equation-number-string): New. (eq)[:number]: New option. Handle it. * src/guile/skribilo/package/eq/lout.scm (eq): Prepare to handle `:number'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-118
2007-06-18`lncs' package: Prettified bibliography output.Ludovic Court`es
* src/guile/skribilo/package/lncs.scm (&the-bibliography): The `\thebibliography' the number of entries so that all entries are properly aligned. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-76
2007-06-18lout engine: Export `lout-output-pdf-meta-info'.Ludovic Court`es
* src/guile/skribilo/engine/lout.scm: Export `lout-output-pdf-meta-info', needed by the `slide' package. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-75
2007-06-11Lout engine: Work around bug with tables within floating figures.Ludovic Court`es
* src/guile/skribilo/engine/lout.scm (table): Check whether N is within a figure, in which case `@OneRow' must be preprended. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-72
2007-06-11Reduced dependency on `(skribilo module)'.Ludovic Court`es
* src/guile/skribilo/engine.scm: Don't `(use-modules (skribilo module))' before initializing `*current-engine*' (no longer needed). git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-71
2007-06-11Switched all engines to a native Guile module.Ludovic Court`es
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-70
2007-06-11Added a `:&location' argument to `table'.Ludovic Court`es
* doc/modules/skribilo/documentation/api.scm (%undocumented-options): New. (doc-check-arguments): Use it to allow `:&location' to not be documented. * src/guile/skribilo/package/base.scm (table): Added a `&location' argument. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-69
2007-06-08Slight optimization/cleanup of AST traversal functions.Ludovic Court`es
* src/guile/skribilo/ast.scm (container-search-down): Use `(map loop obj)', thereby removing an indirection. (search-down): Likewise. (find-down): Likewise. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-68
2007-06-07Fixed location reporting for `verify' warnings.Ludovic Court`es
* src/guile/skribilo/verify.scm: Concatenated `use-modules' to `define-module'. (verify<markup>): Use `skribe-warning/ast' instead of `skribe-warning'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-67
2007-06-07Optimized `make-general-string-replace'.Ludovic Court`es
* src/guile/skribilo/utils/strings.scm (%make-general-string-replace): Rewritten in a way that is more efficient with Guile 1.8. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-66
2007-06-06Cleaned up the core modules.Ludovic Court`es
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-65
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-06Cleaned up the source code fontifiers (under `coloring').Ludovic Court`es
This brings `(skribilo coloring c)' to life! git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-63
2007-06-06More linting.Ludovic Court`es
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-62
2007-06-06More package cleanups.Ludovic Court`es
Various additional package cleanups, thanks to Guile-Lint. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-61
2007-06-06lib: Minor fixes that make Guile-Lint happy.Ludovic Court`es
* src/guile/skribilo/lib.scm (define-simple-markup): Don't quote strings. (define-simple-container): Likewise. (define-processor-markup): Likewise. Added a `loc' argument. Pass location information to `new'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-60
2007-06-06Removed useless file.Ludovic Court`es
* src/guile/skribilo/package/Makefile.am (dist_guilemodule_DATA): Removed `skribe.scm'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-59
2007-06-05Started cleaning up packages using Guile-Lint.Ludovic Court`es
Most of the changes involve: * using a native module rather than `define-skribe-module'. * using `:'-style keywords instead of DSSSL keywords so that Guile-Lint can handle them. * fixing unbound variables and the likes. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-57
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-04Fixed handling of figure numbering in `ref'.Ludovic Court`es
* src/guile/skribilo/ast.scm (markup-number-string): Don't use a hierarchical numbering scheme for figures. * src/guile/skribilo/engine/lout.scm (ref): Use `markup-number-string' rather than `@NumberOf' to determine the number of a figure. This guarantees numbering consistency. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-55
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-22Resolve <command>s too.Ludovic Court`es
* src/guile/skribilo/resolve.scm (do-resolve!<command>): New method. Allows arguments of a command (the command body) to be properly resolved. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-53
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-27Fixed `index'.Ludovic Court`es
* src/guile/skribilo/Makefile.am (dist_guilemodule_DATA): Added `index.scm'. * src/guile/skribilo/package/base.scm: Autoload `(skribilo index)' upon `default-index'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-50
2007-04-10`diff': Included Aubrey Jaffer's fix for `diff:edits'.Ludovic Court`es
* src/guile/diff.scm: Updated from Aubrey Jaffer's latest upstream version which includes a fix for bug in `diff:edits' that showed up in `(diff:edits "Conclusion" "Related Work")' (SLIB changes dated 2007-04-07). git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-49
2007-04-05`eq' package: Added support for Lout's new `eq2'.Ludovic Court`es
* src/guile/skribilo/package/eq.scm (*use-lout-eq2?*): New. (direct-equation-child?): New. * src/guile/skribilo/package/eq/lout.scm (Initialization): Use `eq2' if asked to. (simple-lout-markup-writer): Use `direct-equation-child?' to decide on whether the issue the `^' character. This is to avoid issuing too many `^', which could result in broken layout. (eq:limit): Adapated. (range-lout-markup-writer): Likewise. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-48
2007-04-05`lncs' package: Fixed for non-LaTeX engines.Ludovic Court`es
* src/guile/skribilo/package/lncs.scm (abstract): Use `chapter' instead of `section'. (references): Likewise. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-47
2007-04-04`eq' package: Properly handle auto-inlining.Ludovic Court`es
* src/guile/skribilo/package/eq.scm (inline-equation?): Use `find1-up' instead of `find-up'. This fixes a bug. (eq): Properly pass the `:inline?' options through the `options' slot. * src/guile/skribilo/package/eq/lout.scm (eq): When inline, enclose equation in `@OneRow @OneCol' so that it is not breakable. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-46
2007-04-04Fixed `find-up'.Ludovic Court`es
* src/guile/skribilo/ast.scm (find-up): Don't cons OBJ when it doesn't match PRED. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-45
2007-04-04Renamed module `(differ)' to `(diff)'.Ludovic Court`es
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-44
2007-04-04`diff' package: Added basic source location support.Ludovic Court`es
* src/guile/skribilo/package/diff.scm (deletion, insertion, replacement, unchanged): Added a `:loc' parameter. (make-diff-document): When creating new ASTs, keep the location of AST2. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-43
2007-04-03Fixed computation of `&invocation-location'.Ludovic Court`es
* src/guile/skribilo/location.scm (invocation-location): Make sure we always return the exact invocation location, no matter how `invocation-location' is implemented. * src/guile/skribilo/lib.scm (define-markup): Updated DEPTH argument to `invocation-location' due to previous change in the implementation of `invocation-location'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-42
2007-04-03Reduced reliance on the debugging evaluator (improves performance).Ludovic Court`es
* src/guile/skribilo.scm (skribilo): Do not impose use of the debugging evaluator, allowing for significant performance improvements. * src/guile/skribilo/evaluator.scm (%evaluate): Use the debugging evaluator when evaluating EXPR. * src/guile/skribilo/location.scm (invocation-location): Return `#f' when the debugging evaluator is not being used. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-41
2007-04-03Moved legacy source location code to `compat'.Ludovic Court`es
* src/guile/skribilo/lib.scm (skribe-eval-location): Removed. * src/guile/skribilo/location.scm (location-pos): Removed. * src/guile/skribilo/utils/compat.scm: Use `(skribilo location)'. (location-pos, skribe-eval-location): New. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-40
2007-04-03Added source location tracking to various packages.Ludovic Court`es
* src/guile/skribilo/package/base.scm: Autoload `parameters'. (ref)[skribe-ref]: Use `search-path' and `*document-path*' instead of `find-file/path' and `skribe-path'. Initialize the `loc' field of markups. * src/guile/skribilo/package/eq.scm: Likewise. * src/guile/skribilo/package/pie.scm: Likewise. * src/guile/skribilo/package/slide.scm: Likewise. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-39
2007-04-03Added support for source location tracking.Ludovic Court`es
* src/guile/skribilo/ast.scm (<ast>): Added the `:loc' init-keyword. * src/guile/skribilo/lib.scm: Re-export `invocation-location'. (define-markup): Locally define `&invocation-location' for use by markups. (define-simple-markup): Initialize `loc'. (define-simple-container): Likewise. (%skribe-warn): New `col'. parameter. (skribe-warning): Updated. (skribe-warning/ast): Likewise. * src/guile/skribilo/location.scm (<location>): Removed slot `pos'. Added slot `column'. Export `location-column'. (location-pos): Kept for compatibility. (write): New method. (invocation-location): New function. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-38
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-03-28`diff' package: Fixed off-by-one in string diff.Ludovic Court`es
* src/guile/skribilo/package/diff.scm (add-unchanged): When `(null? edits)', check whether `(< str-pos str-len)' (was `(< str-pos (- str-len 1))'). This fixes off-by-one when diffing strings (last character didn't appear). git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-36
2007-03-28`diff' package: Use `breakable-space' instead of `~' in `annotated-string-diff'.Ludovic Court`es
* src/guile/skribilo/package/diff.scm: Autoload `(skribilo utils keywords)'. (annotated-string-diff)[space-preserving-substring]: Use `breakable-space' instead of `~'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-35
2007-03-28`base' package: Introduced `breakable-space'.Ludovic Court`es
* src/guile/skribilo/engine/base.scm (breakable-space): New writer. * src/guile/skribilo/engine/latex.scm (breakable-space): New writer. * src/guile/skribilo/engine/lout.scm (breakable-space): New writer. * src/guile/skribilo/package/base.scm (breakable-space): New markup. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-33