Commit Graph

1885 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
9aef0eaa22 Add standard .gitignore file. 2014-12-06 17:46:27 -05:00
Sam Tobin-Hochstadt
a316fc12c0 Remove extra directories. 2014-12-02 00:54:52 -05:00
Matthew Flatt
dd7bd356d9 Scribble manual: make "Images" section in ToC be useful
Remove the "Images" section for `scribble/manual`, add an "Images"
section for `scribble/base`.

As suggested by Shriram.

original commit: 92e00de9f3a8257a5434ec15030d60241940483e
2014-11-26 06:47:28 -07:00
Sam Tobin-Hochstadt
cae7bfe453 Remove stray reference to Racket in LICENSE files.
Related to PR 14842.

original commit: 3bbdd134b1754d51422eeaec1c35e9c62d45144c
2014-11-25 14:09:57 -05:00
Matthew Flatt
220d38c053 document current-read-interaction adjustment by at-exp
i.e., document the change in commit 015986fb4f.

original commit: 168e76ac0ef00ca503b60f662807105f7a63d13b
2014-11-03 12:52:08 -07:00
Robby Findler
990dc34ae3 Use the scale when rendering svg
Thanks to Antonio Menezes Leitao for the change

original commit: 046a851d7090f35a5966a3020e29d40c59948567
2014-10-26 07:08:08 -05:00
Robby Findler
81698b177c fix incorrect contact; closes PR 14798
please include in the 6.1.1 release

original commit: 86017992ab840e81f63742a1a0505bb47fd22abe
2014-10-25 21:52:18 -05:00
Matthew Flatt
389123af2f Scribble HTML: included needed tag prefixes in "Link to this section"
original commit: f79ac7b510b1b0c6b65744f815f0cd1740904383
2014-10-23 10:27:24 -06:00
Spencer Florence
ffa98a1c11 change typeset-code to conform to text:color<%>'s interface
The `typeset-code` function assumed that a lexeme must be `eof` on an
end-of-file, but `test:color<%>` allows it to be anything. Instead,
the check should be on type as 'eof.

original commit: d81f09d11e14a98a17a038881eb257f3b0363498
2014-10-21 12:46:14 -06:00
Robby Findler
2a4d132559 create the addon dir if it doesn't exist yet
original commit: 88baea6ccad3737cad06af7dfc65bed7a3903dcf
2014-10-10 23:22:58 -05:00
Matthew Butterick
0ee4ed12d1 fix docs for image
original commit: c9692b113f31c745213656f97a552b787a3fed0b
2014-09-07 07:47:19 -06:00
Matthew Flatt
b47e95950b scribble/eval: change handling of serializable convertible results
When an evaluation result from a sandboxed computation is convertible
(so that it should be preserved for rendering) and serializable, then
serialize the value from transfer from the sandboxed environment to
the rendering environment.

This change complements the one that makes `pict`s serializable.
Serializing a pict result avoids retaining the sandboxed environment,
including its instance of the `pict` and `racket/draw` modules,
when a sandbox-created pict is part of the generated document.
For example, the memory use of the result of "math.scrbl" is about
20% smaller with this change.

original commit: c9a11c4ee4dff8e099e30d8c5040b087dae4a42b
2014-09-04 23:46:18 +02:00
Matthew Flatt
f1c0d7ede0 scribble/srcdoc: add form-doc
original commit: 63e940d14708f2eb06e57e5239b9c98b84aeeebe
2014-08-22 13:25:35 -06:00
Sam Tobin-Hochstadt
02cd00e03b Fix URL query parsing in Firefox.
Closes bug 14686.

original commit: 51254f06267fb13d734e43413ae44740f29d4891
2014-08-18 13:52:06 -04:00
Jens Axel Søgaard
7be7c29080 Fix **racketmodname.
The case where (car a) is a string wasn't handled correctly. The error was provoked by sicp-manual.scrbl.
original commit: 9a4f6b1a194cda0b841bac36df18fa4b822bf469
2014-08-15 11:19:48 -04:00
Matthew Flatt
8baf45e435 add update-implies to package "info.rkt"s
original commit: eb9cbe20bf7b4ebc1eee63e2ca079ae566ff8c05
2014-08-14 16:49:53 +01:00
Matthew Flatt
f9164dee10 scribble: fix image metrics in HTML output for exact fractions
Avoid generating sizes such as `1003790/1581`.

original commit: 3801fc0432701c2081f9732aa793b3beb3bbc211
2014-08-05 16:00:18 +01:00
Robby Findler
e0c3ac776e add a scribble/blueboxes library to get the content of the
blueboxes in unstyled form

(moved from DrRacket here)

original commit: 24ecd045637a60114d51c9e33bf0035b1a9c046c
2014-08-02 01:52:44 -05:00
Matthew Flatt
a05ce99d9b scribble: recognize 'exact-chars even when a style name is #f
Patch from Tero Hasu.

original commit: 30a354c820160d8816746567403ee1a0f34f192a
2014-07-30 05:27:37 +01:00
Matthew Flatt
e17c2db777 scribble: fix spacing after a 'compact enumeration
original commit: 70afd4b6b18b6140a5b91c7349798ce10d92dde3
2014-07-25 11:02:07 +01:00
Matthew Flatt
52917bc3ec scribble: another Unicode mapping for Latex output
This mapping is needed by the "redex-unstable" documentation.

Merge to v6.1

original commit: a33c64b45f54404c50741f04137c62fbe5c4efe2
2014-07-18 07:39:33 +01:00
Matthew Flatt
ee3af7611f scribble: fix PDF rendering for image without bounding-box info
Merge to v6.1

original commit: 09b4445c7a28b1d8fc3feb2d4ab7a64e9a991a8a
2014-07-18 06:59:50 +01:00
Matthew Flatt
1558ad5532 scribble: fix documentation for tt and racketfont
The `tt` and `racketfont` functions treat their arguments strangely,
applying styles only to immediate strings and symbols.

Add `racketplainfont`, which is a non-strange version of `racketfont`.

original commit: 737330deb63dcfa01ebf304c3e5c06276a283c81
2014-07-14 11:36:26 +01:00
Matthew Flatt
54376250e0 Scribble Latex/PDF: fix quote and backquote rendering
When text is literally a quote (ASCII 39) or backquote (ASCII 96),
then render it in a way that prevents LaTeX from converting to
curly variants.

original commit: 69d64e2893cca5e143609494547b64b7f90b7228
2014-07-14 11:10:29 +01:00
Matthew Flatt
61df6d0660 at-exp and scribble: adjust reader to compose better with readtable extensions
The `at-exp` reader now delays picking up the current readtable until
`read`/`read-syntax` is called. Also, it uses the new 'dynamic configuration
of readers for the command and datum parts of an @-form, which delays a
decision of readtable on each part until reading the part.

Thanks to Alexander Knauth for sorting out pieces of the puzzle.

original commit: a087aea3e58560427980b28d9ccb64815edbff01
2014-07-14 10:21:56 +01:00
Robby Findler
42d4441521 fix author parsing for the case where a name ends with the letters 'and'
original commit: cc4344a585211b72629b995838fb73befdf95ec9
2014-07-10 19:26:47 -05:00
Robby Findler
57eeae8d5c bump version number for abbreviate-given-names addition
(from commit 74831b41cc2589af94a4e7cc6ffefa1d8809226c)

original commit: ba7adb58da724ab52e5a9ba3217f8b1ac0c07f53
2014-07-05 20:26:54 -05:00
Matthew Butterick
9777e8c6b2 restrict float behavior to narrow screens
original commit: 577f7ad4b1045a95a693d4e4574f89430d246fba
2014-07-04 05:17:20 +01:00
Matthew Butterick
8e5c19a160 add float behavior for margin-note* CSS
original commit: adc491ec80fd00b91b335642e7dbff41cba2c839
2014-07-04 05:17:20 +01:00
Matthew Flatt
5a869adef5 fix typo in doc implementation
original commit: b032784417a5c32e1419e55a301f87b911b066ee
2014-06-30 18:46:46 +01:00
Robby Findler
1b77da06be add @history[] note for 74831b41cc
original commit: 3cd15ceaa59a65241f11fe73618d046e96ead0ad
2014-06-30 09:56:51 -05:00
Matthew Flatt
758f1c00b3 scribble & pict: add history
These history notes should have been part of commits c4a58dc4a5 and
05760a12f6.

original commit: dac8ba2873f3f79addb9f91b5374a42f4d7640e5
2014-06-30 09:41:26 +01:00
Matthew Flatt
36df8c0c56 scribble/manual: change history sort order
Now that some entries have changes over multiple versions, a forward
sort order seems better than reverse to me.

original commit: a67ecb96ab18a54dff75f06a737c492ba92943a4
2014-06-30 09:19:42 +01:00
Matthew Flatt
271ec59ad2 scribble: use 'pdf-bytes+bounds8, etc.
Use 'pdf-bytes+bounds8, 'png-bytes+bounds8, etc. to convert images
for Latex/PDF and HTML output. The new conversions particularly
help with picts that draw text, since the baseline of the text
can be handled properly in HTML output.

The new conversion also helps hide the difference between a bounding
box and the "inked" area of a pict, since picts normally ink only
slightly outside the bounding box, and the default for pict conversion
pads the image with a few pixels/units in each direction.

Also, add a `++convert <fmt>` command-line option to select a
preferred target for image conversions. (This preference can be
overridden by the existing `render-convertible-as` style property
for HTML rendering.)

original commit: 05760a12f690b7efcd58e65ee2b723a05133e229
2014-06-27 17:35:42 +01:00
Robby Findler
a272f5a5ca fix default argument to #:convert-as-ps-not-pdf?
original commit: 62d2514ce275d1dda41ee237ca530f80b5357e61
2014-06-27 07:55:01 -05:00
Robby Findler
1afd6c802a add the --dvipdf flag to scribble
This adds a new back-end pipeline for generating pdf to
scribble, with the hope that included picts (e.g., those
generated by Redex) will look better when viewed with
on-screen pdf viewers

