Scribble soft-hyphen support for Latex rendering; ?-' in scribble/base'

This commit is contained in:
Matthew Flatt 2011-01-07 09:15:12 -07:00
parent 315fdf071a
commit 21d324a169
3 changed files with 9 additions and 1 deletions

View File

@ -262,11 +262,12 @@
;; ----------------------------------------
(provide ._ .__ ~ -~-)
(provide ._ .__ ~ ?- -~-)
(define ._ (make-element (make-style "Sendabbrev" null) "."))
(define .__ (make-element (make-style "Sendsentence" null) "."))
(define ~ "\uA0")
(define ?- "\uAD")
(define -~- "\u2011")
;; ----------------------------------------

View File

@ -626,6 +626,7 @@
c)]
[(#\# #\% #\& #\$) (format "\\~a" c)]
[(#\uA0) "~"] ; non-breaking space
[(#\uAD) "\\-"] ; soft hyphen; unfortunately, also disables auto-hyphen
[(#\uDF) "{\\ss}"]
[else
(if ((char->integer c) . > . 127)

View File

@ -367,6 +367,12 @@ which is equivalent to @racket['nbsp] as an element.}
A string containing the non-breaking hyphen character.}
@defthing[?- string?]{
A string containing the soft-hyphen character (i.e., a suggestion of
where to hyphenate a word to break it across lines when rendering).}
@defthing[._ element?]{
Generates a period that ends an abbreviation in the middle of a