ArticleslgStudy

science

WYSIWYM

WYSIWYM is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand WYSIWYM rather than just read about it. In short: In computing, WYSIWYM (; what you see is what you mean) is a paradigm for editing a structured document. It is an adjunct to the WYSIWYG (what you see is what you get) paradigm, which displays the result of a formatted document as it will appear on screen or in print—without showing the descriptive code underneath.

WYSIWYM — main illustration
WYSIWYM — illustration

Key takeaways

  • WYSIWYM belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect WYSIWYM to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of WYSIWYM from memory before moving on to harder problems.

Reference excerpt

In computing, WYSIWYM (; what you see is what you mean) is a paradigm for editing a structured document. It is an adjunct to the WYSIWYG (what you see is what you get) paradigm, which displays the result of a formatted document as it will appear on screen or in print—without showing the descriptive code underneath. In a WYSIWYM editor, the user writes the contents in a structured way, marking the content according to its meaning, its significance in the document, and leaves its final appearance up to one or more separate style sheets. In essence, it aims to accurately display the contents being conveyed, rather than the actual formatting associated with it. For example, in a WYSIWYM document, one would manually mark text as the title of the document, the name of a section, the caption associated with a figure, or the name of an author; this would in turn allow one element, such as section headings, to be rendered as large bold text in one style sheet, or as red center justified text in another, without further manual intervention. More often than not, this requires the semantic structure of the document to be decided in advance before writing it. The editor also needs a system for exporting structured content to generate the document's final format, following the indicated structure. The main advantage of this system is the total separation of content and presentation: users can structure and write the document once, rather than repeatedly alternating between the two modes of presentation—an approach which comes with its own switch cost. And since the rendering of formatting is left to the export system, this also makes it easier to achieve consistency in design as well.

Document processors Unlike an unstructured, fixed-presentation document, a document processor rather than a word processor must be used for WYSIWYM. The first document processor which articulated itself through the WYSIWYM term was LyX document processor, although similar concepts can be traced back to earlier publishing systems such as LaTeX, TPS (modeled on pioneering experiments at Xerox PARC) and FrameMaker. For example, in FrameMaker, a document may be authored (i.e., viewed and edited) using two possible page views, the styling tags (called "formats") and contents of a document reside in "body pages", while structure and presentation are defined by "master pages". Multiple such documents can be linked together and programmed conditionally for a variety of applications. These elements can then be exported to corresponding tags which preserve some or all of their functionality in a markup language such as XML/HTML/CSS and PDF, or directly rendered down for final presentation in anything from PostScript to raw text. A different approach to the WYSIWYM philosophy is taken by GNU TeXmacs, which combines the on-screen representation of the document structure with an almost-faithful WYSIWYG rendering.

In web environments Major software vendors have integrated web-page creation features into their WYSIWYG products to increase their utility. Users can create an HTML web page in a word processor with no knowledge of HTML, but like nearly all IDE authored or handwritten web markup, these tools' automated analysis of the source format rarely accounts for a distinction between HTML's content and its presentation through means such as CSS during output. Such fixed-presentation HTML generators have been criticized, primarily because of the bloatedness and low quality of their code, and there are voices advocating for changes to the WYSIWYM model. One example of a WYSIWYM Web page editor is WYMeditor. In this editor, the structure of the documents is defined by the class attributes of HTML elements. These classes also allow the final appearance of the document to be applied. Although WYMeditor follows a WYSIWYM model, the document format is always HTML, so the new structures to be defined are limited to new classes, and the final document will always be built by applying presentational elements to these classes. Other CMSs are moving in the direction of providing some WYSIWYM interface for their users editing content.

See also Comparison of document-markup languages Lightweight markup language List of document markup languages Single-source publishing

Notes

References

Illustrations

WYSIWYM: Different views for content authoring
Different views for content authoring

Worked examples

Example 1 — a first encounter with WYSIWYM

Start with the simplest possible case. Write down what WYSIWYM claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to WYSIWYM before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about WYSIWYM ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of WYSIWYM

In research
WYSIWYM appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses WYSIWYM in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
WYSIWYM is common in secondary-school and first-year university syllabi. It links to neighbouring topics User interfaces, so understanding it makes those chapters shorter.
In everyday life
Look for WYSIWYM outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “WYSIWYM” →

How to study WYSIWYM in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what WYSIWYM means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain WYSIWYM out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is WYSIWYM in simple terms?

In computing, WYSIWYM (; what you see is what you mean) is a paradigm for editing a structured document. It is an adjunct to the WYSIWYG (what you see is what you get) paradigm, which displays the result of a formatted document as it will appear on screen or in print—without showing the descriptive…

Why does WYSIWYM matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study WYSIWYM?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on WYSIWYM.

Tags

  • User interfaces

Keep exploring