Current problem: the descent adjustment is messed up,
as can be seen by this example program's output:

 #lang scribble/base
@(require redex/pict
          pict
          redex/reduction-semantics)
@title{}
@(define-language L
   (e ::= (e e) x (λ (x) e)))
@(render-language L)

ff@(text "f" '(italic . roman) 20)ff

x@(text "x")y@(text "y")

original commit: 5280395f8802d21764ef074540421441cb8ac999
2014-06-27 03:29:50 -05:00
Matthew Flatt
adc82b0c67 scribble: add nosearchform to HTML output without a search box
original commit: 3d637c047c51674ab061c61f618fb925aa22800b
2014-06-26 16:07:04 +01:00
Matthew Flatt
6b302dcfc6 fix doc typo
original commit: 377ba62207768f1b0a925769dff56dff05e3a8bd
2014-06-26 15:31:58 +01:00
Matthew Flatt
feed786915 scribble: 'border and '{left,right,top,bottom}-border properties for cells
original commit: 2134dbf95293189d6f11bf896a3ba43d9fb10aaf
2014-06-24 11:30:14 +01:00
Matthew Flatt
e5ebb45c06 Scribble: improve Unicode handling for Latex/PDF output
Normalize strings to composed form before splitting a
string into characters to handle individually.

original commit: d970d5aaead2bfbae0651b583f79e6ac719c7d39
2014-06-23 06:28:50 +01:00
Robby Findler
6ac2c7cfef add abbreviate-given-names
This changes the behavior of make-cite and authors, but it would
probably be better to change the behavior of generate-bibliography

original commit: 74831b41cc2589af94a4e7cc6ffefa1d8809226c
2014-06-20 19:23:14 -05:00
Matthew Flatt
818981a308 scribble/decode: document treatment of whitespace by decode-content
original commit: 02d53d29fb4ab074ebaa0036bf27f10a949069bb
2014-06-04 13:38:24 +01:00
Matthew Flatt
ed2aa7b04f scribble: fix history spacing
original commit: 94dbfba0f3f77c9603bcba4aee249823cc91eeed
2014-06-04 13:34:03 +01:00
Matthew Flatt
78d5223eba rackunit/docs-complete: move to the "racket-index" package
Modules are not supposed to move to different packages, anymore, so
I'm breaking a rule. The problem is that having `rackunit/docs-complete`
in "scribble-lib" made "scribble-lib" depend on "racket-index", and
that's an undesirable dependency. (Installing Scribble shouldn't
force you to have Racket documentation.) I should have noticed
the problem when I moved `setup/xref` to "racket-index", but I missed
it.

As far as I can tell, there's only one package on pkgs.racket-lang.org
that isn't in the main repository and uses `rackunit/docs-index`. The
package doesn't correctly declare its dependencies, anyway.

original commit: d33c2252e10dbeb22e49c85f03707345e2756ce5
2014-06-02 12:34:12 +01:00
Matthew Butterick
9c34fe33c8 reduce size of manual-fonts.css
original commit: c4ebd6058ebe4eab04d7c323d7a75668043d576a
2014-05-29 09:49:08 +01:00
Matthew Flatt
0909ced11b scriblib/figure: make figure hyperlinks show start of figure
... instead of putting the figure's caption at the top of the
browser window.

I can't decide whether I like the technique here, which is to use
JavaScript to move a figure caption's <a name=...> when the page is
loaded.  On the one hand, fixing up HTML via load-time JavaScript code
seems ugly compared to generating the right HTML in the first place.
On the other hand, it simplifies the generatation of a
backend-independent Scribble document (i.e., don't try to generate
different target locations for HTML and Latex), and HTML-specific
behavior seems properly handled at the HTML/JavaScript level.

original commit: 2b33b8d9668988b67f6b68b9eb012eb6d8f417d5
2014-05-28 13:14:39 +01:00
Matthew Flatt
7e8ff47b5b scribble docs: fix example for literal
original commit: 81d7d0df4a53590e19ccaad294290af512712230
2014-05-14 06:10:50 -06:00
Matthew Flatt
6b76b2df2a scribble/base: add #:style argument to image
original commit: c9f13248e33502b71d2ff95b8bc38e28ff680491
2014-05-14 06:10:50 -06:00
Matthew Flatt
b5e473c5d9 scribble: fix HTML scaling of GIFs
Even without scaling, declare the size of a PNG or GIF in HTML
output.

original commit: 3f3e6e4cb421e8004c4e0c5ee5944718bdd686a3
2014-05-12 20:13:20 -06:00
Matthew Flatt
96fc0407d0 Scribble search, etc.: fix URL decoding
Use Javascript's decodeURIComponent() instead of unescape().

This repair makes searching for Unicode characters work from DrRacket
(e.g., via F1).

original commit: d1525edf62a1db2ade3c64dd17eb81bff87a4112
2014-05-11 08:34:58 -06:00