libfolia-0.10/ 0000775 0001750 0001750 00000000000 12127050264 010215 5 0000000 0000000 libfolia-0.10/depcomp 0000755 0001750 0001750 00000047556 11736361705 011543 0000000 0000000 #! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2011-12-04.11; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
# 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva .
case $1 in
'')
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.
Environment variables:
depmode Dependency tracking mode.
source Source file read by `PROGRAMS ARGS'.
object Object file output by `PROGRAMS ARGS'.
DEPDIR directory where to store dependencies.
depfile Dependency file to output.
tmpdepfile Temporary file to use when outputting dependencies.
libtool Whether libtool is used (yes/no).
Report bugs to .
EOF
exit $?
;;
-v | --v*)
echo "depcomp $scriptversion"
exit $?
;;
esac
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
fi
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
depfile=${depfile-`echo "$object" |
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Some modes work just like other modes, but use different flags. We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write. Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
# HP compiler uses -M and no extra arg.
gccflag=-M
depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
# This is just like dashmstdout with a different argument.
dashmflag=-xM
depmode=dashmstdout
fi
cygpath_u="cygpath -u -f -"
if test "$depmode" = msvcmsys; then
# This is just like msvisualcpp but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvisualcpp
fi
if test "$depmode" = msvc7msys; then
# This is just like msvc7 but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvc7
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff. Hmm.
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
## the command line argument order; so add the flags where they
## appear in depend2.am. Note that the slowdown incurred here
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
for arg
do
case $arg in
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
*) set fnord "$@" "$arg" ;;
esac
shift # fnord
shift # $arg
done
"$@"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## There are various ways to get dependency output from gcc. Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
## up in a subdir. Having to rename by hand is ugly.
## (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
## -MM, not -M (despite what the docs say).
## - Using -M directly means running the compiler twice (even worse
## than renaming).
if test -z "$gccflag"; then
gccflag=-MD,
fi
"$@" -Wp,"$gccflag$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
## The second -e expression handles DOS-style file names with drive letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the `deleted header file' problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
tr ' ' '
' < "$tmpdepfile" |
## Some versions of gcc put a space before the `:'. On the theory
## that the space means something, we add a space to the output as
## well. hp depmode also adds that space, but also prefixes the VPATH
## to the object. Take care to not repeat it in the output.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
sgi)
if test "$libtool" = yes; then
"$@" "-Wp,-MDupdate,$tmpdepfile"
else
"$@" -MDupdate "$tmpdepfile"
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
echo "$object : \\" > "$depfile"
# Clip off the initial element (the dependent). Don't try to be
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
# the IRIX cc adds comments like `#:fec' to the end of the
# dependency line.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
tr '
' ' ' >> "$depfile"
echo >> "$depfile"
# The second pass generates a dummy entry for each header file.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the
# current directory. Also, the AIX compiler puts `$object:' at the
# start of each line; $object doesn't have directory information.
# Version 6 uses the directory in both cases.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.u
tmpdepfile2=$base.u
tmpdepfile3=$dir.libs/$base.u
"$@" -Wc,-M
else
tmpdepfile1=$dir$base.u
tmpdepfile2=$dir$base.u
tmpdepfile3=$dir$base.u
"$@" -M
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
# Each line is of the form `foo.o: dependent.h'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a tab and a space in the [].
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
icc)
# Intel's C compiler understands `-MD -MF file'. However on
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
# ICC 7.0 will fill foo.d with something like
# foo.o: sub/foo.c
# foo.o: sub/foo.h
# which is wrong. We want:
# sub/foo.o: sub/foo.c
# sub/foo.o: sub/foo.h
# sub/foo.c:
# sub/foo.h:
# ICC 7.1 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using \ :
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each line is of the form `foo.o: dependent.h',
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp2)
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
# compilers, which have integrated preprocessors. The correct option
# to use with these is +Maked; it writes dependencies to a file named
# 'foo.d', which lands next to the object file, wherever that
# happens to be.
# Much of this is similar to the tru64 case; see comments there.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir.libs/$base.d
"$@" -Wc,+Maked
else
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir$base.d
"$@" +Maked
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
# Add `dependent.h:' lines.
sed -ne '2,${
s/^ *//
s/ \\*$//
s/$/:/
p
}' "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile" "$tmpdepfile2"
;;
tru64)
# The Tru64 compiler uses -MD to generate dependencies as a side
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in `foo.d' instead, so we check for that too.
# Subdirectories are respected.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
# With Tru64 cc, shared objects can also be used to make a
# static library. This mechanism is used in libtool 1.4 series to
# handle both shared and static libraries in a single compilation.
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
#
# With libtool 1.5 this exception was removed, and libtool now
# generates 2 separate objects for the 2 libraries. These two
# compilations output dependencies in $dir.libs/$base.o.d and
# in $dir$base.o.d. We have to check for both files, because
# one of the two compilations can be disabled. We should prefer
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
# automatically cleaned when .libs/ is deleted, while ignoring
# the former would cause a distcleancheck panic.
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
tmpdepfile2=$dir$base.o.d # libtool 1.5
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
"$@" -Wc,-MD
else
tmpdepfile1=$dir$base.o.d
tmpdepfile2=$dir$base.d
tmpdepfile3=$dir$base.d
tmpdepfile4=$dir$base.d
"$@" -MD
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a tab and a space in the [].
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
msvc7)
if test "$libtool" = yes; then
showIncludes=-Wc,-showIncludes
else
showIncludes=-showIncludes
fi
"$@" $showIncludes > "$tmpdepfile"
stat=$?
grep -v '^Note: including file: ' "$tmpdepfile"
if test "$stat" = 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# The first sed program below extracts the file names and escapes
# backslashes for cygpath. The second sed program outputs the file
# name when reading, but also accumulates all include files in the
# hold buffer in order to output them again at the end. This only
# works with sed implementations that can handle large buffers.
sed < "$tmpdepfile" -n '
/^Note: including file: *\(.*\)/ {
s//\1/
s/\\/\\\\/g
p
}' | $cygpath_u | sort -u | sed -n '
s/ /\\ /g
s/\(.*\)/ \1 \\/p
s/.\(.*\) \\/\1:/
H
$ {
s/.*/ /
G
p
}' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvc7msys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout, regardless of -o.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove `-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
test -z "$dashmflag" && dashmflag=-M
# Require at least two characters before searching for `:'
# in the target name. This is to cope with DOS-style filenames:
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
"$@" $dashmflag |
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
tr ' ' '
' < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
dashXmstdout)
# This case only exists to satisfy depend.m4. It is never actually
# run, as this mode is specially recognized in the preamble.
exit 1
;;
makedepend)
"$@" || exit $?
# Remove any Libtool call
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# X makedepend
shift
cleared=no eat=no
for arg
do
case $cleared in
no)
set ""; shift
cleared=yes ;;
esac
if test $eat = yes; then
eat=no
continue
fi
case "$arg" in
-D*|-I*)
set fnord "$@" "$arg"; shift ;;
# Strip any option that makedepend may not understand. Remove
# the object too, otherwise makedepend will parse it as a source file.
-arch)
eat=yes ;;
-*|$object)
;;
*)
set fnord "$@" "$arg"; shift ;;
esac
done
obj_suffix=`echo "$object" | sed 's/^.*\././'`
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$depfile"
# makedepend may prepend the VPATH from the source file name to the object.
# No need to regex-escape $object, excess matching of '.' is harmless.
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
sed '1,2d' "$tmpdepfile" | tr ' ' '
' | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile" "$tmpdepfile".bak
;;
cpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove `-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
"$@" -E |
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed '$ s: \\$::' > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
cat < "$tmpdepfile" >> "$depfile"
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvisualcpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
IFS=" "
for arg
do
case "$arg" in
-o)
shift
;;
$object)
shift
;;
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
set fnord "$@"
shift
shift
;;
*)
set fnord "$@" "$arg"
shift
shift
;;
esac
done
"$@" -E 2>/dev/null |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
echo " " >> "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvcmsys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
none)
exec "$@"
;;
*)
echo "Unknown depmode $depmode" 1>&2
exit 1
;;
esac
exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
libfolia-0.10/include/ 0000775 0001750 0001750 00000000000 12127050265 011641 5 0000000 0000000 libfolia-0.10/include/Makefile.in 0000664 0001750 0001750 00000042307 12127031266 013634 0000000 0000000 # Makefile.in generated by automake 1.11.3 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
#AUTOMAKE_OPTIONS = foreign
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = include
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_icu_check.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkg.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
distdir
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
ICU_CFLAGS = @ICU_CFLAGS@
ICU_CONFIG = @ICU_CONFIG@
ICU_CPPSEARCHPATH = @ICU_CPPSEARCHPATH@
ICU_CXXFLAGS = @ICU_CXXFLAGS@
ICU_IOLIBS = @ICU_IOLIBS@
ICU_LIBPATH = @ICU_LIBPATH@
ICU_LIBS = @ICU_LIBS@
ICU_VERSION = @ICU_VERSION@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
XML2_CFLAGS = @XML2_CFLAGS@
XML2_LIBS = @XML2_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
ticcutils_CFLAGS = @ticcutils_CFLAGS@
ticcutils_LIBS = @ticcutils_LIBS@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = libfolia
all: all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu include/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am:
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
install-am install-strip tags-recursive
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am check check-am clean clean-generic clean-libtool \
ctags ctags-recursive distclean distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
uninstall uninstall-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
libfolia-0.10/include/Makefile.am 0000664 0001750 0001750 00000000062 12127031254 013610 0000000 0000000
#AUTOMAKE_OPTIONS = foreign
SUBDIRS = libfolia
libfolia-0.10/include/libfolia/ 0000775 0001750 0001750 00000000000 12127050265 013422 5 0000000 0000000 libfolia-0.10/include/libfolia/Makefile.in 0000664 0001750 0001750 00000034201 12127030333 015401 0000000 0000000 # Makefile.in generated by automake 1.11.3 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = include/libfolia
DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_icu_check.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkg.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(pkgincludedir)"
HEADERS = $(pkginclude_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
ICU_CFLAGS = @ICU_CFLAGS@
ICU_CONFIG = @ICU_CONFIG@
ICU_CPPSEARCHPATH = @ICU_CPPSEARCHPATH@
ICU_CXXFLAGS = @ICU_CXXFLAGS@
ICU_IOLIBS = @ICU_IOLIBS@
ICU_LIBPATH = @ICU_LIBPATH@
ICU_LIBS = @ICU_LIBS@
ICU_VERSION = @ICU_VERSION@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
XML2_CFLAGS = @XML2_CFLAGS@
XML2_LIBS = @XML2_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
ticcutils_CFLAGS = @ticcutils_CFLAGS@
ticcutils_LIBS = @ticcutils_LIBS@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
pkginclude_HEADERS = folia.h document.h foliautils.h
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/libfolia/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu include/libfolia/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-pkgincludeHEADERS: $(pkginclude_HEADERS)
@$(NORMAL_INSTALL)
test -z "$(pkgincludedir)" || $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)"
@list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
$(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
done
uninstall-pkgincludeHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(pkgincludedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am: install-pkgincludeHEADERS
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-pkgincludeHEADERS
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool ctags distclean distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-pkgincludeHEADERS install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-pkgincludeHEADERS
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
libfolia-0.10/include/libfolia/Makefile.am 0000664 0001750 0001750 00000000064 12127030260 015367 0000000 0000000 pkginclude_HEADERS = folia.h document.h foliautils.h libfolia-0.10/include/libfolia/foliautils.h 0000664 0001750 0001750 00000017032 12127030777 015677 0000000 0000000 /*
$Id: foliautils.h 15907 2013-04-03 13:43:03Z sloot $
$URL: https://ilk.uvt.nl/svn/sources/libfolia/trunk/include/libfolia/foliautils.h $
Copyright (c) 1998 - 2013
ILK - Tilburg University
CLiPS - University of Antwerp
This file is part of libfolia
libfolia is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
libfolia is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see .
For questions and suggestions, see:
http://ilk.uvt.nl/software.html
or send mail to:
timbl@uvt.nl
*/
#ifndef FOLIA_UTILS_H
#define FOLIA_UTILS_H
#include
#include
#include
#include
#include
#include
#include "ticcutils/PrettyPrint.h"
#include "ticcutils/StringOps.h"
#include "ticcutils/XMLtools.h"
#include "unicode/unistr.h"
#include "unicode/unistr.h"
#include
#include "libxml/tree.h"
namespace folia {
enum AnnotatorType{ UNDEFINED = -1, AUTO = 0, MANUAL = 1 };
enum Attrib { NO_ATT=0, ID=1, CLASS=2, ANNOTATOR=4, CONFIDENCE=8,
N=16, DATETIME=32, SETONLY=64, ALL=127 };
inline Attrib& operator++( Attrib & a ){
return a = ( SETONLY == a )
? NO_ATT
: ( NO_ATT == a ? ID : Attrib(a<<1) );
}
inline Attrib operator|( Attrib a1, Attrib a2 ){
return (Attrib) ((int)a1|(int)a2) ;
}
inline Attrib& operator|=( Attrib& a1, Attrib& a2 ){
a1 = (a1 | a2);
return a1;
}
enum ElementType {
BASE=0, TextContent_t,
Text_t, Word_t, Str_t,
WordReference_t, Event_t,
TimeSegment_t, TimingLayer_t,
LineBreak_t, WhiteSpace_t,
Sentence_t, Paragraph_t,
Division_t, Head_t,
Caption_t, Label_t,
List_t, ListItem_t,
Figure_t, Quote_t, //structure annotation elements
Pos_t, Lemma_t,
Phon_t, Domain_t,
Sense_t, Subjectivity_t,
Metric_t, Correction_t, //token annotation elements
AnnotationLayer_t, SyntacticUnit_t,
Chunk_t, Chunking_t,
Entity_t, Entities_t,
Coreferences_t, CoreferenceLink_t,
CoreferenceChain_t, SyntaxLayer_t,
Semroles_t, Semrole_t,
// Subentity_t, Subentities_t, //annotation layers
Morphology_t, Morpheme_t,
ErrorDetection_t, New_t,
Original_t, Current_t,
Alternative_t, Alternatives_t, //alternatives
Description_t, Gap_t,
Suggestion_t, Content_t,
Feature_t, SynsetFeature_t,
ActorFeature_t, HeadFeature_t,
ValueFeature_t, TimeFeature_t,
ModalityFeature_t, LevelFeature_t,
BeginDateTimeFeature_t, EndDateTimeFeature_t,
FunctionFeature_t, //features
PlaceHolder_t,
Dependencies_t, Dependency_t,
Headwords_t, DependencyDependent_t,
Alignment_t, AlignReference_t,
LastElement
};
inline ElementType& operator++( ElementType &et ){
return et = ( LastElement == et )
? BASE
: ElementType(et+1);
}
/*
* Annotation types tie FoLiA elements to a particular kind of annotation.
* Especially declarations make use of this.
* static const annotation_type = {AnnotationType}
*/
namespace AnnotationType {
enum AnnotationType { NO_ANN, TEXT, TOKEN, DIVISION, PARAGRAPH, STRING,
LIST, FIGURE, WHITESPACE, LINEBREAK, SENTENCE,
POS, LEMMA, DOMEIN, SENSE, SYNTAX, CHUNKING, ENTITY,
// Attention DOMAIN seems to be a defined constant
// where/how/why?
CORRECTION, SUGGESTION, ERRORDETECTION, ALTERNATIVE,
PHON, SUBJECTIVITY, MORPHOLOGICAL, SUBENTITY, EVENT,
DEPENDENCY, TIMEDEVENT, GAP, ALIGNMENT,
COMPLEXALIGNMENT, COREFERENCE, SEMROLE, METRIC,
LAST_ANN
};
inline AnnotationType& operator++( AnnotationType &at ){
return at = ( LAST_ANN == at )
? NO_ANN
: AnnotationType(at+1);
}
}
enum MetaDataType { NATIVE, CMDI, IMDI };
class ArgsError: public std::runtime_error {
public:
ArgsError( const std::string& s ): std::runtime_error( "error in argument list: " + s ){};
};
class KeyError: public std::out_of_range {
public:
KeyError(): std::out_of_range( "key out of range" ){};
};
class NotImplementedError: public std::runtime_error {
public:
NotImplementedError( const std::string& s ):
std::runtime_error( "NOT IMPLEMENTED: " + s ){};
};
class ValueError: public std::runtime_error {
public:
ValueError( const std::string& s ): std::runtime_error( s ){};
};
class XmlError: public std::runtime_error {
public:
XmlError( const std::string& s ): std::runtime_error( "XML error: " + s ){};
};
class NoSuchAnnotation: public std::runtime_error {
public:
NoSuchAnnotation( ): std::runtime_error( "no such annotation" ){};
NoSuchAnnotation( const std::string& s ): std::runtime_error( "no such annotation: " + s ){};
};
class NoSuchText: public std::runtime_error {
public:
NoSuchText( ): std::runtime_error( "no such text" ){};
NoSuchText( const std::string& s ): std::runtime_error( "no such text: " + s ){};
};
class NoDescription: public std::runtime_error {
public:
NoDescription( ): std::runtime_error( "no description" ){};
};
class DuplicateAnnotationError: public std::runtime_error {
public:
DuplicateAnnotationError( const std::string& s ): std::runtime_error( s ){};
};
class DuplicateIDError: public std::runtime_error {
public:
DuplicateIDError( const std::string& s ): std::runtime_error( "duplicate ID : " + s ){};
};
class NoDefaultError: public std::runtime_error {
public:
NoDefaultError( const std::string& s ): std::runtime_error( "No Default found: " + s ){};
};
UnicodeString UTF8ToUnicode( const std::string& );
std::string UnicodeToUTF8( const UnicodeString& );
std::string toString( const AnnotationType::AnnotationType& );
AnnotatorType stringToANT( const std::string& );
AnnotationType::AnnotationType stringToAT( const std::string& );
std::string toString( const ElementType& );
ElementType stringToET( const std::string& );
typedef std::map KWargs;
KWargs getArgs( const std::string& );
std::string toString( const KWargs& );
inline std::ostream& operator<<( std::ostream& os,
const AnnotationType::AnnotationType& at ){
os << toString( at );
return os;
}
}
namespace TiCC {
template<>
inline folia::AnnotationType::AnnotationType stringTo( const std::string& str ) {
return folia::stringToAT( str );
}
template<>
inline folia::ElementType stringTo( const std::string& str ) {
return folia::stringToET( str );
}
template<>
inline folia::AnnotatorType stringTo( const std::string& str ) {
std::string at = uppercase( str );
if ( at == "AUTO" )
return folia::AUTO;
else if ( at == "MANUAL" )
return folia::MANUAL;
else
return folia::UNDEFINED;
}
}
namespace folia {
void addAttributes( xmlNode *, const KWargs& );
KWargs getAttributes( const xmlNode * );
std::string parseDate( const std::string& );
bool AT_sanity_check();
bool Attrib_sanity_check();
bool ET_sanity_check();
bool isNCName( const std::string& );
inline std::string strip( const std::string& s ){ return TiCC::trim(s); };
} // namespace folia
#endif // FOLIA_UTILS
libfolia-0.10/include/libfolia/folia.h 0000664 0001750 0001750 00000163443 12127032057 014617 0000000 0000000 /*
$Id: folia.h 15909 2013-04-03 13:52:24Z sloot $
$URL: https://ilk.uvt.nl/svn/sources/libfolia/trunk/include/libfolia/folia.h $
Copyright (c) 1998 - 2013
ILK - Tilburg University
CLiPS - University of Antwerp
This file is part of libfolia
libfolia is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
libfolia is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see .
For questions and suggestions, see:
http://ilk.uvt.nl/software.html
or send mail to:
timbl@uvt.nl
*/
#ifndef FOLIA_H
#define FOLIA_H
#include
#include "unicode/unistr.h"
#include "unicode/regex.h"
#include "libxml/tree.h"
#include "libxml/xpath.h"
#include
#include "libfolia/foliautils.h"
namespace folia {
class Document;
class FoliaElement;
class AbstractTokenAnnotation;
class Alternative;
class PosAnnotation;
class LemmaAnnotation;
class Sentence;
class Word;
class TextContent;
class Correction;
class Suggestion;
class Division;
class DependencyDependent;
class Paragraph;
class Morpheme;
class FoliaElement {
friend std::ostream& operator<<( std::ostream&, const FoliaElement& );
friend std::ostream& operator<<( std::ostream&, const FoliaElement* );
friend bool operator==( const FoliaElement&, const FoliaElement& );
friend class Document;
friend class Correction;
public:
//Constructor
FoliaElement( Document* =0 );
virtual ~FoliaElement();
static FoliaElement *createElement( Document *, const ElementType );
static FoliaElement *createElement( Document *, const std::string& );
void classInit( const std::string& s="" ){
init(); // virtual init
if ( !s.empty() ){
// this enables the init of empty classes, which hopefully get their
// attributes in a later state
setAttributes( getArgs( s ) );
}
}
void classInit( const KWargs& a ){
init(); // virtual init
setAttributes( a ); // also virtual!
}
virtual void setAttributes( const KWargs& );
void setDateTime( const std::string& );
std::string getDateTime() const;
//functions regarding contained data
size_t size() const { return data.size(); };
void fixupDoc( Document* );
virtual FoliaElement *append( FoliaElement* );
virtual FoliaElement *postappend( ) { return this; };
virtual std::vector findreplacables( FoliaElement * ) const;
void remove( FoliaElement *, bool = true );
void replace( FoliaElement * );
FoliaElement* index( size_t ) const;
FoliaElement* operator[]( size_t i ) const {
return index(i);
}
FoliaElement* rindex( size_t ) const;
virtual const Word* resolveword( const std::string& ) const { return 0; };
bool isinstance( ElementType et ) const {
return et == _element_id;
}
template
bool isinstance() const {
F obj("");
return _element_id == obj._element_id;
}
template
std::vector select( const std::string& st,
const std::set& exclude,
bool recurse = true ) const {
F obj("");
std::vector res;
std::vector tmp = select( obj._element_id,
st,
exclude,
recurse );
for ( size_t i = 0; i < tmp.size(); ++i ){
res.push_back( dynamic_cast( tmp[i]) );
}
return res;
}
template
std::vector select( const std::string& st,
bool recurse = true ) const {
F obj("");
std::vector res;
std::vector tmp = select( obj._element_id,
st,
recurse );
for ( size_t i = 0; i < tmp.size(); ++i ){
res.push_back( dynamic_cast( tmp[i]) );
}
return res;
}
template
std::vector select( const char* st,
bool recurse = true ) const {
F obj("");
std::vector res;
std::vector tmp = select( obj._element_id,
std::string(st),
recurse );
for ( size_t i = 0; i < tmp.size(); ++i ){
res.push_back( dynamic_cast( tmp[i]) );
}
return res;
}
template
std::vector select( const std::set& exclude,
bool recurse = true ) const {
F obj("");
std::vector res;
std::vector tmp = select( obj._element_id,
exclude,
recurse );
for ( size_t i = 0; i < tmp.size(); ++i ){
res.push_back( dynamic_cast( tmp[i]) );
}
return res;
}
template
std::vector select( bool recurse = true ) const {
F obj("");
std::vector res;
std::vector tmp = select( obj._element_id,
recurse );
for ( size_t i = 0; i < tmp.size(); ++i ){
res.push_back( dynamic_cast( tmp[i]) );
}
return res;
}
template
std::vector annotations( ) const {
if ( allowannotations() ){
std::vector v = select();
if ( v.size() >= 1 )
return v;
else {
F obj("");
throw NoSuchAnnotation( obj.classname() );
}
}
else {
throw NotImplementedError( "annotations() for " + _xmltag );
};
}
template
F *annotation() const {
std::vectorv = annotations();
return v[0]; // always exist, otherwise annotations would throw()
}
template
F *annotation( const std::string& st ) const {
if ( allowannotations() ){
// Will return a SINGLE annotation (even if there are multiple).
// Raises a NoSuchAnnotation exception if none was found
std::vectorv = select( st );
if ( v.size() >= 1 )
return v[0];
else {
F obj("");
if ( st.empty() )
throw NoSuchAnnotation( obj.classname() );
else
throw NoSuchAnnotation( obj.classname() + " in set '" + st + "'" );
}
}
else {
throw NotImplementedError( "annotation() for " + _xmltag );
}
}
std::vector feats( const std::string& ) const;
std::vector sentencePart() const;
std::string feat( const std::string& ) const;
//XML (de)serialisation
std::string xmlstring() const; // serialize to a string (XML fragment)
virtual xmlNode *xml( bool, bool = false ) const; //serialize to XML
virtual FoliaElement* parseXml( const xmlNode * );
virtual std::string str() const;
UnicodeString unicode() const { return text(); };
UnicodeString toktext( const std::string& cls = "current" ) const {
return text( cls, true );
}
virtual UnicodeString text( const std::string& = "current", bool = false ) const;
virtual TextContent *textcontent( const std::string& = "current" ) const;
virtual UnicodeString stricttext( const std::string& = "current" ) const;
bool hastext( const std::string& = "current" ) const ;
virtual FoliaElement *head() const {
throw NotImplementedError("head() for " + _xmltag );
}
virtual FoliaElement *getNew() const {
throw NotImplementedError("getNew() for " + _xmltag ); };
virtual FoliaElement *getOriginal() const {
throw NotImplementedError("getOriginal() for " + _xmltag ); };
virtual FoliaElement *getCurrent() const {
throw NotImplementedError("getCurrent() for " + _xmltag ); };
virtual FoliaElement *split( FoliaElement *, FoliaElement *,
const std::string& = "" ){
throw NotImplementedError("split() for " + _xmltag ); };
virtual Correction *mergewords( FoliaElement *,
const std::vector&,
const std::string& = "" ){
throw NotImplementedError("mergewords() for " + _xmltag ); };
virtual Correction *deleteword( FoliaElement *,
const std::string& = "" ){
throw NotImplementedError("deleteword() for " + _xmltag ); };
virtual Correction *insertword( FoliaElement *, FoliaElement *,
const std::string& = "" ){
throw NotImplementedError("insertword() for " + _xmltag ); };
virtual std::vector suggestions() const
{ throw NotImplementedError("suggestions() for " + _xmltag ); };
virtual Suggestion *suggestions( size_t ) const
{ throw NotImplementedError("suggestions() for " + _xmltag ); };
virtual std::string subset() const
{ throw NotImplementedError("subset() for " + _xmltag ); };
virtual FoliaElement *previous() const {
throw NotImplementedError("previous() for " + _xmltag ); };
virtual FoliaElement *next() const {
throw NotImplementedError("next() for " + _xmltag ); };
virtual std::vector context( size_t,
const std::string& ="" ) const {
throw NotImplementedError("contect() for " + _xmltag ); };
virtual std::vector leftcontext( size_t,
const std::string& ="" ) const {
throw NotImplementedError("leftcontect() for " + _xmltag );
};
virtual std::vector rightcontext( size_t,
const std::string& ="" ) const {
throw NotImplementedError("rightcontext() for " + _xmltag );
};
virtual int offset() const {
throw NotImplementedError("offset() for " + _xmltag );
};
virtual std::string getlang() const {
throw NotImplementedError("offset() for " + _xmltag );
};
virtual std::string setlang( const std::string& ) {
throw NotImplementedError("offset() for " + _xmltag );
};
std::string pos( const std::string& = "" ) const;
std::string lemma( const std::string& = "" ) const;
std::string cls() const { return _class; };
std::string sett() const { return _set; };
std::string annotator( ) const { return _annotator; };
void annotator( const std::string& a ) { _annotator = a; };
AnnotatorType annotatortype() const { return _annotator_type; };
void annotatortype( AnnotatorType t ) { _annotator_type = t; };
double confidence() const { return _confidence; };
void confidence( double d ) { _confidence = d; };
AnnotationType::AnnotationType annotation_type() const { return _annotation_type; };
std::string classname() const { return toString(_element_id); };
std::string n() const { return _n; };
std::string id() const { return _id; };
ElementType element_id() const { return _element_id; };
std::string xmltag() const { return _xmltag; };
Document *doc() const { return mydoc; };
xmlNs *foliaNs() const;
virtual Sentence *sentence() const {
throw NotImplementedError("sentence() for " + _xmltag );
};
virtual Paragraph *paragraph() const {
throw NotImplementedError("paragraph() for " + _xmltag );
};
virtual Division *division() const {
throw NotImplementedError("division() for " + _xmltag );
};
virtual Correction *incorrection() const {
throw NotImplementedError("incorrection() for " + _xmltag );
};
virtual std::vector paragraphs() const {
throw NotImplementedError("paragraphs() for " + _xmltag );
};
virtual std::vector sentences() const {
throw NotImplementedError("sentences() for " + _xmltag );
};
virtual std::vector words() const {
throw NotImplementedError("words() for " + _xmltag );
};
virtual std::vector morphemes( const std::string& ) const {
throw NotImplementedError("morphemes() for " + _xmltag );
};
virtual Morpheme* morpheme( size_t, const std::string& ) const {
throw NotImplementedError("morpheme() for " + _xmltag );
};
virtual Sentence *sentences( size_t ) const {
throw NotImplementedError("sentences() for " + _xmltag );
};
virtual Sentence *rsentences( size_t ) const {
throw NotImplementedError("rsentences() for " + _xmltag );
};
virtual Paragraph *paragraphs( size_t ) const {
throw NotImplementedError("paragraphs() for " + _xmltag );
};
virtual Paragraph *rparagraphs( size_t ) const {
throw NotImplementedError("rparagraphs() for " + _xmltag );
};
virtual Word *words( size_t ) const {
throw NotImplementedError("words() for " + _xmltag );
};
virtual std::vector wordParts() const {
throw NotImplementedError("words() for " + _xmltag );
};
virtual Word *rwords( size_t ) const {
throw NotImplementedError("rwords() for " + _xmltag );
};
virtual DependencyDependent *dependent() const {
throw NotImplementedError("dependent() for " + _xmltag );
};
virtual std::string description() const;
Sentence *addSentence( const std::string& s ="" ){
return addSentence( getArgs(s) );
};
Sentence *addSentence( const KWargs& );
Word *addWord( const std::string& s ){
return addWord( getArgs(s) );
}
Word *addWord( const KWargs& );
TextContent *settext( const std::string&, const std::string& = "current" );
TextContent *settext( const std::string&, int , const std::string& = "current" );
template
F *addAlternative();
template
F *addAlternative( const KWargs& );
template
F *addAnnotation( const KWargs& args ) {
F *res = 0;
try {
res = new F( mydoc, args);
}
catch( std::exception& ){
delete res;
throw;
}
append( res );
return res;
}
PosAnnotation *addPosAnnotation( const KWargs& );
LemmaAnnotation *addLemmaAnnotation( const KWargs& );
std::vector alternatives( const std::string& s = "" ) const {
return alternatives( BASE, s );
}
virtual std::vector alternatives( ElementType,
const std::string& = ""
) const {
throw NotImplementedError("alternatives() for " + _xmltag );
}
virtual std::string content() const {
throw NoSuchAnnotation( "content" );
}
virtual Correction *correct( const std::vector,
const std::vector,
const std::vector,
const std::vector,
const KWargs& ){
throw NotImplementedError("correct() for " + _xmltag );
}
virtual Correction* correct( FoliaElement*,
FoliaElement*,
const KWargs& ){
throw NotImplementedError("correct() for " + _xmltag );
}
virtual Correction *correct( const std::string& = "" ){
throw NotImplementedError("correct() for " + _xmltag ); };
virtual std::string src() const {
throw NotImplementedError("src() for " + _xmltag ); };
virtual UnicodeString caption() const {
throw NotImplementedError("caption() for " + _xmltag ); };
void increfcount() { ++refcount; };
FoliaElement *parent() const { return _parent; };
void setParent( FoliaElement *p ) { _parent = p ; };
void setAuth( bool b ){ _auth = b; };
virtual std::vector resolve() const {
throw NotImplementedError("resolve() for " + _xmltag );
};
protected:
virtual void init()=0;
virtual KWargs collectAttributes() const;
virtual std::string getTextDelimiter( bool=false ) const { return TEXTDELIMITER; }
virtual std::string generateId( const std::string& ){
throw NotImplementedError( "generateId() not allowed for " + classname() );
};
virtual bool allowannotations() const { return false; };
std::vector select( ElementType elementtype,
bool = true ) const;
std::vector select( ElementType elementtype,
const std::set& ,
bool = true ) const;
std::vector select( ElementType elementtype,
const std::string&,
bool = true ) const;
std::vector select( ElementType elementtype,
const std::string&,
const std::set& ,
bool = true ) const;
bool acceptable( ElementType ) const;
bool checkAtts();
bool addable( const FoliaElement * ) const;
std::vector data;
FoliaElement *_parent;
bool _auth;
Document *mydoc;
std::string _xmltag;
ElementType _element_id;
std::set _accepted_data;
AnnotationType::AnnotationType _annotation_type;
Attrib _required_attributes;
Attrib _optional_attributes;
size_t occurrences;
size_t occurrences_per_set;
std::string TEXTDELIMITER;
bool PRINTABLE;
bool AUTH;
//common FoLiA attributes
//not applicable to all subtypes, but taking this slight extra memory
//loss for granted. (Perhaps make them into pointers?)
std::string _id;
std::string _set;
std::string _class;
std::string _annotator;
std::string _n;
std::string _datetime;
AnnotatorType _annotator_type;
double _confidence;
int refcount;
};
bool operator==( const FoliaElement&, const FoliaElement& );
inline bool operator!=( const FoliaElement& e1, const FoliaElement& e2 ){
return !( e1 == e2 );
}
inline size_t len( const FoliaElement *e ) {
return e->size(); }
template
inline size_t len( const std::vector& v ) {
return v.size(); }
inline std::string str( const FoliaElement *e ) {
return e->str(); }
inline UnicodeString text( const FoliaElement *e ) {
if ( e )
return e->text();
else
throw ValueError( "text() for empty element" );
}
inline UnicodeString unicode( const FoliaElement *e ) {
return e->unicode(); }
inline bool isinstance( const FoliaElement *e, ElementType t ) {
return e->isinstance( t ); }
class AllowGenerateID {
public:
void setMaxId( FoliaElement * );
int getMaxId( const std::string& );
protected:
std::string IGgen( const std::string&, const std::string& );
private:
std::map maxid;
};
class AbstractStructureElement: public FoliaElement, AllowGenerateID {
public:
AbstractStructureElement( Document *d=0 ): FoliaElement( d ) { classInit(); };
std::string str() const;
bool allowannotations() const { return true; };
std::vector alternatives( ElementType = BASE,
const std::string& = "" ) const;
FoliaElement *append( FoliaElement* );
Correction *correct( std::vector,
std::vector,
std::vector,
std::vector,
const KWargs& );
std::vector paragraphs() const;
std::vector sentences() const;
std::vector words() const;
Sentence *sentences( size_t ) const;
Sentence *rsentences( size_t ) const;
Paragraph *paragraphs( size_t ) const;
Paragraph *rparagraphs( size_t ) const;
Word *words( size_t ) const;
Word *rwords( size_t ) const;
const Word* resolveword( const std::string& ) const;
std::string generateId( const std::string& tag ){
return IGgen( tag, _id );
}
private:
void init();
};
class AbstractAnnotation: public FoliaElement {
public:
AbstractAnnotation( Document *d=0 ): FoliaElement( d ){};
};
class AbstractTokenAnnotation: public AbstractAnnotation, AllowGenerateID {
public:
AbstractTokenAnnotation( Document *d=0 ): AbstractAnnotation( d ){ classInit(); };
std::string generateId( const std::string& tag ){
return IGgen( tag, _id );
}
private:
void init();
};
class AbstractSubTokenAnnotation: public AbstractAnnotation {
public:
AbstractSubTokenAnnotation( Document *d=0 ): AbstractAnnotation( d ){ classInit(); };
private:
void init();
};
class Feature: public FoliaElement {
public:
Feature( const std::string& s=""): FoliaElement( ){ classInit( s ); }
Feature( const KWargs& a ): FoliaElement( ){ classInit( a ); }
Feature( Document *d, const std::string& s=""): FoliaElement( d ){ classInit( s ); }
Feature( Document *d, const KWargs& a ): FoliaElement( d ){ classInit( a ); }
void setAttributes( const KWargs& );
KWargs collectAttributes() const;
std::string subset() const { return _subset; };
protected:
std::string _subset;
private:
void init();
};
class AbstractSpanAnnotation: public AbstractAnnotation, AllowGenerateID {
public:
AbstractSpanAnnotation( Document *d=0 ): AbstractAnnotation( d ){ classInit(); };
xmlNode *xml( bool, bool=false ) const;
FoliaElement *append( FoliaElement* );
std::string generateId( const std::string& tag ){
return IGgen( tag, _id );
}
private:
void init();
};
class TextContent: public FoliaElement {
public:
TextContent( const std::string& s="" ): FoliaElement( ){ classInit( s ); }
TextContent( const KWargs& a ): FoliaElement( ){ classInit( a ); }
TextContent( Document *d, const std::string& s="" ): FoliaElement( d ){ classInit( s ); }
TextContent( Document *d, const KWargs& a ): FoliaElement( d ){ classInit( a ); }
FoliaElement* parseXml( const xmlNode * );
xmlNode *xml( bool, bool=false ) const;
void setAttributes( const KWargs& );
KWargs collectAttributes() const;
std::string str() const;
UnicodeString text( const std::string& = "current", bool = false ) const;
int offset() const { return _offset; };
std::string getlang() const { return _lang; };
std::string setlang( const std::string& l ) {
std::string t = _lang;
_lang = l;
return t;
};
FoliaElement *append( FoliaElement* ){
throw NotImplementedError("TextContent::append() for " + _xmltag ); };
TextContent *postappend();
std::vector findreplacables( FoliaElement * ) const;
private:
void init();
int _offset;
std::string _lang;
UnicodeString _text;
};
class FoLiA: public FoliaElement {
public:
FoLiA( const std::string& s="" ): FoliaElement( ) { classInit( s ); };
FoLiA( const KWargs& a ): FoliaElement( ) { classInit( a ); };
FoLiA( Document *d, const std::string& s=""): FoliaElement( d ) { classInit( s ); };
FoLiA( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
private:
void init();
};
class DCOI: public FoliaElement {
public:
DCOI( const std::string& s=""): FoliaElement( ) { classInit( s ); };
DCOI( const KWargs& a ): FoliaElement( ) { classInit( a ); };
DCOI( Document *d, const std::string& s=""): FoliaElement( d ) { classInit( s ); };
DCOI( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
private:
void init();
};
class Head: public AbstractStructureElement {
public:
Head( const std::string& s=""): AbstractStructureElement() { classInit( s ); };
Head( const KWargs& a ): AbstractStructureElement() { classInit( a ); };
Head( Document *d, const std::string& s=""): AbstractStructureElement( d ) { classInit( s ); };
Head( Document *d, const KWargs& a ): AbstractStructureElement( d ) { classInit( a ); };
private:
void init();
};
class Gap: public FoliaElement {
public:
Gap( const std::string& s=""): FoliaElement( ) { classInit( s ); };
Gap( const KWargs& a ): FoliaElement( ) { classInit( a ); };
Gap( Document *d, const std::string& s=""): FoliaElement( d ) { classInit( s ); };
Gap( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
std::string content() const;
private:
void init();
};
class Content: public FoliaElement {
public:
Content( const std::string& s=""): FoliaElement( ) { classInit( s ); };
Content( const KWargs& a ): FoliaElement( ) { classInit( a ); };
Content( Document *d, const std::string& s=""): FoliaElement( d ) { classInit( s ); };
Content( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
FoliaElement* parseXml( const xmlNode * );
xmlNode *xml( bool, bool = false ) const;
std::string content() const { return value; };
private:
void init();
std::string value;
};
class MetricAnnotation: public FoliaElement {
public:
MetricAnnotation( const std::string& s=""): FoliaElement( ) { classInit( s ); };
MetricAnnotation( const KWargs& a ): FoliaElement( ) { classInit( a ); };
MetricAnnotation( Document *d, const std::string& s=""): FoliaElement( d ) { classInit( s ); };
MetricAnnotation( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
private:
void init();
};
class Division: public AbstractStructureElement {
public:
Division( const std::string& s=""): AbstractStructureElement() { classInit( s ); };
Division( const KWargs& a ): AbstractStructureElement() { classInit( a ); };
Division( Document *d, const std::string& s=""): AbstractStructureElement( d ) { classInit( s ); };
Division( Document *d, const KWargs& a ): AbstractStructureElement( d ) { classInit( a ); };
Head *head() const;
private:
void init();
};
class LineBreak: public AbstractStructureElement {
public:
LineBreak( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
LineBreak( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
LineBreak( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
LineBreak( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class WhiteSpace: public AbstractStructureElement {
public:
WhiteSpace( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
WhiteSpace( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
WhiteSpace( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
WhiteSpace( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class Word: public AbstractStructureElement {
public:
Word( const std::string& s="" ): AbstractStructureElement(){ classInit( s ); };
Word( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Word( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
Word( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
Correction *correct( const std::string& = "" );
Correction *correct( FoliaElement*,
FoliaElement*,
const KWargs& );
FoliaElement *split( FoliaElement *, FoliaElement *,
const std::string& = "" );
Sentence *sentence() const;
Paragraph *paragraph() const;
Division *division() const;
std::vector morphemes( const std::string& ="" ) const;
Morpheme* morpheme( size_t, const std::string& ="" ) const;
Correction *incorrection() const;
Word *previous() const;
Word *next() const;
std::vector context( size_t,
const std::string& ="" ) const;
std::vector leftcontext( size_t,
const std::string& = "" ) const;
std::vector rightcontext( size_t,
const std::string& ="" ) const;
FoliaElement *append( FoliaElement *);
const Word* resolveword( const std::string& ) const;
void setAttributes( const KWargs& );
KWargs collectAttributes() const;
std::string getTextDelimiter( bool retaintok=false) const {
if ( space || retaintok )
return TEXTDELIMITER;
else {
return "";
}
}
private:
void init();
bool space;
};
class String: public AbstractTokenAnnotation {
public:
String( const std::string& s="" ): AbstractTokenAnnotation(){ classInit( s ); };
String( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
String( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); };
String( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class PlaceHolder: public Word {
public:
PlaceHolder( const std::string& s=""): Word(){ classInit( s ); };
PlaceHolder( const KWargs& a ): Word(){ classInit( a ); };
PlaceHolder( Document *d, const std::string& s=""): Word( d ){ classInit( s ); };
PlaceHolder( Document *d, const KWargs& a ): Word( d ){ classInit( a ); };
void setAttributes( const KWargs& );
private:
void init();
};
class Sentence: public AbstractStructureElement {
public:
Sentence( const std::string& s=""): AbstractStructureElement(){ classInit( s ); }
Sentence( const KWargs& a ): AbstractStructureElement(){ classInit( a ); }
Sentence( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); }
Sentence( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); }
Correction *splitWord( FoliaElement *, FoliaElement *,
FoliaElement *, const KWargs& );
Correction *mergewords( FoliaElement *,
const std::vector&,
const std::string& = "" );
Correction *deleteword( FoliaElement *, const std::string& args );
Correction *insertword( FoliaElement *, FoliaElement *,
const std::string& args );
std::vector wordParts() const;
private:
Correction *correctWords( const std::vector&,
const std::vector&,
const std::vector&,
const KWargs& );
void init();
};
class Text: public AbstractStructureElement {
public:
Text( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
Text( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Text( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
Text( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class Event: public AbstractStructureElement {
public:
Event( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
Event( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Event( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
Event( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class Caption: public AbstractStructureElement {
public:
Caption( const std::string& s="" ): AbstractStructureElement(){ classInit( s ); };
Caption( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Caption( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
Caption( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class Label: public AbstractStructureElement {
public:
Label( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
Label( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Label( Document *d, const std::string& s="" ): AbstractStructureElement( d ){ classInit( s ); };
Label( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class ListItem: public AbstractStructureElement {
public:
ListItem( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
ListItem( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
ListItem( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
ListItem( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class List: public AbstractStructureElement {
public:
List( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
List( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
List( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
List( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class Figure: public AbstractStructureElement {
public:
Figure( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
Figure( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Figure( Document *d, const std::string& s="" ): AbstractStructureElement( d ){ classInit( s ); };
Figure( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
void setAttributes( const KWargs& );
KWargs collectAttributes() const;
std::string src() const { return _src; };
UnicodeString caption() const;
private:
void init();
std::string _src;
};
class Paragraph: public AbstractStructureElement {
public:
Paragraph( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
Paragraph( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Paragraph( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
Paragraph( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
private:
void init();
};
class Alternative: public AbstractStructureElement {
public:
Alternative( const std::string& s=""): AbstractStructureElement(){ classInit( s ); };
Alternative( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Alternative( Document *d, const std::string& s=""): AbstractStructureElement( d ){ classInit( s ); };
Alternative( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
bool allowannotations() const { return true; };
private:
void init();
};
class AlternativeLayers: public FoliaElement {
public:
AlternativeLayers( const std::string& s=""): FoliaElement(){ classInit( s ); };
AlternativeLayers( const KWargs& a ): FoliaElement(){ classInit( a ); };
AlternativeLayers( Document *d, const std::string& s=""): FoliaElement( d ){ classInit( s ); };
AlternativeLayers( Document *d, const KWargs& a ): FoliaElement( d ){ classInit( a ); };
private:
void init();
};
template
F *FoliaElement::addAlternative( const KWargs& args ){
KWargs kw;
std::string id = generateId( "alt" );
kw["id"] = id;
F *res = 0;
Alternative *alt = 0;
try {
alt = new Alternative( mydoc, kw );
res = alt->addAnnotation( args );
}
catch( std::exception& ){
delete alt;
throw;
}
append( alt );
return res;
}
template
F *FoliaElement::addAlternative(){
KWargs numb;
return addAlternative( numb );
}
class PosAnnotation: public AbstractTokenAnnotation {
public:
PosAnnotation( const std::string& s=""): AbstractTokenAnnotation(){ classInit( s ); };
PosAnnotation( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
PosAnnotation( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); };
PosAnnotation( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class LemmaAnnotation: public AbstractTokenAnnotation {
public:
LemmaAnnotation( const std::string& s=""): AbstractTokenAnnotation(){ classInit( s ); };
LemmaAnnotation( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
LemmaAnnotation( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); };
LemmaAnnotation( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class PhonAnnotation: public AbstractTokenAnnotation {
public:
PhonAnnotation( const std::string& s=""): AbstractTokenAnnotation(){ classInit( s ); };
PhonAnnotation( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
PhonAnnotation( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); };
PhonAnnotation( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class DomainAnnotation: public AbstractTokenAnnotation {
public:
DomainAnnotation( const std::string& s=""): AbstractTokenAnnotation(){ classInit( s ); };
DomainAnnotation( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
DomainAnnotation( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); };
DomainAnnotation( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class SenseAnnotation: public AbstractTokenAnnotation {
public:
SenseAnnotation( const std::string& s="" ): AbstractTokenAnnotation(){ classInit( s ); };
SenseAnnotation( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
SenseAnnotation( Document *d, const std::string& s="" ): AbstractTokenAnnotation( d ){ classInit( s ); };
SenseAnnotation( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class SubjectivityAnnotation: public AbstractTokenAnnotation {
public:
SubjectivityAnnotation( const std::string& s="" ): AbstractTokenAnnotation(){ classInit( s ); };
SubjectivityAnnotation( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); };
SubjectivityAnnotation( Document *d, const std::string& s="" ): AbstractTokenAnnotation( d ){ classInit( s ); };
SubjectivityAnnotation( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); };
private:
void init();
};
class Quote: public AbstractStructureElement {
public:
Quote( const std::string& s="" ): AbstractStructureElement(){ classInit( s ); };
Quote( const KWargs& a ): AbstractStructureElement(){ classInit( a ); };
Quote( Document *d, const std::string& s="" ): AbstractStructureElement( d ){ classInit( s ); };
Quote( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); };
FoliaElement *append( FoliaElement *);
std::vector wordParts() const;
private:
void init();
};
class BeginDateTimeFeature: public Feature {
public:
BeginDateTimeFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
BeginDateTimeFeature( const KWargs& a ): Feature( ){ classInit( a ); }
BeginDateTimeFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
BeginDateTimeFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class EndDateTimeFeature: public Feature {
public:
EndDateTimeFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
EndDateTimeFeature( const KWargs& a ): Feature( ){ classInit( a ); }
EndDateTimeFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
EndDateTimeFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class SynsetFeature: public Feature {
public:
SynsetFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
SynsetFeature( const KWargs& a ): Feature( ){ classInit( a ); }
SynsetFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
SynsetFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class ActorFeature: public Feature {
public:
ActorFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
ActorFeature( const KWargs& a ): Feature( ){ classInit( a ); }
ActorFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
ActorFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class HeadFeature: public Feature {
public:
HeadFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
HeadFeature( const KWargs& a ): Feature( ){ classInit( a ); }
HeadFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
HeadFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class ValueFeature: public Feature {
public:
ValueFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
ValueFeature( const KWargs& a ): Feature( ){ classInit( a ); }
ValueFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
ValueFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class FunctionFeature: public Feature {
public:
FunctionFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
FunctionFeature( const KWargs& a ): Feature( ){ classInit( a ); }
FunctionFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
FunctionFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class TimeFeature: public Feature {
public:
TimeFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
TimeFeature( const KWargs& a ): Feature( ){ classInit( a ); }
TimeFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
TimeFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class LevelFeature: public Feature {
public:
LevelFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
LevelFeature( const KWargs& a ): Feature( ){ classInit( a ); }
LevelFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
LevelFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class ModalityFeature: public Feature {
public:
ModalityFeature( const std::string& s="" ): Feature( ){ classInit( s ); }
ModalityFeature( const KWargs& a ): Feature( ){ classInit( a ); }
ModalityFeature( Document *d, const std::string& s="" ): Feature( d ){ classInit( s ); }
ModalityFeature( Document *d, const KWargs& a ): Feature( d ){ classInit( a ); }
private:
void init();
};
class WordReference: public FoliaElement {
public:
WordReference( const std::string& s="" ): FoliaElement( ){ classInit( s ); };
WordReference( const KWargs& a ): FoliaElement( ){ classInit( a ); };
WordReference( Document *d, const std::string& s="" ): FoliaElement( d ){ classInit( s ); };
WordReference( Document *d, const KWargs& a ): FoliaElement( d ){ classInit( a ); };
private:
void init();
FoliaElement* parseXml( const xmlNode *node );
};
class Alignment: public FoliaElement {
public:
Alignment( const std::string& s="" ): FoliaElement( ){ classInit( s ); };
Alignment( const KWargs& a ): FoliaElement( ){ classInit( a ); };
Alignment( Document *d, const std::string& s="" ): FoliaElement( d ){ classInit( s ); };
Alignment( Document *d, const KWargs& a ): FoliaElement( d ){ classInit( a ); };
std::string href() const { return _href; };
std::vectorresolve() const;
KWargs collectAttributes() const;
void setAttributes( const KWargs& );
private:
void init();
std::string _href;
std::string _type;
};
class AlignReference: public FoliaElement {
friend class Alignment;
public:
AlignReference( const std::string& s="" ): FoliaElement( ){ classInit( s ); };
AlignReference( const KWargs& a ): FoliaElement( ){ classInit( a ); };
AlignReference( Document *d, const std::string& s="" ): FoliaElement( d ){ classInit( s ); };
AlignReference( Document *d, const KWargs& a ): FoliaElement( d ){ classInit( a ); };
KWargs collectAttributes() const;
void setAttributes( const KWargs& );
private:
void init();
FoliaElement* parseXml( const xmlNode *node );
FoliaElement *resolve( const Alignment *ref ) const;
std::string refId;
std::string _type;
std::string _t;
};
class SyntacticUnit: public AbstractSpanAnnotation {
public:
SyntacticUnit( const std::string& s="" ): AbstractSpanAnnotation( ){ classInit( s ); }
SyntacticUnit( const KWargs& a ): AbstractSpanAnnotation( ){ classInit( a ); }
SyntacticUnit( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
SyntacticUnit( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class Chunk: public AbstractSpanAnnotation {
public:
Chunk( const std::string& s="" ): AbstractSpanAnnotation( ){ classInit( s ); }
Chunk( const KWargs& a ): AbstractSpanAnnotation( ){ classInit( a ); }
Chunk( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
Chunk( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class Entity: public AbstractSpanAnnotation {
public:
Entity( const std::string& s="" ): AbstractSpanAnnotation( ){ classInit( s ); }
Entity( const KWargs& a ): AbstractSpanAnnotation( ){ classInit( a ); }
Entity( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
Entity( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class Headwords: public AbstractSpanAnnotation {
public:
Headwords( const std::string& s="" ): AbstractSpanAnnotation( ){ classInit( s ); }
Headwords( const KWargs& a ): AbstractSpanAnnotation( ){ classInit( a ); }
Headwords( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
Headwords( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class DependencyDependent: public AbstractSpanAnnotation {
public:
DependencyDependent( const std::string& s="" ): AbstractSpanAnnotation( ){ classInit( s ); }
DependencyDependent( const KWargs& a ): AbstractSpanAnnotation( ){ classInit( a ); }
DependencyDependent( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
DependencyDependent( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class Dependency: public AbstractSpanAnnotation {
public:
Dependency( const std::string& s="" ): AbstractSpanAnnotation( ){ classInit( s ); }
Dependency( const KWargs& a ): AbstractSpanAnnotation( ){ classInit( a ); }
Dependency( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
Dependency( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
Headwords *head() const;
DependencyDependent *dependent() const;
private:
void init();
};
class CoreferenceLink: public AbstractSpanAnnotation {
public:
CoreferenceLink( const std::string& s="" ): AbstractSpanAnnotation(){ classInit( s ); }
CoreferenceLink( const KWargs& a ): AbstractSpanAnnotation(){ classInit( a ); }
CoreferenceLink( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
CoreferenceLink( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class CoreferenceChain: public AbstractSpanAnnotation {
public:
CoreferenceChain( const std::string& s="" ): AbstractSpanAnnotation(){ classInit( s ); }
CoreferenceChain( const KWargs& a ): AbstractSpanAnnotation(){ classInit( a ); }
CoreferenceChain( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
CoreferenceChain( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class SemanticRole: public AbstractSpanAnnotation {
public:
SemanticRole( const std::string& s="" ): AbstractSpanAnnotation(){ classInit( s ); }
SemanticRole( const KWargs& a ): AbstractSpanAnnotation(){ classInit( a ); }
SemanticRole( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
SemanticRole( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class AbstractAnnotationLayer: public FoliaElement, AllowGenerateID {
public:
AbstractAnnotationLayer( const std::string& s=""): FoliaElement( ) { classInit( s ); };
AbstractAnnotationLayer( const KWargs& a ): FoliaElement( ) { classInit( a ); };
AbstractAnnotationLayer( Document *d, const std::string& s=""): FoliaElement( d ) { classInit( s ); };
AbstractAnnotationLayer( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
std::string generateId( const std::string& tag ){
return IGgen( tag, _id );
}
private:
void init();
};
class AbstractCorrectionChild: public FoliaElement {
public:
AbstractCorrectionChild( Document *d=0 ): FoliaElement( d ){ classInit(); };
private:
void init();
};
class NewElement: public AbstractCorrectionChild {
public:
NewElement( const std::string& s=""): AbstractCorrectionChild( ) { classInit( s ); };
NewElement( const KWargs& a ): AbstractCorrectionChild( ) { classInit( a ); };
NewElement( Document *d, const std::string& s=""): AbstractCorrectionChild( d ) { classInit( s ); };
NewElement( Document *d, const KWargs& a ): AbstractCorrectionChild( d ) { classInit( a ); };
private:
void init();
};
class Current: public AbstractCorrectionChild {
public:
Current( const std::string& s=""): AbstractCorrectionChild( ) { classInit( s ); };
Current( const KWargs& a ): AbstractCorrectionChild( ) { classInit( a ); };
Current( Document *d, const std::string& s=""): AbstractCorrectionChild( d ) { classInit( s ); };
Current( Document *d, const KWargs& a ): AbstractCorrectionChild( d ) { classInit( a ); };
private:
void init();
};
class Original: public AbstractCorrectionChild {
public:
Original( const std::string& s=""): AbstractCorrectionChild( ) { classInit( s ); };
Original( const KWargs& a ): AbstractCorrectionChild( ) { classInit( a ); };
Original( Document *d, const std::string& s=""): AbstractCorrectionChild( d ) { classInit( s ); };
Original( Document *d, const KWargs& a ): AbstractCorrectionChild( d ) { classInit( a ); };
private:
void init();
};
class Suggestion: public AbstractCorrectionChild {
public:
Suggestion( const std::string& s=""): AbstractCorrectionChild( ) { classInit( s ); };
Suggestion( const KWargs& a ): AbstractCorrectionChild( ) { classInit( a ); };
Suggestion( Document *d, const std::string& s=""): AbstractCorrectionChild( d ) { classInit( s ); };
Suggestion( Document *d, const KWargs& a ): AbstractCorrectionChild( d ) { classInit( a ); };
private:
void init();
};
class Description: public FoliaElement {
public:
Description( const std::string& s=""): FoliaElement( ) { classInit( s ); };
Description( const KWargs& a ): FoliaElement( ) { classInit( a ); };
Description( Document *d, const std::string& s="" ): FoliaElement( d ) { classInit( s ); };
Description( Document *d, const KWargs& a ): FoliaElement( d ) { classInit( a ); };
std::string description() const { return _value; };
void setAttributes( const KWargs& kwargs );
FoliaElement* parseXml( const xmlNode * );
xmlNode *xml( bool, bool=false ) const;
private:
void init();
std::string _value;
};
class Correction: public AbstractTokenAnnotation {
public:
Correction( const std::string& s=""): AbstractTokenAnnotation( ){ classInit( s ); }
Correction( const KWargs& a ): AbstractTokenAnnotation( ){ classInit( a ); }
Correction( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); }
Correction( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); }
bool hasNew() const;
bool hasOriginal() const;
bool hasCurrent() const;
bool hasSuggestions() const;
NewElement *getNew() const;
Original *getOriginal() const;
Current *getCurrent() const;
std::vector suggestions() const;
Suggestion *suggestions( size_t ) const;
UnicodeString text( const std::string& = "current", bool = false ) const;
TextContent *textcontent( const std::string& = "current" ) const;
private:
void init();
};
class ErrorDetection: public AbstractTokenAnnotation {
public:
ErrorDetection( const std::string& s=""): AbstractTokenAnnotation(){ classInit( s ); }
ErrorDetection( const KWargs& a ): AbstractTokenAnnotation(){ classInit( a ); }
ErrorDetection( Document *d, const std::string& s=""): AbstractTokenAnnotation( d ){ classInit( s ); }
ErrorDetection( Document *d, const KWargs& a ): AbstractTokenAnnotation( d ){ classInit( a ); }
private:
void init();
};
class AbstractSubtokenAnnotation: public AbstractAnnotation, AllowGenerateID {
public:
AbstractSubtokenAnnotation( const std::string& s="" ): AbstractAnnotation( ){ classInit( s ); }
AbstractSubtokenAnnotation( const KWargs& a ): AbstractAnnotation( ){ classInit( a ); }
AbstractSubtokenAnnotation( Document *d, const std::string& s="" ): AbstractAnnotation( d ){ classInit( s ); }
AbstractSubtokenAnnotation( Document *d, const KWargs& a ): AbstractAnnotation( d ){ classInit( a ); }
std::string generateId( const std::string& tag ){
return IGgen( tag, _id );
}
private:
void init();
};
class TimeSegment: public AbstractSpanAnnotation {
public:
TimeSegment( const std::string& s="" ): AbstractSpanAnnotation(){ classInit( s ); }
TimeSegment( const KWargs& a ): AbstractSpanAnnotation(){ classInit( a ); }
TimeSegment( Document *d, const std::string& s="" ): AbstractSpanAnnotation( d ){ classInit( s ); }
TimeSegment( Document *d, const KWargs& a ): AbstractSpanAnnotation( d ){ classInit( a ); }
private:
void init();
};
class Morpheme: public AbstractStructureElement {
public:
Morpheme( const std::string& s="" ): AbstractStructureElement(){ classInit( s ); }
Morpheme( const KWargs& a ): AbstractStructureElement(){ classInit( a ); }
Morpheme( Document *d, const std::string& s="" ): AbstractStructureElement( d ){ classInit( s ); }
Morpheme( Document *d, const KWargs& a ): AbstractStructureElement( d ){ classInit( a ); }
private:
void init();
};
class Subentity: public AbstractSubtokenAnnotation {
public:
Subentity( const std::string& s="" ): AbstractSubtokenAnnotation(){ classInit( s ); }
Subentity( const KWargs& a ): AbstractSubtokenAnnotation(){ classInit( a ); }
Subentity( Document *d, const std::string& s="" ): AbstractSubtokenAnnotation( d ){ classInit( s ); }
Subentity( Document *d, const KWargs& a ): AbstractSubtokenAnnotation( d ){ classInit( a ); }
private:
void init();
};
class SyntaxLayer: public AbstractAnnotationLayer {
public:
SyntaxLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
SyntaxLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
SyntaxLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
SyntaxLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class ChunkingLayer: public AbstractAnnotationLayer {
public:
ChunkingLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
ChunkingLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
ChunkingLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
ChunkingLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class EntitiesLayer: public AbstractAnnotationLayer {
public:
EntitiesLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
EntitiesLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
EntitiesLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
EntitiesLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class TimingLayer: public AbstractAnnotationLayer {
public:
TimingLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
TimingLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
TimingLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
TimingLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class MorphologyLayer: public AbstractAnnotationLayer {
public:
MorphologyLayer( const std::string& s="" ): AbstractAnnotationLayer(){ classInit( s ); }
MorphologyLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
MorphologyLayer( Document *d, const std::string& s="" ): AbstractAnnotationLayer( d ){ classInit( s ); }
MorphologyLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class DependenciesLayer: public AbstractAnnotationLayer {
public:
DependenciesLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
DependenciesLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
DependenciesLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
DependenciesLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class CoreferenceLayer: public AbstractAnnotationLayer {
public:
CoreferenceLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
CoreferenceLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
CoreferenceLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
CoreferenceLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
class SemanticRolesLayer: public AbstractAnnotationLayer {
public:
SemanticRolesLayer( const std::string& s=""): AbstractAnnotationLayer(){ classInit( s ); }
SemanticRolesLayer( const KWargs& a ): AbstractAnnotationLayer(){ classInit( a ); }
SemanticRolesLayer( Document *d, const std::string& s=""): AbstractAnnotationLayer( d ){ classInit( s ); }
SemanticRolesLayer( Document *d, const KWargs& a ): AbstractAnnotationLayer( d ){ classInit( a ); }
private:
void init();
};
std::string VersionName();
std::string Version();
} // namespace folia
#endif
libfolia-0.10/include/libfolia/document.h 0000664 0001750 0001750 00000015637 12127032057 015344 0000000 0000000 /*
$Id: document.h 15909 2013-04-03 13:52:24Z sloot $
$URL: https://ilk.uvt.nl/svn/sources/libfolia/trunk/include/libfolia/document.h $
Copyright (c) 1998 - 2013
ILK - Tilburg University
CLiPS - University of Antwerp
This file is part of libfolia
libfolia is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
libfolia is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see .
For questions and suggestions, see:
http://ilk.uvt.nl/software.html
or send mail to:
timbl@uvt.nl
*/
#ifndef FOLIA_DOCUMENT_H
#define FOLIA_DOCUMENT_H
#include
#include "unicode/unistr.h"
#include "unicode/regex.h"
#include "libxml/tree.h"
#include "libxml/xpath.h"
#include
#include "libfolia/folia.h"
#include "libfolia/foliautils.h"
namespace folia {
extern const std::string NSFOLIA;
class Pattern {
friend std::ostream& operator<<( std::ostream&, const Pattern& );
public:
Pattern( const std::vector&,
const ElementType = BASE,
const std::string& = "" );
Pattern( const std::vector&,
const std::string& );
~Pattern();
bool match( const UnicodeString& , size_t&, int&, bool&, bool& ) const;
size_t size() const { return sequence.size(); };
void unsetwild();
bool variablesize() const;
std::set variablewildcards() const;
ElementType matchannotation;
bool regexp;
private:
bool case_sensitive;
int maxgapsize;
std::vector sequence;
std::vector matchers;
std::string matchannotationset;
};
class FoliaElement;
class Word;
class Sentence;
class Paragraph;
class Document {
friend bool operator==( const Document&, const Document& );
friend std::ostream& operator<<( std::ostream&, const Document& );
public:
Document();
Document( const std::string& );
~Document();
void init();
bool readFromFile( const std::string& );
bool readFromString( const std::string& );
bool save( std::ostream&, const std::string&, bool = false );
bool save( std::ostream& os, bool kanon = false ){
return save( os, "", kanon );
}
bool save( const std::string&, const std::string&, bool = false );
bool save( const std::string& s, bool kanon = false ){
return save( s, "", kanon );
}
int size() const;
FoliaElement* doc() const { return foliadoc; }
FoliaElement* addNode( ElementType, const KWargs& );
void addStyle( const std::string&, const std::string& );
void replaceStyle( const std::string&, const std::string& );
std::vector paragraphs() const;
std::vector sentences() const;
std::vector sentenceParts() const;
std::vector words() const;
std::vector > findwords( const Pattern&,
const std::string& ="" ) const;
std::vector > findwords( std::list&,
const std::string& = "" ) const;
Word *words( size_t ) const;
Word *rwords( size_t ) const;
Paragraph *paragraphs( size_t ) const;
Paragraph *rparagraphs( size_t ) const;
Sentence *sentences( size_t ) const;
Sentence *rsentences( size_t ) const;
std::string toXml( const std::string& ="", bool = false ) const;
MetaDataType metadatatype() const { return _metadatatype; };
std::string metadatafile() const { return _metadatafile; };
FoliaElement *append( FoliaElement* );
void addDocIndex( FoliaElement* el, const std::string& );
FoliaElement* operator []( size_t ) const; //select i'th element from data
FoliaElement *index( const std::string& ) const; //retrieve element with specified ID
FoliaElement* operator []( const std::string& ) const ; //index as operator
bool isDeclared( AnnotationType::AnnotationType,
const std::string&, const std::string&,
const std::string&, const std::string& );
bool isDeclared( AnnotationType::AnnotationType, const std::string& = "" );
std::string defaultset( AnnotationType::AnnotationType ) const;
std::string defaultannotator( AnnotationType::AnnotationType,
const std::string& ="" ) const;
std::string defaultannotatortype( AnnotationType::AnnotationType,
const std::string& ="" ) const;
std::string defaultdatetime( AnnotationType::AnnotationType,
const std::string& ="" ) const;
FoliaElement* parseXml( );
std::string id() const { return _id; };
void declare( AnnotationType::AnnotationType,
const std::string&,
const std::string& = "" );
void declare( AnnotationType::AnnotationType,
const std::string&, const std::string&,
const std::string&, const std::string& );
xmlDoc *XmlDoc() const { return xmldoc; };
xmlNs *foliaNs() const { return _foliaNsOut; };
void keepForDeletion( FoliaElement *p ) { delSet.insert( p ); };
int debug;
class at_t {
friend std::ostream& operator<<( std::ostream&, const at_t& );
public:
at_t( const std::string& _a, const std::string& _t, const std::string& _d ): a(_a),t(_t),d(_d){};
std::string a;
std::string t;
std::string d;
};
private:
std::map > annotationdefaults;
FoliaElement* parseFoliaDoc( xmlNode * );
void setimdi( xmlNode * );
void setAttributes( const KWargs& );
void parseannotations( xmlNode * );
void getstyles();
void setannotations( xmlNode *) const;
void setmetadata( xmlNode * ) const;
void setstyles( xmlDoc* ) const;
std::map sindex;
std::vector iindex;
std::vector data;
std::string _id;
std::set delSet;
FoliaElement *foliadoc;
xmlDoc *xmldoc;
xmlNs *_foliaNsIn;
mutable xmlNs *_foliaNsOut;
MetaDataType _metadatatype;
xmlNode *metadata;
std::string _metadatafile;
std::string _title;
std::string _date;
std::string _language;
std::string _publisher;
std::string _license;
std::multimap styles;
bool loadall;
std::string filename;
std::string version;
};
bool operator==( const Document&, const Document& );
inline bool operator!=( const Document& d1, const Document& d2 ){
return !( d1==d2 );
}
inline std::ostream& operator<<( std::ostream& os, const Document::at_t& at ){
os << "<" << at.a << "," << at.t << "," << at.d << ">";
return os;
}
} // namespace folia
#endif // FOLIA_DOCUMENT_H
libfolia-0.10/COPYING 0000644 0001750 0001750 00000104513 11736361705 011204 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
libfolia-0.10/ChangeLog 0000664 0001750 0001750 00000075235 12127023013 011713 0000000 0000000 2013-04-03 08:50 sloot
* [r15893] include/folia/foliautils.h, src/document.cxx,
src/foliautils.cxx: XPath stuff is moved to ticcutils
2013-04-02 16:09 sloot
* [r15884] configure.ac: also most recent ticcutils needed
2013-04-02 15:44 sloot
* [r15873] configure.ac, include/folia/document.h,
include/folia/folia.h, include/folia/foliautils.h,
src/Makefile.am, src/document.cxx, src/folia.cxx,
src/foliautils.cxx: changed install directory!
moved some XML stuff to ticcutils
2013-04-02 10:31 sloot
* [r15861] src/foliautils.cxx: numb change
2013-04-02 08:14 sloot
* [r15850] include/folia/Makefile.am, src/Makefile.am,
src/folialint.cxx: tags
2013-04-02 08:13 sloot
* [r15849] include/folia/foliautils.h, src/folialint.cxx: removed
unused functions
added copyright stuff
2013-03-28 17:41 sloot
* [r15845] include/folia/foliautils.h, src/folia.cxx,
src/foliautils.cxx: removed stuff that is present in ticcutils
2013-03-07 15:10 sloot
* [r15786] include/folia/folia.h: oesp, parameter is const
2013-03-07 15:06 sloot
* [r15784] include/folia/folia.h, src/folia.cxx,
src/foliautils.cxx: implemeneted _lang attribute for TextContent
2013-03-07 09:32 sloot
* [r15778] src/folia.cxx: be more picky on the 'type' atribute in
AlignReference
2013-03-07 09:13 sloot
* [r15777] src/foliautils.cxx: fixed NCname checking. A ':' may not
be part of it.
2013-03-06 09:21 sloot
* [r15763] src/folia.cxx: added some comments
2013-02-28 14:54 sloot
* [r15747] src/folia.cxx: add xlink support for href in Alignment
2013-02-28 13:27 sloot
* [r15745] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: String class updated. it an
Annotation now
2013-02-26 16:49 sloot
* [r15733] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: New Substring class. Not
finished
2013-01-07 14:53 sloot
* [r15570] include/folia/document.h, include/folia/folia.h,
include/folia/foliautils.h, src/document.cxx, src/folia.cxx,
src/foliautils.cxx, src/simpletest.cxx: Bump year
2012-12-05 22:21 sloot
* [r15527] src/document.cxx: added 'now()' default for datetime
declaration
2012-12-05 13:43 sloot
* [r15517] src/document.cxx: fixed a problem with NO_ANN nodes
2012-12-05 08:55 sloot
* [r15515] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx: adapted to some of Maarten's changed. not all
yet..
2012-11-29 13:21 sloot
* [r15482] include/folia/foliautils.h, src/foliautils.cxx: add
convenient function
2012-11-13 10:14 sloot
* [r15420] include/folia/folia.h, src/folia.cxx: added a (set)
parameter to pos() and lemma() functions
2012-10-30 12:50 mvgompel
* [r15368] bootstrap: bootstrap fix
2012-10-30 09:55 sloot
* [r15354] include/folia/document.h, src/document.cxx: improved
handling of style-sheet processing instructions
for now we REJECT multiple test/xsl types.
2012-10-29 14:46 sloot
* [r15348] src/folia.cxx: relax constraints on Content node
2012-10-22 15:08 sloot
* [r15303] include/folia/folia.h: modified addAlternative()
2012-10-22 14:23 sloot
* [r15301] include/folia/folia.h, src/folia.cxx: fiddle with
addable atletnatives and morhological layers.
It is a bit messy!
2012-10-10 12:50 sloot
* [r15276] include/folia/document.h, include/folia/foliautils.h:
safeguards
2012-10-08 14:20 sloot
* [r15259] src/document.cxx: make sure we produce UTF-8
2012-10-02 09:33 sloot
* [r15239] NEWS: some NEWS
2012-10-02 09:18 sloot
* [r15237] include/folia/folia.h, src/folia.cxx: some fixes to get
all working
2012-10-01 15:44 sloot
* [r15234] include/folia/folia.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx: started
implementing new FoLiA features like coreference etc.
2012-09-27 12:34 sloot
* [r15225] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: small fixes in Metric stuff
2012-09-27 12:14 sloot
* [r15223] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: added metric stuff
2012-09-27 10:00 sloot
* [r15222] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: added ValueFeature. Not
completed yet.
2012-09-04 14:45 sloot
* [r15159] src/folia.cxx: added comment
2012-08-09 12:44 sloot
* [r15090] configure.ac, include/folia/document.h,
include/folia/foliautils.h, src/document.cxx, src/folia.cxx,
src/foliautils.cxx: more TiCC suff used
2012-08-08 09:05 sloot
* [r15063] src/folia.cxx: accept more
2012-07-12 15:24 sloot
* [r14982] src/folia.cxx: fix
2012-07-11 15:14 sloot
* [r14977] include/folia/foliautils.h, src/document.cxx,
src/folia.cxx, src/foliautils.cxx: added validity check for
xml:id's
Also ALL libxml2 Parser warnings wil handled as an eror!
2012-07-11 08:13 sloot
* [r14974] src/folia.cxx: small change in PlaceHolder stuff
2012-07-09 13:11 sloot
* [r14967] include/folia/folia.h, src/folia.cxx: fixed PlaceHolder
stuff
2012-07-04 09:11 sloot
* [r14948] include/folia/document.h, include/folia/folia.h,
src/document.cxx, src/folia.cxx: added methods to extract all
sentenceParts from a document. And to extract Words and
Placeholders from sentences.
2012-07-02 10:04 sloot
* [r14938] include/folia/folia.h, src/folia.cxx: added
abstractionlayer. alloe N attribute foro suggestion.
2012-06-20 10:24 sloot
* [r14899] include/folia/foliautils.h, src/document.cxx,
src/folia.cxx, src/foliautils.cxx: cleaner datetime handling, and
without leaks!
2012-06-19 08:20 sloot
* [r14887] include/folia/folia.h, src/folia.cxx: simplified
datetime handling
2012-06-18 16:36 sloot
* [r14885] include/folia/document.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx: added
datetime defaults
2012-06-14 14:22 sloot
* [r14870] include/folia/document.h, include/folia/folia.h,
include/folia/foliautils.h, src/document.cxx, src/folia.cxx,
src/foliautils.cxx: revoked smart idea about accept
added a canonical option to xml generation, to make comparisions
easy
2012-06-13 15:53 sloot
* [r14859] src/folia.cxx: more generic and less error-prone
solution for filling _accepted_data
(until everyone has a modern compiler)
2012-06-13 15:08 sloot
* [r14857] include/folia/folia.h, src/folia.cxx: some fixes.
2012-06-13 09:30 sloot
* [r14855] src/document.cxx, src/folia.cxx: fixed timedevent stuff
2012-06-12 15:55 sloot
* [r14854] include/folia/folia.h, src/folia.cxx: a bit of cleaning
done
2012-06-12 15:27 sloot
* [r14852] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: first, somewhat clumsy,
implementation of Alignment
2012-06-12 11:01 sloot
* [r14851] include/folia/folia.h, src/folia.cxx: implemented
toktext()
2012-06-12 09:08 sloot
* [r14848] include/folia/folia.h, src/document.cxx, src/folia.cxx:
removed error attribute from ErrorDetection
2012-04-23 12:14 sloot
* [r14680] src/folia.cxx, src/foliautils.cxx: headfeat ==>
headfeature
2012-04-23 09:49 sloot
* [r14679] include/folia/folia.h, src/folia.cxx: so we postpone
checking of required attributes until we append the node.
This makes construction more flexible
2012-04-23 08:07 sloot
* [r14677] src/folia.cxx: reverted change because Maarten reverted
his thoughts
2012-04-20 12:40 sloot
* [r14673] src/folia.cxx: avoid appending nodes without ID. same
should be done voor _set and maybe more.
later...
2012-04-18 16:14 sloot
* [r14667] include/folia/document.h, src/document.cxx: improved
namespace handling
2012-04-18 15:45 sloot
* [r14666] src/document.cxx: attempt to fix identation of
annotations.
2012-04-18 14:54 sloot
* [r14665] src/document.cxx, src/folia.cxx: more maarten-compliant
2012-04-18 14:12 sloot
* [r14664] include/folia/document.h, src/document.cxx,
src/folialint.cxx: no real change, except for folialint
2012-04-18 11:11 sloot
* [r14663] include/folia/foliautils.h, src/folia.cxx,
src/foliautils.cxx: DOMAIN ==> DOMEIN
It seems to be a 'special' or 'reserved' word
2012-04-18 10:52 sloot
* [r14662] src/folialint.cxx: fix 1
2012-04-18 10:44 sloot
* [r14660] include/folia/folia.h, src/Makefile.am, src/folia.cxx,
src/folialint.cxx: lots of adaptations to new insights.
started to implement a 'folialint' program for simple checking.
2012-04-17 16:13 sloot
* [r14659] include/folia/folia.h, include/folia/foliautils.h,
src/document.cxx, src/foliautils.cxx: beterder
2012-04-17 16:00 sloot
* [r14658] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: some cleanup and refactoring
2012-04-17 14:25 sloot
* [r14656] include/folia/folia.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx,
src/simpletest.cxx: added some sanity tests, an used them to weed
out problems that were never a problem yet
2012-03-29 08:42 sloot
* [r14584] configure.ac: bump version after release
2012-03-29 08:23 sloot
* [r14582] NEWS: get ready for release
2012-03-19 15:48 sloot
* [r14476] include/folia/folia.h, src/folia.cxx: cleaning up the
interface (breaks API)
2012-03-19 13:04 sloot
* [r14474] include/folia/document.h, src/document.cxx: avoid
duplicate annotation declarations
2012-03-14 16:06 sloot
* [r14466] include/folia/document.h, src/document.cxx: more cleanup
be more picky on declarations
2012-03-14 13:42 sloot
* [r14463] src/document.cxx: fixed defaultannotatortype
2012-03-14 11:36 sloot
* [r14461] include/folia/document.h, src/document.cxx,
src/folia.cxx: small fix
2012-03-13 17:05 sloot
* [r14458] include/folia/document.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx: attempt to sort out annotation
defaults stuff.
waiting for maarten to give a ruling
2012-02-29 10:50 sloot
* [r14354] configure.ac: bump version after release
2012-02-29 10:47 sloot
* [r14352] NEWS: typo
2012-02-27 15:46 sloot
* [r14341] NEWS: news updated
2012-02-27 11:54 sloot
* [r14337] src/folia.cxx: be more strict on 'set' and 'class'
attributes. They need a document!
2012-02-27 10:10 sloot
* [r14335] src/document.cxx: small memoryleak fixed
2012-02-23 16:31 sloot
* [r14329] src/folia.cxx: fixed
2012-02-23 13:11 sloot
* [r14320] src/document.cxx: hmm. This too
2012-02-23 12:54 sloot
* [r14319] src/document.cxx: allow empty set names in declarations.
Handle as set="undefined"
2012-02-23 10:04 sloot
* [r14316] include/folia/document.h, src/document.cxx,
src/folia.cxx, src/foliautils.cxx: fixed problem with missing
(default) sets
2012-02-22 16:27 sloot
* [r14313] src/document.cxx: parsering of multiple set definitions
for same atrtibute works now
2012-02-22 15:10 sloot
* [r14307] src/folia.cxx: relax div and gap
2012-02-22 14:52 sloot
* [r14305] include/folia/folia.h: cleaning up
2012-02-21 17:19 sloot
* [r14303] src/folia.cxx: work around argument parser inside
libfolia
2012-02-21 13:13 sloot
* [r14298] src/folia.cxx: oesp
2012-02-21 13:05 sloot
* [r14297] src/folia.cxx: fix the fix
2012-02-21 13:02 mvgompel
* [r14296] src/folia.cxx: event accepts feature
2012-02-21 11:57 sloot
* [r14290] include/folia/document.h, src/document.cxx: small
refactoring
2012-02-21 11:34 sloot
* [r14289] include/folia/document.h, include/folia/folia.h,
src/document.cxx, src/folia.cxx: fixed CMDI stuff
2012-02-20 17:00 sloot
* [r14281] include/folia/folia.h, src/document.cxx, src/folia.cxx:
some small refactoring.
2012-02-15 17:37 sloot
* [r14270] include/folia/folia.h, src/folia.cxx: fixed problem witg
const char parameters to string template.
2012-02-15 16:04 sloot
* [r14268] src/document.cxx, src/folia.cxx: fixed annotation
defaults stuff
2012-02-13 09:33 sloot
* [r14254] NEWS, configure.ac: bumped version after release
2012-01-12 17:02 sloot
* [r13996] NEWS: Some news
2012-01-12 13:40 sloot
* [r13979] configure.ac, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx: Added GAP
annotation
made the gap-annotation mandatory for GAP nodes
made the div-annotation mandatory for DIV nodes
now correctly complain when 'set' attribute is missing in a
*-annotations declaration
2012-01-10 17:12 sloot
* [r13943] config.h.in, configure.ac, src/folia.cxx,
src/foliautils.cxx: cleanup the configuration
2012-01-10 15:24 sloot
* [r13932] configure.ac: bumped version after release
2012-01-09 11:33 sloot
* [r13911] NEWS, src/foliautils.cxx: fixed argument parsing problem
2012-01-03 08:48 sloot
* [r13851] include/folia/document.h, include/folia/folia.h,
include/folia/foliautils.h, src/document.cxx, src/folia.cxx,
src/foliautils.cxx, src/simpletest.cxx: added copyright stuff
2011-12-21 11:28 sloot
* [r13761] configure.ac: Bumped version after releas
2011-12-21 09:24 sloot
* [r13754] NEWS: NEWS
2011-12-21 09:16 sloot
* [r13753] src/simpletest.cxx: fixed 'make check'
2011-12-14 11:00 sloot
* [r13697] include/folia/folia.h, src/folia.cxx: ok, to be
complete, add ad Version() function too
2011-12-13 10:55 sloot
* [r13680] include/folia/folia.h, src/folia.cxx: added
VersionName() function to get in line with other modules
2011-12-13 08:48 sloot
* [r13676] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: added a HeadFeature
2011-12-12 15:57 sloot
* [r13671] include/folia/folia.h: better
2011-12-12 14:26 sloot
* [r13670] include/folia/folia.h, src/folia.cxx: implemented an
AllowGeneretaeID class, te get more inline with the Python
version
2011-12-08 16:56 sloot
* [r13665] include/folia/folia.h: last second fix.
I should check the whole class hierarchy soon!
2011-12-08 16:20 sloot
* [r13664] include/folia/folia.h: small improvement
2011-12-08 15:01 sloot
* [r13662] include/folia/folia.h, src/folia.cxx: more cleaning up
in the interface
2011-12-08 10:50 sloot
* [r13660] include/folia/folia.h, src/folia.cxx: more refactoring
2011-12-08 09:35 sloot
* [r13658] include/folia/folia.h, src/folia.cxx: more refactoring.
Nor done yet!
2011-12-07 11:13 sloot
* [r13656] include/folia/document.h, include/folia/folia.h,
src/document.cxx, src/folia.cxx: more improvements
2011-12-06 17:20 sloot
* [r13654] include/folia/folia.h, src/folia.cxx: more API
improvements
2011-12-06 16:43 sloot
* [r13650] include/folia/document.h, include/folia/folia.h,
src/document.cxx, src/folia.cxx: started to implement a template
based select<>() function.
This enables us to return vectors of the desired type.
Makes the API more readable and robust
2011-12-06 14:52 sloot
* [r13643] configure.ac, include/folia/document.h,
include/folia/folia.h, src/document.cxx, src/folia.cxx,
src/foliautils.cxx: AbstractElement is renamed to FoliaElement.
Big shock :0
2011-11-28 14:29 sloot
* [r13606] src/document.cxx, src/folia.cxx:
2011-11-28 10:35 sloot
* [r13602] include/folia/folia.h, src/folia.cxx: fixed stricttext()
2011-11-28 09:10 sloot
* [r13594] src/folia.cxx: small fix to remove compiler warning
2011-11-25 21:45 mvgompel
* [r13584] src/folia.cxx: small fix: Event allowed in Text
2011-11-25 15:30 mvgompel
* [r13581] include/folia/folia.h, src/folia.cxx: added stricttext()
and some minor refactoring, text() and hastext() now call
textcontent().. However, todo: stricttext() does not work as
expected yet on corrections
2011-11-21 10:36 sloot
* [r13558] include/folia/folia.h, src/foliautils.cxx: more
modifications to make Frog happy
2011-11-17 15:03 sloot
* [r13555] src/folia.cxx: typos
2011-11-17 14:54 sloot
* [r13553] include/folia/folia.h, src/folia.cxx: when appending a
documentless node, attach the parent document AND
check set declartions. Maybe other stuff can be checkced too?
2011-11-17 13:26 sloot
* [r13551] include/folia/folia.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx: implemented
new stuff like Dependecies, TimedEvents and such
2011-11-14 14:24 sloot
* [r13543] src/document.cxx, src/folia.cxx: small fixes. words() is
more cosequent now
2011-11-10 15:36 sloot
* [r13539] src/folia.cxx, src/foliautils.cxx: oesp in EntityLayer
added 'escape' possibility to argument parser
2011-11-02 11:47 sloot
* [r13504] folia.pc.in: cleaner
2011-11-02 09:36 sloot
* [r13499] NEWS, configure.ac: Bumped version after releasing
2011-11-02 09:01 sloot
* [r13498] NEWS, configure.ac: we have a lift off!
2011-11-01 16:39 sloot
* [r13497] include/folia/foliautils.h, src/simpletest.cxx: improve
includes
2011-10-25 15:59 sloot
* [r13464] include/folia/document.h, include/folia/folia.h,
include/folia/foliautils.h, src/document.cxx, src/folia.cxx,
src/foliautils.cxx: pua all stuff in own folia namespace
2011-10-19 12:34 sloot
* [r13441] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx: added auth attribute
2011-10-18 16:09 sloot
* [r13437] include/folia/document.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx: some cleanup
and such
2011-10-17 15:46 sloot
* [r13432] include/folia/folia.h, src/folia.cxx: added missing
function
2011-10-17 15:11 sloot
* [r13431] src/folia.cxx: fix?
2011-10-13 15:30 sloot
* [r13411] src/folia.cxx: vergeten in te checken ooit
2011-09-29 10:45 sloot
* [r13324] include/folia/folia.h, src/folia.cxx: Ok, now all tests
work again, except issubclass()
issubclass function removed. Only worked for compiletime
expressions.
needs thinking
2011-09-27 11:39 sloot
* [r13314] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: update to newest maarten level
not done yet (see failing tests)
2011-09-21 12:12 sloot
* [r13262] include/folia/folia.h: added an issubclass() function
nice hackery!
2011-09-21 10:14 sloot
* [r13257] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: fixes, added classes and such
2011-09-21 08:19 sloot
* [r13256] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: removed TextCorrection stuff
2011-09-20 15:49 sloot
* [r13250] include/folia/folia.h, include/folia/foliautils.h,
src/document.cxx, src/folia.cxx, src/foliautils.cxx: implemented
most of folia 0.6
A bit rough yet
2011-09-15 14:32 sloot
* [r13190] config.h.in, include/folia/foliautils.h, src,
src/Makefile.am, src/simpletest.cxx: 'make check' en 'make
distcheck' work!
2011-08-18 13:32 sloot
* [r12907] include/folia/folia.h, src/folia.cxx: more refactoring
alternatives() uses class now, not AnnotationType
2011-08-18 10:33 sloot
* [r12901] include/folia/document.h, include/folia/folia.h,
src/document.cxx, src/folia.cxx: some refactoring.
added some functions.
2011-08-18 08:50 sloot
* [r12899] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: added whitespace and linebreak
classes
2011-08-16 16:18 sloot
* [r12891] src/document.cxx, src/folia.cxx: some fixes
2011-08-16 15:02 sloot
* [r12889] include/folia/folia.h, src/folia.cxx: argl
2011-08-16 13:12 sloot
* [r12886] include/folia/document.h, src/document.cxx: added
possability to add a namespace name ont output of a document
2011-08-16 12:36 sloot
* [r12883] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: TextCorrection levels have
changed
some member added, like division() and incorrection()
2011-08-10 13:48 sloot
* [r12841] include/folia/folia.h, src/folia.cxx: more const added.
2011-08-10 13:21 sloot
* [r12840] include/folia/folia.h, src/folia.cxx: working on cost
correctness
2011-08-10 10:59 sloot
* [r12834] include/folia/folia.h, src/document.cxx, src/folia.cxx:
simplified XML output
2011-08-10 10:43 sloot
* [r12833] src/folia.cxx: fixed memoryleaks
2011-08-10 10:32 sloot
* [r12832] include/folia/folia.h, src/folia.cxx: reshuffled code.
xmlstring() is much simpler now!
2011-08-09 15:22 sloot
* [r12821] include/folia/foliautils.h, src/document.cxx,
src/folia.cxx, src/foliautils.cxx: working on better const
correctness
2011-08-09 15:01 sloot
* [r12819] include/folia/Makefile.am, include/folia/document.h,
include/folia/folia.h, include/folia/foliautils.h,
src/Makefile.am, src/document.cxx, src/folia.cxx,
src/foliautils.cxx: refactored: split in more managable parts
2011-08-09 14:07 sloot
* [r12818] include/folia/folia.h, src/folia.cxx: more refeactoring.
attempt to make some stuff less public
2011-08-09 12:18 sloot
* [r12813] include/folia/folia.h, src/folia.cxx: - xml-stylesheet
info is stored on Parsing and output in the XML
- some refactoring.
2011-08-08 15:19 sloot
* [r12808] src/folia.cxx: slimmerder
2011-08-08 14:28 sloot
* [r12807] include/folia/foliautils.h, src/folia.cxx: small fixes:
- added include
- make compiler happy
2011-08-04 13:06 sloot
* [r12790] configure.ac, include/folia/folia.h,
include/folia/foliautils.h, src/folia.cxx, src/foliautils.cxx:
removed boost stuff. use DIY poor mans datetime parser
2011-08-03 12:40 sloot
* [r12787] src/folia.cxx: small edit
2011-08-03 11:48 sloot
* [r12786] src/folia.cxx: refactored again
2011-08-03 10:14 sloot
* [r12783] src/folia.cxx: more refactoring
2011-08-03 09:52 sloot
* [r12782] include/folia/folia.h, src/folia.cxx: some refactoring
2011-08-02 09:17 sloot
* [r12777] include/folia/folia.h, src/folia.cxx: implemented the
'space=' attribute for Word
2011-08-01 12:19 sloot
* [r12770] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx: added operator << Document
const correctness improved
2011-07-28 16:04 sloot
* [r12757] src/folia.cxx: cleaner and meaner
2011-07-28 15:09 sloot
* [r12755] include/folia/folia.h, src/folia.cxx: refactored a lot.
Head to set MINTEXTCORRECTIONLEVEL = CORRECTED; for Original and
Morpheme
Why doesn't Maarten need that? strange
2011-07-27 15:10 sloot
* [r12738] include/folia/folia.h, src/folia.cxx,
src/foliautils.cxx: getting more compliant with proycon
2011-07-27 14:45 sloot
* [r12737] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: added more classes.
Disclaimer: zonder tests/voorbeelden is alles erg vaag nog
2011-07-27 13:25 sloot
* [r12736] include/folia/folia.h, include/folia/foliautils.h,
src/folia.cxx, src/foliautils.cxx: added missing classes
2011-07-27 09:07 sloot
* [r12734] src/folia.cxx, src/foliautils.cxx: problem in argument
parsing solved
2011-07-26 15:27 sloot
* [r12726] include/folia/folia.h, src/folia.cxx: some refactoring.
datetime is a pita still
2011-07-26 10:34 sloot
* [r12723] src/folia.cxx: fixed previous fix
2011-07-26 10:24 sloot
* [r12722] include/folia/folia.h, src/folia.cxx: fixed small memory
leak
2011-07-25 10:34 sloot
* [r12711] include/folia/folia.h, src/folia.cxx: some refactoring
2011-07-25 09:49 sloot
* [r12709] include/folia/folia.h, src/folia.cxx: added version
stuff
2011-07-21 13:28 sloot
* [r12669] include/folia/folia.h, src/folia.cxx: added
setDateTime() function
datetime is very picky atm. needs work.
2011-07-21 12:59 sloot
* [r12668] configure.ac, include/folia/folia.h,
include/folia/foliautils.h, src/folia.cxx, src/foliautils.cxx:
added date_time stuff. Needs boost_date_time
2011-07-21 08:42 sloot
* [r12656] include/folia/folia.h, src/folia.cxx,
src/foliautils.cxx: soem reactoring and cleanup.
fixed problem with undeclared sets
2011-07-20 16:33 sloot
* [r12637] include/folia/folia.h, src/folia.cxx: fixed problems
with defaul sets and such.
Ugly! Please refactor!
2011-07-20 13:15 sloot
* [r12628] src/folia.cxx: fix
2011-07-20 12:22 sloot
* [r12625] src/folia.cxx: *blush*
oh, that was bad
2011-07-20 10:49 sloot
* [r12622] include/folia/folia.h, src/folia.cxx: added xmlstring()
member
2011-07-19 15:18 sloot
* [r12605] include/folia/folia.h, src/folia.cxx,
src/foliautils.cxx: added ==Â ans != operators.
fixed tests, using xmldiff. Needed a bugfix too
2011-07-18 08:37 sloot
* [r12548] TODO: to do
2011-07-14 15:24 sloot
* [r12520] bootstrap: oesp
2011-07-14 15:24 sloot
* [r12519] m4/Makefile.am, static.cxx: fix
2011-07-14 15:19 sloot
* [r12518] .: shuffle
2011-07-14 15:18 sloot
* [r12516] shuffle
2011-07-14 15:14 sloot
* [r12515] props
2011-07-14 15:08 sloot
* [r12514] tests are moved
2011-07-14 13:36 sloot
* [r12509] more cleanup
2011-07-14 12:02 sloot
* [r12504] pompdiedom
2011-07-14 11:36 sloot
* [r12503] added sanity checks
2011-07-14 11:18 sloot
* [r12501] refactoring
2011-07-14 10:30 sloot
* [r12498] refactoring...
2011-07-13 16:03 sloot
* [r12494] some refactoring
2011-07-13 14:12 sloot
* [r12488] cleaned up tests, and added missign dir
2011-07-13 12:22 sloot
* [r12485] 74 tests pass (except 2 that must fail)
Valgrinded. No problems, no leaks.
2011-07-12 15:40 sloot
* [r12474] pattern conjunctie works (but not sure that it does what
Maarten intended)
2011-07-12 15:06 sloot
* [r12473] wildcard expansion now worls for overlap too. Please
don't look at the code. it's ugly
2011-07-12 12:29 sloot
* [r12464] added regexp handling to findnodes()
2011-07-12 09:48 sloot
* [r12460] multiple wildcards seem to work now
2011-07-11 15:58 sloot
* [r12453] saving WIP
another test (find_nodes with context) works now
2011-07-11 13:08 sloot
* [r12450] bit cleaner and faster code
2011-07-11 12:29 sloot
* [r12445] small step ahead. 1 more test works
2011-07-07 16:01 sloot
* [r12345] more tests
2011-07-07 14:41 sloot
* [r12344] improved context() functions. Using a PlaceHolder class
now.
Added some extreme tests too!
2011-07-07 09:57 sloot
* [r12336] implemented previous(), next(), leftcontext() and
rightcontext()
2011-07-06 16:11 sloot
* [r12329] started implementing findnodes()
now wait for Maarten to finish prototyping
2011-07-06 12:47 sloot
* [r12314] got it working again
2011-07-05 16:29 sloot
* [r12296] defaultset mess not completed yet
8 errors left
2011-07-04 15:34 sloot
* [r10865] next step
2011-07-04 15:01 sloot
* [r10864] more cleanup
2011-07-04 15:01 sloot
* [r10863] cleanup
2011-07-04 14:18 sloot
* [r10862] bug fixed in attribute parsring
fixed test
some cleanup
2011-06-23 14:56 sloot
* [r10751] small improvement
2011-06-23 14:38 sloot
* [r10750] all tests work!
2011-06-23 13:50 sloot
* [r10749] lots of cleanup, without breaking the tests
2011-06-23 12:32 sloot
* [r10747] test ok now
2011-06-23 07:51 sloot
* [r10737] some cleanup
broke 1 test :{
2011-06-22 15:03 sloot
* [r10726] insert test \o/
2011-06-22 13:59 sloot
* [r10723] delete test works
2011-06-22 13:27 sloot
* [r10721] merge test works
2011-06-22 10:04 sloot
* [r10712] another test succeeds
2011-06-21 13:59 sloot
* [r10677] Split works!
2011-06-21 13:46 sloot
* [r10676] fixed some namespave stuff
2011-06-16 16:22 sloot
* [r10592] major rework for corrections. Not OK yet :{
2011-06-15 14:28 sloot
* [r10573] progres++
2011-06-15 10:34 sloot
* [r10569] taking the next step forward
2011-06-10 14:20 sloot
* [r10535] and another test gives OK
2011-06-10 14:02 sloot
* [r10534] streamlined
2011-06-10 13:31 sloot
* [r10532] 410 OK!
2011-06-09 16:11 sloot
* [r10477] another one bites the dust
2011-06-09 12:56 sloot
* [r10475] 2 more tests
2011-06-07 15:39 sloot
* [r10448] the 2 TO DO tests are done now
2011-06-07 14:04 sloot
* [r10446] 36 tests pass
2011-06-07 09:56 sloot
* [r10445] some progress. Lets hope proycon is almost done
refactoring
2011-05-30 15:37 sloot
* [r10359] added a stub
2011-05-30 15:18 sloot
* [r10358] test program now based on libcppunit
2011-05-26 10:53 sloot
* [r10286] KWargs handling improved.
correctAnnotation is a pita, still
2011-05-25 15:42 sloot
* [r10278] next test also works.
Code gets a bit uglier ;{
2011-05-25 10:42 sloot
* [r10270] another test bites the dust
2011-05-24 15:36 sloot
* [r10241] more tests work
2011-05-24 14:23 sloot
* [r10239] refactored. IMHO all 's should be first class
citizens
2011-05-23 15:19 sloot
* [r10186] next step
2011-05-23 09:05 sloot
* [r10157] KWargs are more pythonic now
2011-05-19 15:42 sloot
* [r10112] small step again
it's sometimes confusing…
2011-05-19 14:33 sloot
* [r10104] some progresss
2011-05-19 12:58 sloot
* [r10101] more progress
now leakproof too
2011-05-18 15:26 sloot
* [r10081] making some progress
2011-05-17 14:58 sloot
* [r10041] next step. Editing annotations
2011-05-17 12:16 sloot
* [r10028] editing works (passes tests, that is)
2011-05-17 10:15 sloot
* [r10022] polishing
2011-05-17 08:57 sloot
* [r10018] more cleanup
2011-05-16 15:41 sloot
* [r10004] start polishing before next steps
2011-05-12 16:52 sloot
* [r9911] small step.
bit ugly
\
2011-05-10 13:03 sloot
* [r9850] testSanity is a complete succes now.
2011-05-10 12:27 sloot
* [r9849] test 11 OK
2011-05-10 12:19 sloot
* [r9848] upto test010 done
2011-04-29 13:42 sloot
* [r9766] test 008
2011-04-29 13:18 sloot
* [r9765] Test 006 works
2011-04-29 10:57 sloot
* [r9764] marched to test005 now
2011-04-29 10:03 sloot
* [r9762] Word count work too
2011-04-29 09:37 sloot
* [r9761] sentences() works
2011-04-29 09:22 sloot
* [r9760] document indexing works
2011-04-27 15:59 sloot
* [r9727] wref sort of works now
2011-04-27 14:14 sloot
* [r9721] TextContent is a first class citizen now
2011-04-27 08:35 sloot
* [r9683] 4 tests work.
Adapting program to data ;)
2011-04-26 12:14 sloot
* [r9656] step by step
2011-04-21 16:12 sloot
* [r9638] ok, wref and su are parsed and spit. But not OK yet
2011-04-21 15:54 sloot
* [r9637] small steps…
2011-04-21 15:09 sloot
* [r9636] some reshufling. FoLiA Namespaces are actively checked
now
2011-04-21 12:57 sloot
* [r9623] moved stuff to foliautils
2011-04-21 11:02 sloot
* [r9621] small cleanup
2011-04-21 10:14 sloot
* [r9620] fixed some namespace problems
2011-04-20 15:28 sloot
* [r9603] genoeg voor vandaag
2011-04-20 15:20 sloot
* [r9602] a small step
2011-04-20 14:38 sloot
* [r9601] it is a mess
but is reads some XML and spits most of it out
2011-04-14 16:30 sloot
* [r9518] not in SVN please
2011-04-14 16:29 sloot
* [r9517] some progress
2011-04-13 15:55 sloot
* [r9487] it compiles!
2011-04-13 15:36 sloot
* [r9486] added autoconfig stuff
2011-04-13 14:37 sloot
* [r9483] cleanup
2011-04-13 12:56 sloot
* [r9479] small step ahead
2011-04-13 12:36 sloot
* [r9477] 'it compiles'
libfolia-0.10/Makefile.in 0000664 0001750 0001750 00000064066 12127030333 012211 0000000 0000000 # Makefile.in generated by automake 1.11.3 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
# $Id: Makefile.am 8053 2011-01-27 16:06:19Z joostvb $
# $URL: https://ilk.uvt.nl/svn/trunk/sources/ucto/trunk/Makefile.am $
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(srcdir)/folia.pc.in $(top_srcdir)/configure AUTHORS COPYING \
ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
install-sh ltmain.sh missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_icu_check.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkg.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = folia.pc
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
DATA = $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
distdir dist dist-all distcheck
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
if test -d "$(distdir)"; then \
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -rf "$(distdir)" \
|| { sleep 5 && rm -rf "$(distdir)"; }; \
else :; fi
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
ICU_CFLAGS = @ICU_CFLAGS@
ICU_CONFIG = @ICU_CONFIG@
ICU_CPPSEARCHPATH = @ICU_CPPSEARCHPATH@
ICU_CXXFLAGS = @ICU_CXXFLAGS@
ICU_IOLIBS = @ICU_IOLIBS@
ICU_LIBPATH = @ICU_LIBPATH@
ICU_LIBS = @ICU_LIBS@
ICU_VERSION = @ICU_VERSION@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
XML2_CFLAGS = @XML2_CFLAGS@
XML2_LIBS = @XML2_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
ticcutils_CFLAGS = @ticcutils_CFLAGS@
ticcutils_LIBS = @ticcutils_LIBS@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = src include m4
EXTRA_DIST = bootstrap AUTHORS TODO NEWS folia.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = folia.pc
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
am--refresh: Makefile
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(top_srcdir)/configure: $(am__configure_deps)
$(am__cd) $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):
config.h: stamp-h1
@if test ! -f $@; then rm -f stamp-h1; else :; fi
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in: $(am__configure_deps)
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
rm -f stamp-h1
touch $@
distclean-hdr:
-rm -f config.h stamp-h1
folia.pc: $(top_builddir)/config.status $(srcdir)/folia.pc.in
cd $(top_builddir) && $(SHELL) ./config.status $@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool config.lt
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
done
uninstall-pkgconfigDATA:
@$(NORMAL_UNINSTALL)
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
$(am__remove_distdir)
test -d "$(distdir)" || mkdir "$(distdir)"
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
-test -n "$(am__skip_mode_fix)" \
|| find "$(distdir)" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r "$(distdir)"
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
$(am__remove_distdir)
dist-lzip: distdir
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
$(am__remove_distdir)
dist-lzma: distdir
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
$(am__remove_distdir)
dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__remove_distdir)
dist-tarZ: distdir
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__remove_distdir)
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__remove_distdir)
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
$(am__remove_distdir)
dist dist-all: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.lzma*) \
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
*.tar.lz*) \
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
*.tar.xz*) \
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& rm -rf $(DIST_ARCHIVES) \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
&& cd "$$am__cwd" \
|| exit 1
$(am__remove_distdir)
@(echo "$(distdir) archives ready for distribution: "; \
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
@test -n '$(distuninstallcheck_dir)' || { \
echo 'ERROR: trying to run $@ with an empty' \
'$$(distuninstallcheck_dir)' >&2; \
exit 1; \
}; \
$(am__cd) '$(distuninstallcheck_dir)' || { \
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
exit 1; \
}; \
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile $(DATA) config.h
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr \
distclean-libtool distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am: install-pkgconfigDATA
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-pkgconfigDATA
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
ctags-recursive install-am install-strip tags-recursive
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am am--refresh check check-am clean clean-generic \
clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
dist-zip distcheck distclean distclean-generic distclean-hdr \
distclean-libtool distclean-tags distcleancheck distdir \
distuninstallcheck dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-pkgconfigDATA install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
uninstall uninstall-am uninstall-pkgconfigDATA
ChangeLog: NEWS
svn update; svn2cl --include-rev
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
libfolia-0.10/install-sh 0000755 0001750 0001750 00000032537 11657416066 012166 0000000 0000000 #!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit=${DOITPROG-}
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_glob='?'
initialize_posix_glob='
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir=
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
no_target_directory=
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
shift;;
-T) no_target_directory=true;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call `install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
trap '(exit $?); exit' 1 2 13 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names starting with `-'.
case $src in
-*) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# Protect names starting with `-'.
case $dst in
-*) dst=./$dst;;
esac
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writeable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
-*) prefix='./';;
*) prefix='';;
esac
eval "$initialize_posix_glob"
oIFS=$IFS
IFS=/
$posix_glob set -f
set fnord $dstdir
shift
$posix_glob set +f
IFS=$oIFS
prefixes=
for d
do
test -z "$d" && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
eval "$initialize_posix_glob" &&
$posix_glob set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
$posix_glob set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd -f "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
libfolia-0.10/Makefile.am 0000664 0001750 0001750 00000000541 11744006521 012172 0000000 0000000 # $Id: Makefile.am 8053 2011-01-27 16:06:19Z joostvb $
# $URL: https://ilk.uvt.nl/svn/trunk/sources/ucto/trunk/Makefile.am $
ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = src include m4
EXTRA_DIST = bootstrap AUTHORS TODO NEWS folia.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = folia.pc
ChangeLog: NEWS
svn update; svn2cl --include-rev
libfolia-0.10/INSTALL 0000644 0001750 0001750 00000036600 11736361705 011203 0000000 0000000 Installation Instructions
*************************
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without warranty of any kind.
Basic Installation
==================
Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package. Some packages provide this
`INSTALL' file but do not implement all of the features documented
below. The lack of an optional feature in a given package is not
necessarily a bug. More recommendations for GNU packages can be found
in *note Makefile Conventions: (standards)Makefile Conventions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.
4. Type `make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
user, and only the `make install' phase executed with root
privileges.
5. Optionally, type `make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
regular user, particularly if the prior `make install' required
root privileges, verifies that the installation completed
correctly.
6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
7. Often, you can also type `make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.
8. Some packages, particularly those that use Automake, provide `make
distcheck', which can by used by developers to test that all other
targets like `make install' and `make uninstall' work correctly.
This target is generally not run by end users.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c99 CFLAGS=-g LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'. This
is known as a "VPATH" build.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.
On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
"universal" binaries--by specifying multiple `-arch' options to the
compiler but only a single `-arch' option to the preprocessor. Like
this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"
This is not guaranteed to produce working output in all cases, you
may have to build one architecture at a time and combine the results
using the `lipo' tool if you have problems.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX', where PREFIX must be an
absolute file name.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them. In general, the
default for these options is expressed in terms of `${prefix}', so that
specifying just `--prefix' will affect all of the other directory
specifications that were not explicitly provided.
The most portable way to affect installation locations is to pass the
correct locations to `configure'; however, many packages provide one or
both of the following shortcuts of passing variable assignments to the
`make install' command line to change installation locations without
having to reconfigure or recompile.
The first method involves providing an override variable for each
affected directory. For example, `make install
prefix=/alternate/directory' will choose an alternate location for all
directory configuration variables that were expressed in terms of
`${prefix}'. Any directories that were specified during `configure',
but not in terms of `${prefix}', must each be overridden at install
time for the entire installation to be relocated. The approach of
makefile variable overrides for each directory variable is required by
the GNU Coding Standards, and ideally causes no recompilation.
However, some platforms have known limitations with the semantics of
shared libraries that end up requiring recompilation when using this
method, particularly noticeable in packages that use GNU Libtool.
The second method involves providing the `DESTDIR' variable. For
example, `make install DESTDIR=/alternate/directory' will prepend
`/alternate/directory' before all installation names. The approach of
`DESTDIR' overrides is not required by the GNU Coding Standards, and
does not work on platforms that have drive letters. On the other hand,
it does better at avoiding recompilation issues, and works well even
when some directory options were not specified in terms of `${prefix}'
at `configure' time.
Optional Features
=================
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Some packages offer the ability to configure how verbose the
execution of `make' will be. For these packages, running `./configure
--enable-silent-rules' sets the default to minimal output, which can be
overridden with `make V=1'; while running `./configure
--disable-silent-rules' sets the default to verbose, which can be
overridden with `make V=0'.
Particular systems
==================
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
CC is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
HP-UX `make' updates targets which have the same time stamps as
their prerequisites, which makes it generally unusable when shipped
generated files such as `configure' are involved. Use GNU `make'
instead.
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
parse its `' header file. The option `-nodtk' can be used as
a workaround. If GNU CC is not installed, it is therefore recommended
to try
./configure CC="cc"
and if that doesn't work, try
./configure CC="cc -nodtk"
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
directory contains several dysfunctional programs; working variants of
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
in your `PATH', put it _after_ `/usr/bin'.
On Haiku, software installed for all users goes in `/boot/common',
not `/usr/local'. It is recommended to use the following options:
./configure --prefix=/boot/common
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS
KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf bug. Until the bug is fixed you can use this workaround:
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`--help'
`-h'
Print a summary of all of the options to `configure', and exit.
`--help=short'
`--help=recursive'
Print a summary of the options unique to this package's
`configure', and exit. The `short' variant lists options used
only in the top level, while the `recursive' variant lists options
also present in any nested packages.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--prefix=DIR'
Use DIR as the installation prefix. *note Installation Names::
for more details, including other options available for fine-tuning
the installation locations.
`--no-create'
`-n'
Run the configure checks, but stop before creating any output
files.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.
libfolia-0.10/bootstrap 0000664 0001750 0001750 00000005476 12044164232 012110 0000000 0000000 # $Id: bootstrap 8036 2011-01-27 11:56:11Z joostvb $
# $URL: https://ilk.uvt.nl/svn/trunk/sources/ucto/trunk/bootstrap $
# bootstrap - script to bootstrap the distribution rolling engine
# usage:
# $ sh ./bootstrap && ./configure && make dist[check]
#
# this yields a tarball which one can install doing
#
# $ tar zxf PACKAGENAME-*.tar.gz
# $ cd PACKAGENAME-*
# $ ./configure
# $ make
# # make install
# requirements:
# GNU autoconf, from e.g. ftp.gnu.org:/pub/gnu/autoconf/
# GNU automake, from e.g. http://ftp.gnu.org/gnu/automake/
automake=automake
aclocal=aclocal
# if you want to autogenerate a ChangeLog form svn:
#
# svn2cl, a python script, as used in the GNU Enterprise project.
# By jcater (Jason Cater), contributions by reinhard (Reinhard Müller).
# Get it from
# http://www.gnuenterprise.org/cgi-bin/viewcvs.cgi/*checkout*/gnue/trunk/gnue-common/utils/svn2cl .
# svn2cl is used in Makefile.am too.
#
# (Another svn2cl implementation, in perl, is at
# http://www.contactor.se/~dast/svn/archive-2002-04/0910.shtml)
#
# see also toplevel Makefile.am
# test -f ChangeLog || {
# svn log --verbose > ChangeLog
#}
# inspired by hack as used in mcl (from http://micans.org/)
# autoconf-archive Debian package, aclocal-archive RPM, obsolete/badly supported OS, installed in home dir
acdirs="/usr/share/autoconf-archive/ /usr/share/aclocal/ /usr/local/share/aclocal/ $HOME/local/share/autoconf-archive/"
found=false
for d in $acdirs
do
if test -f ${d}ac_define_dir.m4
then
found=true
break
fi
done
if ! $found
then
cat <