diff --git a/doc/guide/author/topics.xml b/doc/guide/author/topics.xml index 59dfe420b..58f2856ca 100644 --- a/doc/guide/author/topics.xml +++ b/doc/guide/author/topics.xml @@ -4067,6 +4067,12 @@ AC + IO + + GDScript + gdscript + + AC + Java java diff --git a/doc/guide/publisher/publication-file.xml b/doc/guide/publisher/publication-file.xml index 7c20f017d..5cf6cea6e 100644 --- a/doc/guide/publisher/publication-file.xml +++ b/doc/guide/publisher/publication-file.xml @@ -585,6 +585,7 @@
  • cpp (C++, Runestone server only)
  • java (Java, Runestone server only)
  • kotlin (Kotlin, Runestone server only)
  • +
  • gdscript (GDScript, Runestone server only)
  • python3 (Python 3, Runestone server only)
  • octave (Octave, Runestone server only)
  • none
  • diff --git a/doc/guide/publisher/runestone.xml b/doc/guide/publisher/runestone.xml index f68b2edd6..4c03b53d5 100644 --- a/doc/guide/publisher/runestone.xml +++ b/doc/guide/publisher/runestone.xml @@ -29,7 +29,7 @@
  • As much as possible, non-interactive versions of these problems will render in less-capable formats, like PDF, EPUB, and braille.
  • -
  • A program element with the attribute interactive set to activecode (even outside of a an exercise) will be realized as a Runestone ActiveCode interactive program, where programs can be edited, compiled, and run. In some cases a CodeLens interactive trace utility is also available. The language must be set. Supported values for the language when hosted at Runestone are: python, python3, c, cpp (C++), javascript, java, kotlin, octave (Matlab), sql, and html. When hosted on your own server, python, javascript, sql, and html, are supported with in-browser routines. So you do not need to configure anything server-side for this capability. See subsections of for details.
  • +
  • A program element with the attribute interactive set to activecode (even outside of a an exercise) will be realized as a Runestone ActiveCode interactive program, where programs can be edited, compiled, and run. In some cases a CodeLens interactive trace utility is also available. The language must be set. Supported values for the language when hosted at Runestone are: python, python3, c, cpp (C++), gdscript, javascript, java, kotlin, octave (Matlab), sql, and html. When hosted on your own server, python, javascript, sql, and html, are supported with in-browser routines. So you do not need to configure anything server-side for this capability. See subsections of for details.
  • Similarly, a program element with the attribute interactive set to codelens (even outside of a an exercise) will be realized as a Runestone CodeLens interactive program. This allows a reader to step through the program, much like in a debugger, but with more informative displays of the intermediate state of the program (and nothing like breakpoints or changing variable's values). This ability varies by language, and by hosting location. See subsections of for details.
  • diff --git a/examples/sample-book/rune.xml b/examples/sample-book/rune.xml index e78e94a6b..083943e79 100644 --- a/examples/sample-book/rune.xml +++ b/examples/sample-book/rune.xml @@ -88,6 +88,7 @@ along with MathBook XML. If not, see . +

    Otherwise they are rendered as text with syntax coloring. Either way, if a language is not specified, docinfo/programs/@language will be checked to determine what language to assume the code is written in.

    @@ -116,6 +117,21 @@ along with MathBook XML. If not, see . +

    A GDScript program will only be interactive if hosted on a Runestone server.

    + + + + + An interactive GDScript program, using <pubtitle>Runestone</pubtitle> + + + var language : String = "GDScript" + print("Hello, " + language) + + + + +

    A Java program will only be interactive if hosted on a Runestone server.

    diff --git a/schema/publication-schema.xml b/schema/publication-schema.xml index ee81b6440..0db990161 100644 --- a/schema/publication-schema.xml +++ b/schema/publication-schema.xml @@ -388,7 +388,7 @@ Calculator = element calculator { attribute model { "geogebra-classic" | "geogebra-graphing" | "geogebra-geometry" | "geogebra-3d" | "none "}?, - attribute activecode { "python" | "javascript" | "html" | "sql" | "c" | "cpp" | "java" | "kotlin" | "python3" | "octave" | "none"}? + attribute activecode { "python" | "javascript" | "html" | "sql" | "c" | "cpp" | "gdscript" | "java" | "kotlin" | "python3" | "octave" | "none"}? } Crossreferences = diff --git a/xsl/pretext-common.xsl b/xsl/pretext-common.xsl index e63a78d2a..f1c468530 100644 --- a/xsl/pretext-common.xsl +++ b/xsl/pretext-common.xsl @@ -8026,6 +8026,7 @@ Book (with parts), "section" at level 3 + diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl index 1e9b4fd94..9800687bc 100644 --- a/xsl/pretext-html.xsl +++ b/xsl/pretext-html.xsl @@ -13918,6 +13918,46 @@ TODO: + + + + + diff --git a/xsl/pretext-runestone.xsl b/xsl/pretext-runestone.xsl index 8b392bc5d..5553bb84c 100644 --- a/xsl/pretext-runestone.xsl +++ b/xsl/pretext-runestone.xsl @@ -2717,6 +2717,7 @@ along with PreTeXt. If not, see . browser jobeserver jobeserver + jobeserver jobeserver jobeserver jobeserver diff --git a/xsl/publisher-variables.xsl b/xsl/publisher-variables.xsl index b3e2541d4..8698f4a41 100644 --- a/xsl/publisher-variables.xsl +++ b/xsl/publisher-variables.xsl @@ -1912,6 +1912,7 @@ along with PreTeXt. If not, see .