Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-193

setStyleLengthAttribute takes no string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • odfdom-0.8.7
    • None
    • java
    • None
    • Operating System: Linux
      Platform: PC
    • 325

    Description

      Class StyleDropCapElement has method void setStyleLengthAttribute(Integer styleLengthValue). This method takes oly an integer. I wanted to set the length of the drop cap to "word". This works in LibreOffice. It is a possible value for style:length, according to the specification.

      See the specs:

      19.494 style:length
      The style:length attribute specifies the number of characters that are displayed in a larger font.
      The defined values for the style:length attribute are:
      ●word: specifies a set of characters to be displayed in a larger font.
      ●a value of type positiveInteger 18.2
      Note: What will be treated as a “word” by a consumer is locale specific.
      The default value for this attribute is 1.
      The style:length attribute is usable with the following element: <style:drop-cap> 17.9.
      The values of the style:length attribute are word or a value of type positiveInteger 18.2.

      http://odfdom.odftoolkit.org/0.8.7/odfdom/apidocs/doc-files/OpenDocument-v1.2-cd05-part1.html#a_19_494_style_length

      May the ODF Toolkit also implement:

      setStyleLengthAttribute(String styleLengthValue)

      Teus

      Attachments

        Activity

          People

            issues@odfdom.odftoolkit.org issues
            teus@odftoolkit.org teus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: