[okapi.wiki] push by - Edited wiki page newDesign_Inline_Content through web user interface. on 2014-07-30 11:36 GMT

1 view
Skip to first unread message

ok...@googlecode.com

unread,
Jul 30, 2014, 7:36:33 AM7/30/14
to okapi-...@googlegroups.com
Revision: 1f4465b5c24f
Author: yves.savourel <yves.s...@gmail.com>
Date: Wed Jul 30 11:36:25 2014 UTC
Log: Edited wiki page newDesign_Inline_Content through web user
interface.
http://code.google.com/p/okapi/source/detail?r=1f4465b5c24f&repo=wiki

Modified:
/newDesign_Inline_Content.wiki

=======================================
--- /newDesign_Inline_Content.wiki Wed Jul 30 11:23:33 2014 UTC
+++ /newDesign_Inline_Content.wiki Wed Jul 30 11:36:25 2014 UTC
@@ -34,6 +34,25 @@
The second character is a value between U+E110 and U+F8FF and represents
the index for the given type of object/tag.

The two characters composing a tag reference are in the Private Use Area
(PUA) range of Unicode and they have always distinct values.
+
+A *tag* gives access to the inline object data. Spanning objects have some
fields specific to their opening boundary, some fields specific to their
closing boundary and fields common to both. Both the opening and closing
tag of such object provides access to the same common fields. That is: if
you change for example the type of an inline code using it's closing tag,
the value of the field accessed from the opening tag changes too:
+
+{{{
+opening.setType("ui");
+assertEquals("ui", closing.getType());
+closing.setType("fmt");
+assertEquals("fmt", opening.getType());
+assertEquals("fmt", closing.getType());
+}}}
+
+The fields specific to each boundary (e.g. the user-friendly display) are
set independently:
+
+{{{
+opening.setDisp("<<");
+closing.setDisp(">>");
+assertEquals("<<", opening.getDisp());
+assertEquals(">>", closing.getDisp());
+}}}

An *annotation* is some information pertaining to the content it is
attached to. Annotations can be attached to annotation markers or original
codes.

Reply all
Reply to author
Forward
0 new messages