[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Break element in FM+SGML



= I would like to create an element for rendering linebreaks in FM+SGML for
= formatting purposes. Does anyone know how to format an element as the
= equivalent of a soft return?
= 
= Thanks in advance,
= =======================================
= Barbara Matuzak 
= SGML Specialist, Internet Publishing Systems
= Cisco Systems, Inc. 

One of the simpler ways, if not "strict SGML" (the never-ending 'format
vs. content' debate) is to have a "break" element that is EMPTY, i.e.,
no content permitted.

In the EDD, in all contexts format as a TEXT RANGE with a suffix of
"\n" (a soft return or "newline" character):


ELEMENT break

   Text format rules

	1.  In all contexts.
		Text range.

  Suffix rules

	1. In all contexts.
		Suffix:    \n

If you want to get fancier, define different contexts in the suffix
rules and scale the size of the font to achieve appropriate spacing
for your line breaks.

IHTH.

- Lester
----------------------------------------------------------------------
 Lester C. Smalley                    | email:  lsmalley@infocon.com
 Manager, Computer Systems & Training | USMail: P. O. Box 310
 Information Consultants, Inc.        | Phone:  (302) 239-2942 ext-13
 Hockessin, DE 19707-0310             | FAX:    (302) 239-1712
--------------------------------------+-------------------------------
INFOCON is a Premium VAR for Adobe, Sun, and related hardware/software
 dedicated to providing integrated office solutions for productivity.
----------------------------------------------------------------------
                         http://www.infocon.com/


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **