tpmkms_4wp 8.9.1-beta.11 → 8.9.1-beta.13

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/common/wp.js CHANGED
@@ -9,27 +9,34 @@ const wp_tests = require('./wp.test.json')
9
9
  const instance = require('./wp.instance.json')
10
10
 
11
11
  /*
12
- working on
12
+ done
13
+
13
14
  bold the first word
14
15
  bold the first paragraph
15
16
  bold the first letter
16
-
17
- current
18
-
19
- underline the bolded paragraphs
20
- underline the paragraphs that contain bolded words
21
-
22
- after
23
17
  bold the first word of every paragraph
24
18
  bold the first word of the second and third paragraph
25
- bold the first word of the second paragraph and third paragraph
19
+ bold the paragraph that contains words that start with t
20
+ underline the paragraph that contains bolded words
21
+ underline the paragraphs that contain bolded words
26
22
  bold the first letter of every word
23
+ bold the third letter of the second paragraph
27
24
  bold the first letter of every word that starts with t
25
+
26
+ current
27
+
28
+ underline the bolded words in the third paragraph
29
+
30
+ todo
31
+
32
+ bold the words that start with t in the third paragraph
28
33
  bold the first letter of the words that start with t in the third paragraph
29
- bold the paragraph that contains words that start with t
30
- underline the paragraph that contains bolded words
34
+ underline the bolded paragraphs
31
35
  bold the paragraph that contains three bolded words
32
-
36
+ capitalize the first letter of the words that start with t
37
+ underline the first bolded word
38
+ underline the first bolded word that start with t
39
+ bold the first word of the second paragraph and third paragraph
33
40
  the paragraph that contains the word boobies
34
41
 
35
42
  after
@@ -214,7 +221,7 @@ template = {
214
221
  // this one is "the bolded/underlined/italized/... word"
215
222
  "((styleModifier_wp/*) [modifiedByStyle_wp] (statefulElement_wp/* && context.determiner == undefined))",
216
223
  // the first letter of each paragraph
217
- "((statefulElement_wp/*) <statefulElementInContext_wp|of> (statefulElement_wp/*))",
224
+ "((statefulElement_wp/*) <statefulElementInContext_wp|of,in> (statefulElement_wp/*))",
218
225
  // the paragraph that contains words that start with t
219
226
  "((paragraph_wp/*) [paragraphComparisonVerb_wp] (word_wp/*))",
220
227
  ],
@@ -341,6 +348,8 @@ template = {
341
348
  ],
342
349
  priorities: [
343
350
  { "context": [['paragraphComparisonVerb_wp', 0], ['word_wp', 0], ['wordComparisonWithVerb_wp', 0]], ordered: true, choose: [2] },
351
+ { "context": [['statefulElementInContext_wp', 0], ['word_wp', 0], ['wordComparisonWithVerb_wp', 0]], ordered: true, choose: [2] },
352
+ { "context": [['statefulElementInContext_wp', 0], ['comparisonWith_wp', 0]], choose: [1] },
344
353
  { "context": [['paragraphComparisonVerb_wp', 0], ['wordComparisonWithVerb_wp', 0]], choose: [1] },
345
354
  { "context": [['ordinal',1], ['list', 0], ['ordinal', 1], ['word_wp', 1]], ordered: true, choose: [1] },
346
355
  { "context": [['changeState_wp',0], ['every', 0], ['word_wp', 1], ['list', 1]], ordered: true, choose: [1] },