If APIs aren't yet available, you can use HTML for inserting some types of rich content, such as pictures. You can try this and other snippets in the Script Lab add-in on Word! To learn more about Script Lab, see Explore Office JavaScript API using Script Lab. For an example, see the Insert formatted text code snippet. Start with the APIs available through the WordApi requirement sets to see if they provide what you need. So what are your options when you need to add rich content to a document, such as images, formatted tables, charts, or even just formatted text? These are called coercion types, and they include plain text, tables, HTML, and Office Open XML. If you're building Office Add-ins to run in Word, you might already know that the Office JavaScript API (Office.js) offers several formats for reading and writing document content. If for some reason you want to type “-flat,” “-sharp,” or “-natural” and override the automatic change, type what you want and then press Ctrl-Z (Undo) to change the symbol back into text.Provided by: Stephanie Krieger, Microsoft Corporation | Juan Balmori Labra, Microsoft Corporation.The problem with doing this is that you will have to create a separate AutoCorrect entry for each note (Ab, Bb, Cb, etc.). Secondly, you might be tempted to set up your AutoCorrect to use these instead of the (for example) “B-flat” that I have suggested. If you are in the habit of using the pound sign (#) and lowercase b for sharp and flat signs, first of all, shame on you for such unprofessional documents.I find these to be problematic for use in Word, and prefer to stick with text fonts. If you use music notation software such as Finale on your computer, you may have notation fonts installed.Experiment with the fonts on your system that have the music symbols, and find one that works for you. In the sample below, you can see that on the left, the line spacing remains consistent (the flat is in MS Reference Sans Serif) on the right, the flat symbol takes up more vertical space and makes its line taller (Lucida Sans Unicode). I like the MS Reference Sans Serif font for this because it produces appealing symbols AND because it doesn’t mess up my line spacing. Any font with “Unicode” in the title (like “Arial Unicode” or “Lucida Sans Unicode”) is likely to have the music symbols, but others might have them, too.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |