Grammalecte  Check-in [5c1ab519c1]

Overview
Comment:[tb] lexicon editor (draft)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tb | multid
Files: files | file ages | folders
SHA3-256: 5c1ab519c1522ba4b496434a2f54d1c411f3dd3029b0fa36433106a5570f505c
User & Date: olr on 2018-03-04 11:08:50
Other Links: branch diff | manifest | tags
Context
2018-03-05
11:14
[tb] update: lexicon editor check-in: 9080cc6b91 user: olr tags: multid, tb
2018-03-04
11:08
[tb] lexicon editor (draft) check-in: 5c1ab519c1 user: olr tags: multid, tb
2018-03-02
14:59
[fx] main panel: conjugueur button + new logo check-in: e1b18c2783 user: olr tags: fx, multid
Changes

Added gc_lang/fr/tb/content/lex_editor.css version [2735861ee0].

            1  +/* CSS */
            2  +
            3  +.section {
            4  +	font-size: 16px;
            5  +	font-weight: bold;
            6  +	color: hsl(210, 50%, 50%);
            7  +}
            8  +
            9  +.option {
           10  +	font-size: 10px;
           11  +}

Added gc_lang/fr/tb/content/lex_editor.js version [0a699fc4f2].

            1  +// JavaScript
            2  +
            3  +"use strict";
            4  +

