About Arbortext Styler > Non-Latin Language Support > Hanging Punctuation
  
Hanging Punctuation
Arbortext Styler provides the option to permit punctuation characters to hang outside the margin of any text area formatted as a block. With the hanging punctuation option set for the element that contains the text, certain punctuation characters will be placed outside the text margin if they appear at the end of a line:
Ideographic comma x3001
Ideographic full stop x3002
Latin comma x002c
Latin full stop x002e
The hanging punctuation option is activated (or deactivated) in the Hanging punctuation (Print/PDF only) property field, located in the Indent category for elements, contexts, conditions, and property sets.
* 
This formatting is only effective when publishing the document for print or PDF with an Arbortext Styler stylesheet and the PTC ALD print engine. The Hanging punctuation (Print/PDF only) option not available in the Indent category if either FOSI or XSL-FO is set as the active print engine.
See Logic for Print/Preview Engine Selection for information on how to set the effective print engine for your Arbortext Styler environment.
This capability can be applied to a number of different cases. Suggestions are made below:
Hanging punctuation active throughout entire single document — enable the setting on the document's top level element and it will be inherited through all children elements in the document.
Hanging punctuation active in some of a set of different language documents styled from a single stylesheet — create a condition based on a test for the value of the xml:lang attribute for the document's top level element and enable the setting for that condition.
Hanging punctuation active in some parts of a single document in multiple languages — enable the setting for the elements, contexts or conditions within the document that should display hanging punctuation, for example the division elements where language transitions will occur.
* 
The use of hanging punctuation is not exclusive to non Latin languages. Using the same UI functionality documents in other languages such as French may display this type of alignment.
Example: Activating Hanging Punctuation for an Element
The example shown below describes how to specify that hanging punctuation should apply for the context first para in a chapter in an XML document based on the DocBook document type.
1. In Arbortext Editor, open the file transport.xml located at Arbortext-path/samples/styler.
2. Choose Styler > Edit Stylesheet to open the stylesheet currently associated with the document for edit. This is a read only stylesheet so you will need to save a local copy if you want to make amendments.
3. Configure your Arbortext Editor with Styler environment to use PTC ALD as the effective print engine. See Logic for Print/Preview Engine Selection for a description of the hierarchy of print engine settings.
4. In the Elements list, create the context first para in chapter.
5. In the Indent category for the context, set the Hanging punctuation (Print/PDF only) field to Yes.
This field is only available if your environment is set to use PTC ALD as the effective print engine.
6. In Arbortext Editor, navigate to the first paragraph in the sample document, which begins “Welcome to the world of....”. Place one of the four defined punctuation characters at the end of a line in the paragraph.
7. Choose the Preview > Print menu option. In the PTC ALD preview that appears, note that the punctuation characters you placed in the first chapter are displayed outside the main text margin.
8. Go back to the Indent category for the first para in chapter context. Set the Hanging punctuation (Print/PDF only) field to No.
9. Run a second PTC ALD print preview action and note the difference in the display of the output of the same chapter. The punctuation characters are now included in the main text block.