Difference between revisions of "Character unit"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Open XML support)
Line 17: Line 17:
  
 
== Open XML support ==
 
== Open XML support ==
 +
* Line Spacing in Line Units
  
 
  <xsd:complexType name="CT_Spacing">
 
  <xsd:complexType name="CT_Spacing">
    <xsd:attribute name="before" type="ST_TwipsMeasure" use="optional">
 
      <xsd:annotation>
 
        <xsd:documentation>Spacing Above Paragraph</xsd:documentation>
 
      </xsd:annotation>
 
    </xsd:attribute>
 
 
     <xsd:attribute name="beforeLines" type="ST_DecimalNumber" use="optional">
 
     <xsd:attribute name="beforeLines" type="ST_DecimalNumber" use="optional">
 
       <xsd:annotation>
 
       <xsd:annotation>
Line 29: Line 25:
 
       </xsd:annotation>
 
       </xsd:annotation>
 
     </xsd:attribute>
 
     </xsd:attribute>
     <xsd:attribute name="beforeAutospacing" type="ST_OnOff" use="optional">
+
     <xsd:attribute name="afterLines" type="ST_DecimalNumber" use="optional">
 
       <xsd:annotation>
 
       <xsd:annotation>
         <xsd:documentation>Automatically Determine Spacing Above Paragraph</xsd:documentation>
+
         <xsd:documentation>Spacing Below Paragraph in Line Units</xsd:documentation>
 
       </xsd:annotation>
 
       </xsd:annotation>
 
     </xsd:attribute>
 
     </xsd:attribute>
     <xsd:attribute name="after" type="ST_TwipsMeasure" use="optional">
+
  </xsd:complexType>
 +
 
 +
* Indentation In Character Units
 +
 
 +
<xsd:complexType name="CT_Ind">
 +
     <xsd:attribute name="leftChars" type="ST_DecimalNumber" use="optional">
 
       <xsd:annotation>
 
       <xsd:annotation>
         <xsd:documentation>Spacing Below Paragraph</xsd:documentation>
+
         <xsd:documentation>Left Indentation in Character Units</xsd:documentation>
 
       </xsd:annotation>
 
       </xsd:annotation>
 
     </xsd:attribute>
 
     </xsd:attribute>
     <xsd:attribute name="afterLines" type="ST_DecimalNumber" use="optional">
+
     <xsd:attribute name="rightChars" type="ST_DecimalNumber" use="optional">
 
       <xsd:annotation>
 
       <xsd:annotation>
         <xsd:documentation>Spacing Below Paragraph in Line Units</xsd:documentation>
+
         <xsd:documentation>Right Indentation in Character Units</xsd:documentation>
 
       </xsd:annotation>
 
       </xsd:annotation>
 
     </xsd:attribute>
 
     </xsd:attribute>
     <xsd:attribute name="afterAutospacing" type="ST_OnOff" use="optional">
+
     <xsd:attribute name="hangingChars" type="ST_DecimalNumber" use="optional">
 
       <xsd:annotation>
 
       <xsd:annotation>
         <xsd:documentation>Automatically Determine Spacing Below Paragraph</xsd:documentation>
+
         <xsd:documentation>Indentation Removed From First Line in Character Units</xsd:documentation>
 
       </xsd:annotation>
 
       </xsd:annotation>
 
     </xsd:attribute>
 
     </xsd:attribute>
     <xsd:attribute name="line" type="ST_SignedTwipsMeasure" use="optional">
+
     <xsd:attribute name="firstLineChars" type="ST_DecimalNumber" use="optional">
 
       <xsd:annotation>
 
       <xsd:annotation>
         <xsd:documentation>Spacing Between Lines in Paragraph</xsd:documentation>
+
         <xsd:documentation>Additional First Line Indentation in Character Units</xsd:documentation>
      </xsd:annotation>
+
    </xsd:attribute>
+
    <xsd:attribute name="lineRule" type="ST_LineSpacingRule" use="optional">
+
      <xsd:annotation>
+
        <xsd:documentation>Type of Spacing Between Lines</xsd:documentation>
+
 
       </xsd:annotation>
 
       </xsd:annotation>
 
     </xsd:attribute>
 
     </xsd:attribute>
 
   </xsd:complexType>
 
   </xsd:complexType>
 
  
 
== UOF support ==
 
== UOF support ==

Revision as of 06:24, 7 June 2007

Character unit overview

In CJK, especailly in China, character is used as a unit to measure some paragraph attributes, such as indent, line spacing and tab stop. etc. Character unit is most useful in processing Chinese. For example, users are used to use two characters as the indent of first line of the paragraph.

**大家好

大家好,才是真的好

With character unit, users need not worry about the layout confusion due to font size changing.

For line spacing of paragraph, line unit is used.

Feature

Implementation

File format support

Open XML support

  • Line Spacing in Line Units
<xsd:complexType name="CT_Spacing">
   <xsd:attribute name="beforeLines" type="ST_DecimalNumber" use="optional">
     <xsd:annotation>
       <xsd:documentation>Spacing Above Paragraph IN Line Units</xsd:documentation>
     </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="afterLines" type="ST_DecimalNumber" use="optional">
     <xsd:annotation>
       <xsd:documentation>Spacing Below Paragraph in Line Units</xsd:documentation>
     </xsd:annotation>
   </xsd:attribute>
 </xsd:complexType>
  • Indentation In Character Units
<xsd:complexType name="CT_Ind">
   <xsd:attribute name="leftChars" type="ST_DecimalNumber" use="optional">
     <xsd:annotation>
       <xsd:documentation>Left Indentation in Character Units</xsd:documentation>
     </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="rightChars" type="ST_DecimalNumber" use="optional">
     <xsd:annotation>
       <xsd:documentation>Right Indentation in Character Units</xsd:documentation>
     </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="hangingChars" type="ST_DecimalNumber" use="optional">
     <xsd:annotation>
       <xsd:documentation>Indentation Removed From First Line in Character Units</xsd:documentation>
     </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="firstLineChars" type="ST_DecimalNumber" use="optional">
     <xsd:annotation>
       <xsd:documentation>Additional First Line Indentation in Character Units</xsd:documentation>
     </xsd:annotation>
   </xsd:attribute>
 </xsd:complexType>

UOF support

ODF support

ODF does not support Character unit yet. The following proposal will be sent to the ODF TC for discussion.

Personal tools