Good morning! Thank you for publishing the protocol spec and answering questions.
I have two questions about annotationBoundary: one involving cursors, and one involving deletion components. Assume I have a document containing a single italicized paragraph and a single link. In HTML, it would look like this: <p><i>See <a href="http://example.com/">this</a>.</i></p> In Wave, I think it would look something like this: elementStart("p") annotationBoundary([], ["style/fontStyle"], [null], ["italic"]) characters("See ") annotationBoundary([], ["link/manual"], [null], ["http:// example.com/"]) characters("this") annotationBoundary(["link/manual"], [], [], []) characters(".") annotationBoundary(["style/fontStyle"], [], [], []) elementEnd() Question #1: The Draft Protocol Spec says, "insertion components (characters, elementStart, elementEnd) generate items in the output document without moving the cursor". Does this mean I need to insert a "retain" component after each of the "elementStart" and "characters" components in the above document? Or is the document fine as it is? Question #2: If I wanted to delete "<a href=...>this</a>" from the document, how would I do it? Would I do send this? retain(5) // "<p>See " deleteCharacters("this") retain(2) // ".</p>" ...or would I send something reversible like this? retain(5) // "<p>See " annotationBoundary([], ["link/manual"], [null], ["http:// example.com/"]) deleteCharacters("this") annotationBoundary(["link/manual"], [], [], []) retain(2) // ".</p>" ...or would I send something else entirely? Thank you for any information you can provide! Cheers, Eric --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Wave Protocol" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/wave-protocol?hl=en -~----------~----~----~----~------~----~------~--~---
