Skip to content

Commit d7e0ca6

Browse files
committed
Many changes including improved but imperfect German support
1 parent 39a488a commit d7e0ca6

File tree

13 files changed

+729
-260
lines changed

13 files changed

+729
-260
lines changed

Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/conf.py

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
project = 'Epitran'
21+
copyright = '2022, David R. Mortensen'
22+
author = 'David R. Mortensen'
23+
24+
25+
# -- General configuration ---------------------------------------------------
26+
27+
# Add any Sphinx extension module names here, as strings. They can be
28+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
29+
# ones.
30+
extensions = [
31+
'sphinx.ext.duration',
32+
'sphinx.ext.doctest',
33+
'sphinx.ext.autodoc',
34+
'sphinx.ext.autosummary',
35+
]
36+
# Add any paths that contain templates here, relative to this directory.
37+
templates_path = ['_templates']
38+
39+
# List of patterns, relative to source directory, that match files and
40+
# directories to ignore when looking for source files.
41+
# This pattern also affects html_static_path and html_extra_path.
42+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
43+
44+
45+
# -- Options for HTML output -------------------------------------------------
46+
47+
# The theme to use for HTML and HTML Help pages. See the documentation for
48+
# a list of builtin themes.
49+
#
50+
html_theme = 'alabaster'
51+
52+
# Add any paths that contain custom static files (such as style sheets) here,
53+
# relative to this directory. They are copied after the builtin static files,
54+
# so a file named "default.css" will overwrite the builtin "default.css".
55+
html_static_path = ['_static']

docs/index.rst

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. Epitran documentation master file, created by
2+
sphinx-quickstart on Thu Jul 7 20:35:28 2022.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to Epitran's documentation!
7+
===================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`

docs/make.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

epitran/data/map/deu-Latn.csv

+81-62
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,103 @@
11
Orth,Phon
2+
a,A
3+
ä,Æ
4+
aa,aː
5+
ah,aː
6+
ae,ɛː
7+
ai,aɪ̯
8+
au,aʊ̯
9+
äu,ɔɪ̯
10+
ay,aɪ̯
211
b,b
312
bb,b
4-
c,k
5-
ch,x
6-
chs,ks
7-
ck,kC
13+
c,C
14+
ç,s
15+
cc,Dk
16+
cch,Dk
17+
ch,DX
18+
ck,k
819
d,d
9-
dd,dC
20+
dd,d
1021
dsch,d͡ʒ
11-
dt,tC
22+
dt,t
23+
e,E
24+
é,eː
25+
è,ɛː
26+
ê,ɛː
27+
eau,oː
28+
ee,eː
29+
eu,ɔɪ̯
30+
ée,eː
31+
eh,eː
32+
ei,aɪ̯
33+
eih,aɪ̯
34+
ew,juː
35+
ey,aɪ̯
1236
f,f
13-
ff,fC
37+
ff,Df
1438
g,ɡ
15-
gg,kC
16-
ig,iç
39+
gg,Dɡ
40+
gh,ɡ
41+
gn,nj
42+
gu,ɡ
1743
h,h
44+
i,I
45+
ie,iː
46+
ieh,iː
47+
ih,iː
1848
j,j
1949
k,k
50+
kk,Dk
2051
l,l
21-
ll,lC
52+
ll,Dl
2253
m,m
23-
mm,mC
54+
mm,Dm
2455
n,n
25-
nn,nC
26-
ng,ŋ
27-
nk,ŋk
56+
ñ,nj
57+
nn,Dn
58+
o,O
59+
ö,Ø
60+
oa,oːa
61+
oe,øː
62+
öe,ø:ə
63+
oeu,øː
64+
oh,oː
65+
öh,øː
66+
oi,ɔɪ̯
67+
oo,oː
68+
ou,uː
69+
ow,oː
70+
oy,ɔɪ̯
2871
p,p
29-
pp,pC
30-
pf,p͡f
72+
pf,Dp͡f
3173
ph,f
74+
pp,Dp
3275
qu,kv
33-
r,ʀ
34-
rr,ʀC
76+
r,r
77+
rr,Dr
78+
rrh,Dr
3579
s,s
36-
sch,ʃ
37-
ss,sC
38-
ß,s
80+
sc,ʃ
81+
sch,Dʃ
82+
ss,Ds
83+
ß,ß
3984
t,t
40-
tt,tC
85+
tch,t͡ʃ
4186
th,t
42-
ti,ti
43-
tsch,t͡ʃ
87+
tth,Dt
88+
tt,Dt
4489
tz,t͡s
45-
tzsch,t͡ʃ
90+
u,U
91+
ü,Y
92+
ue,Y
93+
üe,ye̯
94+
üh,yː
95+
ui,yː
4696
v,f
4797
w,v
48-
x,ks
49-
z,t͡s
50-
<zed>,z
51-
zsch,t͡ʃ
52-
i,i
53-
ie,i
54-
iH,i
55-
ieH,i
56-
e,e
57-
ä,æ
58-
äH,e
59-
eH,e
60-
ee,e
61-
y,y
62-
ü,y
63-
üH,y
64-
ö,ø
65-
öH,ø
66-
öo,ø
67-
u,u
68-
uH,u
69-
o,o
70-
oH,o
71-
oo,o
72-
a,ɑ
73-
aH,ɑ
74-
aa,ɑ
75-
en,ən
76-
er,əʀ
77-
au,au
78-
eu,oy
79-
äu,oy
80-
ei,ai
81-
ai,ai
82-
ey,ai
83-
ay,ai
84-
ə,ə
98+
wh,v
99+
x,DKS
100+
y,Y
101+
z,Z
102+
zz,DZ
103+
ive,iːf

0 commit comments

Comments
 (0)