[freedict] Re: Poll: replace deu-eng / eng-deu

  • From: Einhard Leichtfuß <alguien@xxxxxxxxxxxxx>
  • To: freedict@xxxxxxxxxxxxx
  • Date: Mon, 14 Sep 2020 09:49:20 +0200

On 14/09/2020 05:27, Einhard Leichtfuß wrote:

On 13/09/2020 21:49, Sebastian Humenda wrote:
Hi

Einhard Leichtfuß schrieb am 13.09.2020, 16:46 +0200:
For the resulting deu-eng.tei (eng-deu.tei not yet tested)
+ `make validation' succeeds
[…]
- `teiaddphonetics' fails

Since you provided a regex, I trust you figured out which words lead to the
failure?

Note that the regex should actually be

  [[:alphanum:]].*[!?:,]["']

(or so it seems).

teiaddphonetics failed once again.  New culprit:

 * N:(D2Ln)

Minimal word:

 * x:(

Corresponding regex sets (each preceded by [[:alphanum:]].*):

 * [;:]\)
 * [;:!?,][\[\]{}(]

Only match in the input is the above word.

Note: The above word inducing the failure is at the end of the first
third of the input file, so likely it is the last remaing issue
concerning teiaddphonetics.


Can you craft a minimal working example, preferably with only a word, that
reproduces this behaviour? If not I have to go and bisect recursively :).
Minimal word: x!"
 * <x! "> and <!"> are fine.

(Note that teiaddphonetics told me the culprit, when calling with
`--espeak-count 1'.)


Minimal TEI:


<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="freedict-dictionary.xsl"?>
<?xml-stylesheet type="text/css" href="freedict-dictionary.css"?>
<?oxygen SCHSchema="freedict-P5.rng"?>
<?oxygen RNGSchema="freedict-P5.rng" type="xml"?>
<!DOCTYPE TEI SYSTEM "freedict-P5.dtd">
<TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0";>
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title></title>
      </titleStmt>
      <editionStmt>
        <edition></edition>
      </editionStmt>
      <publicationStmt>
        <publisher></publisher>
      </publicationStmt>
      <sourceDesc>
        <p></p>
      </sourceDesc>
    </fileDesc>
  </teiHeader>
  <text>
    <body>
      <entry>
        <form>
          <orth>x!&quot;</orth>
        </form>
      </entry>
    </body>
  </text>
</TEI>

-- 
FreeDict - Free And Open Dictionaries
Manage your subscription at https://www.freelists.org/list/freedict
Wiki: https://github.com/freedict/fd-dictionaries/wiki
Web: http://freedict.org

Other related posts: