This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
typography in dbprint.dsl
- From: david aumueller <lists at huah dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 09 Mar 2002 20:08:01 +0100
- Subject: DOCBOOK-APPS: typography in dbprint.dsl
(1) In docbook-dsssl-1.76 italic monospace and strong monospace do not
inherit verbatim-size-factor. Parts of my new dbprint.dsl [see below].
(2) Good typography is to typeset acronyms a little bit smaller than
normal, e.g. 9.5pt instead of 10pt is a good font-size for acronyms not to
catch the eye too much. (I'm not talking about Small Caps here ;)
So I inserted "font-size: ..." in the "(define $charseq$" area. [see below
below]
Now it gives some 'feedback' to use <acronym>. *g*
Is this something you might add in an update?
Regards, david
;(1)
(define ($mono-seq$ #!optional (sosofo (process-children)))
(let ((%factor% (if %verbatim-size-factor%
%verbatim-size-factor%
1.0)))
(make sequence
font-family-name: %mono-font-family%
font-size: (* (inherited-font-size) %factor%)
sosofo)))
(define ($italic-mono-seq$ #!optional (sosofo (process-children)))
(let ((%factor% (if %verbatim-size-factor%
%verbatim-size-factor%
1.0)))
(make sequence
font-family-name: %mono-font-family%
font-size: (* (inherited-font-size) %factor%)
font-posture: 'italic
sosofo)))
(define ($bold-mono-seq$ #!optional (sosofo (process-children)))
(let ((%factor% (if %verbatim-size-factor%
%verbatim-size-factor%
1.0)))
(make sequence
font-family-name: %mono-font-family%
font-size: (* (inherited-font-size) %factor%)
font-weight: 'bold
sosofo)))
;(2)
;acronyms should be sth like half a point smaller to not stand out
(define ($charseq$ #!optional (sosofo (process-children)))
(make sequence
font-size: (* (inherited-font-size) 0.975)
sosofo))