Skip to content

Commit

Permalink
Added non as an external language - will take the source from Apertium.
Browse files Browse the repository at this point in the history
git-svn-id: https://gtsvn.uit.no/langtech/trunk/external-langs/nno@174108 c7155fb1-f0a7-4240-a2fc-2600b6f42f90
  • Loading branch information
snomos committed Nov 20, 2018
0 parents commit 216c876
Show file tree
Hide file tree
Showing 263 changed files with 36,014 additions and 0 deletions.
6 changes: 6 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Authors of gtlangs-nno package.

The following people have legal copyright to files and software in this
directory and its subdirectories:

__FIXME__
365 changes: 365 additions & 0 deletions INSTALL

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
It is of extreme importance that you fill in this file with copyright
information about the morphology contained in this directory.

__FIXME__
41 changes: 41 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## Process this file with automake to produce Makefile.in
## Copyright: Sámediggi/Divvun/UiT
## Licence: GPL v3+

ACLOCAL_AMFLAGS = -I m4
SUBDIRS = . src tools doc test

EXTRA_DIST = und.timestamp

pkgconfigdir = $(prefix)/share/pkgconfig
pkgconfig_DATA = giella-$(GTLANG).pc


configure: banner und.timestamp

.PHONY: banner test
banner:
@echo
@echo "*** Compiling the $(GTLANG) language. ***"
@echo

if WANT_MAINTAIN
$(top_srcdir)/und.timestamp: ${GIELLA_TEMPLATES}/langs-templates/und/und.timestamp
@echo
@echo " The build templates are newer than this language directory"
@echo " To get new build rules and conventions, run: "
@echo
@echo "${GTCORE}/scripts/merge-templates.sh"
@echo
@echo " The build will die now, but if you do not want to update your"
@echo " templates, touch $@ and run make again."
@exit 1
endif

# On some systems it will try to run 'make test', and claim
# 'nothing to be done for test'. By forwarding test to check we work around it.
test: check

# Remove html tables created by some of the developer tools:
clean-local:
rm -f *.html
92 changes: 92 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.. -*- mode: rst -*-
========================================
The Norwegian Nynorsk morphology and tools
========================================

This directory contains source files for the Norwegian Nynorsk language morphology
and dictionary. The data and implementation are licenced under __LICENCE__
licence also detailed in the LICENCE file of this directory. The authors named
in the AUTHORS file are available to grant other licencing choices.

Installation and compilation, and a short note on usage, is documented in the
file INSTALL.

Documentation is scattered around on the Giellatekno and Divvun pages, e.g.:

* http://giellatekno.uit.no/nnodoc/index.html
* http://giellatekno.uit.no/doc/tools/docu-nno-manual.html
* http://divvun.no/doc/index.html

Requirements
------------

In order to compile and use Norwegian Nynorsk language morphology and dictionaries,
you need:

* Xerox Finite-State Morphology tools, or
* Helsinki Finite-State Technology library and tools, version 3.8 or newer, or
* Foma finite-state tool

Optionally:

* VislCG3 Constraint Grammar tools

Downloading
-----------

The Norwegian Nynorsk language sources can be acquired using `giella SVN
repository <http://divvun.no/doc/infra/anonymous-svn.html>`_, from the
language specific directory, after the core has been downloaded and initial
setup has been performed.

Installation
------------

INSTALL describes the GNU build system in detail, but for most users the usual:

./configure
make
(as root) make install

should result in a local installation and::

(as root) make uninstall

in its uninstallation.

If you would rather install in e.g. your home directory
(or aren't the system administrator), you can tell ./configure::

./configure --prefix=$HOME

If you are checking out the development versions from SVN you must first create
and install the necessary autotools files from the host system, and check that
your environment is correctly set up. This is done by doing:

./autogen.sh

It is common practice to keep `generated files out of version control
<http://www.gnu.org/software/automake/manual/automake.html#CVS>`_.

VPATH builds
------------

If you want to keep the source code tree clean, a VPATH build is the solution.
The idea is to create a build dir somewhere outside of the source code tree,
and call `configure` from there. Here is one VPATH variant of the standard
procedure:

mkdir build && cd build
../configure
make
(as root) make install

This will keep all the generated files within the build/ dir, and keep the src/
dir (mostly) free of generated files. If you are building from the development
version in SVN, you must run the ./autogen.sh script BEFORE you take the steps
above.

For further installation instruction refer to file ``INSTALL``, which contains
the standard installation instructions for GNU autoconf based software.

.. vim: set ft=rst:
65 changes: 65 additions & 0 deletions am-shared/00-DO-NOT-EDIT-THIS-DIRECTORY-readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
README
======

This directory SHOULD NOT BE CHANGED MANUALLY.

It should ONLY BE CHANGED using an AUTOMATIC MERGE from the template dir.


HOW TO CHANGE
-------------

That is, if you find you need to change this dir, do as follows:

CHANGE THE TEMPLATE
-------------------

1) make your changes _without_ committing (or by using a branch)
2) test your changes
3) when ok, manually copy your changes to $GIELLA_TEMPLATES/langs/und/
4) edit $GIELLA_TEMPLATES/langs/und/und.timestamp to contain a change note
5) commit the changes in $GIELLA_TEMPLATES/langs/und/

PROPAGATE THE CHANGES
---------------------

Then, in each langs/ dir (langs/, startup-langs/, experiment-langs/), run the
following commands (it might be a good idea to check out these langs dirs
independently for this operation):

First time:

./autogen.sh
./configure

Each time:

`make templatemerge`

or

`make templatemerge USERNAME=<your-svn-username>`

This command will svn-merge the changes in $GIELLA_TEMPLATES/langs/und/ with
each language dir.

Review the merge results, if ok then commit (preferably all languages at once).


!!! WARNING !!!
===============

We want to avoid merge conflicts at any costs since this merge scheme is the
core of the scaleability of the infrastructure, so:

KEEPING THE am-shared DIR FREE OF LOCAL MODIFICATIONS IS IMPERATIVE FOR THE
MERGE SCHEME TO FUNCTION!


ALTERNATIVE
-----------

In the case the above procedure is too complicated, or doesn't fit the changes
you need, you can instead leave a (diff and) change request at
http://giellatekno.uit.no/bugzilla/, or just send an e-mail to
[email protected].
72 changes: 72 additions & 0 deletions am-shared/doc-dir-include.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
## Process this file with automake to produce Makefile.in
## Copyright: Sámediggi/Divvun/UiT
## Licence: GPL v3+

# Variables:
VPATH_JSP_PAGES=$(addprefix $(srcdir)/,$(JSP_PAGES))

doc_DATA=$(VPATH_JSP_PAGES) $(ALLINONE_JSP_PAGE) $(LINKS)

DOCC2RST=$(GTCORE)/scripts/doccomments2rst.awk
DOCC2TEX=$(GTCORE)/scripts/doccomments2tex.awk
DOCC2JSPWIKI=$(GTCORE)/scripts/doccomments2jspwiki.awk

RST2HTML=rst2html
LATEX=xelatex

FORRESTARGS=-Dforrest.jvmargs="-Dfile.encoding=utf-8 -Djava.awt.headless=true"

$(srcdir)/%-syntax.jspwiki: $(top_srcdir)/src/syntax/%.cg3
$(AM_V_AWK)$(GAWK) -f $(DOCC2JSPWIKI) < $< > $@

$(srcdir)/%-phonology.jspwiki: $(top_srcdir)/src/phonology/%.twolc
$(AM_V_AWK)$(GAWK) -f $(DOCC2JSPWIKI) < $< > $@

$(srcdir)/%-phonology.jspwiki: $(top_srcdir)/src/phonology/%.xfscript
$(AM_V_AWK)$(GAWK) -f $(DOCC2JSPWIKI) < $< > $@

$(srcdir)/%-morphology.jspwiki: $(top_srcdir)/src/morphology/%.lexc
$(AM_V_AWK)$(GAWK) -f $(DOCC2JSPWIKI) < $< > $@

