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: tb, multid
2018-03-04
11:08
[tb] lexicon editor (draft) check-in: 5c1ab519c1 user: olr tags: tb, multid
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
2
3
4
5
6
7
8
9
10
11
/* CSS */

.section {
	font-size: 16px;
	font-weight: bold;
	color: hsl(210, 50%, 50%);
}

.option {
	font-size: 10px;
}

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









>
>
>
>
1
2
3
4
// JavaScript

"use strict";

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











































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://grammarchecker/content/lex_editor.css" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://grammarchecker/locale/lex_editor.dtd">

<dialog
  id="grammalecte-gcoptions-window"
  title="&window.title;"
  orient="vertical"
  buttons="accept, cancel, extra1"
  ondialogaccept="oOptControl.save();"
  ondialogcancel="return;"
  buttonlabelextra1="&button.export.label;"
  ondialogextra1="oOptControl.reset();"
  defaultButton="accept"
  width="500"
  onload="document.getElementById('grammalecte-gcoptions-window').centerWindowOnScreen();"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <!-- Other elements go here -->
  
  <tabbox id="tabs" selectedIndex="0">
    <tabs>
      <tab label="&tab.editor.label;"/>
      <tab label="&tab.lexicon.label;"/>
    </tabs>

    <tabpanels>

      <tabpanel orient="vertical">
        <dialogheader id="newword-title" title="&dialogheader.newword.label;" description="" />
        <hbox>
          
          <vbox>
            <label class="section" value="Nouveau mot (lemme)" />
            <textbox id="flexion" value="" />
            <radiogroup orient="horizontal">
              <radio id="o_pos_nom_adj" class="option" label="Nom, adjectif" />
              <radio id="o_pos_nom_propre" class="option" label="Nom propre" />
              <radio id="o_pos_verbe" class="option" label="Verbe" />
              <radio id="o_pos_adverbe" class="option" label="Adverbe" />
              <radio id="o_pos_autre" class="option" label="Autre" />
            </radiogroup>

            <label class="section" value="Nom et adjectif" />
            <hbox>
              <radiogroup orient="vertical">
                <radio id="o_pos_nom_adj" class="option" label="Nom et adjectif" />
                <radio id="o_pos_nom" class="option" label="Nom" />
                <radio id="o_pos_adj" class="option" label="Adjectif" />
              </radiogroup>
              <radiogroup orient="vertical">
                <radio id="o_pos_epi" class="option" label="épicène" />
                <radio id="o_pos_mas" class="option" label="masculin" />
                <radio id="o_pos_fem" class="option" label="féminin" />
              </radiogroup>
              <radiogroup orient="vertical">
                <radio id="o_pos_s" class="option" label="pluriel en ·s" />
                <radio id="o_pos_x" class="option" label="pluriel en ·x" />
                <radio id="o_pos_inv" class="option" label="invariable" />
              </radiogroup>
            </hbox>

            <label class="section" value="Nom propre" />
            <hbox>
              <radiogroup orient="vertical">
                <radio id="o_pos_M1" class="option" label="Prénom" />
                <radio id="o_pos_M2" class="option" label="Patronyme" />
                <radio id="o_pos_MP" class="option" label="Autre" />
              </radiogroup>
              <radiogroup orient="vertical">
                <radio id="o_pos_epi" class="option" label="épicène" />
                <radio id="o_pos_mas" class="option" label="masculin" />
                <radio id="o_pos_fem" class="option" label="féminin" />
              </radiogroup>
            </hbox>              

            <label class="section" value="Verbe" />
            <checkbox id="option_tu" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <checkbox id="option_maj" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <checkbox id="option_num" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <checkbox id="option_virg" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <label class="section" value="Adverbe" />
            <label class="section" value="Autre" />
            <hbox>
              <vbox>
                <label class="section" value="Flexion" />
                <textbox id="flexion" value="" />
              </vbox>
              <vbox>
                <label class="section" value="Étiquettes" />
                <textbox id="tags" value="" />
              </vbox>
            </hbox>
          </vbox>

          <vbox>
            <label class="section" value="Mots générés" />
            <listbox>
              <listhead>
                <listheader label="Flexions"/>
                <listheader label="Tags"/>
              </listhead>

              <listcols>
                <listcol flex="4"/>
                <listcol flex="4"/>
              </listcols>

              <listitem>
                <listcell label="George"/>
                <listcell label="House"/>
              </listitem>
              <listitem>
                <listcell label="Mary Ellen"/>
                <listcell label="House"/>
              </listitem>
              <listitem>
                <listcell label="Roger"/>
                <listcell label="House"/>
              </listitem>
            </listbox>
          </vbox>
        </hbox>
      </tabpanel>

      <tabpanel orient="vertical">
        <dialogheader id="lexicon-title" title="&dialogheader.lexicon.label;" description="" />
        <hbox>
          <vbox>
            <label class="section" value="Nouveau mot (lemme)" />
            <checkbox id="chim" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <checkbox id="ocr" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <label class="section" value="Nom et adjectif" />
            <checkbox id="typo" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <checkbox id="apos" class="option" label="vvv aaaa bbbbb zzzzzz" />
            <checkbox id="esp" class="option" label="vvv aaaa bbbbb zzzzzz" />
          </vbox>
          <vbox>
            <label class="section" value="Mots générés" />
            <listbox>
              <listhead>
                <listheader label="Flexions"/>
                <listheader label="Lemme"/>
                <listheader label="Tags"/>
              </listhead>

              <listcols>
                <listcol flex="4"/>
                <listcol flex="3"/>
                <listcol flex="4"/>
              </listcols>

              <listitem>
                <listcell label="George"/>
                <listcell label="House Painter"/>
                <listcell label="House"/>
              </listitem>
              <listitem>
                <listcell label="Mary Ellen"/>
                <listcell label="Candle Maker"/>
                <listcell label="House"/>
              </listitem>
              <listitem>
                <listcell label="Roger"/>
                <listcell label="Swashbuckler"/>
                <listcell label="House"/>
              </listitem>
            </listbox>
          </vbox>
        </hbox>
      </tabpanel>

    </tabpanels>

  </tabbox>

  <script type="application/x-javascript" src="lex_editor.js" />

