aboutsummaryrefslogtreecommitdiff
path: root/src/guile/skribilo/engine/html.scm
AgeCommit message (Collapse)Author
2023-12-02html: Do not assume authors are strings.Arun Isaac
* src/guile/skribilo/engine/html.scm (html-title-authors): Use output to convert authors to strings.
2023-12-02html: Output address only when it is a list.Arun Isaac
* src/guile/skribilo/engine/html.scm (author): Output address only when it is a list.
2023-08-29html: Implement author without HTML tables.Arun Isaac
* src/guile/skribilo/engine/html.scm (author): Implement without HTML tables, using CSS only.
2023-08-29html: Implement title without HTML tables.Arun Isaac
* src/guile/skribilo/engine/html.scm (&html-generic-title, html-title-authors): Implement without HTML tables, using CSS only.
2023-08-29html: Implement font using CSS.Arun Isaac
The <font> tag is deprecated in HTML5. * src/guile/skribilo/engine/html.scm (font): Implement using CSS only.
2023-08-29html: Implement chapter using CSS.Arun Isaac
The <center> tag is deprecated in HTML5. * src/guile/skribilo/engine/html.scm (chapter): Implement using CSS only.
2023-08-29html: Implement section titles without HTML tables.Arun Isaac
* src/guile/skribilo/engine/html.scm (html-section-title): Implement without HTML tables, using CSS only.
2023-08-29html: Implement flush without HTML tables.Arun Isaac
* src/guile/skribilo/engine/html.scm (flush): Implement without HTML tables, using CSS only.
2023-08-29html: Implement center using CSS.Arun Isaac
The <center> tag is deprecated in HTML5. * src/guile/skribilo/engine/html.scm (center): Implement using CSS only.
2023-08-29html: Implement color without HTML tables.Arun Isaac
* src/guile/skribilo/engine/html.scm (color): Implement without HTML tables, using only CSS.
2023-08-29html: Implement frame without HTML tables.Arun Isaac
* src/guile/skribilo/engine/html.scm (frame): Implement without HTML tables, using only CSS.
2023-08-29html: Add CSS style declaration abstraction.Arun Isaac
* src/guile/skribilo/engine/html.scm (style-declaration): New function.
2023-08-29html: Remove redundant pair? check on inline CSS.Arun Isaac
The inline-css engine custom is either a string or a list. If it is a string, we coerce it into a singleton list. So, there is no need to check again that it is a pair. * src/guile/skribilo/engine/html.scm (&html-header-style): Remove redundant pair? check on inline CSS.
2023-08-29html: Use call-with-input-file to read inline CSS files.Arun Isaac
* src/guile/skribilo/engine/html.scm: Import (rnrs exceptions). (&html-header-style): Use call-with-input-file, instead of open-input-file and close-input-port, to read inline CSS files.
2023-08-29html: Use get-string-all to read inline CSS files.Arun Isaac
* src/guile/skribilo/engine/html.scm: Import (rnrs io ports). (&html-header-style): Use get-string-all instead of explicit loop to read inline CSS files.
2023-08-29html: Render table of contents as nested ordered lists.Arun Isaac
* src/guile/skribilo/engine/html.scm (&html-header-style): Add CSS to set markers for list items in the table of contents. (toc): Render table of contents as nested ordered lists, not as a table.
2023-08-28html: Avoid single letter variable names.Arun Isaac
* src/guile/skribilo/engine/html.scm: Replace single letter variable names n and e with node and engine respectively.
2023-08-28html: Abstract out opening and closing of HTML tags.Arun Isaac
* src/guile/skribilo/engine/html.scm: Import (srfi srfi-26). (html-open, html-close): New functions. (html-markup-class, &html-head, &html-body, &html-page, &html-header-favicon, &html-header-css, &html-header-javascript, &html-generic-title, &html-footnotes, html-title-authors, author, toc, chapter, html-section-title, paragraph, footnote, linebreak, hrule, color, frame, font, flush, itemize, enumerate, description, item, blockquote, figure, &html-figure-legend, table, tr, tc, image, mailto, mark, ref, url-ref, &prog-line, &bib-entry-label, &the-index-header): Use html-open and html-close.
2023-02-06html: Use for-each instead of explicit loop.Arun Isaac
* src/guile/skribilo/engine/html.scm (&html-footnotes): Use for-each instead of explicit loop.
2023-02-06html: Use match instead of car and cdr.Arun Isaac
* src/guile/skribilo/engine/html.scm (toc): Use match instead of car and cdr.
2023-02-06html: Do not add br tags before footnotes.Arun Isaac
* src/guile/skribilo/engine/html.scm (&html-footnotes): Do not add br tags before.
2023-01-28html: Do not add br tag after section.Arun Isaac
* src/guile/skribilo/engine/html.scm (section): Do not br tag after.
2023-01-28html: Do not add br tag after chapter.Arun Isaac
* src/guile/skribilo/engine/html.scm (chapter): Do not br tag after.
2022-03-16html: Use h2 for section titles.Arun Isaac
* src/guile/skribilo/engine/html.scm (html-engine)[custom]: Use <h2> and </h2> for section-title-start and section-title-stop respectively.
2022-03-10html: Set UTF-8 as the default charset.Arun Isaac
* src/guile/skribilo/engine/html.scm (html-engine): Set UTF-8 as the default charset.
2022-03-10html: Fix year in copyright header for Arun Isaac.Arun Isaac
This copyright header was added in 76136f9e904e8eb17f494d20fa2969ef2d5eb1aa, but the year was wrongly specified as 2021 instead of 2022. * src/guile/skribilo/engine/html.scm: Fix year in copyright header for Arun Isaac.
2022-02-22html: Include custom head outside <style> tag.Arun Isaac
Prior to this commit, the custom head was included inside <style>. That is a bug. * src/guile/skribilo/engine/html.scm (&html-head): Include custom head. (&html-header-style): Do not include custom head.
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-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-29html: Do not emit <big> and <strong> for titles.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-generic-title): Do not emit <big> and <strong>.
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'.
2012-12-01html: Enclose footnotes in <div class="footnote">.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-footnotes): Enclose each footnote in <div class="footnote"> instead of <br>, as suggested by Klaus Schilling <schilling.klaus@web.de>.
2012-12-01html: Don't emit nested <a> tags for footnotes.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-footnotes): Don't emit nested <a> tags. Reported by Klaus Schilling <schilling.klaus@web.de>.
2012-12-01html: footnotes: Fix predicate to determine whether nodes are in the same file.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (section-in-separate-file?, section-in-current-file?): Remove. (sections-in-same-file?): New procedure. (&html-generic-document)[ftnote]: Use it.
2012-11-29html: Fix erroneous tag close for footnotes.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-footnotes): Emit </div> at the end, not <div>. Reported by Klaus Schilling <schilling.klaus@web.de>.
2012-11-29html: Emit each footnote only once.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-generic-document): When matching a container list, don't add N to CONTAINERS since it's already there. Reported by Klaus Schilling <schilling.klaus@web.de>.
2012-11-29html: Remove redundant `match' pattern.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-generic-document): Remove redundant pattern in `match'. Reported by Klaus Schilling <schilling.klaus@web.de>.
2012-11-20html: Fix footnote handling for single-page documents.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-generic-document)[ftnote](body): Rewrite using `match'. Deal with the case where `container-env-get' returns #f. Append FOOTNOTES to the result of `container-env-get' when it's not. The latter fixes a problem whereby footnotes would not appear on single-page documents. Reported and analyzed by Klaus Schilling <schilling.klaus@web.de>.
2012-05-23html: Set the output port's conversion strategy to 'error.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (&html-generic-document)[guile-2]: Set the output port's conversion strategy to 'error.
2012-05-18html: Set the output encoding for secondary output files as well.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (document)[guile-2]: Move `set-port-encoding!' code to... (&html-generic-document): ... here, in `set-output-encoding' nested procedure. Call `set-output-encoding' in both the `document?' case and other cases.
2012-05-17Switch to GPLv3+.Ludovic Courtès
2012-05-10info/latex/lout: Set the output port's encoding.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (document): Fix typo in comment. * src/guile/skribilo/engine/info.scm (document)[guile-2]: Set the current output port's encoding to "UTF-8". * src/guile/skribilo/engine/latex.scm (latex-engine)[encoding]: New custom. (document): Set the output port's encoding to that. When that encoding is "UTF-8", add the right \usepackage. * src/guile/skribilo/engine/lout.scm (lout-engine)[encoding]: New custom. (document): Set the output encoding. Emit `@SysInclude { latin2 }' for ISO-8859-2.
2011-01-07html: Don't emit newlines when they can be significant.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (chapter, html-section-title itemize, enumerate, figure): Remove extra significant space after `</a>'.
2011-01-07html: Set the output port encoding to match the `charset' custom.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (document)[guile-2]: Set the output port's encoding to that of E's `charset' custom.
2009-11-27Add `coding:' comments.Ludovic Courtès
Add `coding:' comments for use by both Emacs and Guile 2.x.
2009-05-25html: Fix confusion around `unspecified?'.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (unspecified?): New procedure. This fixes the choice of a default title-number separator for chapters in `&html-generic-subdocument', as reported by James Haggerty <james.haggerty@gmail.com>.
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-07html: Fix footnote output for chapters that are not in a separate file.Ludovic Courtès
* src/guile/skribilo/engine/html.scm (section-in-separate-file?, section-in-current-file?): New. (&html-generic-document)[ftnotes]: Collect the footnotes not only of N but also those of all its sub-containers that are to be output in the same file. This fixes a bug where chapters that are not output in the same file don't get their footnotes printed. Reported by Klaus Schilling <schilling.klaus@web.de>. * NEWS: Update.