tycho-components 0.32.0 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/localization/ParametersTexts.d.ts +12 -6
- package/dist/configs/localization/ParametersTexts.js +12 -6
- package/dist/features/Parameters/Parameters.js +2 -1
- package/dist/functions/ToolsUtils.d.ts +2 -0
- package/dist/functions/ToolsUtils.js +11 -4
- package/dist/functions/logo-ud.png +0 -0
- package/package.json +1 -1
|
@@ -13,14 +13,16 @@ export declare const ParametersTexts: {
|
|
|
13
13
|
"parameter.tooltip.useDesigner": string;
|
|
14
14
|
"parameter.field.useTranscriber": string;
|
|
15
15
|
"parameter.tooltip.useTranscriber": string;
|
|
16
|
+
"parameter.field.useUDTool": string;
|
|
17
|
+
"parameter.tooltip.useUDTool": string;
|
|
16
18
|
"parameter.field.useSound": string;
|
|
17
19
|
"parameter.tooltip.useSound": string;
|
|
18
20
|
"parameter.field.useTranslation": string;
|
|
19
21
|
"parameter.tooltip.useTranslation": string;
|
|
20
22
|
"parameter.field.useLexicon": string;
|
|
21
23
|
"parameter.tooltip.useLexicon": string;
|
|
22
|
-
"parameter.field.
|
|
23
|
-
"parameter.tooltip.
|
|
24
|
+
"parameter.field.useUDParser": string;
|
|
25
|
+
"parameter.tooltip.useUDParser": string;
|
|
24
26
|
"parameter.field.defaultUD": string;
|
|
25
27
|
"parameter.tooltip.defaultUD": string;
|
|
26
28
|
"parameter.field.useParticipantChat": string;
|
|
@@ -53,14 +55,16 @@ export declare const ParametersTexts: {
|
|
|
53
55
|
"parameter.tooltip.useDesigner": string;
|
|
54
56
|
"parameter.field.useTranscriber": string;
|
|
55
57
|
"parameter.tooltip.useTranscriber": string;
|
|
58
|
+
"parameter.field.useUDTool": string;
|
|
59
|
+
"parameter.tooltip.useUDTool": string;
|
|
56
60
|
"parameter.field.useSound": string;
|
|
57
61
|
"parameter.tooltip.useSound": string;
|
|
58
62
|
"parameter.field.useTranslation": string;
|
|
59
63
|
"parameter.tooltip.useTranslation": string;
|
|
60
64
|
"parameter.field.useLexicon": string;
|
|
61
65
|
"parameter.tooltip.useLexicon": string;
|
|
62
|
-
"parameter.field.
|
|
63
|
-
"parameter.tooltip.
|
|
66
|
+
"parameter.field.useUDParser": string;
|
|
67
|
+
"parameter.tooltip.useUDParser": string;
|
|
64
68
|
"parameter.field.defaultUD": string;
|
|
65
69
|
"parameter.tooltip.defaultUD": string;
|
|
66
70
|
"parameter.field.useParticipantChat": string;
|
|
@@ -93,14 +97,16 @@ export declare const ParametersTexts: {
|
|
|
93
97
|
"parameter.tooltip.useDesigner": string;
|
|
94
98
|
"parameter.field.useTranscriber": string;
|
|
95
99
|
"parameter.tooltip.useTranscriber": string;
|
|
100
|
+
"parameter.field.useUDTool": string;
|
|
101
|
+
"parameter.tooltip.useUDTool": string;
|
|
96
102
|
"parameter.field.useSound": string;
|
|
97
103
|
"parameter.tooltip.useSound": string;
|
|
98
104
|
"parameter.field.useTranslation": string;
|
|
99
105
|
"parameter.tooltip.useTranslation": string;
|
|
100
106
|
"parameter.field.useLexicon": string;
|
|
101
107
|
"parameter.tooltip.useLexicon": string;
|
|
102
|
-
"parameter.field.
|
|
103
|
-
"parameter.tooltip.
|
|
108
|
+
"parameter.field.useUDParser": string;
|
|
109
|
+
"parameter.tooltip.useUDParser": string;
|
|
104
110
|
"parameter.field.defaultUD": string;
|
|
105
111
|
"parameter.tooltip.defaultUD": string;
|
|
106
112
|
"parameter.field.useParticipantChat": string;
|
|
@@ -13,14 +13,16 @@ export const ParametersTexts = {
|
|
|
13
13
|
"parameter.tooltip.useDesigner": "Enables the use of the editor version for working with texts featuring complex layouts, such as newspapers.",
|
|
14
14
|
"parameter.field.useTranscriber": "Transcriber",
|
|
15
15
|
"parameter.tooltip.useTranscriber": "Enables the use of the editor version for working with audio transcription.",
|
|
16
|
+
"parameter.field.useUDTool": "Universal Dependencies",
|
|
17
|
+
"parameter.tooltip.useUDTool": "Enables the Universal Dependencies editor for working with CoNLL-U annotation.",
|
|
16
18
|
"parameter.field.useSound": "Enable Sound Upload",
|
|
17
19
|
"parameter.tooltip.useSound": "Enables the use of audio in the corpus.",
|
|
18
20
|
"parameter.field.useTranslation": "Sentence Translations",
|
|
19
21
|
"parameter.tooltip.useTranslation": "Activates the translations for sentences in the Editor and Transcriber.",
|
|
20
22
|
"parameter.field.useLexicon": "POS tagger with Lexicon",
|
|
21
23
|
"parameter.tooltip.useLexicon": "Used when a parser is available, but no automatic tagger is present (which requires a minimum amount of words for training). If this condition is not met, the lexicon must be used for automatic tagging.",
|
|
22
|
-
"parameter.field.
|
|
23
|
-
"parameter.tooltip.
|
|
24
|
+
"parameter.field.useUDParser": "Use Universal Dependencies",
|
|
25
|
+
"parameter.tooltip.useUDParser": "Enables the use of Universal Dependencies for sentence editing.",
|
|
24
26
|
"parameter.field.defaultUD": "Default for Universal Dependencies",
|
|
25
27
|
"parameter.tooltip.defaultUD": "Indicates that a corpus is set to use Universal Dependencies as the default framework for sentence editing.",
|
|
26
28
|
"parameter.field.useParticipantChat": "CHAT attributes",
|
|
@@ -53,14 +55,16 @@ export const ParametersTexts = {
|
|
|
53
55
|
"parameter.tooltip.useDesigner": "Habilita o uso da versão do editor para trabalhar com textos de layouts complexos, como jornais.",
|
|
54
56
|
"parameter.field.useTranscriber": "Transcriber",
|
|
55
57
|
"parameter.tooltip.useTranscriber": "Habilita o uso da versão do editor para trabalhar com transcrição de áudio.",
|
|
58
|
+
"parameter.field.useUDTool": "Dependências Universais",
|
|
59
|
+
"parameter.tooltip.useUDTool": "Habilita o editor de Dependências Universais para trabalhar com anotação CoNLL-U.",
|
|
56
60
|
"parameter.field.useSound": "Habilitar Upload de Som",
|
|
57
61
|
"parameter.tooltip.useSound": "Habilita o uso de áudio no corpus.",
|
|
58
62
|
"parameter.field.useTranslation": "Traduções de Frases",
|
|
59
63
|
"parameter.tooltip.useTranslation": "Ativa as traduções para frases no editor e Transcriber.",
|
|
60
64
|
"parameter.field.useLexicon": "POS tagger com Léxico",
|
|
61
65
|
"parameter.tooltip.useLexicon": "Usado quando um parser está disponível, mas não há um tagger automático presente (o que requer uma quantidade mínima de palavras para treinamento). Se esta condição não for atendida, o léxico deve ser usado para marcação automática.",
|
|
62
|
-
"parameter.field.
|
|
63
|
-
"parameter.tooltip.
|
|
66
|
+
"parameter.field.useUDParser": "Usar Dependências Universais",
|
|
67
|
+
"parameter.tooltip.useUDParser": "Habilita o uso de Dependências Universais para edição de frases.",
|
|
64
68
|
"parameter.field.defaultUD": "Padrão para Dependências Universais",
|
|
65
69
|
"parameter.tooltip.defaultUD": "Indica que um corpus está configurado para usar Dependências Universais como o framework padrão para edição de frases.",
|
|
66
70
|
"parameter.field.useParticipantChat": "Atributos CHAT",
|
|
@@ -93,14 +97,16 @@ export const ParametersTexts = {
|
|
|
93
97
|
"parameter.tooltip.useDesigner": "Abilita l'uso della versione di editor per lavorare con testi con layout complessi, come giornali.",
|
|
94
98
|
"parameter.field.useTranscriber": "Transcriber",
|
|
95
99
|
"parameter.tooltip.useTranscriber": "Abilita l'uso della versione di editor per lavorare con la trascrizione audio.",
|
|
100
|
+
"parameter.field.useUDTool": "Dipendenze Universali",
|
|
101
|
+
"parameter.tooltip.useUDTool": "Abilita l'editor di Dipendenze Universali per lavorare con l'annotazione CoNLL-U.",
|
|
96
102
|
"parameter.field.useSound": "Abilita Caricamento Audio",
|
|
97
103
|
"parameter.tooltip.useSound": "Abilita l'uso dell'audio nel corpus.",
|
|
98
104
|
"parameter.field.useTranslation": "Traduzioni delle Frasi",
|
|
99
105
|
"parameter.tooltip.useTranslation": "Attiva le traduzioni per le frasi in editor e Transcriber.",
|
|
100
106
|
"parameter.field.useLexicon": "POS tagger con Lessico",
|
|
101
107
|
"parameter.tooltip.useLexicon": "Utilizzato quando un parser è disponibile, ma nessun tagger automatico è presente (che richiede una quantità minima di parole per l'addestramento). Se questa condizione non è soddisfatta, il lessico deve essere utilizzato per la marcatura automatica.",
|
|
102
|
-
"parameter.field.
|
|
103
|
-
"parameter.tooltip.
|
|
108
|
+
"parameter.field.useUDParser": "Utilizza Dipendenze Universali",
|
|
109
|
+
"parameter.tooltip.useUDParser": "Abilita l'uso di Dipendenze Universali per l'editing delle frasi.",
|
|
104
110
|
"parameter.field.defaultUD": "Predefinito per Dipendenze Universali",
|
|
105
111
|
"parameter.tooltip.defaultUD": "Indica che un corpus è impostato per utilizzare Dipendenze Universali come framework predefinito per l'editing delle frasi.",
|
|
106
112
|
"parameter.field.useParticipantChat": "Attributi CHAT",
|
|
@@ -24,6 +24,7 @@ const PARAMETERS = [
|
|
|
24
24
|
'useSound',
|
|
25
25
|
'useTranslation',
|
|
26
26
|
'useLexicon',
|
|
27
|
+
'useUDParser',
|
|
27
28
|
'defaultUD',
|
|
28
29
|
];
|
|
29
30
|
const PARAMETERS_CATALOG = ['useGrid', 'useCategory'];
|
|
@@ -39,5 +40,5 @@ const PARAMETERS_TOOLS = [
|
|
|
39
40
|
'useTranslations',
|
|
40
41
|
'useDesigner',
|
|
41
42
|
'useTranscriber',
|
|
42
|
-
'
|
|
43
|
+
'useUDTool',
|
|
43
44
|
];
|
|
@@ -21,12 +21,14 @@ type EditionToolsMenu = {
|
|
|
21
21
|
action: string;
|
|
22
22
|
title: string;
|
|
23
23
|
icon: string;
|
|
24
|
+
image?: string;
|
|
24
25
|
path: string;
|
|
25
26
|
};
|
|
26
27
|
export declare const EDITION_TOOLS: EditionToolsMenu[];
|
|
27
28
|
declare const ToolsUtils: {
|
|
28
29
|
redirectPage: ({ corpus, uid, hasParameter, tool, ctxPath, sameWindow, }: RedirectPageParams) => void;
|
|
29
30
|
getIcon: (defaultTool?: PlatformTools) => string;
|
|
31
|
+
getImage: (defaultTool?: PlatformTools) => string | undefined;
|
|
30
32
|
openDocument: ({ page, corpus, hasParameter, defaultTool, ctxPath, }: OpenDocumentParams) => void;
|
|
31
33
|
getDocumentUrl: ({ page, corpus, hasParameter, defaultTool, ctxPath, }: OpenDocumentParams) => string | undefined;
|
|
32
34
|
getTitle: (defaultTool?: PlatformTools) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import logoUd from "./logo-ud.png";
|
|
1
2
|
export const EDITION_TOOLS = [
|
|
2
3
|
{
|
|
3
4
|
parameter: "useEdictor",
|
|
@@ -32,11 +33,12 @@ export const EDITION_TOOLS = [
|
|
|
32
33
|
path: "/transcriber",
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
|
-
parameter: "
|
|
36
|
+
parameter: "useUDTool",
|
|
36
37
|
name: "UD",
|
|
37
38
|
action: "actions:actions.label.ud",
|
|
38
39
|
title: "actions:actions.name.ud",
|
|
39
|
-
icon: "
|
|
40
|
+
icon: "",
|
|
41
|
+
image: logoUd,
|
|
40
42
|
path: "/ud",
|
|
41
43
|
},
|
|
42
44
|
];
|
|
@@ -48,6 +50,10 @@ const getIcon = (defaultTool) => {
|
|
|
48
50
|
const tool = defaultTool || "EDICTOR";
|
|
49
51
|
return EDITION_TOOLS.filter((t) => t.name === tool)[0].icon;
|
|
50
52
|
};
|
|
53
|
+
const getImage = (defaultTool) => {
|
|
54
|
+
const tool = defaultTool || "EDICTOR";
|
|
55
|
+
return EDITION_TOOLS.filter((t) => t.name === tool)[0].image;
|
|
56
|
+
};
|
|
51
57
|
const withCtxPath = (absolutePath, ctxPath) => {
|
|
52
58
|
if (!ctxPath)
|
|
53
59
|
return absolutePath;
|
|
@@ -96,7 +102,7 @@ const getDocumentUrl = ({ page, corpus, hasParameter, defaultTool, ctxPath, }) =
|
|
|
96
102
|
else if (hasParameter(corpus, "useTranscriber")) {
|
|
97
103
|
return withCtxPath(`/transcriber/${page}`, ctxPath);
|
|
98
104
|
}
|
|
99
|
-
else if (hasParameter(corpus, "
|
|
105
|
+
else if (hasParameter(corpus, "useUDTool")) {
|
|
100
106
|
return withCtxPath(`/ud/${page}`, ctxPath);
|
|
101
107
|
}
|
|
102
108
|
return undefined;
|
|
@@ -118,7 +124,7 @@ const redirectPage = ({ corpus, uid, hasParameter, tool, ctxPath, sameWindow, })
|
|
|
118
124
|
else if (hasParameter(corpus, "useTranscriber")) {
|
|
119
125
|
openTranscriber(uid, ctxPath, sameWindow);
|
|
120
126
|
}
|
|
121
|
-
else if (hasParameter(corpus, "
|
|
127
|
+
else if (hasParameter(corpus, "useUDTool")) {
|
|
122
128
|
openUd(uid, ctxPath, sameWindow);
|
|
123
129
|
}
|
|
124
130
|
};
|
|
@@ -137,6 +143,7 @@ const openDocument = ({ page, corpus, hasParameter, defaultTool, ctxPath, }) =>
|
|
|
137
143
|
const ToolsUtils = {
|
|
138
144
|
redirectPage,
|
|
139
145
|
getIcon,
|
|
146
|
+
getImage,
|
|
140
147
|
openDocument,
|
|
141
148
|
getDocumentUrl,
|
|
142
149
|
getTitle,
|
|
Binary file
|