Commit Graph

39 Commits

Author SHA1 Message Date
Eli Barzilay
75f710dc62 Some styling. 2012-07-06 16:07:30 -04:00
Eli Barzilay
efda1706d8 Use the new wrap-line' in scribble/eval'.
This might have output that is a little better in cases where the
wrapped string is longer than `maxlen', for example, with an input of:

  "    x xxxxxxxxxxxxxxxx..."

and wrapping at 10 characters, the output was

  "    x\nxxxxxxxxxx\nxxxxxx..."

and now it's

  "    x xxxx\nxxxxxxxxxx\nxx..."
2012-05-06 06:15:04 -04:00
Eli Barzilay
89b9ad0dde New wrap-line' function in a new scribble/text/wrap' module.
This should probably become documented if it's stable enough.  For now
it's intended for building wrapping functions, so it's only documented
in comments the file.
2012-05-06 05:38:04 -04:00
Eli Barzilay
ace5fdf1f3 Clarify a comment for future work; a bunch of new internal definition uses. 2011-12-28 21:07:24 -05:00
Matthew Flatt
d3c56c9f13 generalized `begin-for-syntax' 2011-09-08 14:06:00 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Eli Barzilay
0af236dc2f Add block' to scribble/text', to explicitly ask for an indentation block.
* Lists are now either blocks or splices depending on whether they
  appear inside a block or a splice (default to block).

* Adjusted the docs and a single test where this mattered.

* Change the documentation to be "text.html" and to be titled "text
  generation".
2011-06-28 18:16:07 -04:00
Eli Barzilay
7f6733b617 Go down boxes too. 2011-05-23 14:05:13 -04:00
Eli Barzilay
69a490c10b More name improvements: scribble/text/textlang' -> scribble/text/lang'
and the same for `scribble/html/lang'.
2010-10-26 16:17:09 -04:00
Eli Barzilay
82221a51db Make the scribble/html' layout mimic the one for scribble/text'.
Ie, the difference between using it as a language and as a module is now
the same in both.  Also, improve `scribble/html' (and
`scribble/html/htmllang') by reproviding most of the corresponding text
modules.

Change `meta/web' accordingly, and improve code by making a new langugae
(`#lang meta/web').  This language is similar to `scribble/html' except
that it uses the plain scribble reader (not the `-inside' one), it
doesn't use the customized module-begin feature (that uses
`output-xml'), and it adds all the relevant bits of `meta/web/common'.
(Also, "meta/web/common.rkt" is gone, since it's used only as a language
now.)

This commit has lots of details and binding games, so it's tricky, and
potentially caused some problems.  (Took me a while to track many
breakages, so I won't be surprised if there are more.)
2010-10-26 15:36:29 -04:00
Eli Barzilay
7ac83e25c9 Provide `process-begin/text' to make it convenient to define more
`scribble/text'-like languages.  Use it to define a convenient syntax
for html modules.

This is not used by the web content files since they define functions
rather than spit out html when required, but makes it convenient to make
an html markup language similar to scribble/text.
2010-10-26 07:21:11 -04:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
a6694a08b7 fix make-base-namespace in scheme/base (PR 10870) 2010-04-26 06:47:02 -06:00
Matthew Flatt
8b31b1b552 fix racket runtime-config info; reduce boilerplate for HtDP and Scribble language families
svn: r18761
2010-04-08 13:53:59 +00:00
Carl Eastlund
2e0cb8226e Replaced every "langauge" (note swapped vowels) with "language".
svn: r17918
2010-02-01 01:41:51 +00:00
Eli Barzilay
05a937a334 no need for this hack yet
svn: r16062
2009-09-18 06:12:28 +00:00
Eli Barzilay
182f89d580 add with-writer-change (all of this is still uncertain and undocumented)
svn: r16061
2009-09-18 05:56:41 +00:00
Eli Barzilay
abc18a40c3 comment
svn: r15458
2009-07-16 12:25:13 +00:00
Eli Barzilay
19462e97c4 prefix -> add-prefix
svn: r15456
2009-07-16 12:21:52 +00:00
Eli Barzilay
b7b143120b added set-prefix
svn: r15440
2009-07-14 03:33:38 +00:00
Eli Barzilay
bb32de3560 add with-writer
svn: r15426
2009-07-11 02:10:02 +00:00
Eli Barzilay
c038edeada svn: r15422 2009-07-09 20:57:00 +00:00
Eli Barzilay
4239d22ded rename verbatim and unverbatim to disable-prefix and restore-prefix
svn: r15411
2009-07-08 21:28:55 +00:00
Eli Barzilay
1db2b65978 Finished the docs+tests, added some minor utilities.
svn: r14199
2009-03-21 15:06:48 +00:00
Matthew Flatt
9335e3cf28 doc updates for v4.1.5.2
svn: r14161
2009-03-17 21:06:42 +00:00
Eli Barzilay
3537435564 dont show spaces at the end of a line when not needed
svn: r14077
2009-03-12 18:25:08 +00:00
Eli Barzilay
ca30b05114 A complete rewrite of text output using port state now.
Also a few more text-controlling primitives.

svn: r14065
2009-03-12 02:27:12 +00:00
Eli Barzilay
3658ea87e5 The scribble/text language works much better now, with
indentation-aware output being possible.

svn: r14025
2009-03-10 09:36:54 +00:00
Eli Barzilay
8b5b6a53d9 Avoid lumping together output values as (output '(x y z)), use
separate output expressions instead.

svn: r14015
2009-03-08 21:10:07 +00:00
Eli Barzilay
d35ceb9f4f better to use begin
svn: r11852
2008-09-24 18:05:46 +00:00
Eli Barzilay
5b70b732a5 remove old unnecessary function definition
svn: r11845
2008-09-23 20:46:58 +00:00
Eli Barzilay
26b9bd6c3d * Added text utilities
* begin/collect, and a begin/text that is based on it (ignoring
  inter-defns spaces)
* include/text, available as `include' in the scribble/text langauge
* tests, only for begin/collect for now

svn: r11772
2008-09-16 00:46:35 +00:00
Eli Barzilay
0ccfb6f8b4 switch to plain-module-begin, to avoid redundant extra outputs
svn: r11556
2008-09-05 18:44:06 +00:00
Eli Barzilay
5028fe513a avoid using state, and add getting rid of pre-definition indentations
svn: r11555
2008-09-05 18:43:22 +00:00
Sam Tobin-Hochstadt
d45d7bcb12 Fix to compile.
svn: r11553
2008-09-05 17:59:49 +00:00
Eli Barzilay
672a37150d First version of textlang, using state to eliminate newlines
svn: r11552
2008-09-05 12:38:53 +00:00
Eli Barzilay
b866eeb557 read-inside-syntax -> read-syntax-inside
svn: r8912
2008-03-07 02:27:09 +00:00
Eli Barzilay
fb49374527 add an 'include' form to scribble/text
svn: r8909
2008-03-06 23:00:28 +00:00
Eli Barzilay
2aa9e5fade added a scribble/text language for preprocessing
svn: r8818
2008-02-27 21:34:33 +00:00