16 lines
1,022 B
HTML
16 lines
1,022 B
HTML
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type"
|
|
content="text/html; charset=ISO-8859-1">
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<center>
|
|
<h2> Text Formatter User Guide for Narrative Products</h2>
|
|
<h3>110. Narrative Phrases - Sub-Phrase Consolidation</h3>
|
|
<hr>
|
|
<a href=Slide109.html>Previous Slide</a> <a href=Slide111.html>Next Slide</a> <br><img SRC=Slide110.JPG border=1><br></center>
|
|
<p><p><big>Phrase consolidation uses the "splitPhrase" method which is given a tree, phrase, and list of elements to "split off". In this example, we end up with the original wind_withGusts_phrase in which WindGust has been diabled. The "getStatDict" method examines the list of disabled elements and removes them from the "statDict". We also spawn a new phrase for WindGust. The "gust_phrase" is given as the "phraseDef" in the elementInfo for WindGust. The new phrase is created as follows: <br> newPhrase = tree.addPhraseDef(phrase, elementInfo.phraseDef) <br><br><br></big>
|
|
</body>
|
|
</html>
|