Skip to content

Commit

Permalink
BGF normalization directory (for future use) and a tool (works now)
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@784 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed May 5, 2010
1 parent 87c90a2 commit 39b0f9c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions shared/tools/normbgf
@@ -0,0 +1,13 @@
#!/bin/sh

if [ $# -ne 2 ]; then
echo "This tool normalizes a BGF by performing an intentionally vacuous grammar transformation with normalization."
echo "Usage: normbgf <BGF-input> <BGF-output>"
exit 1
elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
exit 1
else
`dirname $0`/xbgf `dirname $0`/../../topics/presentation/normalize/empty.xbgf $1 $2 > /dev/null
mv xbgf.log $2
fi
4 changes: 4 additions & 0 deletions topics/presentation/normalize/empty.xbgf
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<xbgf:sequence xmlns:xbgf="http://planet-sl.org/xbgf" xmlns:bgf="http://planet-sl.org/bgf">
<xbgf:dump/>
</xbgf:sequence>

0 comments on commit 39b0f9c

Please sign in to comment.