From: thadh Date: Tue, 18 Sep 2012 19:55:59 +0000 (-0700) Subject: Expand italian test to get verb conjuations. X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=commitdiff_plain;h=1da10b30965cc320ec52cad29adfb8b420dd7b31 Expand italian test to get verb conjuations. --- diff --git a/src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java b/src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java index a7943ad..791d550 100644 --- a/src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java +++ b/src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java @@ -92,18 +92,19 @@ public class DictionaryBuilderTest extends TestCase { } public void testWiktionary_WholeSection_DE() throws Exception { - wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.DE.quickdic", "DE"); + wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.DE.quickdic", "DE", 100); } public void testWiktionary_WholeSection_EN() throws Exception { - wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.EN.quickdic", "EN"); + wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.EN.quickdic", "EN", 100); } public void testWiktionary_WholeSection_IT() throws Exception { - wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.IT.quickdic", "IT"); + // Have to run to 800 to get a few verb conjugations (including essere!) + wiktionaryTestWithWholeSectionToHtml("wiktionary.WholeSection.IT.quickdic", "IT", 800); } - public void wiktionaryTestWithWholeSectionToHtml(final String name, final String langCode) throws Exception { + public void wiktionaryTestWithWholeSectionToHtml(final String name, final String langCode, final int pageLimit) throws Exception { final File result = new File(TEST_OUTPUTS + name); System.out.println("Writing to: " + result); DictionaryBuilder.main(new String[] { @@ -120,7 +121,7 @@ public class DictionaryBuilderTest extends TestCase { "--input4WiktionaryLang=EN", "--input4SkipLang=" + langCode, "--input4TitleIndex=" + "1", - "--input4PageLimit=100", + "--input4PageLimit=" + pageLimit, "--print=" + result.getPath() + ".text", }); diff --git a/src/com/hughes/android/dictionary/parser/wiktionary/EnFunctionCallbacks.java b/src/com/hughes/android/dictionary/parser/wiktionary/EnFunctionCallbacks.java index 0352064..4de32bc 100644 --- a/src/com/hughes/android/dictionary/parser/wiktionary/EnFunctionCallbacks.java +++ b/src/com/hughes/android/dictionary/parser/wiktionary/EnFunctionCallbacks.java @@ -607,5 +607,9 @@ class EnFunctionCallbacks { return false; } } + + // ----------------------------------------------------------------------- + // Italian stuff + // ----------------------------------------------------------------------- } \ No newline at end of file diff --git a/testdata/goldens/wiktionary.WholeSection.IT.quickdic.text b/testdata/goldens/wiktionary.WholeSection.IT.quickdic.text index 6445241..2c1cc06 100644 --- a/testdata/goldens/wiktionary.WholeSection.IT.quickdic.text +++ b/testdata/goldens/wiktionary.WholeSection.IT.quickdic.text @@ -2,6 +2,13 @@ dictInfo=SomeWikiDataWholeSection EntrySource: wiktionary.WholeSection.IT.quickdic 0 Index: IT IT->EN +===6=== +HtmlEntry: 6 <<< +

Verb

+{{head|it|verb form}} +
  1. {{context|text messaging|slang}} R ( = are, second-person singular)
  2. +
+>>> ===A=== HtmlEntry: A <<<

Pronunciation

@@ -42,6 +49,19 @@ Borrowed from {{etyl|grc|it}} {{term|ἀ-|tr=a-|lang=grc}}. ---->>> +===abaco=== +HtmlEntry: abaco <<< +

Etymology

+From {{etyl|la|it}} {{term|abacus|counting board|lang=la}}, from {{etyl|grc|it}} {{term|ἄβαξ|board|tr=abax|lang=grc|sc=polytonic}}. +

Pronunciation

+ + +

Noun

+{{it-noun|abac|m|o|hi}} +
  1. abacus, plinth, multiplication-table
  2. +
+---->>> ===abalienate=== HtmlEntry: abalienate <<<

Verb

@@ -51,6 +71,13 @@ HtmlEntry: abalienate <<<
  • {{form of|Feminine plural|abalienato}}
  • ---->>> +===abalieno=== +HtmlEntry: abalieno <<< +

    Verb

    +abalieno +
    1. {{conjugation of|abalienare|1|s|pres|ind}}
    2. +
    +>>> ===abate=== HtmlEntry: abate <<<

    Etymology

    @@ -87,6 +114,13 @@ HtmlEntry: abdicate <<<
  • second-person plural imperative of abdicare
  • ---->>> +===abdico=== +HtmlEntry: abdico <<< +

    Verb

    +abdico +
    1. first-person singular present tense of abdicare
    2. +
    +---->>> ===abduce=== HtmlEntry: abduce <<<

    Verb

    @@ -94,6 +128,13 @@ HtmlEntry: abduce <<<
    1. {{conjugation of|abdurre|3|s|pres|ind}}
    ---->>> +===abduco=== +HtmlEntry: abduco <<< +

    Verb

    +abduco +
    1. {{conjugation of|abdurre|1|s|pres|ind}}
    2. +
    +---->>> ===aberrate=== HtmlEntry: aberrate <<<

    Verb

    @@ -173,6 +214,21 @@ HtmlEntry: abusive <<<
    1. Feminine plural form of abusivo
    ---->>> +===AC=== +HtmlEntry: AC <<< +

    {abbreviation}

    +A.C. +
    1. anno Christi
    2. +
    3. Associazione Calcio (football club)
    4. + +
    + +

    {abbreviation}

    +a.C. +
    1. avanti Christo
    2. +
    +>>> ===acacia=== HtmlEntry: acacia <<<

    Noun

    @@ -180,6 +236,60 @@ HtmlEntry: acacia <<<
    1. acacia (tree)
    ---->>> +===accede=== +HtmlEntry: accede <<< +

    Verb

    +accede +
    1. {{conjugation of|accedere|3|s|pres|ind}}
    2. +
    +>>> +===accelerando=== +HtmlEntry: accelerando <<< +

    Verb

    +accelerando +
    1. {{gerund of|accelerare}}
    2. +
    + +

    Adverb

    +{it-adv} +
    1. accelerating
    2. +
    +---->>> +===accelerate=== +HtmlEntry: accelerate <<< +

    Adjective

    +accelerate {p} +
    1. {{feminine of|accelerato#Adjective|accelerato}}
    2. +
    + +

    Verb

    +accelerate +
    1. second-person plural present tense of accelerare
    2. +
    3. second-person plural imperative of accelerare
    4. +
    5. feminine plural past participle of accelerare
    6. +
    +---->>> +===accelerative=== +HtmlEntry: accelerative <<< +

    Adjective

    +accelerative {f} +
    1. Feminine plural form of accelerativo
    2. +
    +>>> +===accentuate=== +HtmlEntry: accentuate <<< +

    Adjective

    +accentuate {f} +
    1. Feminine plural form of accentuato
    2. +
    + +

    Verb

    +accentuate +
    1. {{conjugation of|accentuare|2|p|pres|ind}}
    2. +
    3. {{conjugation of|accentuare|2|p|imp}}
    4. +
    5. {{form of|Feminine plural|accentuato}}
    6. +
    +>>> ===accidie=== HtmlEntry: accidie <<<

    Noun

    @@ -207,6 +317,39 @@ HtmlEntry: acclive <<< >>> +===account=== +HtmlEntry: account <<< +

    Etymology

    +{{borrowing|en|account}}. +

    Noun

    +{{head|it|noun|g=m}} {inv} +
    1. {computing} account
    2. +
    +>>> +===accreditamento=== +HtmlEntry: accreditamento <<< +

    Noun

    +{{head|it|noun}} +
    1. accreditation
    2. +
    +>>> +===accreditare=== +HtmlEntry: accreditare <<< +

    Verb

    +{it-verb} +
    1. To confirm
    2. +
    3. To substantiate
    4. +
    5. To credit
    6. +
    7. To accredit
    8. +
    + +

    Derived terms

    + + +

    Conjugation

    +{{it-conj-are|accredit|avere}}>>> ===accresce=== HtmlEntry: accresce <<<

    Verb

    @@ -214,6 +357,15 @@ HtmlEntry: accresce <<<
    1. {{conjugation of|accrescere|3|s|pres|ind}}
    ---->>> +===accumulate=== +HtmlEntry: accumulate <<< +

    Verb

    +accumulate +
    1. {{conjugation of|accumulare|2|p|pres|ind}}
    2. +
    3. {{conjugation of|accumulare|2|p|imp}}
    4. +
    5. {{form of|Feminine plural|accumulato}}
    6. +
    +---->>> ===accurate=== HtmlEntry: accurate <<<

    Adjective

    @@ -221,6 +373,248 @@ HtmlEntry: accurate <<<
    1. {{feminine plural of|accurato}}
    >>> +===accusa=== +HtmlEntry: accusa <<< +

    Noun

    +{{it-noun|accus|f|a|e}} +
    1. accusation
    2. +
    + +

    Antonyms

    + + +

    Verb

    +accusa +
    1. third-person singular present tense of accusare
    2. +
    3. second-person singular imperative of accusare
    4. +
    +---->>> +===accusare=== +HtmlEntry: accusare <<< +

    Verb

    +{it-verb} {transitive} +
    1. To accuse, to reproach, to impeach.
    2. +
    + +

    Derived terms

    + + +

    Conjugation

    +{{it-conj-are|accus|avere}}>>> +===accusato=== +HtmlEntry: accusato <<< +

    Noun

    +{{it-noun|accusat|m|o|i|f=accusata}} +
    1. accused person, accused
    2. +
    + +

    Related terms

    + + +

    Verb

    +{{it-pp|accusat}} +
    1. {{past participle of|accusare}}
    2. +
    + +

    Adjective

    +{{it-adj|accusat}} +
    1. accused
    2. +
    +---->>> +===accuse=== +HtmlEntry: accuse <<< +

    Noun

    +accuse {f} +
    1. {{plural of|accusa}}
    2. +
    +>>> +===acetone=== +HtmlEntry: acetone <<< +

    Noun

    +{{it-noun|aceton|m|e|i}} +
    1. {organic compound} acetone
    2. +
    +>>> +===acetose=== +HtmlEntry: acetose <<< +

    Adjective

    +acetose {f} +
    1. Feminine plural form of acetoso
    2. +
    + +

    Noun

    +acetose {f} +
    1. {{plural of|acetosa}}
    2. +
    +>>> +===acido=== +HtmlEntry: acido <<< +

    Pronunciation

    + + +

    Noun

    +{{it-noun|acid|m|o|i}} +
    1. {{context|chemistry}} acid
    2. +
    3. {slang} LSD
    4. +
    + +

    Adjective

    +{{it-adj|acid}} +
    1. acid
    2. +
    + +

    Related terms

    + + +

    Derived terms

    +{top4} + +{mid4} + +{mid4} + +{mid4} + +{bottom} +

    Verb

    +acido +
    1. {{conjugation of|acidare|1|s|pres|ind}}
    2. +
    +---->>> +===acre=== +HtmlEntry: acre <<< +

    Etymology

    +From {{etyl|la|it}} {{term|acre|ācre|lang=la}}, neuter nominative singular of {{term|acer|ācer|sharp|lang=la}}. +

    Adjective

    +{{it-adj|acr|e|i}} +
    1. sharp, sour
    2. +
    3. harsh
    4. +
    + +

    Related terms

    + +>>> +===acute=== +HtmlEntry: acute <<< +

    Pronunciation

    + + +

    Adjective

    +acute {f} +
    1. {{form of|feminine plural form|acuto}}.
    2. +
    +>>> +===ad=== +HtmlEntry: ad <<< +

    Preposition

    +{{head|it|preposition}} +
    1. to, at, in (used before a vowel for euphony instead of a)
    2. +
    +>>> ===AD=== HtmlEntry: AD <<<

    Initialism

    @@ -228,6 +622,25 @@ HtmlEntry: AD <<<
    1. CEO (amministratore delegato)
    >>> +===additive=== +HtmlEntry: additive <<< +

    Adjective

    +additive {f} +
    1. {{form of|feminine plural form|additivo}}
    2. +
    +>>> +===afghani=== +HtmlEntry: afghani <<< +

    Adjective

    +afghani {m} +
    1. {{plural of|afghano#Adjective|afghano}}
    2. +
    + +

    Noun

    +afghani {m} +
    1. {{plural of|afghano}}
    2. +
    +---->>> ===Afghanistan=== HtmlEntry: Afghanistan <<<

    Pronunciation

    @@ -247,90 +660,383 @@ HtmlEntry: Afghanistan <<< ---->>> -===Albania=== -HtmlEntry: Albania <<< +===Africa=== +HtmlEntry: Africa <<<

    Pronunciation

    -