Added gc_lang/fr/tb/content/lex_editor.xul version [1286c13ec4].

            1  +<?xml version="1.0"?>
            2  +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
            3  +<?xml-stylesheet href="chrome://grammarchecker/content/lex_editor.css" type="text/css"?>
            4  +
            5  +<!DOCTYPE dialog SYSTEM "chrome://grammarchecker/locale/lex_editor.dtd">
            6  +
            7  +<dialog
            8  +  id="grammalecte-gcoptions-window"
            9  +  title="&window.title;"
           10  +  orient="vertical"
           11  +  buttons="accept, cancel, extra1"
           12  +  ondialogaccept="oOptControl.save();"
           13  +  ondialogcancel="return;"
           14  +  buttonlabelextra1="&button.export.label;"
           15  +  ondialogextra1="oOptControl.reset();"
           16  +  defaultButton="accept"
           17  +  width="500"
           18  +  onload="document.getElementById('grammalecte-gcoptions-window').centerWindowOnScreen();"
           19  +  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
           20  +
           21  +  <!-- Other elements go here -->
           22  +  
           23  +  <tabbox id="tabs" selectedIndex="0">
           24  +    <tabs>
           25  +      <tab label="&tab.editor.label;"/>
           26  +      <tab label="&tab.lexicon.label;"/>
           27  +    </tabs>
           28  +
           29  +    <tabpanels>
           30  +
           31  +      <tabpanel orient="vertical">
           32  +        <dialogheader id="newword-title" title="&dialogheader.newword.label;" description="" />
           33  +        <hbox>
           34  +          
           35  +          <vbox>
           36  +            <label class="section" value="Nouveau mot (lemme)" />
           37  +            <textbox id="flexion" value="" />
           38  +            <radiogroup orient="horizontal">
           39  +              <radio id="o_pos_nom_adj" class="option" label="Nom, adjectif" />
           40  +              <radio id="o_pos_nom_propre" class="option" label="Nom propre" />
           41  +              <radio id="o_pos_verbe" class="option" label="Verbe" />
           42  +              <radio id="o_pos_adverbe" class="option" label="Adverbe" />
           43  +              <radio id="o_pos_autre" class="option" label="Autre" />
           44  +            </radiogroup>
           45  +
           46  +            <label class="section" value="Nom et adjectif" />
           47  +            <hbox>
           48  +              <radiogroup orient="vertical">
           49  +                <radio id="o_pos_nom_adj" class="option" label="Nom et adjectif" />
           50  +                <radio id="o_pos_nom" class="option" label="Nom" />
           51  +                <radio id="o_pos_adj" class="option" label="Adjectif" />
           52  +              </radiogroup>
           53  +              <radiogroup orient="vertical">
           54  +                <radio id="o_pos_epi" class="option" label="épicène" />
           55  +                <radio id="o_pos_mas" class="option" label="masculin" />
           56  +                <radio id="o_pos_fem" class="option" label="féminin" />
           57  +              </radiogroup>
           58  +              <radiogroup orient="vertical">
           59  +                <radio id="o_pos_s" class="option" label="pluriel en ·s" />
           60  +                <radio id="o_pos_x" class="option" label="pluriel en ·x" />
           61  +                <radio id="o_pos_inv" class="option" label="invariable" />
           62  +              </radiogroup>
           63  +            </hbox>
           64  +
           65  +            <label class="section" value="Nom propre" />
           66  +            <hbox>
           67  +              <radiogroup orient="vertical">
           68  +                <radio id="o_pos_M1" class="option" label="Prénom" />
           69  +                <radio id="o_pos_M2" class="option" label="Patronyme" />
           70  +                <radio id="o_pos_MP" class="option" label="Autre" />
           71  +              </radiogroup>
           72  +              <radiogroup orient="vertical">
           73  +                <radio id="o_pos_epi" class="option" label="épicène" />
           74  +                <radio id="o_pos_mas" class="option" label="masculin" />
           75  +                <radio id="o_pos_fem" class="option" label="féminin" />
           76  +              </radiogroup>
           77  +            </hbox>              
           78  +
           79  +            <label class="section" value="Verbe" />
           80  +            <checkbox id="option_tu" class="option" label="vvv aaaa bbbbb zzzzzz" />
           81  +            <checkbox id="option_maj" class="option" label="vvv aaaa bbbbb zzzzzz" />
           82  +            <checkbox id="option_num" class="option" label="vvv aaaa bbbbb zzzzzz" />
           83  +            <checkbox id="option_virg" class="option" label="vvv aaaa bbbbb zzzzzz" />
           84  +            <label class="section" value="Adverbe" />
           85  +            <label class="section" value="Autre" />
           86  +            <hbox>
           87  +              <vbox>
           88  +                <label class="section" value="Flexion" />
           89  +                <textbox id="flexion" value="" />
           90  +              </vbox>
           91  +              <vbox>
           92  +                <label class="section" value="Étiquettes" />
           93  +                <textbox id="tags" value="" />
           94  +              </vbox>
           95  +            </hbox>
           96  +          </vbox>
           97  +
           98  +          <vbox>
           99  +            <label class="section" value="Mots générés" />
          100  +            <listbox>
          101  +              <listhead>
          102  +                <listheader label="Flexions"/>
          103  +                <listheader label="Tags"/>
          104  +              </listhead>
          105  +
          106  +              <listcols>
          107  +                <listcol flex="4"/>
          108  +                <listcol flex="4"/>
          109  +              </listcols>
          110  +
          111  +              <listitem>
          112  +                <listcell label="George"/>
          113  +                <listcell label="House"/>
          114  +              </listitem>
          115  +              <listitem>
          116  +                <listcell label="Mary Ellen"/>
          117  +                <listcell label="House"/>
          118  +              </listitem>
          119  +              <listitem>
          120  +                <listcell label="Roger"/>
          121  +                <listcell label="House"/>
          122  +              </listitem>
          123  +            </listbox>
          124  +          </vbox>
          125  +        </hbox>
          126  +      </tabpanel>
          127  +
          128  +      <tabpanel orient="vertical">
          129  +        <dialogheader id="lexicon-title" title="&dialogheader.lexicon.label;" description="" />
          130  +        <hbox>
          131  +          <vbox>
          132  +            <label class="section" value="Nouveau mot (lemme)" />
          133  +            <checkbox id="chim" class="option" label="vvv aaaa bbbbb zzzzzz" />
          134  +            <checkbox id="ocr" class="option" label="vvv aaaa bbbbb zzzzzz" />
          135  +            <label class="section" value="Nom et adjectif" />
          136  +            <checkbox id="typo" class="option" label="vvv aaaa bbbbb zzzzzz" />
          137  +            <checkbox id="apos" class="option" label="vvv aaaa bbbbb zzzzzz" />
          138  +            <checkbox id="esp" class="option" label="vvv aaaa bbbbb zzzzzz" />
          139  +          </vbox>
          140  +          <vbox>
          141  +            <label class="section" value="Mots générés" />
          142  +            <listbox>
          143  +              <listhead>
          144  +                <listheader label="Flexions"/>
          145  +                <listheader label="Lemme"/>
          146  +                <listheader label="Tags"/>
          147  +              </listhead>
          148  +
          149  +              <listcols>
          150  +                <listcol flex="4"/>
          151  +                <listcol flex="3"/>
          152  +                <listcol flex="4"/>
          153  +              </listcols>
          154  +
          155  +              <listitem>
          156  +                <listcell label="George"/>
          157  +                <listcell label="House Painter"/>
          158  +                <listcell label="House"/>
          159  +              </listitem>
          160  +              <listitem>
          161  +                <listcell label="Mary Ellen"/>
          162  +                <listcell label="Candle Maker"/>
          163  +                <listcell label="House"/>
          164  +              </listitem>
          165  +              <listitem>
          166  +                <listcell label="Roger"/>
          167  +                <listcell label="Swashbuckler"/>
          168  +                <listcell label="House"/>
          169  +              </listitem>
          170  +            </listbox>
          171  +          </vbox>
          172  +        </hbox>
          173  +      </tabpanel>
          174  +
          175  +    </tabpanels>
          176  +
          177  +  </tabbox>
          178  +
          179  +  <script type="application/x-javascript" src="lex_editor.js" />
          180  +
          181  +</dialog>

