|
1 | 1 | // @ts-check |
2 | 2 | import { NodeTranslator } from '@translator'; |
3 | 3 | import { createNestedPropertiesTranslator } from '@converter/v3/handlers/utils.js'; |
4 | | -import { translator as mcAlternateContentTranslator } from '../../mc/altermateContent'; |
5 | | -import { translator as wAdjustRightIndTranslator } from '../adjustRightInd'; |
6 | | -import { translator as wAutoSpaceDETranslator } from '../autoSpaceDE'; |
7 | | -import { translator as wAutoSpaceDNTranslator } from '../autoSpaceDN'; |
8 | | -import { translator as wBidiTranslator } from '../bidi'; |
9 | | -import { translator as wCnfStyleTranslator } from '../cnfStyle'; |
10 | | -import { translator as wContextualSpacingTranslator } from '../contextualSpacing'; |
11 | | -import { translator as wDivIdTranslator } from '../divId'; |
12 | | -import { translator as wFramePrTranslator } from '../framePr'; |
13 | | -import { translator as wIndTranslator } from '../ind'; |
14 | | -import { translator as wJcTranslatorTranslator } from '../jc'; |
15 | | -import { translator as wKeepLinesTranslator } from '../keepLines'; |
16 | | -import { translator as wKeepNextTranslator } from '../keepNext'; |
17 | | -import { translator as wKinsokuTranslator } from '../kinsoku'; |
18 | | -import { translator as wMirrorIndentsTranslator } from '../mirrorIndents'; |
19 | | -import { translator as wNumPrTranslator } from '../numPr'; |
20 | | -import { translator as wOutlineLvlTranslator } from '../outlineLvl'; |
21 | | -import { translator as wOverflowPunctTranslator } from '../overflowPunct'; |
22 | | -import { translator as wPBdrTranslator } from '../pBdr'; |
23 | | -import { translator as wPStyleTranslator } from '../pStyle'; |
24 | | -import { translator as wPageBreakBeforeTranslator } from '../pageBreakBefore'; |
25 | | -import { translator as wShdTranslator } from '../shd'; |
26 | | -import { translator as wSnapToGridTranslator } from '../snapToGrid'; |
27 | | -import { translator as wSpacingTranslator } from '../spacing'; |
28 | | -import { translator as wSuppressAutoHyphensTranslator } from '../suppressAutoHyphens'; |
29 | | -import { translator as wSuppressLineNumbersTranslator } from '../suppressLineNumbers'; |
30 | | -import { translator as wSuppressOverlapTranslator } from '../suppressOverlap'; |
31 | | -import { translator as wTabsTranslator } from '../tabs'; |
32 | | -import { translator as wTextAlignmentTranslator } from '../textAlignment'; |
33 | | -import { translator as wTextDirectionTranslator } from '../textDirection'; |
34 | | -import { translator as wTextboxTightWrapTranslator } from '../textboxTightWrap'; |
35 | | -import { translator as wTopLinePunctTranslator } from '../topLinePunct'; |
36 | | -import { translator as wWidowControlTranslator } from '../widowControl'; |
37 | | -import { translator as wWordWrapTranslator } from '../wordWrap'; |
38 | | -import { translator as wRPrTranslator } from '../rpr'; |
| 4 | +import { basePropertyTranslators } from './pPr-base-translators.js'; |
39 | 5 | import { translator as wPPrChangeTranslator } from '../pPrChange'; |
40 | 6 |
|
41 | | -// Property translators for w:pPr child elements |
42 | | -// Each translator handles a specific property of the paragraph properties |
43 | 7 | /** @type {import('@translator').NodeTranslator[]} */ |
44 | | -const propertyTranslators = [ |
45 | | - mcAlternateContentTranslator, |
46 | | - wAdjustRightIndTranslator, |
47 | | - wAutoSpaceDETranslator, |
48 | | - wAutoSpaceDNTranslator, |
49 | | - wBidiTranslator, |
50 | | - wCnfStyleTranslator, |
51 | | - wContextualSpacingTranslator, |
52 | | - wDivIdTranslator, |
53 | | - wFramePrTranslator, |
54 | | - wIndTranslator, |
55 | | - wJcTranslatorTranslator, |
56 | | - wKeepLinesTranslator, |
57 | | - wKeepNextTranslator, |
58 | | - wKinsokuTranslator, |
59 | | - wMirrorIndentsTranslator, |
60 | | - wNumPrTranslator, |
61 | | - wOutlineLvlTranslator, |
62 | | - wOverflowPunctTranslator, |
63 | | - wPBdrTranslator, |
64 | | - wPStyleTranslator, |
65 | | - wPageBreakBeforeTranslator, |
66 | | - wShdTranslator, |
67 | | - wSnapToGridTranslator, |
68 | | - wSpacingTranslator, |
69 | | - wSuppressAutoHyphensTranslator, |
70 | | - wSuppressLineNumbersTranslator, |
71 | | - wSuppressOverlapTranslator, |
72 | | - wTabsTranslator, |
73 | | - wTextAlignmentTranslator, |
74 | | - wTextDirectionTranslator, |
75 | | - wTextboxTightWrapTranslator, |
76 | | - wTopLinePunctTranslator, |
77 | | - wWidowControlTranslator, |
78 | | - wWordWrapTranslator, |
79 | | - wRPrTranslator, |
80 | | - wPPrChangeTranslator, |
81 | | -]; |
| 8 | +const propertyTranslators = [...basePropertyTranslators, wPPrChangeTranslator]; |
82 | 9 |
|
83 | 10 | /** |
84 | 11 | * The NodeTranslator instance for the w:pPr element. |
|
0 commit comments