$(srcdir)/%-stems.jspwiki: $(top_srcdir)/src/morphology/stems/%.lexc
$(AM_V_AWK)$(GAWK) -f $(DOCC2JSPWIKI) < $< > $@

$(srcdir)/%-affixes.jspwiki: $(top_srcdir)/src/morphology/affixes/%.lexc
$(AM_V_AWK)$(GAWK) -f $(DOCC2JSPWIKI) < $< > $@

$(srcdir)/$(GTLANG).jspwiki: $(srcdir)/preamble.jspwiki $(VPATH_JSP_PAGES)
$(AM_V_at)-rm -f $@
$(AM_V_GEN)cat $^ > $@

$(LINKS): $(VPATH_JSP_PAGES)
$(AM_V_at)-rm -f $@
$(AM_V_GEN)echo $$(for file in $^; do basename $$file; done) \
| sed 's/\.jspwiki/\.html/g' \
| LC_COLLATE=C sed 's/[a-z0-9.-]*/*[&]/g' \
| tr ' ' '\n' \
| cat $(srcdir)/link-header.jspwiki - > $@
$(AM_V_FORREST)cd $(srcdir) && \
$(FORREST) $(VERBOSITY) site $(FORRESTARGS)

#$(GTLANG).tex: $(srcdir)/preamble.tex $(srcdir)/doc-comments.conf
# -rm -f $@
# cat $(srcdir)/preamble.tex > $@
#
#
#$(GTLANG).rst: $(srcdir)/preamble.rst $(srcdir)/doc-comments.conf
# -rm -f $@
# cat $(srcdir)/preamble.rst > $@
#
#%.html: %.rst
# $(RST2HTML) < $< > $@
#
#%.pdf: %.tex
# $(LATEX) $<
# $(LATEX) $<
# $(LATEX) $<

####### Other targets: ###########
clean-local:
-rm -rf build

include $(top_srcdir)/am-shared/silent_build-include.am
23 changes: 23 additions & 0 deletions am-shared/hfst-format-include.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Include this file in top-level srcdir to compile FSTs
## Copyright: Sámediggi/Divvun/UiT
## Licence: GPL v3+

if WITH_OFST_TROPICAL
HFST_FORMAT= --format=openfst-tropical
HFST_OLFORMAT= --format=optimized-lookup-weighted
endif # WITH_OFST_TROPICAL

if WITH_OFST_LOG
HFST_FORMAT= --format=openfst-log
HFST_OLFORMAT= --format=optimized-lookup-weighted
endif # WITH_OFST_LOG

if WITH_SFST
HFST_FORMAT= --format=sfst
HFST_OLFORMAT= --format=optimized-lookup-unweighted
endif # WITH_SFST

if WITH_FOMA
HFST_FORMAT= --format=foma
HFST_OLFORMAT= --format=optimized-lookup-unweighted
endif # WITH_FOMA
42 changes: 42 additions & 0 deletions am-shared/lexc-include.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## Process this file with automake to produce Makefile.in

## Copyright (C) 2011 Samediggi

## 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 <http://www.gnu.org/licenses/>.

###########################################
########## LexC build rules. ##########
###########################################

####### HFST build rules: ########
%.hfst: %.lexc
$(AM_V_HLEXC)$(HFST_LEXC) \
$(MORE_VERBOSITY) $(HFST_FORMAT) $(HFST_LEXC_FLAGS) -o $@ $^

####### Xerox build rules: #######
%.xfst: %.lexc
$(AM_V_XFST)$(XFST) $(VERBOSITY) \
-e "read lexc $^" \
-e "save stack $@ " \
-stop

####### Foma build rules: #######
%.foma: %.lexc
$(AM_V_FOMA)$(FOMA) $(VERBOSITY) \
-e "set lexc-align ON" \
-e "read lexc $^" \
-e "save stack $@ " \
-s

# vim: set ft=automake:
Loading

0 comments on commit 216c876

Please sign in to comment.