Murray Sargent: Math in Office

I'm a software development engineer in Microsoft Office and have been working mostly on the RichEdit editor since 1994. In this blog I focus on mathematics in Office along with some posts on RichEdit and the early Windows days

  • Murray Sargent: Math in Office

    Unicode Math Calligraphic Alphabets

    • 0 Comments
    Unicode needs a way to encode bold and regular math Calligraphic/Chancery alphabets as well as bold and regular script alphabets, since it turns out that Calligraphic and Script alphabets are used contrastively by some authors and [La]TeX has had both...
  • Murray Sargent: Math in Office

    Wingdings with Cyrillic, Greek, etc., Characters

    • 1 Comments
    This post describes some seemingly anomalous behavior that can happen when you type characters that have Unicode code points above U+00FF, such as Cyrillic and Greek characters, while a SYMBOL_CHARSET font like Wingdings is active. By definition such...
  • Murray Sargent: Math in Office

    Math Font Binding

    • 0 Comments
    The post RichEdit Font Binding outlines how RichEdit chooses fonts when you paste or otherwise enter plain text into a RichEdit control. But it doesn’t describe how math font binding differs from natural-language font binding. The differences are...
  • Murray Sargent: Math in Office

    Inserting and Getting Math Text in RichEdit

    • 0 Comments
    Starting with the Office 2007 RichEdit, it has been possible to enter math using the keyboard and to read and write RTF files that contain math zones. The RichEdit Text Object Model (TOM) ITextRange2 interface has methods to handle math programmatically...
  • Murray Sargent: Math in Office

    RichEdit Language Tag Handling

    • 0 Comments
    For years, many applications have used the locale ID (LCID) to identify the language and locale for text and other data. For example since 1997 (RichEdit 2.0), RichEdit’s character formatting has included CHARFORMAT2 ::lcid. The LCID can, in fact...
  • Murray Sargent: Math in Office

    Color Fonts

    • 0 Comments
    The popularity of emoji symbols has encouraged a variety of technological innovations, notably fonts with multicolor characters. This is different from just having a text color, which is described in RichEdit Colors . While some colored glyphs were part...
  • Murray Sargent: Math in Office

    Single Line RichEdit Performance Runs

    • 1 Comments
    In applications that have lots of independent text instances such as spreadsheets and complex dialogs, one wants to know the tradeoffs between rapid display, memory usage, and editing functionality. As noted in the post Flyweight RichEdit Controls , using...
  • Murray Sargent: Math in Office

    RichEdit Input APIs

    • 0 Comments
    With on-screen keyboards used commonly on phones, tablets and even on laptops, one might wonder how such keyboards can input characters and commands into a RichEdit control. With traditional hardware keyboards, messages like WM_CHAR, WM_KEYDOWN, and WM_SYSKEYDOWN...
  • Murray Sargent: Math in Office

    Autolink Color Contrast

    • 0 Comments
    Typical documents use black for the text color and white for the background. This gives the highest contrast. Hyperlinks are often displayed in blue, which gives good contrast on a white background. But other combinations of colors may not be so easily...
  • Murray Sargent: Math in Office

    Equation Numbering in Office 2016

    • 10 Comments
    Word 2016 and PowerPoint 2016 join OneNote 2010 (and later) in offering a way to display equation numbers flushed to the right margin. To enter an equation number using the linear format (see Section 3.21), type the equation followed by a # (U+0023) followed...
  • Murray Sargent: Math in Office

    Hot Keys and altGr

    • 6 Comments
    The earlier post, RichEdit Hot Keys, lists all built-in RichEdit hot keys. In particular, it lists a popular hot key for typing the Euro (€), ctrl+alt+e, which works for some languages, such as US English. A problem may arise when altGr+e is assigned...
  • Murray Sargent: Math in Office

    RichEdit Colors

    • 1 Comments
    Occasionally people ask how foreground (text) and background colors work in RichEdit. This post gives an overview of RichEdit colors in a variety of scenarios including default coloring, formatted coloring, selection coloring (both normal and acetate...
  • Murray Sargent: Math in Office

    Math Language Tag

    • 7 Comments
    To guide proofing tools to use the correct dictionaries and autocorrect lists as well as to display preferred glyphs, it’s very handy to associate language tags with text runs. For many years, Windows has provided a language tag property called...
  • Murray Sargent: Math in Office

    Two Phonetic Scripts: Vietnamese and Korean

    • 0 Comments
    I just visited two very interesting countries, Vietnam and Korea. Being actively involved in writing software (mostly RichEdit) for editing the world’s scripts, I was naturally fascinated to see Vietnamese and Korean text displayed in profusion...
  • Murray Sargent: Math in Office

    Ruby Text Objects

    • 6 Comments
    Chinese characters are used to represent syllables and words in a number of East Asian languages. In each language, the characters are pronounced differently and their meanings may differ as well. To help clarify the pronunciation and/or semantics, “ruby...
  • Murray Sargent: Math in Office

    Math Symbol Hierarchy

    • 0 Comments
    The Unicode Standard 7.0 has 2311 math symbols not including the ASCII letters and the standard combining marks like tilde, which are also used in math zones. Such a large number of symbols can be confusing if not intimidating to people who don’t...
  • Murray Sargent: Math in Office

    Smart Lighting

    • 0 Comments
    This post involves an old passion of mine, computerizing homes. First some background. I spent the academic year 1975-76 on sabbatical at the Max Planck Institute for Solid-State Physics and the University of Stuttgart in Stuttgart, Germany researching...
  • Murray Sargent: Math in Office

    Entering Unicode Characters

    • 1 Comments
    As noted in the post Symbols and Emoji we have the ability to input characters in much more powerful ways than possible before the advent of modern computers and smart phones. We can insert symbols chosen from large galleries ( Character Map , Office...
  • Murray Sargent: Math in Office

    Symbols and Emoji

    • 3 Comments
    The emoji symbols (literally picture characters ) introduced by Japanese cell phone carriers have captured the imaginations of computer users around the world. So much so that occasionally many symbols created long before the emoji are now being treated...
  • Murray Sargent: Math in Office

    RichEdit Plain-Text Controls

    • 0 Comments
    A Unicode plain-text editor appears to have a single set of character formatting properties for the entire text and a single set of paragraph formatting properties. With NotePad, for example, you can choose a normal, bold, italic, or bold-italic font...
  • Murray Sargent: Math in Office

    Math Greek Letter Bug Fixed

    • 3 Comments
    When Word 2007 and later versions write an RTF file that includes math alphanumeric symbols (see U+1D400..U+1D7FF ), they convert the symbols back to ASCII or Greek in the BMP (basic multilingual plane) and then write the characters out using the appropriate...
  • Murray Sargent: Math in Office

    Crisp Text Display

    • 8 Comments
    Kaspar commented on my post Office Adopts New Windows Display Technology “I always wondered why the text in OneNote 2013 looks so much better than Word 2013.” Curious, I typed some math into Word and OneNote on my 3200 x 1800 resolution Samsung...
  • Murray Sargent: Math in Office

    OpenType Math Tables

    • 5 Comments
    The math tables created for the math facility in Word 2007 and other Microsoft Office applications are now officially part of the OpenType standard ISO/IEC CD 14496-22 3rd edition. See Section 6.3.6 MATH. You can download a copy of the whole standard...
  • Murray Sargent: Math in Office

    BiDi Hyperlinks

    • 0 Comments
    More precisely, this post is about BiDi Internationalized Resource Identifiers (IRIs) . These objects are a generalization of Universal Resource Identifiers (URIs) that can contain a large variety of nonASCII characters, such as most alphabetic characters...
  • Murray Sargent: Math in Office

    More on Equation Numbering

    • 10 Comments
    The book Creating Research and Scientific Documents using Microsoft Word gives a method for numbering equations that works with all versions of Word from Word 2007 on and has automatic renumbering of the equations and the references to the equations....
Page 1 of 6 (136 items) 12345»