Releases: ONLYOFFICE-QA/ooxml_parser
Releases · ONLYOFFICE-QA/ooxml_parser
v0.2.0
A lot of minor changes and a whole lot new features
New features
- Ability to set units of measurement to each value, not to all via config
- Add twips (same as dxa), one_eighth_point unit of measurement
- Add configuration to set accuracy of fraction part of digit
- Add parsing of Table Properties and Table Style Properties in Document Styles
- Fully support of Windows platform
- Add parsing of Shape Adjust Values List
- Add parsing Relative Sizes of shape
- Add parsing math formula run properties (and redone some math model for it)
- Add parsing math formula argument size property
- Add a whole lot new properties to parse in charts
- Remove usage of Linux
file
command in favor ofruby-filemagick
gem. Better cross-platform support - Use ruby method to create tmp folder instead of calling Linux methods
- Add method
OoxmlParser::Parser.parse
to parse any OOXML format with auto recognition - Add storing color scheme name in color class
- Add parsing of properties of table - inside horizontal, vertical borders
- Add support of parsing more text directions in cell
- Add support of
show_category_name
andshow_series_name
to chart label properties - Add method to 3 base formats to check if it contain any user data
#with_data?
- Correct parsing of paragraph properties and run properties
- Paragraphs now have correct parsing of borders
- Run properties - language, position property
- Parsing run shade
- Parsing of Columns spacing
- Redone parsing
gridSpan
andvMerge
- Add ability to get style on which style is based
- Parsing
TableStyleColumnBandSize
,TableStyleRowBandSize
,TableLayout
, table cell spacing for TableProperties - Correct parsing
Margins
fortcPr
- OoxmlSize support a whole lot formats
- Correct handling unsupported OoxmlSize format
DocumentStlye
parseCellProperties
- Clean way to parse
ParagraphSpacing
ParagraphTab
now stored inTabs
inParagraphProperties
- Add
OoxmlSize
support ofone_240th_cm
and use inSpacing
- Add
OoxmlSize
support ofspacing_point
and use inSpacing
- Add
OoxmlSize
support ofone_100th_point
and use inRunProperties#spacing
- Add parsing
PresetColor
toGradientStop
- Add Parsing
NumberingLevel#suffix
- Add parsing
CellProperties#no_wrap
- Add parsing
TableStyleProperties#table_properties
- Add parsing
TableStyleProperties#paragraph_properties
- Add parsing
ParagraphProperties#justification
- Add parsing
TableRowProperties#table_header
(fix #264) - Add parsing
XlsxColumnProperties#custom_width
,XlsxColumnProperties#best_fit
- Add parsing
DocxParagraphRun#object
andObject#ole_object
- New way to parse default RunProperties and ParagraphProperties. Old way is still there
- Add parsing
RunStyle
. Implement #140 - Add parsing
Chart#view3D
- Add parsing math data in xlsx files
- Add parsing
PreSubSuperscript
class -m:sPre
tag - Add parsing
a:prstDash
forDocxShapeLine
- Add parsing
OOXMLShapeBodyProperties#vertical
- Add parsing
CellStyle#apply_number_format
- Add parsing
SheetView#show_gridlines
,SheetView#show_row_column_headers
- Do not crash, just show stderr if resource not found
- Add base support of
chartsheets
- Add
parse_hex_string
for 3 digit colors - Add parsing 'DocxParagraph#inserted' context
- Add parsing
bgPr
andstretch
- Add parsing
DisplayLabelsProperties
inSeries
- Add parsing
FootnoteProperties
- Add parsing
Settings#default_tab_stop
- Add parsing
DocProperties
- Add parsing
Table#description
andTable#title
- Add parsing
CommonNonVisualProperties#title
andCommonNonVisualProperties#description
- Add parsing
DocxPicture#non_visual_properties
- Add parsing
GraphicFrame#non_visual_properties
- Add parsing
X14Table
Fixes
- Fix parsing document style id - it can be string, not only digit
- Fix misplaced
dxa
andemu
units of measurements and also fix calculationdxa
unit - Redone parsing of
nary
in formulas - Fix parsing gradient color linear values
- Fix parsing Footnote and Endnote reference in runs
- Fix calculating position offset values, distance from text in different units of measurements
- Fix parsing table style in text box
- Fix problem with parsing absolute file path in Windows
- Parse
keep_next
in paragraph properties TransformEffect
,BordersProperties#size
in correctOoxmlSize
unitIndents
,TableProperties#table_indent
,ParagraphProperties#margin_left
,
ParagraphProperties#margin_right
,ParagraphProperties#indent
,DocxShapeLine#width
,
TextOutline#width
,Outline#width
,TableCellLine#width
,XlsxDrawingPositionParameters
useOoxmlSize
TableMargins
,TablePosition
,FrameProperties
,CellProperties#able_cell_width
,TableRow#height
useOoxmlSize
TableProperties
,TableCellProperties
useShade
classParagraphMargins
parse size in correct unitsParagraphProperties
parsePageProperties
ParagraphProperties
parsecontextual_spacing
- Hanging indent is now 0 by default, instead of nil
- Correct parsing of
Drawing
of any type, not justTwoCellAnchor
Outline
default width inOoxmlSize
DocxShapeLine
correct zero ifnofill
- Fix error for
DocxPicture#with_data?
Worksheet#with_data?
recognize custom columnsSlide#with_data?
recognize custom background (Fix #256)RunSpacing#value
is in OoxmlSizeShade
should be able to set all argument via constructorDocxParagraph#nonempty_runs
recognizedfootnote
andendnote
- Fix parsing emty
TransitionProperties
- Fix memory hog on calculating diffs
- Fix values of
OOXMLFont
: was not float - Fix parsing
Underline
style - Fix parsing Strike
noStrike
- Do not crash if indexed color have unknown index
- Fix converting to symbols for border styles
- Fix comparing docx's with shapes
Refactor
- Redone parsing images - store in structure, instead of copying file to filesystem
- Move parsing Columns inside class
- Move parsing TableGrid inside class
- Move parsing DocxShapeLinePath inside class
- Totally redone parsing of Numbering
- Parsing DocxParagraphRun properties
- Move some slide methods to helper
- Rename
Size
class toPageSize
andRunSize
toSize
- Simplify code for parsing
CellProperties
,PageProperties
,
DocxParagraph
,Bookmark
,TableLook
,ChartAxisTitle
,
NonVisualProperties
,ShapePlaceholder
,RunProperties
,
TableProperties
,FrameProperties
,Background
,Transition
,
TransitionProperties
,XlsxRow
,XlsxColumnProperties
,CellStyle
,
DisplayLabelsProperties
,ParagraphProperties
,
ChartAxis
,ChartLegend
,SizeRelativeHorizontal
,
SizeRelativeVertical
,OOXMLShapeBodyProperties
,Tile
,
NaryLimitLocation
,MultilevelType
,CellProperties
,FileReference
,OldDocxPicture
,
OldDocxShapeFill
,ShapeGuide
,ShapeAdjustValueList
,
PresetGeometry
,DocxShapeSize
,DocxShapeLinePath
,
DocxShapeLineElement
,OOXMLCustomGeometry
,DocxShapeProperties
,
LineEnd
,CommonTiming
,AnimationEffect
,TargetElement
,
Behavior
,SetTimeNode
,Column
,TableBorders
,GridColumn
,
TableElement
,XlsxAlignment
,NaryProperties
,NaryLimitLocation
,
NaryGrow
,Nary
,OOXMLFont
,ExcelComment
,SheetView
,Pane
,
TablePart
- Replace usage
Alignment.parse
onOOXMLDocumentObject#value_to_symbol
method - Refactor
Color.from_int16
toColor#parse_hex_string
method - Move
table_cell_spacing
toTableRowProperties
and use OoxmlSize - Simplify
XlsxRow
parsing. FontStyle
class cleanup- Simplify
Borders.parse_from_style
- Simplify
Color.parse_color_tag
Border
class cleanup- Merge
PictureWidth
andPictureHeight
in singlePictureDimension
class - Redone parsing of
AlphaModFix
and blips
Removal
- Remove unused method
PageSize.get_name_by_size
- Remove unused class
TableStyleElement
- Remove
OoxmlShift
- useOoxmlCoordinates
instead - Remove unused
Color#parse_int16_string
- Remove parsing
TableProperties#right_to_left
, since it was totally wrong - Remove class
ParagraphStyle
- Remove useless attribute
OOXMLDocumentObject.namespace_perfix
- Remove method
Color.parse_color_hash
v0.1.2
0.1.2 (2016-06-07)
New features
- Correct
==
method for DocxStructure. - Correctly handle and warn if docx file do not contain
docProps/app.xml
- Extract GradientColor parsing to Class
- Correct warn if document is password protected
- Correct warn if document links to lost image
- Add parsing Table relationships
Fixes
DocxParser
- Fix crash while parsing
page_borders
- Fix parsing nil borders
- Fix parsing document background and background image
- Fix parsing TextBox lists in Shape
- Fix parsing OldDocxShape image path
- Fix parsing table merge data
- Fix parsing ParagraphRun footnote-endnote
- Fix parsing
OldDocxGroup
wrap
nil value - Fix parsing BorderProperties space, size is nil
- Fix parsing default cell properties - space, color and shade
- Fix parsing relation target NULL
- Fix parsing
anchor_lock
in frame properties - Fix parsing DocxBlip without properties
- Fix parsing Default Styles for Table
- Fix parsing Table Border style
XlsxParser
- Fix parsing default underline style for cell
- Fix parsing TextField in Paragraph
- Fix parsing Chart data if there is no
numRef
- Fix parsing non-defined font name in style
- Fix parsing document theme without name
- Fix parsing nil height of row
- Fix parsing fill color nil
PptxParser
- Fix parsing Condition event and delay nil values
- Fix parsing Transition Direction, Orientation nil
- Fix parsing Sound transaction
- Fix parsing slide background fill rectangle stretching
- Fix parsing animation effect without transition
- Fix parsing click highlight in links
- Fix parsing image fill without embeded image
v0.1.1
0.1.1 (2016-05-17)
New features
- Add ability to configure units of measurements
- Add support of
line_3d
,bar3DChart
,pie3DChart
charts - Add parsing text direction in table cell
- Refactor parsing page size of document
- Refactor parsing page margins of docx
- Refactor parsing columns data of docx
- Some minor RuboCop refactor
- Add parsing
fldSimple
inside hyperlinks - Add support of
wp14:pctPosHOffset
andwp14:pctPosVOffset
- Add support of parsing
w:noBreakHyphen
,w:tab
in PargraphRun - Add support of Table Row Properties - Height
- Add variable to store original file path in all parsers
Fixes
- Fix parsing shape in paragraph run