Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BGF normalization directory (for future use) and a tool (works now)
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@784 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
87c90a2
commit 39b0f9c
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |