Commit f25cdf9 1 parent 8094da3 commit f25cdf9 Copy full SHA for f25cdf9
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export class Entry {
172
172
rw_indices,
173
173
wn_domains,
174
174
lemma,
175
+ alt
175
176
} ) {
176
177
177
178
this . definition = definition ;
@@ -238,9 +239,13 @@ export class Entry {
238
239
throw new Error ( "Multiple stems in CW source" ) ;
239
240
}
240
241
const nonPossessive = ( fststems . length > 0 ) ? fststems [ 0 ] : stems [ 0 ] ;
241
- const htmlInfo = `<table colspan=2><tr><td></td><td>Stem</td></tr><tr><td>Nonposs</td><td><strong>${ nonPossessive } </strong></td></tr><tr><td>Poss</td><td><strong>${ possessive } </strong></td></tr></table>` ;
242
+ const htmlInfo = `<p>< table colspan=2><tr><td></td><td>Stem</td></tr><tr><td>Nonposs</td><td><strong>${ nonPossessive } </strong></td></tr><tr><td>Poss</td><td><strong>${ possessive } </strong></td></tr></table></p >` ;
242
243
this . htmlInfo = htmlInfo ;
243
244
}
245
+ if ( alt . length > 1 ) {
246
+ this . htmlInfo ??= '' ;
247
+ this . htmlInfo += `<p><table colspan=1><tr><td>Alternatives</td></tr>\n` + alt . map ( entry => `<tr><td>${ entry } </td></tr>` ) . join ( '\n' ) + `</table></p>` ;
248
+ }
244
249
}
245
250
246
251
/**
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export class ToolboxEntry {
53
53
this . rw_domains = this . getLinesByType ( `rw` ) ;
54
54
this . rw_indices = this . getLinesByType ( `rw2` ) ;
55
55
this . wn_domains = this . getLinesByType ( `wn` ) ;
56
+ this . alt = this . getLinesByType ( `alt` ) ;
56
57
this . lemma = this . getLineByType ( `lemma` ) ;
57
58
}
58
59
You can’t perform that action at this time.
0 commit comments