On Fri, Sep 24, 2010 at 11:37, Christiaan Hofman <[email protected]> wrote: > The raw RTF data is just a proprietary format used to save the data of the > rich text. It could also have been some other format (html, doc, docx, odt.) > In code, we don't see any of these details. What we have in code is a > string-with-attributes (NSAttributedString). We parse the string (looking > for template tags), trying to keep the attributes intact, and possibly > adding attributes (depending on the replacement.) So the template tags are > in the text, not in the attributes, and certainly not in some underlying raw > data representation that was used to save the template. This also makes it > possible to edit in the template tags, because the text is what the person > editing the template actually sees.
I see. I thought this data was actually in the RTF format (which, even though proprietary and gibberish-looking is a public standard, for which a parser could be built) while it looks more like it is "Rich Text data" with no assumption regarding the underlying format. > In tomorrow's nightly we will also parse the link attributes in an extra > parser run. Thats very cool! I'll get the nightly and modify the two templates to work with it, in the exact same way (it should to make them equivalent now). Thanks again for your work and reactivity. JiHO --- http://maururu.net ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Bibdesk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-users
