tycho-components 0.2.0-SNAPSHOT-25 → 0.2.1-SNAPSHOT

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.
Files changed (39) hide show
  1. package/dist/SentenceView/SentenceEditionTiers.d.ts +7 -0
  2. package/dist/SentenceView/SentenceEditionTiers.js +21 -0
  3. package/dist/SentenceView/SentenceMorphemeTags.d.ts +6 -0
  4. package/dist/SentenceView/SentenceMorphemeTags.js +23 -0
  5. package/dist/SentenceView/SentenceMorphemeTiers.d.ts +9 -0
  6. package/dist/SentenceView/SentenceMorphemeTiers.js +41 -0
  7. package/dist/SentenceView/SentenceTags.d.ts +6 -0
  8. package/dist/SentenceView/SentenceTags.js +20 -0
  9. package/dist/SentenceView/SentenceValues.d.ts +6 -0
  10. package/dist/SentenceView/SentenceValues.js +14 -0
  11. package/dist/SentenceView/SentenceView.d.ts +12 -0
  12. package/dist/SentenceView/SentenceView.js +12 -0
  13. package/dist/SentenceView/SentenceWordTiers.d.ts +8 -0
  14. package/dist/SentenceView/SentenceWordTiers.js +15 -0
  15. package/dist/SentenceView/style.scss +73 -0
  16. package/dist/TreeView/TreeView.js +2 -1
  17. package/dist/TreeView/style.scss +4 -0
  18. package/dist/configs/Localization.d.ts +48 -0
  19. package/dist/configs/Localization.js +4 -0
  20. package/dist/configs/localization/SentenceTexts.d.ts +47 -0
  21. package/dist/configs/localization/SentenceTexts.js +47 -0
  22. package/dist/configs/localization/TreeTexts.d.ts +3 -0
  23. package/dist/configs/localization/TreeTexts.js +3 -0
  24. package/dist/configs/mock/MockStructs.d.ts +4 -0
  25. package/dist/configs/mock/MockStructs.js +1135 -0
  26. package/dist/configs/types/EditionTiers.d.ts +12 -0
  27. package/dist/configs/types/EditionTiers.js +13 -0
  28. package/dist/configs/types/Parameter.d.ts +12 -0
  29. package/dist/configs/types/Parameter.js +1 -0
  30. package/dist/configs/types/Struct.d.ts +3 -2
  31. package/dist/functions/EditionTierUtils.d.ts +8 -0
  32. package/dist/functions/EditionTierUtils.js +32 -0
  33. package/dist/functions/SentenceUtils.d.ts +3 -0
  34. package/dist/functions/SentenceUtils.js +21 -1
  35. package/dist/index.d.ts +3 -0
  36. package/dist/index.js +2 -0
  37. package/package.json +1 -1
  38. package/dist/TreeView/types/TreeViewExample.d.ts +0 -3
  39. package/dist/TreeView/types/TreeViewExample.js +0 -454
