Diff for Design for implementing OASIS Item 12026

Thu, 2008-10-16 07:34 by zhou.youyiThu, 2008-10-16 07:37 by zhou.youyi
Changes to Body
Line 1Line 1
-
<h3><em><em>What user need will be met by this
  
-
feature?</em></em></h3>
  
 
<p>
 
<p>
-
<!--[if gte mso 9]><xml>
+
<em><strong>What user need will be met by this feature?</strong></em><br />
-
<w:WordDocument>
+
Users can define various glossary entries which serve as specific terms or acronyms. Such glossary entries will be expanded to appropriate form according to the context automatically.<br />
-
<w:View>Normal</w:View>
+
<br />
-
<w:Zoom>0</w:Zoom>
+
<em><strong>What is the technical design for the change?</strong></em><br />
-
<w:PunctuationKerning/>
+
Key definitions and references are already prepared during key definition parsing process, so we mainly focus on how to resolve keyref accordingly in appropriate contexts. Here we have 2 problems yet to solve while resolving the keys:
-
<w:DrawingGridVerticalSpacing>7.8 ?</w:DrawingGridVerticalSpacing>
+
-
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
+
-
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
+
-
<w:ValidateAgainstSchemas/>
+
-
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
+
-
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
+
-
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
+
-
<w:Compatibility>
+
-
<w:SpaceForUL/>
+
-
<w:BalanceSingleByteDoubleByteWidth/>
+
-
<w:DoNotLeaveBackslashAlone/>
+
-
<w:ULTrailSpace/>
+
-
<w:DoNotExpandShiftReturn/>
+
-
<w:AdjustLineHeightInTable/>
+
-
<w:BreakWrappedTables/>
+
-
<w:SnapToGridInCell/>
+
-
<w:WrapTextWithPunct/>
+
-
<w:UseAsianBreakRules/>
+
-
<w:DontGrowAutofit/>
+
-
<w:UseFELayout/>
+
-
</w:Compatibility>
+
-
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
+
-
</w:WordDocument>
+
-
</xml><![endif]--><!--[if gte mso 9]><xml>
+
-
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
+
-
</w:LatentStyles>
+
-
</xml><![endif]-->
+
-
<!--
+
-
/* Font Definitions */
+
-
@font-face
+
-
{font-family:??;
+
-
panose-1:2 1 6 0 3 1 1 1 1 1;
+
-
mso-font-alt:SimSun;
+
-
mso-font-charset:134;
+
-
mso-generic-font-family:auto;
+
-
mso-font-pitch:variable;
+
-
mso-font-signature:3 135135232 16 0 262145 0;}
+
-
@font-face
+
-
{font-family:"\@??";
+
-
panose-1:2 1 6 0 3 1 1 1 1 1;
+
-
mso-font-charset:134;
+
-
mso-generic-font-family:auto;
+
-
mso-font-pitch:variable;
+
-
mso-font-signature:3 135135232 16 0 262145 0;}
+
-
/* Style Definitions */
+
-
p.MsoNormal, li.MsoNormal, div.MsoNormal
+
-
{mso-style-parent:"";
+
-
margin:0cm;
+
-
margin-bottom:.0001pt;
+
-
text-align:justify;
+
-
text-justify:inter-ideograph;
+
-
mso-pagination:none;
+
-
font-size:10.5pt;
+
-
mso-bidi-font-size:12.0pt;
+
-
font-family:"Times New Roman";
+
-
mso-fareast-font-family:??;
+
-
mso-font-kerning:1.0pt;}
+
-
/* Page Definitions */
+
-
@page
+
-
{mso-page-border-surround-header:no;
+
-
mso-page-border-surround-footer:no;}
+
-
@page Section1
+
-
{size:612.0pt 792.0pt;
+
-
margin:72.0pt 90.0pt 72.0pt 90.0pt;
+
-
mso-header-margin:36.0pt;
+
-
mso-footer-margin:36.0pt;
+
-
mso-paper-source:0;}
+
-
div.Section1
+
-
{page:Section1;}
+
-
-->
+
-
<!--[if gte mso 10]>
+
-
<style>
+
-
/* Style Definitions */
+
-
table.MsoNormalTable
+
-
{mso-style-name:????;
+
-
mso-tstyle-rowband-size:0;
+
-
mso-tstyle-colband-size:0;
+
-
mso-style-noshow:yes;
+
-
mso-style-parent:"";
+
-
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
+
-
mso-para-margin:0cm;
+
-
mso-para-margin-bottom:.0001pt;
+
-
mso-pagination:widow-orphan;
+
-
font-size:10.0pt;
+
-
font-family:"Times New Roman";
+
-
mso-fareast-font-family:"Times New Roman";
+
-
mso-ansi-language:#0400;
+
-
mso-fareast-language:#0400;
+
-
mso-bidi-language:#0400;}
+
-
</style>
+
-
<![endif]--><span style="font-size: 10.5pt"><span style="font-family: 'Times New Roman'">Users can define various glossary entries which serve as specific terms
+
-
or acronyms. Such glossary entries will be expanded to appropriate form according
+
-
to the context automatically.</span></span>
+
 
</p>
 
</p>
 
<p>
 
<p>
-
<strong><em>What is the
+
<br />
-
technical design for the change</em></strong>
+
1.    How to determine in what context a key is referenced? The description on how to distinguish introductory context from other contexts in “DITA Proposed Feature #12026 and #12038” is not clear enough to define all possible contexts that would be encountered. Thus we classify the contexts into three specific situations for the time being. More accurate definition and classification of different contexts should be considered thoroughly and added later.
 
</p>
 
</p>
  +
<blockquote>
  +
a)    The very first appearance of a keyref pointing to a certain glossentry in a deliverable book context should be expanded to its surface form; otherwise an acronym form (or other forms appropriate) should be used. Intuitively, the very first topic entity that we encounter during preprocess (either directly in a topic dita file or indirectly referenced in a ditamap file) would be an introductory context for the whole book. Thus, all keyrefs appearing in this first topic should be expanded to surface form. Keyrefs in other contexts are replaces with other appropriate forms of the corresponding glossentry.
  +
