Convert Backslash To Yen Sign When Entered. When the object is serialized out as xml, its qualified name is w:doNotLeaveBackslashAlone.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
doNotLeaveBackslashAlone (Display Backslash As Yen Sign)
This element specifies whether applications should autodisplay the backslash character using the yen character when displaying the contents of this document.
Typically, no automatic display-only conversion of one character to another is performed. This element, when present with a val attribute value of true (or equivalent), specifies that all occurances of the backslash character (\, U+005C) shall automatically be displayed using the yen symbol (¥, U+00A5) when the contents of the document are displayed. This setting does not change the Unicode value of the character stored in the underlying WordprocessingML document.
[Rationale: In Japanese code page 932, 0x5C is the yen sign (whereas, in most other code pages, it is the reverse solidus–also known as the backslash). In order to accommodate the user expectation that this code point appear as the yen sign, this setting dictates that the character be remapped, for display only, to the Unicode character ¥, such that the expected appearance is maintained. end rationale]
[Example: Consider a WordprocessingML document containing the following:
Hello \ world.
The default presentation would have exactly that:
Hello \ world.
However, if this compatibility setting is turned on:
<w:compat> <w:doNotLeaveBackslashAlone /> </w:compat>
Then the backslash would be displayed as ¥, resulting in the following output:
Hello ¥ world.
This element’s content model is defined by the common boolean property definition in §17.17.4.
© ISO/IEC29500: 2008.