Initial Commit
Created basic parser
Parser pulls plain text from document.xml (pre-ripped from .docx file)
Parser appears to detect newLines, will research further
Wrote some comments
Added more complex xml file (will probably change again later)
Parser now recognizes bold attributes
Parser now uses NSAttributedString to read and return string data
UITextView displays NSAttributedString as well
Added BSDocxTextStorage. It is incomplete but may be needed later.
Changed and moved some comments
Run Strings now use NSMutableAttributedString
Applying bold attributes no longer reallocates the entire string
Added a category for NSMutableAttributedString to get full NSRange of string
Added Italic and Color attributes
Added a macro for xml true value suffix
Light refactoring
Added category for UIColor to get UIColor from hex string
Refactored traits into their own methods
runString is now its own instance variable
Underlining now supported (At least single underlines are)
Added font name pulling.
Started detecting other fonts bold or italic
Custom fonts now display bold/italic attributes
Added document2.xml for easier testing
Font sizes supported. Standard system fonts are resized and reset at beginning of each run
Light refactoring
Text alignment now supported
Added more test documents
Refactored run for loop to iterate instead of fast enumerate
Added method to pull all runs and hyperlinks. hyperlinks now display properly
Added styling for hyperlink if not already present
Updates for 2010 compatibility. Some stuff still doesn’t look right on 2010 docs but we may have to deal
If parser can’t pull ascii listed font, it will pull cs as a backup
Fixed font sizing on 2010 (maybe earlier) style documents
Noted issue: If the font type isn’t recognized, parser defaults to system text (Research alternative or alert user)
Added code to rip open .docx file (Should probably edited so it doesn’t run every time)
Added BSFileHelper and added method to it to return document directory as URL
Created DocxWriter
Writer can split NSAttributedString into strings by attributes then splits those by newlines
Added code to build root node
Writer pulls text and forms new xml document. However, word says it’s corrupt. So there we are.