</dialog>

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

498
499
500
501
502
503
504



505
506
507
508
509
510
511
    },
    onOpenTextFormatter: function (e) {
        oTextFormatter.openPanel();
    },
    onOpenConjugueur: function (e) {
        this.openDialog("chrome://grammarchecker/content/conjugueur.xul", "", "chrome, resizable=no");
    },



    onAbout: function (e) {
        this.openDialog("chrome://grammarchecker/content/about.xul", "", "chrome, dialog, modal, resizable=no");
    }
};


var oDictIgniter = {







>
>
>







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


var oDictIgniter = {

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

42
43
44
45
46
47
48

49
50
51
52
53
54
55
      <menupopup id="gl-toolbar-popup">
        <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.textformatter;" oncommand="oTextFormatter.onOpenPanel(event);"/>
        <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.conjugueur;" oncommand="oGrammarChecker.onOpenConjugueur(event);"/>
        <menuseparator/>
        <menuitem id="gl-item-analyze" class="menuitem-iconic" label="&grammalectemenu.start;" oncommand="oGrammarChecker.onParseText(event);"/>
        <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.gc_options;" onclick="oGrammarChecker.onOpenGCOptions(event);"/>
        <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.spell_options;" onclick="oGrammarChecker.onOpenSpellOptions(event);"/>

        <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.other_options;" onclick="oGrammarChecker.onOpenOptions(event);"/>
        <menuseparator/>
        <menuitem id="gl-item-about" class="menuitem-iconic" label="&grammalectemenu.about;" oncommand="oGrammarChecker.onAbout(event);"/>
      </menupopup>
    </toolbarbutton>
  </toolbarpalette>








>







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

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



















>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
<!ENTITY window.title "Grammalecte · Éditeur lexical">

<!ENTITY dialogheader.newword.label "Nouveau mot">
<!ENTITY dialogheader.lexicon.label "Votre lexique">

<!ENTITY button.export.label "DDDD">

<!ENTITY tab.editor.label "Ajout">
<!ENTITY tab.lexicon.label "Lexique">

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

1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
<!ENTITY grammarchecker.button.label "Grammar">
<!ENTITY grammarchecker.accesskey "G">
<!ENTITY grammarchecker.tooltip "Grammar checking">

<!ENTITY grammalectemenu.textformatter "Text formatter…">
<!ENTITY grammalectemenu.conjugueur "Conjugation tool…">
<!ENTITY grammalectemenu.start "Proofread the text…">
<!ENTITY grammalectemenu.spell_options "Spelling options…">
<!ENTITY grammalectemenu.gc_options "Grammar options…">

<!ENTITY grammalectemenu.other_options "Other options…">
<!ENTITY grammalectemenu.about "About Grammalecte…">

<!ENTITY detected_mistakes "Detected mistakes">

<!ENTITY textformatter "Text Formatter">
<!ENTITY automated_replacements "Automated replacements">









>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!ENTITY grammarchecker.button.label "Grammar">
<!ENTITY grammarchecker.accesskey "G">
<!ENTITY grammarchecker.tooltip "Grammar checking">

<!ENTITY grammalectemenu.textformatter "Text formatter…">
<!ENTITY grammalectemenu.conjugueur "Conjugation tool…">
<!ENTITY grammalectemenu.start "Proofread the text…">
<!ENTITY grammalectemenu.spell_options "Spelling options…">
<!ENTITY grammalectemenu.gc_options "Grammar options…">
<!ENTITY grammalectemenu.lexicon_editor "Lexical editor…">
<!ENTITY grammalectemenu.other_options "Other options…">
<!ENTITY grammalectemenu.about "About Grammalecte…">

<!ENTITY detected_mistakes "Detected mistakes">

<!ENTITY textformatter "Text Formatter">
<!ENTITY automated_replacements "Automated replacements">

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



















>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
<!ENTITY window.title "Grammalecte · Éditeur lexical">

<!ENTITY dialogheader.newword.label "Nouveau mot">
<!ENTITY dialogheader.lexicon.label "Votre lexique">

<!ENTITY button.export.label "DDDD">

<!ENTITY tab.editor.label "Ajout">
<!ENTITY tab.lexicon.label "Lexique">

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

1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
<!ENTITY grammarchecker.button.label "Grammaire">
<!ENTITY grammarchecker.accesskey "G">
<!ENTITY grammarchecker.tooltip "Correction grammaticale">

<!ENTITY grammalectemenu.textformatter "Formateur de texte…">
<!ENTITY grammalectemenu.conjugueur "Conjugueur…">
<!ENTITY grammalectemenu.start "Analyser le texte…">
<!ENTITY grammalectemenu.spell_options "Options orthographiques…">
<!ENTITY grammalectemenu.gc_options "Options grammaticales…">

<!ENTITY grammalectemenu.other_options "Autres options…">
<!ENTITY grammalectemenu.about "À propos de Grammalecte…">

<!ENTITY detected_mistakes "Erreurs détectées">

<!ENTITY textformatter "Formateur de texte">
<!ENTITY automated_replacements "Remplacements automatisés">









>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!ENTITY grammarchecker.button.label "Grammaire">
<!ENTITY grammarchecker.accesskey "G">
<!ENTITY grammarchecker.tooltip "Correction grammaticale">

<!ENTITY grammalectemenu.textformatter "Formateur de texte…">
<!ENTITY grammalectemenu.conjugueur "Conjugueur…">
<!ENTITY grammalectemenu.start "Analyser le texte…">
<!ENTITY grammalectemenu.spell_options "Options orthographiques…">
<!ENTITY grammalectemenu.gc_options "Options grammaticales…">
<!ENTITY grammalectemenu.lexicon_editor "Éditeur lexical…">
<!ENTITY grammalectemenu.other_options "Autres options…">
<!ENTITY grammalectemenu.about "À propos de Grammalecte…">

<!ENTITY detected_mistakes "Erreurs détectées">

<!ENTITY textformatter "Formateur de texte">
<!ENTITY automated_replacements "Remplacements automatisés">