</blockquote>
  +
<blockquote>
  +
 
  +
</blockquote>
  +
<blockquote>
  +
b)    The terms appearing in online documents should have a hover tooltip of its surface form.
  +
</blockquote>
  +
<blockquote>
  +
 
  +
</blockquote>
  +
<blockquote>
  +
c)    Terms appearing in copyright declaration should be expanded to its surface form.
  +
</blockquote>
  +
<blockquote>
  +
 
  +
</blockquote>
 
<p>
 
<p>
-
<!--[if gte mso 9]><xml>
+
2.    How the contents of glossentries are saved and used. We prefer to use a lazy-loading mechanism as follows:
-
<w:WordDocument>
+
-
<w:View>Normal</w:View>
+
-
<w:Zoom>0</w:Zoom>
+
-
<w:PunctuationKerning/>
+
-
<w:DrawingGridVerticalSpacing>7.8 ?</w:DrawingGridVerticalSpacing>
+
-
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
+
-
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
+
-
<w:ValidateAgainstSchemas/>
+
-
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
+
-
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
+
-
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
+
-
<w:Compatibility>
+
-
<w:SpaceForUL/>
+
-
<w:BalanceSingleByteDoubleByteWidth/>
+
-
<w:DoNotLeaveBackslashAlone/>
+
-
<w:ULTrailSpace/>
+
-
<w:DoNotExpandShiftReturn/>
+
-
<w:AdjustLineHeightInTable/>
+
-
<w:BreakWrappedTables/>
+
-
<w:SnapToGridInCell/>
+
-
<w:WrapTextWithPunct/>
+
-
<w:UseAsianBreakRules/>
+
-
<w:DontGrowAutofit/>
+
-
<w:UseFELayout/>
+
-
</w:Compatibility>
+
-
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
+
-
</w:WordDocument>
+
-
</xml><![endif]--><!--[if gte mso 9]><xml>
+
-
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
+
-
</w:LatentStyles>
+
-
</xml><![endif]--><!--[if !mso]>
+
-
<object
+
-
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui>
+
-
</object>
+
-
<style>
+
-
st1\:*{behavior:url(#ieooui) }
+
-
</style>
+
-
<![endif]-->
+
-
<!--
+
-
/* Font Definitions */
+
-
@font-face
+
-
{font-family:??;
+
-
panose-1:2 1 6 0 3 1 1 1 1 1;
+
-
mso-font-alt:SimSun;
+
-
mso-font-charset:134;
+
-
mso-generic-font-family:auto;
+
-
mso-font-pitch:variable;
+
-
mso-font-signature:3 135135232 16 0 262145 0;}
+
-
@font-face
+
-
{font-family:"\@??";
+
-
panose-1:2 1 6 0 3 1 1 1 1 1;
+
-
mso-font-charset:134;
+
-
mso-generic-font-family:auto;
+
-
mso-font-pitch:variable;
+
-
mso-font-signature:3 135135232 16 0 262145 0;}
+
-
/* Style Definitions */
+
-
p.MsoNormal, li.MsoNormal, div.MsoNormal
+
-
{mso-style-parent:"";
+
-
margin:0cm;
+
-
margin-bottom:.0001pt;
+
-
text-align:justify;
+
-
text-justify:inter-ideograph;
+
-
mso-pagination:none;
+
-
font-size:10.5pt;
+
-
mso-bidi-font-size:12.0pt;
+
-
font-family:"Times New Roman";
+
-
mso-fareast-font-family:??;
+
-
mso-font-kerning:1.0pt;}
+
-
/* Page Definitions */
+
-
@page
+
-
{mso-page-border-surround-header:no;
+
-
mso-page-border-surround-footer:no;}
+
-
@page Section1
+
-
{size:595.3pt 841.9pt;
+
-
margin:72.0pt 90.0pt 72.0pt 90.0pt;
+
-
mso-header-margin:42.55pt;
+
-
mso-footer-margin:49.6pt;
+
-
mso-paper-source:0;
+
-
layout-grid:15.6pt;}
+
-
div.Section1
+
-
{page:Section1;}
+
-
/* List Definitions */
+
-
@list l0
+
-
{mso-list-id:736591327;
+
-
mso-list-type:hybrid;
+
-
mso-list-template-ids:-859795842 -2122811750 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
+
-
@list l0:level1
+
-
{mso-level-tab-stop:18.0pt;
+
-
mso-level-number-position:left;
+
-
margin-left:18.0pt;
+
-
text-indent:-18.0pt;}
+
-
@list l0:level2
+
-
{mso-level-number-format:alpha-lower;
+
-
mso-level-text:"%2\)";
+
-
mso-level-tab-stop:42.0pt;
+
-
mso-level-number-position:left;
+
-
margin-left:42.0pt;
+
-
text-indent:-21.0pt;}
+
-
ol
+
-
{margin-bottom:0cm;}
+
-
ul
+
-
{margin-bottom:0cm;}
+
-
-->
+
-
<!--[if gte mso 10]>
+
-
<style>
+
-
/* Style Definitions */
+
-
table.MsoNormalTable
+
-
{mso-style-name:????;
+
-
mso-tstyle-rowband-size:0;
+
-
mso-tstyle-colband-size:0;
+
-
mso-style-noshow:yes;
+
-
mso-style-parent:"";
+
-
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
+
-
mso-para-margin:0cm;
+
-
mso-para-margin-bottom:.0001pt;
+
-
mso-pagination:widow-orphan;
+
-
font-size:10.0pt;
+
-
font-family:"Times New Roman";
+
-
mso-ansi-language:#0400;
+
-
mso-fareast-language:#0400;
+
-
mso-bidi-language:#0400;}
+
-
</style>
+
-
<![endif]-->
+
-
</p>
+
-
<p class="MsoNormal">
+
-
Key definitions and references are already
+
-
prepared during key definition parsing process, so we mainly focus on how to
+
-
resolve keyref accordingly in appropriate contexts. Here we have 2 problems yet
+
-
to solve while resolving the keys:
+
-
</p>
+
-
<p style="margin-left: 18pt; text-indent: -18pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       </span><!--[endif]-->How to determine in what context a key is referenced? The
+
-
description on how to distinguish introductory context from other contexts in “<strong>DITA
+
-
Proposed Feature #12026 and #12038”
+
-
</strong>is not clear enough to define all
+
-
possible contexts that would be encountered. Thus we classify the contexts into
+
-
three specific situations for the time being. More accurate definition and
+
-
classification of different contexts should be considered thoroughly and added
+
-
later.
+
-
</p>
+
-
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->a)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
+
-
</span><!--[endif]-->The very first appearance of a keyref pointing to a certain glossentry in
+
-
a deliverable book context should be expanded to its surface form; otherwise an
+
-
acronym form (or other forms appropriate) should be used. Intuitively, the very
+
-
first topic entity that we encounter during preprocess (either directly in a
+
-
topic dita file or indirectly referenced in a ditamap file) would be an
+
-
introductory context for the whole book. Thus, all keyrefs appearing in this
+
-
first topic should be expanded to surface form. Keyrefs in other contexts are
+
-
replaces with other appropriate forms of the corresponding glossentry.
+
-
</p>
+
-
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->b)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       
+
-
</span><!--[endif]-->The terms appearing in online documents should have a hover tooltip of
+
-
its surface form.
+
-
</p>
+
-
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->c)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
+
-
</span><!--[endif]-->Terms appearing in copyright declaration should be expanded to its
+
-
surface form.
+
-
</p>
+
-
<p style="margin-left: 18pt; text-indent: -18pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       </span><!--[endif]-->How the contents of glossentries
+
-
are saved and used. We prefer to use a lazy-loading mechanism as follows:
+
-
</p>
+
-
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->a)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
+
-
</span><!--[endif]-->When the keyref is encountered for the first time, the target file
+
-
associated with the key should be parsed and corresponding surface form
+
-
together with other forms should be loaded into memory and saved with the key
+
-
as a triplet. We use a Hashtbale to store such triplet, concatenating all the
+
-
forms together separating by a stick.
+
-
</p>
+
-
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
+
-
<!--[if !supportLists]-->b)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       
+
-
</span><!--[endif]-->If it is not the first time the keyref is resolved ( there is an existing
+
-
entry in the Hashtable mentioned above), appropriate form is retrieved and
+
-
used.
+
-
</p>
+
-
<p>
+
-
&nbsp;
+
-
</p>
+
-
<h3><strong><em><strong><em>What sections of the toolkit will be impacted by the
+
-
change?</em></strong></em></strong></h3>
+
-
<p>
+
-
KeyRef resolution
+
 