@@ -0,0 +1,7 @@
1
+ import { Token } from '../configs/types/Struct';
2
+ import './style.scss';
3
+ type Props = {
4
+ tokens: Token[];
5
+ };
6
+ export default function SentenceEditionTiers({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import EditionTierUtils from '../functions/EditionTierUtils';
4
+ import SentenceUtils from '../functions/SentenceUtils';
5
+ import './style.scss';
6
+ export default function SentenceEditionTiers({ tokens }) {
7
+ const { t } = useTranslation('sentence');
8
+ const { skipToken } = SentenceUtils;
9
+ const { getIterateTiers, getEditionTierName, getEditionForToken } = EditionTierUtils;
10
+ return (_jsx(_Fragment, { children: getIterateTiers().map((tier, idx) => {
11
+ const key = getEditionTierName(tier);
12
+ return (_jsxs("tr", { className: "word-tier", children: [_jsx("td", { children: t(`label.tier.${key.toLowerCase()}`) }), tokens.map((thisToken, idy) => {
13
+ if (skipToken(thisToken)) {
14
+ return true;
15
+ }
16
+ const tierEdition = getEditionForToken(thisToken);
17
+ const value = (tierEdition?.ops || {})[tier] || '';
18
+ return (_jsx("td", { className: "text-center", colSpan: thisToken.splits ? thisToken.splits.length : 1, children: _jsx("span", { className: value ? '' : 'empty', children: value || t('label.empty') }) }, `${thisToken.p}_${idx.valueOf()}_${idy.valueOf()}`));
19
+ })] }, idx.valueOf()));
20
+ }) }));
21
+ }
@@ -0,0 +1,6 @@
1
+ import { Token } from '../configs/types/Struct';
2
+ type Props = {
3
+ tokens: Token[];
4
+ };
5
+ export default function SentenceMorphemeTags({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import SentenceUtils from '../functions/SentenceUtils';
4
+ export default function SentenceMorphemeTags({ tokens }) {
5
+ const { t } = useTranslation('sentence');
6
+ const { skipToken } = SentenceUtils;
7
+ return (_jsxs("tr", { className: "tr-split", children: [_jsx("td", { children: t('label.tag') }), tokens.map((thisToken, idx) => {
8
+ const elements = [];
9
+ if (!skipToken(thisToken)) {
10
+ if (thisToken.splits && thisToken.splits.length > 0) {
11
+ {
12
+ thisToken.splits.map((thisSplit, idy) => {
13
+ elements.push(_jsx("td", { children: _jsx("span", { className: thisSplit.t ? '' : 'empty', children: thisSplit.t || t('label.empty') }) }, `${idx.valueOf()}_${idy.valueOf()}`));
14
+ });
15
+ }
16
+ }
17
+ else {
18
+ elements.push(_jsx("td", { className: "empty", children: "\u00A0" }, idx.valueOf()));
19
+ }
20
+ }
21
+ return elements;
22
+ })] }));
23
+ }
@@ -0,0 +1,9 @@
1
+ import { Parameter } from '../configs/types/Parameter';
2
+ import { Struct } from '../configs/types/Struct';
3
+ import './style.scss';
4
+ type Props = {
5
+ struct: Struct;
6
+ morphemeTiers: Parameter[];
7
+ };
8
+ export default function SentenceMorphemeTiers({ struct, morphemeTiers, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import SentenceUtils from '../functions/SentenceUtils';
4
+ import SentenceMorphemeTags from './SentenceMorphemeTags';
5
+ import './style.scss';
6
+ export default function SentenceMorphemeTiers({ struct, morphemeTiers, }) {
7
+ const { t } = useTranslation(['sentence']);
8
+ const { skipToken } = SentenceUtils;
9
+ return (_jsxs(_Fragment, { children: [_jsxs("tr", { children: [_jsx("td", { children: t('label.morphemes') }), struct.tokens.map((thisToken, idx) => {
10
+ const elements = [];
11
+ if (!skipToken(thisToken)) {
12
+ if (thisToken.splits && thisToken.splits.length > 0) {
13
+ {
14
+ thisToken.splits.map((thisSplit, idy) => {
15
+ elements.push(_jsx("td", { className: "split", children: _jsx("span", { children: thisSplit.v }) }, `${idx.valueOf()}_${idy.valueOf()}`));
16
+ });
17
+ }
18
+ }
19
+ else {
20
+ elements.push(_jsx("td", { className: "empty", children: "\u00A0" }, idx.valueOf()));
21
+ }
22
+ }
23
+ return elements;
24
+ })] }), _jsx(SentenceMorphemeTags, { tokens: struct.tokens }), morphemeTiers.map((tier, idx) => (_jsxs("tr", { className: "word-tier", children: [_jsx("td", { children: tier.name }), struct.tokens.map((thisToken, idy) => {
25
+ const elements = [];
26
+ if (!skipToken(thisToken)) {
27
+ if (thisToken.splits && thisToken.splits.length > 0) {
28
+ {
29
+ thisToken.splits.map((thisSplit, idz) => {
30
+ const value = thisSplit.attributes && thisSplit.attributes[tier.symbol];
31
+ elements.push(_jsx("td", { className: "text-center", children: _jsx("span", { className: value ? '' : 'empty', children: value || t('label.empty') }) }, `${idx.valueOf()}_${idy.valueOf()}_${idz.valueOf()}`));
32
+ });
33
+ }
34
+ }
35
+ else {
36
+ elements.push(_jsx("td", { className: "empty", children: "\u00A0" }, idx.valueOf()));
37
+ }
38
+ }
39
+ return elements;
40
+ })] }, idx.valueOf())))] }));
41
+ }
@@ -0,0 +1,6 @@
1
+ import { Token } from '../configs/types/Struct';
2
+ type Props = {
3
+ tokens: Token[];
4
+ };
5
+ export default function SentenceTags({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import SentenceUtils from '../functions/SentenceUtils';
4
+ export default function SentenceTags({ tokens }) {
5
+ const { t } = useTranslation('sentence');
6
+ const { skipToken, getColspan, getTag } = SentenceUtils;
7
+ return (_jsxs("tr", { children: [_jsx("td", { children: t('label.pos.tag') }), tokens.map((thisToken, idx) => {
8
+ const elements = [];
9
+ if (!skipToken(thisToken)) {
10
+ if (!thisToken.p && thisToken.mid) {
11
+ elements.push(_jsx("td", { className: "bg-light", colSpan: getColspan(thisToken), children: "\u00A0" }, `t_${idx.valueOf()}`));
12
+ }
13
+ else {
14
+ const value = getTag(thisToken);
15
+ elements.push(_jsx("td", { className: "text-center", colSpan: getColspan(thisToken), children: _jsx("span", { className: value ? '' : 'empty', children: value || t('label.empty') }) }, `t_${idx.valueOf()}`));
16
+ }
17
+ }
18
+ return elements;
19
+ })] }));
20
+ }
@@ -0,0 +1,6 @@
1
+ import { Token } from '../configs/types/Struct';
2
+ type Props = {
3
+ tokens: Token[];
4
+ };
5
+ export default function SentenceView({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import SentenceUtils from '../functions/SentenceUtils';
4
+ export default function SentenceView({ tokens }) {
5
+ const { t } = useTranslation('sentence');
6
+ const { skipToken, getColspan } = SentenceUtils;
7
+ return (_jsxs("tr", { children: [_jsx("td", { children: t('label.word') }), tokens.map((thisToken, idx) => {
8
+ const elements = [];
9
+ if (!skipToken(thisToken)) {
10
+ elements.push(_jsx("td", { className: thisToken.eid ? 'edited' : '', colSpan: getColspan(thisToken), children: _jsx("span", { children: thisToken.split ? thisToken.split.v : thisToken.v }) }, `v_${idx.valueOf()}`));
11
+ }
12
+ return elements;
13
+ })] }));
14
+ }
@@ -0,0 +1,12 @@
1
+ import { Parameter } from '../configs/types/Parameter';
2
+ import { Struct } from '../configs/types/Struct';
3
+ import './style.scss';
4
+ type Props = {
5
+ wordTiers: Parameter[];
6
+ morphemeTiers: Parameter[];
7
+ struct: Struct;
8
+ useMorphemes?: boolean;
9
+ useEditionTiers?: boolean;
10
+ };
11
+ export default function SentenceView({ wordTiers, morphemeTiers, struct, useMorphemes, useEditionTiers, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import SentenceUtils from '../functions/SentenceUtils';
3
+ import SentenceEditionTiers from './SentenceEditionTiers';
4
+ import SentenceMorphemeTiers from './SentenceMorphemeTiers';
5
+ import SentenceTags from './SentenceTags';
6
+ import SentenceValues from './SentenceValues';
7
+ import SentenceWordTiers from './SentenceWordTiers';
8
+ import './style.scss';
9
+ export default function SentenceView({ wordTiers, morphemeTiers, struct, useMorphemes, useEditionTiers, }) {
10
+ const tokens = SentenceUtils.sort(struct);
11
+ return (_jsx("div", { className: "sentence-view-container", children: _jsx("div", { className: "body", children: _jsx("table", { className: "table table-striped", children: _jsxs("tbody", { children: [_jsx(SentenceValues, { tokens: tokens }), _jsx(SentenceTags, { tokens: tokens }), useEditionTiers && _jsx(SentenceEditionTiers, { tokens: tokens }), wordTiers && (_jsx(SentenceWordTiers, { tokens: tokens, wordTiers: wordTiers })), useMorphemes && morphemeTiers && (_jsx(SentenceMorphemeTiers, { struct: struct, morphemeTiers: morphemeTiers }))] }) }) }) }));
12
+ }
@@ -0,0 +1,8 @@
1
+ import { Parameter } from '../configs/types/Parameter';
2
+ import { Token } from '../configs/types/Struct';
3
+ type Props = {
4
+ tokens: Token[];
5
+ wordTiers: Parameter[];
6
+ };
7
+ export default function SentenceWordTiers({ tokens, wordTiers }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import SentenceUtils from '../functions/SentenceUtils';
4
+ export default function SentenceWordTiers({ tokens, wordTiers }) {
5
+ const { t } = useTranslation('sentence');
6
+ const { skipToken } = SentenceUtils;
7
+ return (_jsx(_Fragment, { children: wordTiers.map((tier, idx) => (_jsxs("tr", { className: "word-tier", children: [_jsx("td", { children: tier.name }), tokens.map((thisToken, idy) => {
8
+ if (!skipToken(thisToken)) {
9
+ const value = (thisToken.attributes && thisToken.attributes[tier.symbol]) ||
10
+ '';
11
+ return (_jsx("td", { className: "text-center", colSpan: thisToken.splits ? thisToken.splits.length : 1, children: _jsx("span", { className: value ? '' : 'empty', children: value || t('label.empty') }) }, idy.valueOf()));
12
+ }
13
+ return null;
14
+ })] }, idx.valueOf()))) }));
15
+ }
@@ -0,0 +1,73 @@
1
+ .sentence-view-container {
2
+ .body {
3
+ overflow-x: scroll;
4
+ overflow-y: hidden;
5
+ margin-left: 8vw;
6
+
7
+ .table {
8
+ width: 100%;
9
+ margin-bottom: 8px;
10
+ font-size: var(--font-size-medium);
11
+
12
+ tbody {
13
+ tr {
14
+ td {
15
+ padding: 2px;
16
+ min-width: 5vw;
17
+ text-align: center;
18
+ white-space: nowrap;
19
+ border: 1px solid var(--color-primary-alternative);
20
+ line-height: 32px;
21
+
22
+ &.edited {
23
+ background-color: #fdfdd7;
24
+ }
25
+
26
+ &:first-child {
27
+ position: absolute;
28
+ background-color: #fff;
29
+ display: inline-block;
30
+ font-weight: bolder;
31
+ width: 8vw;
32
+ border: none;
33
+ left: 0;
34
+ top: auto;
35
+ cursor: default;
36
+ margin-left: 12px;
37
+ }
38
+
39
+ &.split {
40
+ .dot {
41
+ border: none;
42
+ float: right;
43
+ padding: 1px 1px 0px;
44
+ display: flex;
45
+
46
+ svg {
47
+ height: 10px;
48
+ width: 10px;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+
59
+ @media (min-width: 768px) and (max-width: 1600px) {
60
+ .sentence-view-container {
61
+ .body {
62
+ margin-left: 12vw;
63
+ .table {
64
+ width: 2000px;
65
+ overflow-y: auto;
66
+
67
+ tbody tr td:first-child {
68
+ width: 12vw;
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
@@ -9,6 +9,7 @@ import CytoscapeTreeConverter from './cytoscape/CytoscapeTreeConverter';
9
9
  import SyntreesCytoscape from './cytoscape/SyntreesCytoscape';
10
10
  import './style.scss';
11
11
  import AppPlaceholder from '../AppPlaceholder';
12
+ import DateUtils from '../functions/DateUtils';
12
13
  export default function TreeView({ struct, expression, onExpand, selector = 'canvas-tree', translations, }) {
13
14
  const { t } = useTranslation('tree');
14
15
  const [cy, setCy] = useState(null);
@@ -80,7 +81,7 @@ export default function TreeView({ struct, expression, onExpand, selector = 'can
80
81
  const right = 12 + i * 44;
81
82
  return (_jsx("button", { className: "floating-button", type: "button", title: t(btn.title), onClick: btn.onClick, style: { right: `${right}px` }, children: _jsx(FontAwesomeIcon, { icon: btn.icon, className: btn.extraClass }) }, i));
82
83
  }), _jsx("div", { id: selector, className: "canvas-tree" }), showInfo && (_jsxs("div", { className: "info", children: [_jsx("span", { children: SentenceUtils.getAsText(struct) }), translations &&
83
- Object.entries(translations).map(([k, v]) => (_jsxs("div", { className: "translation", children: [_jsxs("b", { children: [k, ":"] }), _jsx("span", { children: v })] }, k)))] }))] }));
84
+ Object.entries(translations).map(([k, v]) => (_jsxs("div", { className: "translation", children: [_jsxs("b", { children: [k, ":"] }), _jsx("span", { children: v })] }, k))), struct.parsed && (_jsxs("span", { className: "date", children: [t('date.parsed'), ' ', DateUtils.formatDateTime(struct.parsed, 'dd/MM/yyyy HH:mm:ss')] }))] }))] }));
84
85
  }
85
86
  const getButtons = (generateImage, reset, downloadPsd, displayInfo, onExpand, expression) => [
86
87
  {
@@ -32,5 +32,9 @@
32
32
  .translation b {
33
33
  margin-right: 4px;
34
34
  }
35
+
36
+ .date {
37
+ @include helper-medium-1;
38
+ }
35
39
  }
36
40
  }
@@ -139,6 +139,22 @@ export declare const commonResources: {
139
139
  'button.download.penn': string;
140
140
  'button.info': string;
141
141
  'placeholder.sentence.notparsed': string;
142
+ 'date.parsed': string;
143
+ };
144
+ sentence: {
145
+ 'label.word': string;
146
+ 'label.pos.tag': string;
147
+ 'label.tag': string;
148
+ 'label.morphemes': string;
149
+ 'label.empty': string;
150
+ 'label.tier.spelling': string;
151
+ 'label.tier.expansion': string;
152
+ 'label.tier.correction': string;
153
+ 'label.tier.punctuation': string;
154
+ 'label.tier.illegible': string;
155
+ 'label.tier.modernization': string;
156
+ 'label.tier.padronization': string;
157
+ 'label.tier.inflection': string;
142
158
  };
143
159
  upload: {
144
160
  'label.dropzone': string;
@@ -279,12 +295,28 @@ export declare const commonResources: {
279
295
  'modal.input.name': string;
280
296
  'participant.code.exists': string;
281
297
  };
298
+ sentence: {
299
+ 'label.word': string;
300
+ 'label.pos.tag': string;
301
+ 'label.tag': string;
302
+ 'label.morphemes': string;
303
+ 'label.empty': string;
304
+ 'label.tier.spelling': string;
305
+ 'label.tier.expansion': string;
306
+ 'label.tier.correction': string;
307
+ 'label.tier.punctuation': string;
308
+ 'label.tier.illegible': string;
309
+ 'label.tier.modernization': string;
310
+ 'label.tier.padronization': string;
311
+ 'label.tier.inflection': string;
312
+ };
282
313
  tree: {
283
314
  'button.expand.tree': string;
284
315
  'button.recenter.tree': string;
285
316
  'button.download.tree': string;
286
317
  'button.download.penn': string;
287
318
  'placeholder.sentence.notparsed': string;
319
+ 'date.parsed': string;
288
320
  };
289
321
  upload: {
290
322
  'label.dropzone': string;
@@ -427,11 +459,27 @@ export declare const commonResources: {
427
459
  'modal.select.transfer': string;
428
460
  'participant.code.exists': string;
429
461
  };
462
+ sentence: {
463
+ 'label.word': string;
464
+ 'label.pos.tag': string;
465
+ 'label.tag': string;
466
+ 'label.morphemes': string;
467
+ 'label.empty': string;
468
+ 'label.tier.spelling': string;
469
+ 'label.tier.expansion': string;
470
+ 'label.tier.correction': string;
471
+ 'label.tier.punctuation': string;
472
+ 'label.tier.illegible': string;
473
+ 'label.tier.modernization': string;
474
+ 'label.tier.padronization': string;
475
+ 'label.tier.inflection': string;
476
+ };
430
477
  tree: {
431
478
  'button.expand.tree': string;
432
479
  'button.recenter.tree': string;
433
480
  'button.download.tree': string;
434
481
  'button.download.penn': string;
482
+ 'date.parsed': string;
435
483
  };
436
484
  upload: {
437
485
  'label.dropzone': string;
@@ -7,6 +7,7 @@ import { HeaderTexts } from './localization/HeaderTexts';
7
7
  import { ParticipantsTexts } from './localization/ParticipantsTexts';
8
8
  import { UploadTexts } from './localization/UploadTexts';
9
9
  import { TreeTexts } from './localization/TreeTexts';
10
+ import { SentenceTexts } from './localization/SentenceTexts';
10
11
  export const commonResources = {
11
12
  en: {
12
13
  comments: CommentsTexts.en,
@@ -14,6 +15,7 @@ export const commonResources = {
14
15
  header: HeaderTexts.en,
15
16
  participants: ParticipantsTexts.en,
16
17
  tree: TreeTexts.en,
18
+ sentence: SentenceTexts.en,
17
19
  upload: UploadTexts.en,
18
20
  },
19
21
  'pt-BR': {
@@ -21,6 +23,7 @@ export const commonResources = {
21
23
  common: CommonTexts['pt-BR'],
22
24
  header: HeaderTexts['pt-BR'],
23
25
  participants: ParticipantsTexts['pt-BR'],
26
+ sentence: SentenceTexts['pt-BR'],
24
27
  tree: TreeTexts['pt-BR'],
25
28
  upload: UploadTexts['pt-BR'],
26
29
  },
@@ -29,6 +32,7 @@ export const commonResources = {
29
32
  common: CommonTexts.it,
30
33
  header: HeaderTexts.it,
31
34
  participants: ParticipantsTexts.it,
35
+ sentence: SentenceTexts.it,
32
36
  tree: TreeTexts.it,
33
37
  upload: UploadTexts.it,
34
38
  },
@@ -0,0 +1,47 @@
1
+ export declare const SentenceTexts: {
2
+ en: {
3
+ 'label.word': string;
4
+ 'label.pos.tag': string;
5
+ 'label.tag': string;
6
+ 'label.morphemes': string;
7
+ 'label.empty': string;
8
+ 'label.tier.spelling': string;
9
+ 'label.tier.expansion': string;
10
+ 'label.tier.correction': string;
11
+ 'label.tier.punctuation': string;
12
+ 'label.tier.illegible': string;
13
+ 'label.tier.modernization': string;
14
+ 'label.tier.padronization': string;
15
+ 'label.tier.inflection': string;
16
+ };
17
+ 'pt-BR': {
18
+ 'label.word': string;
19
+ 'label.pos.tag': string;
20
+ 'label.tag': string;
21
+ 'label.morphemes': string;
22
+ 'label.empty': string;
23
+ 'label.tier.spelling': string;
24
+ 'label.tier.expansion': string;
25
+ 'label.tier.correction': string;
26
+ 'label.tier.punctuation': string;
27
+ 'label.tier.illegible': string;
28
+ 'label.tier.modernization': string;
29
+ 'label.tier.padronization': string;
30
+ 'label.tier.inflection': string;
31
+ };
32
+ it: {
33
+ 'label.word': string;
34
+ 'label.pos.tag': string;
35
+ 'label.tag': string;
36
+ 'label.morphemes': string;
37
+ 'label.empty': string;
38
+ 'label.tier.spelling': string;
39
+ 'label.tier.expansion': string;
40
+ 'label.tier.correction': string;
41
+ 'label.tier.punctuation': string;
42
+ 'label.tier.illegible': string;
43
+ 'label.tier.modernization': string;
44
+ 'label.tier.padronization': string;
45
+ 'label.tier.inflection': string;
46
+ };
47
+ };
@@ -0,0 +1,47 @@
1
+ export const SentenceTexts = {
2
+ en: {
3
+ 'label.word': 'Word',
4
+ 'label.pos.tag': 'POS Tag',
5
+ 'label.tag': 'Tag',
6
+ 'label.morphemes': 'Morphemes',
7
+ 'label.empty': '-',
8
+ 'label.tier.spelling': 'spelling',
9
+ 'label.tier.expansion': 'expansion',
10
+ 'label.tier.correction': 'correction',
11
+ 'label.tier.punctuation': 'punctuation',
12
+ 'label.tier.illegible': 'illegible',
13
+ 'label.tier.modernization': 'modernization',
14
+ 'label.tier.padronization': 'padronization',
15
+ 'label.tier.inflection': 'inflection',
16
+ },
17
+ 'pt-BR': {
18
+ 'label.word': 'Palavra',
19
+ 'label.pos.tag': 'Etiqueta POS',
20
+ 'label.tag': 'Etiqueta',
21
+ 'label.morphemes': 'Morfemas',
22
+ 'label.empty': '-',
23
+ 'label.tier.spelling': 'grafia',
24
+ 'label.tier.expansion': 'expansão',
25
+ 'label.tier.correction': 'correção',
26
+ 'label.tier.punctuation': 'pontuação',
27
+ 'label.tier.illegible': 'ilegível',
28
+ 'label.tier.modernization': 'modernização',
29
+ 'label.tier.padronization': 'padronização',
30
+ 'label.tier.inflection': 'flexão',
31
+ },
32
+ it: {
33
+ 'label.word': 'Parola',
34
+ 'label.pos.tag': 'Etichetta POS',
35
+ 'label.tag': 'Etichetta',
36
+ 'label.morphemes': 'Morfemi',
37
+ 'label.empty': '-',
38
+ 'label.tier.spelling': 'ortografia',
39
+ 'label.tier.expansion': 'espansione',
40
+ 'label.tier.correction': 'correzione',
41
+ 'label.tier.punctuation': 'punteggiatura',
42
+ 'label.tier.illegible': 'illeggibile',
43
+ 'label.tier.modernization': 'modernizzazione',
44
+ 'label.tier.padronization': 'standardizzazione',
45
+ 'label.tier.inflection': 'flessione',
46
+ },
47
+ };
@@ -6,6 +6,7 @@ export declare const TreeTexts: {
6
6
  'button.download.penn': string;
7
7
  'button.info': string;
8
8
  'placeholder.sentence.notparsed': string;
9
+ 'date.parsed': string;
9
10
  };
10
11
  'pt-BR': {
11
12
  'button.expand.tree': string;
@@ -13,11 +14,13 @@ export declare const TreeTexts: {
13
14
  'button.download.tree': string;
14
15
  'button.download.penn': string;
15
16
  'placeholder.sentence.notparsed': string;
17
+ 'date.parsed': string;
16
18
  };
17
19
  it: {
18
20
  'button.expand.tree': string;
19
21
  'button.recenter.tree': string;
20
22
  'button.download.tree': string;
21
23
  'button.download.penn': string;
24
+ 'date.parsed': string;
22
25
  };
23
26
  };
@@ -6,6 +6,7 @@ export const TreeTexts = {
6
6
  'button.download.penn': 'Download in Penn Tree format',
7
7
  'button.info': 'Display translations and glosses',
8
8
  'placeholder.sentence.notparsed': 'This sentence has not been parsed.',
9
+ 'date.parsed': 'Parsing executed at:',
9
10
  },
10
11
  'pt-BR': {
11
12
  'button.expand.tree': 'Expandir árvore',
@@ -13,11 +14,13 @@ export const TreeTexts = {
13
14
  'button.download.tree': 'Baixar árvore como imagem',
14
15
  'button.download.penn': 'Baixar no formato Penn Tree',
15
16
  'placeholder.sentence.notparsed': 'O parser não foi realizado nesta sentença.',
17
+ 'date.parsed': 'Parser executado às:',
16
18
  },
17
19
  it: {
18
20
  'button.expand.tree': 'Espandi albero',
19
21
  'button.recenter.tree': 'Ricentra albero',
20
22
  'button.download.tree': 'Scarica albero come immagine',
21
23
  'button.download.penn': 'Scarica in formato Penn Tree',
24
+ 'date.parsed': 'Parser eseguito alle:',
22
25
  },
23
26
  };
@@ -0,0 +1,4 @@
1
+ import { Struct } from '../../configs/types/Struct';
2
+ export declare const structWithMorphemes: Struct;
3
+ export declare const structNotParsed: Struct;
4
+ export declare const structWithEditionTiers: Struct;