[
next
] [
prev
] [
prev-tail
] [
tail
] [
up
]
2.2
Outline of Post Original Partition
<..
numbers
in
math
..>
<script
element="mn-group"
>
<.
missed partitions to mn groups
.>
<set
name="merge"
>
<.
open xslt script
.>
<.
merge digits
.>
<.
close xslt script
.>
</set>
<xslt
name="."
xml="."
xsl="merge"
/>
</script>
-_-_-
<..
missed
partitions
to
mn
groups
..>
<dom
name="."
xml="."
method="mnGroup"
class="tex4ht.HtJsml"
/>
<.
remove xml declaration
.>
-_-_-
<..
static
void
mnGroup(dom)
..>
private
static
Document
dom;
public
static
void
mnGroup(Node
d)
{
dom
=
(Document)
d;
setMnGroup(dom.getFirstChild());
}
private
static
void
setMnGroup(Node
node)
{
if(
node.getNodeName().equals(
"mn-group"
)
){
boolean
bool
=
false;
<.
get mn characters
.>
if(
bool
){
<.
mark remove commas, if comma after period
.>
<.
mark remove commas, if not spaced correctly
.>
<.
cond remove commas
.>
<.
remove punc, on consecutive periods
.>
<.
remove punc at end
.>
}
<.
reset mn-group
.>
}
else
if
(node.hasChildNodes())
{
NodeList
children
=
node.getChildNodes();
for
(int
i
=
0;
i
<
children.getLength();
i++)
{
Node
child
=
children.item(i);
if
(child.getNodeType()
==
Node.ELEMENT_NODE)
{
setMnGroup(child);
}
}
}
}
-_-_-
[
next
] [
prev
] [
prev-tail
] [
front
] [
up
]