Modified gc_lang/fr/tb/content/overlay.js from [0f3db968a0] to [94ffc58fa0].

   498    498       },
   499    499       onOpenTextFormatter: function (e) {
   500    500           oTextFormatter.openPanel();
   501    501       },
   502    502       onOpenConjugueur: function (e) {
   503    503           this.openDialog("chrome://grammarchecker/content/conjugueur.xul", "", "chrome, resizable=no");
   504    504       },
          505  +    onOpenLexiconEditor: function (e) {
          506  +        this.openDialog("chrome://grammarchecker/content/lex_editor.xul", "", "chrome, resizable=no");
          507  +    },
   505    508       onAbout: function (e) {
   506    509           this.openDialog("chrome://grammarchecker/content/about.xul", "", "chrome, dialog, modal, resizable=no");
   507    510       }
   508    511   };
   509    512   
   510    513   
   511    514   var oDictIgniter = {

Modified gc_lang/fr/tb/content/overlay.xul from [f4f8642995] to [991053c2ea].

    42     42         <menupopup id="gl-toolbar-popup">
    43     43           <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.textformatter;" oncommand="oTextFormatter.onOpenPanel(event);"/>
    44     44           <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.conjugueur;" oncommand="oGrammarChecker.onOpenConjugueur(event);"/>
    45     45           <menuseparator/>
    46     46           <menuitem id="gl-item-analyze" class="menuitem-iconic" label="&grammalectemenu.start;" oncommand="oGrammarChecker.onParseText(event);"/>
    47     47           <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.gc_options;" onclick="oGrammarChecker.onOpenGCOptions(event);"/>
    48     48           <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.spell_options;" onclick="oGrammarChecker.onOpenSpellOptions(event);"/>
           49  +        <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.lexicon_editor;" onclick="oGrammarChecker.onOpenLexiconEditor(event);"/>
    49     50           <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.other_options;" onclick="oGrammarChecker.onOpenOptions(event);"/>
    50     51           <menuseparator/>
    51     52           <menuitem id="gl-item-about" class="menuitem-iconic" label="&grammalectemenu.about;" oncommand="oGrammarChecker.onAbout(event);"/>
    52     53         </menupopup>
    53     54       </toolbarbutton>
    54     55     </toolbarpalette>
    55     56   

Added gc_lang/fr/tb/locale/en/lex_editor.dtd version [424843c364].

            1  +<!ENTITY window.title "Grammalecte · Éditeur lexical">
            2  +
            3  +<!ENTITY dialogheader.newword.label "Nouveau mot">
            4  +<!ENTITY dialogheader.lexicon.label "Votre lexique">
            5  +
            6  +<!ENTITY button.export.label "DDDD">
            7  +
            8  +<!ENTITY tab.editor.label "Ajout">
            9  +<!ENTITY tab.lexicon.label "Lexique">

Modified gc_lang/fr/tb/locale/en/overlay.dtd from [4ffe30eb77] to [c3723dc977].

     3      3   <!ENTITY grammarchecker.tooltip "Grammar checking">
     4      4   
     5      5   <!ENTITY grammalectemenu.textformatter "Text formatter…">
     6      6   <!ENTITY grammalectemenu.conjugueur "Conjugation tool…">
     7      7   <!ENTITY grammalectemenu.start "Proofread the text…">
     8      8   <!ENTITY grammalectemenu.spell_options "Spelling options…">
     9      9   <!ENTITY grammalectemenu.gc_options "Grammar options…">
           10  +<!ENTITY grammalectemenu.lexicon_editor "Lexical editor…">
    10     11   <!ENTITY grammalectemenu.other_options "Other options…">
    11     12   <!ENTITY grammalectemenu.about "About Grammalecte…">
    12     13   
    13     14   <!ENTITY detected_mistakes "Detected mistakes">
    14     15   
    15     16   <!ENTITY textformatter "Text Formatter">
    16     17   <!ENTITY automated_replacements "Automated replacements">

Added gc_lang/fr/tb/locale/fr/lex_editor.dtd version [424843c364].

            1  +<!ENTITY window.title "Grammalecte · Éditeur lexical">
            2  +
            3  +<!ENTITY dialogheader.newword.label "Nouveau mot">
            4  +<!ENTITY dialogheader.lexicon.label "Votre lexique">
            5  +
            6  +<!ENTITY button.export.label "DDDD">
            7  +
            8  +<!ENTITY tab.editor.label "Ajout">
            9  +<!ENTITY tab.lexicon.label "Lexique">

Modified gc_lang/fr/tb/locale/fr/overlay.dtd from [7124c1cfff] to [816cf299c9].

     3      3   <!ENTITY grammarchecker.tooltip "Correction grammaticale">
     4      4   
     5      5   <!ENTITY grammalectemenu.textformatter "Formateur de texte…">
     6      6   <!ENTITY grammalectemenu.conjugueur "Conjugueur…">
     7      7   <!ENTITY grammalectemenu.start "Analyser le texte…">
     8      8   <!ENTITY grammalectemenu.spell_options "Options orthographiques…">
     9      9   <!ENTITY grammalectemenu.gc_options "Options grammaticales…">
           10  +<!ENTITY grammalectemenu.lexicon_editor "Éditeur lexical…">
    10     11   <!ENTITY grammalectemenu.other_options "Autres options…">
    11     12   <!ENTITY grammalectemenu.about "À propos de Grammalecte…">
    12     13   
    13     14   <!ENTITY detected_mistakes "Erreurs détectées">
    14     15   
    15     16   <!ENTITY textformatter "Formateur de texte">
    16     17   <!ENTITY automated_replacements "Remplacements automatisés">