Files
klammertext/sks/document/document.k
Andy Kopra 37b6ba1c4f Verbatim-safe typography, ^-punctuation quoting, full-range ^UUUU^, polyglot html
Typographic transforms (---, quote pairs, ~) no longer touch verbatim
text: @c/@code/@source_listing content and ^'...'^ spans show exactly the
characters written. "^" before any punctuation character quotes it in
every target (the apostrophe excepted: ^' opens a literal span), with the
new :resolve option on @@@target declaring per-target renderings. The
^UUUU^ code-point form accepts 4-6 hex digits, the full Unicode range.
The html output and transform spellings are polyglot (XML-valid), in
preparation for an EPUB target. New suites: transform_test, character_test
(engine), typography_test (SKS).

(from dev 07ce5ea86a0a)
2026-08-23 20:48:26 +02:00

83 lines
1.6 KiB
Plaintext

@@@argtype document_structure |
Structure of a document: plain, article, or book
:pattern plain^|article^|book
:default plain
@@@
@@document.k
:title
:subtitle
:page_title
:author
:date
:version
:logo
:favicon
#[
:nav.bool false
:toc.bool false
]#
:structure.document_structure
:text
:files
:cache.bool true
:css_text
:css_files
:frame_background_color black
:frame_text_color white
:nav_background_color rgb(80%,85%,90%)
:nav_text_color black
:js_text
:js_files
:include_sks_css.bool true
:include_sks_js.bool true
:include_fonts.bool true
:serif_font Crimson Pro
:sans_font Open Sans
:mono_font Inconsolata
:font_scale 1.0
:landscape.bool.tex false
:paper_size..tex a4paper
:leading.float.tex 1.05
:point_size.int.tex 11
:ragged_right.bool.tex false
:cover..tex
:prolog..tex
:two_column.bool.tex false
:copyright
:bottom
:use_pages_dir.bool.html true
:create_output_directory.bool true
:output_directory_name
:resources_in_file.bool false
: Top-level document structure
@@
@@document.html,tex :: @eval :cpp *KLAMMERTEXT_HOME*/sks/document/document document @ @@
# The following definition of @document.txt is not adequate (it ignores :files,
# for example), but it enables tests of other txt klammers for now. When one of
# the arguments is empty, the justifcation postprocess should remove multiple
# lines, but __VSPACE__ inserts a space character, which prevents the lines
# removal from the justification function. You can also see the extra space
# before the *subtitle* value.
@@document.txt ::
@eval "*title*".upper() @ @nl@
*subtitle*
*author* @nl@
*date*
*text*
@@