Commit Graph

1324 Commits

Author SHA1 Message Date
Eli Barzilay
c3d02f1416 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..."

original commit: efda1706d87045cbe2882c9c4b77b34a72e3594b
2012-05-06 06:15:04 -04:00
Eli Barzilay
63427f262e Streamline all scribble tests.
original commit: 36394500e552b1f00fca97b2e99fc674cd3a5857
2012-05-06 05:53:19 -04:00
Eli Barzilay
283bcc6ff5 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.

original commit: 89b9ad0dde5298516934f4df016c27b60e10f86d
2012-05-06 05:38:04 -04:00
Robby Findler
95575d09b0 fix proc-doc/names documentation
closes PR 12739

original commit: f2816e72b4a106399ea075988d337c6ab0f38076
2012-05-03 11:36:09 -05:00
Asumu Takikawa
c89374a441 Add an example to scriblib/autobib docs.
original commit: 420b66ca4e4ab0a06ba4b620f8ce729c4a5dd083
2012-05-02 22:39:06 -04:00
Matthew Flatt
bca4c000ba racket/sandbox: change syntax-object wrappers generated for locations
Generate wrappers consistent with a reader-level absence of `.'s,
instead of wrapping every pair. This change fixes the `syntax-e'
example in the Guide's description of syntax objects.

original commit: 54a6ba8d363f441d0bf3d4b15df0170215b84b8e
2012-05-01 16:48:15 -06:00
Matthew Flatt
548627c404 scribble/eval: change string or byte-string expression handling
Use `datum->syntax' instead of `begin' to protect the string or byte
string. Danny Yoo suggested this change.

original commit: 23296615ec7cddb34257486b62094048b085ff6e
2012-05-01 16:48:15 -06:00
Matthew Flatt
2c0f9c9480 scribble: for Latex, pick tt encoding of <, >, and | explicitly
original commit: 393a1f441ac1cab46000c72ea0901c3adac163e2
2012-04-29 11:23:37 -06:00
Matthew Flatt
a9cb0003ec scribble: change Latex rendering of empty hidden part titles
original commit: fc1089c84220582e627e0931438c275965228550
2012-04-29 10:37:11 -06:00
Matthias Felleisen
c971d20757 add a form to declare a module/library deprecated
original commit: 9ef66b80eac46a18fd200cef2f8c084ca7f6a0b7
2012-04-28 13:25:32 -04:00
Danny Yoo
876b221b05 small typo
original commit: a067380622833a9c5153d88f71f614234e7fb57c
2012-04-28 05:27:34 -04:00
Matthew Flatt
6a773e5078 scribble/bnf: add `BNF-seq-lines'
original commit: 563909c3285cd30f076b37619b5623c24888f2c0
2012-04-26 17:59:19 -06:00
Matthias Felleisen
497a6e15cb removed code:comment hack that clearly never should have been there
original commit: 3e1e9c876312de7a844303e2fec553bf0bd61728
2012-04-23 20:01:58 -04:00
Eli Barzilay
eb02149bb7 Make it possible to run each scribble test file by itself.
original commit: 115a3dfbac711d1ef8de2f52d9d1599bbf708333
2012-04-17 14:04:57 -04:00
Robby Findler
9a97f6693f adjust the way 'new' is laid out in the documentation to be more DrRacket-like
original commit: 0b71ebecafca03470c2e26783e5afbf05df30dce
2012-04-14 14:54:19 -05:00
Matthew Flatt
da393a6b19 add #:line-number-sep' to codeblock'
original commit: c5e5a0349a9202e2f997eca16029835b9885d740
2012-04-11 11:49:01 -06:00
J. Ian Johnson
743e0afbfb Sort bibliographies by authors' last names.
(Tweaked by Vincent.)

original commit: 3caf0aca23a293271dd7245f42b28dccaab535f6
2012-04-05 19:04:54 -04:00
Matthew Flatt
d327ca1190 scribble: add 'block style for `table'
original commit: 20256a3f1504f44ccb10c128910b4d822bd857cf
2012-04-05 06:58:53 -06:00
Jay McCarthy
e287958185 Moving tests re: Sam
original commit: 1d19a844f4e63de3d3709cd828bb9922c8c952eb
2012-03-30 23:54:42 -06:00
Jay McCarthy
b33bd7bf33 Autobib errors with no authors or dates on a bib entry. Test included.
original commit: 13e36fbec4d50813ced3ae80db8c1a641952f719
2012-03-29 15:44:27 -06:00
Matthew Flatt
1bb78b43fe scribble: for Latex/PDF output, use \makebox for precise pict widths
Otherwise, the width of a pict is implicitly rounded up, since
the PDF bounding box is an integer.