</p>
 
</p>
  +
<blockquote>
  +
a)    When the keyref is encountered for the first time, the target file associated with the key should be parsed and corresponding surface form together with other forms should be loaded into memory and saved with the key as a triplet. We use a Hashtbale to store such triplet, concatenating all the forms together separating by a stick.
  +
</blockquote>
  +
<blockquote>
  +
 
  +
</blockquote>
  +
<blockquote>
  +
b)    If it is not the first time the keyref is resolved ( there is an existing entry in the Hashtable mentioned above), appropriate form is retrieved and used.<br />
  +
</blockquote>
 
<p>
 
<p>
-
&nbsp;
+
<br />
  +
<strong><em>What sections of the toolkit will be impacted by the change?</em></strong><br />
  +
KeyRef resolution<br />
  +
<br />
 
</p>
 
</p>
 
 
Revision of Thu, 2008-10-16 07:37:

Design for implementing OASIS Item 12026

What user need will be met by this feature?
Users can define various glossary entries which serve as specific terms or acronyms. Such glossary entries will be expanded to appropriate form according to the context automatically.

What is the technical design for the change?
Key definitions and references are already prepared during key definition parsing process, so we mainly focus on how to resolve keyref accordingly in appropriate contexts. Here we have 2 problems yet to solve while resolving the keys:


1.    How to determine in what context a key is referenced? The description on how to distinguish introductory context from other contexts in “DITA Proposed Feature #12026 and #12038” is not clear enough to define all possible contexts that would be encountered. Thus we classify the contexts into three specific situations for the time being. More accurate definition and classification of different contexts should be considered thoroughly and added later.

a)    The very first appearance of a keyref pointing to a certain glossentry in a deliverable book context should be expanded to its surface form; otherwise an acronym form (or other forms appropriate) should be used. Intuitively, the very first topic entity that we encounter during preprocess (either directly in a topic dita file or indirectly referenced in a ditamap file) would be an introductory context for the whole book. Thus, all keyrefs appearing in this first topic should be expanded to surface form. Keyrefs in other contexts are replaces with other appropriate forms of the corresponding glossentry.
 
b)    The terms appearing in online documents should have a hover tooltip of its surface form.
 
c)    Terms appearing in copyright declaration should be expanded to its surface form.
 

2.    How the contents of glossentries are saved and used. We prefer to use a lazy-loading mechanism as follows:

a)    When the keyref is encountered for the first time, the target file associated with the key should be parsed and corresponding surface form together with other forms should be loaded into memory and saved with the key as a triplet. We use a Hashtbale to store such triplet, concatenating all the forms together separating by a stick.
 
b)    If it is not the first time the keyref is resolved ( there is an existing entry in the Hashtable mentioned above), appropriate form is retrieved and used.


What sections of the toolkit will be impacted by the change?
KeyRef resolution

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I