original commit: 4735666cd9a3a5de4e40202b23a9d8da034ef22e
2012-03-27 13:14:54 -06:00
Matthew Flatt
70332eb7ce make HTML rednering work when a `part' has not tags
original commit: 2d87d48ebdb831fafc398a603c2582bb87ce8592
2012-03-25 19:25:35 -06:00
Matthew Flatt
219c78cc7b add missing "jfp.css"
original commit: 6c1e1635abfd125d866c5202e8d19cc548cd2299
2012-03-25 19:25:35 -06:00
Vincent St-Amour
9a091e2d4f Fix bug in autobib's handling of urls.
original commit: 999de5a4884e07f4f5cc48910bd658b57ef46fdb
2012-03-19 11:10:22 -04:00
Robby Findler
5be58073cb disable the drracket toolbar buttons for scribble/lp files
original commit: 4fe8cd344c09390b20eb7c9cca415d79753d642b
2012-03-17 19:24:33 -05:00
James Ian Johnson
f280030d0c Bibliographies had a nondeterministic render order. Fixed. Added tests for disambiguation.
original commit: 6e7fb4e7efd6efc692f4305740754a91ebf70dde
2012-03-13 18:38:31 -04:00
James Ian Johnson
875843a4e1 It was possible for a multi-citation to be ambiguous and mention a something not referenced anywhere else. Added a safeguard so that the citation hash is properly populated.
original commit: 337be4a677bdbd3aeae9926fd45727944ed63d3d
2012-03-13 18:38:30 -04:00
James Ian Johnson
ca961ce44b Added the ability to disambiguate between citations using autobib.
original commit: 2c63ce2286da4113baa9c32d5d75bf8189bcbb35
2012-03-13 18:38:30 -04:00
James Ian Johnson
ce2dc58b4c Better disambiguation for autobib. Delays rendering bib elements because the disambiguation must be accounted for.
original commit: f3dc5796bedcc4390382f0c9d6790caf68d11a99
2012-03-13 18:38:30 -04:00
James Ian Johnson
403058dcf2 Added the ability to disambiguate between citations using autobib.
original commit: 6f1c6b7d92f9654f84dba446edd0df377ee262eb
2012-03-13 18:38:30 -04:00
David Van Horn
c50afd054e Fix contract on filebox to reflect documentation.
original commit: b8d3219b1b8000f367f6660f09e1870a2b857b72
2012-02-28 19:40:21 -05:00
Jay McCarthy
e517a09290 Squelch newline citations
original commit: d7aa944ebac6bed0c7986ede99bd0fa1fb1e61c3
2012-02-20 10:50:47 -07:00
Eli Barzilay
404c08f8c3 Revise commented code so it can replace exiting code without dependency issues.
original commit: 31746a2d9e52202e752850012bb509f7e167e2ff
2012-01-26 13:20:26 -05:00
Jay McCarthy
3b50061de1 Throw an error when required fields are missing, rather than letting scribble error
original commit: 2d0d4823a78147cc9fa4dfa85fc09a5a609ac2d1
2012-01-25 16:48:11 -07:00
Matthew Flatt
e151e32b82 change Scribble xref formats, so that HTML info works for Latex
There's no particular reason that any one format will have all
the information that other formats need, but it conveniently works
for now that HTML info can subsume Latex info.

original commit: a1fd742ed022035732b4a0c778168cc6b862933a
2012-01-11 16:39:52 -07:00
Matthew Flatt
bf6b952964 add ffi/com', ffi/unsafe/com'
original commit: ff41a896bc03ccba95da0ba0a8e4b38c70bab278
2012-01-10 18:35:32 -07:00
Matthew Flatt
3f4465aada make scriblib/figure' work with scribble/jfp'
original commit: 3b87b735554b216d78690e4bc25f586988c08311
2012-01-09 13:29:56 -07:00
Matthew Flatt
54de2e9413 fix typo
Reported by J. Ian Johnson

original commit: fb46daafa09c39a5029efd872933f8db20822c41
2011-12-31 06:32:13 -07:00
Eli Barzilay
65e44be261 Make a `resource' struct so it is identifiable.
(Also, change a `define-struct' to a `struct'.)

original commit: 787f3151de5f803fa5b54e6a4d4d2219c72d0b4c
2011-12-28 21:07:24 -05:00
Eli Barzilay
73784d91d9 Remove the `referrer' argument from resources.
This turned out to be a bad idea.  The thing is that some resources need
to be referred to in multiple ways -- for example, different texts in
links of different kinds, or using the URL directly in some cases.  The
existence of `get-resource-path' is a witness for this problem, since it
was used for such cases -- this function is removed as well.

There's no point in trying to generalize this here: instead, go back to
a simpler system where a resource always returns its URL (with an
optional argument to get an absolute URL).  When a `referrer'
functionality is needed, build it on top of that, in a place where it
makes more sense.  (That is, in a specific code for generating content,
where there could be a decision that resources have plain links and also
a very short link for use in navbars.)  Otherwise, it's usually simpler
to just define resources and referrers separately (as different
bindings, the latter uses the former).

original commit: 180651d04d554bb29a6128dd66a292d354140535
2011-12-28 21:07:24 -05:00
Eli Barzilay
984496bef4 Switch delay's to lazy's.
original commit: c8c13e46bb8412b10a97acf490e015dd72079615
2011-12-28 21:07:24 -05:00
Eli Barzilay
27ac7bce2f Clarify a comment for future work; a bunch of new internal definition uses.
original commit: ace5fdf1f3609fff3c583f8ea8fa050a99ac2cf3
2011-12-28 21:07:24 -05:00
Matthew Flatt
f330897ca1 fix for `scribble --text' and tables
original commit: dcedd6e2be5b58bf5f26e1a5c7f5305502d889f8
2011-12-21 11:27:06 -07:00
Matthew Flatt
f5ce9df901 scribble: avoid line-break between "#" and "<void>"
original commit: 1b4f13e674a640cfca5808a024393e047b4d7b19
2011-12-18 07:27:32 -07:00
Matthew Flatt
27d597b71f intern strings, etc. only when making syntax objects, not in `read'
Rename `read-intern-literal' to `datum-intern-literal'.

Interning is needed only in `read-syntax' or `datum->syntax' to
set up the invariants that the bytecode compiler needs for cross-module
optimization. When `read'ing numbers from a data file, meanwhile,
interning slows things down a lot and doesn't seem worthwhile.

original commit: ee775c3cc3088a8de848399b3c1eec97bbc52b89
2011-12-14 16:03:44 -07:00
Matthew Flatt
9d0ff0cdfd more interning related to Scribble xref
original commit: 17504a960eb552992818a9b303457d58f9171b2a
2011-12-10 11:43:58 -07:00
Matthew Flatt
4dacb9f7a8 strip value from 'dep tag
The value isn't used; a 'dep tag is ony to establish
dependencies, and the relevant value is with a 'form or
'def tag. Avoiding the extra value saves another 5% in
cross-reference files.

original commit: 28ee1570ae2ac68007af5798b5964a859ffcb49b
2011-12-10 11:43:58 -07:00
Matthew Flatt
f1a593d3a3 read-intern strings generated by Scribble; other interning
This change saves a small amount of space in cross-reference files
and some space in loaded cross-reference information.
It also saves work converting strings to mutable on deserialize,
although the performance difference seems negligible.

original commit: b2fade9206590173e4c2e346357ad13150525387
2011-12-10 11:43:58 -07:00
Matthew Flatt
c17636d399 fix `defform[*]' handling of #:id and grammar production
In @defform*[#:id x1 [(qqq x1)]], for example, `#:id x1' needs to
calcel the default treatment of `x1' within `(qqq x1)' as
a metavariable, while treating `qqq' as a meta-variable.

original commit: 7d2914fc8a8f2647605da1d6699d0bc54685a5f3
2011-12-03 10:03:13 -07:00
Matthew Flatt
ef02b4039c scribble: fix HTML rendering of table in nested flow starting item
original commit: 07342303e5eb63c0d255cacaa49faabc8c667d19
2011-12-03 08:41:15 -07:00