Practicechs.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281
  1. <!-- -->
  2. <template>
  3. <div v-if="curQue" class="NNPE-ArticleView">
  4. <!-- <a class="ArticleView-full" @click="fullScreen">全屏模式</a> -->
  5. <div
  6. v-if="
  7. ((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
  8. config.isHasPY ||
  9. config.isHasEN) &&
  10. curQue.property.mp3_position === 'top'
  11. "
  12. class="aduioLine-box aduioLine-practice-npc"
  13. >
  14. <div class="aduioLine-content">
  15. <template v-if="curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url">
  16. <AudioLine
  17. ref="audioLine"
  18. audio-id="artPraAudio"
  19. :mp3="curQue.mp3_list[0].url"
  20. :get-cur-time="getCurTime"
  21. :stop-audio="stopAudio"
  22. :width="colLength == 2 ? 175 : 700"
  23. :mp3-source="curQue.mp3_list[0].source"
  24. :ed="ed"
  25. type="audioLine"
  26. :attrib="attrib"
  27. @handleChangeStopAudio="handleChangeStopAudio"
  28. @emptyEd="emptyEd"
  29. />
  30. </template>
  31. </div>
  32. <div class="aduioLine-right">
  33. <SvgIcon
  34. v-if="config.isHasPY"
  35. icon-class="repeat-1"
  36. size="16"
  37. :class="['Repeat-16', isRepeat ? '' : 'disabled']"
  38. :style="{ color: isRepeat ? (attrib ? attrib.topic_color : '') : '#DCDFE6', cursor: 'pointer' }"
  39. @click="changeRepeat"
  40. />
  41. <!-- <span
  42. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  43. @click="changePinyin"
  44. v-if="config.isHasPY"
  45. ></span>
  46. <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  47. <SvgIcon
  48. v-if="config.isHasPY"
  49. icon-class="pin-btn"
  50. size="16"
  51. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  52. :style="{ color: config.isShowPY ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  53. @click="changePinyin"
  54. />
  55. <!-- <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  56. <SvgIcon
  57. v-if="config.isHasEN"
  58. icon-class="en-btn"
  59. size="16"
  60. :class="['EN-16', config.isShowEN ? '' : 'disabled']"
  61. :style="{ color: config.isShowEN ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  62. @click="changeEN"
  63. />
  64. </div>
  65. </div>
  66. <template v-if="resObj">
  67. <!-- -->
  68. <div class="NPC-sentences-list">
  69. <div
  70. v-for="(item, index) in resObj.sentList"
  71. :key="'detail' + index"
  72. :class="['NNPE-detail-box', sentIndex == index ? 'active' : '']"
  73. :style="{
  74. backgroundColor: sentIndex == index && attrib ? attrib.assist_color : '',
  75. }"
  76. >
  77. <div
  78. :class="['NNPE-detail']"
  79. @click="
  80. handleChangeTime(
  81. curQue.wordTime && curQue.wordTime[index] && curQue.wordTime[index].bg,
  82. index,
  83. curQue.wordTime && curQue.wordTime[index] && curQue.wordTime[index].ed,
  84. )
  85. "
  86. >
  87. <div
  88. v-if="item.enwords && config.isShowEN && curQue.enPosition && curQue.enPosition == 'top'"
  89. :class="['enwords', sentIndex == index ? 'wordBlank' : '']"
  90. >
  91. {{ item.enwords }}
  92. </div>
  93. <div style="overflow: hidden; clear: both"></div>
  94. <div
  95. v-for="(pItem, pIndex) in item.sentArr"
  96. :key="'wordsList' + pIndex"
  97. class="NNPE-words"
  98. :class="[
  99. pItem.chs != '“' && pItem.wordIndex == 0 ? 'textLeft' : 'textCenter',
  100. pItem.chs == '“' ? 'textRight' : '',
  101. ]"
  102. >
  103. <template v-if="!pItem.width">
  104. <template v-if="pItem.isShow">
  105. <template
  106. v-if="
  107. item.sentArr[pIndex + 1] &&
  108. item.sentArr[pIndex + 1].chs &&
  109. chsFhList.indexOf(item.sentArr[pIndex + 1].chs) > -1
  110. "
  111. >
  112. <span class="NNPE-words-box">
  113. <template v-if="curQue.property.pinyin_position == 'top'">
  114. <span
  115. v-if="config.isShowPY"
  116. class="NNPE-pinyin"
  117. :class="[
  118. pItem.className ? pItem.className : '',
  119. sentIndex == index ? 'wordBlank' : '',
  120. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  121. ]"
  122. :style="{
  123. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  124. height:
  125. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  126. }"
  127. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  128. >
  129. </template>
  130. <span
  131. class="NNPE-chs"
  132. :class="[
  133. pItem.padding && config.isShowPY ? 'padding' : '',
  134. sentIndex == index ? 'wordBlank' : '',
  135. ]"
  136. >
  137. <template>
  138. <span
  139. v-for="(wItem, wIndex) in pItem.leg"
  140. :key="'ci' + wIndex + pIndex + index"
  141. :class="[
  142. pItem.timeList[wIndex] &&
  143. curTime >= pItem.timeList[wIndex].wordBg &&
  144. curTime <= curQue.wordTime[index].ed
  145. ? 'active'
  146. : '',
  147. sentIndex == index ? 'wordBlank' : '',
  148. ]"
  149. :style="{
  150. fontFamily: pItem.config.fontFamily,
  151. height:
  152. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  153. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  154. lineHeight:
  155. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  156. display: 'inline-block',
  157. width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
  158. color:
  159. pItem.timeList[wIndex] &&
  160. curTime >= pItem.timeList[wIndex].wordBg &&
  161. curTime <= curQue.wordTime[index].ed &&
  162. attrib
  163. ? attrib.topic_color
  164. : '',
  165. }"
  166. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.chs[wIndex] : '' }}</span
  167. >
  168. </template>
  169. </span>
  170. <template v-if="curQue.property.pinyin_position == 'bottom'">
  171. <span
  172. v-if="config.isShowPY"
  173. class="NNPE-pinyin"
  174. :class="[
  175. pItem.className ? pItem.className : '',
  176. sentIndex == index ? 'wordBlank' : '',
  177. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  178. ]"
  179. :style="{
  180. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  181. height:
  182. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  183. }"
  184. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  185. >
  186. </template>
  187. </span>
  188. <span class="NNPE-words-box">
  189. <template v-if="curQue.property.pinyin_position == 'top'">
  190. <span
  191. v-if="config.isShowPY"
  192. :class="[
  193. 'NNPE-pinyin',
  194. sentIndex == index ? 'wordBlank' : '',
  195. noFont.indexOf(item.sentArr[pIndex + 1].pinyin) > -1 ? 'noFont' : '',
  196. ]"
  197. style="text-align: left"
  198. :style="{
  199. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  200. height:
  201. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  202. }"
  203. >{{
  204. NumberList.indexOf(item.sentArr[pIndex + 1].pinyin) == -1
  205. ? item.sentArr[pIndex + 1].pinyin
  206. : ''
  207. }}</span
  208. >
  209. </template>
  210. <span class="NNPE-chs" style="text-align: left" :class="[sentIndex == index ? 'wordBlank' : '']">
  211. <span
  212. :class="[
  213. pItem.timeList[pItem.leg - 1] &&
  214. curQue.wordTime &&
  215. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  216. curTime <= curQue.wordTime[index].ed
  217. ? 'active'
  218. : '',
  219. sentIndex == index ? 'wordBlank' : '',
  220. ]"
  221. :style="{
  222. fontFamily: item.sentArr[pIndex + 1].config.fontFamily,
  223. height:
  224. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  225. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  226. lineHeight:
  227. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  228. display: 'inline-block',
  229. width: item.sentArr[pIndex + 1].chs.trim() === '' ? '6px' : '',
  230. color:
  231. pItem.timeList[pItem.leg - 1] &&
  232. curQue.wordTime &&
  233. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  234. curTime <= curQue.wordTime[index].ed &&
  235. attrib
  236. ? attrib.topic_color
  237. : '',
  238. }"
  239. >
  240. {{
  241. NumberList.indexOf(item.sentArr[pIndex + 1].pinyin) == -1
  242. ? item.sentArr[pIndex + 1].chs
  243. : ''
  244. }}</span
  245. >
  246. </span>
  247. <template v-if="curQue.property.pinyin_position == 'bottom'">
  248. <span
  249. v-if="config.isShowPY"
  250. :class="[
  251. 'NNPE-pinyin',
  252. sentIndex == index ? 'wordBlank' : '',
  253. noFont.indexOf(item.sentArr[pIndex + 1].pinyin) > -1 ? 'noFont' : '',
  254. ]"
  255. style="text-align: left"
  256. :style="{
  257. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  258. height:
  259. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  260. }"
  261. >{{
  262. NumberList.indexOf(item.sentArr[pIndex + 1].pinyin) == -1
  263. ? item.sentArr[pIndex + 1].pinyin
  264. : ''
  265. }}</span
  266. >
  267. </template>
  268. </span>
  269. <span
  270. v-if="
  271. item.sentArr[pIndex + 2] &&
  272. item.sentArr[pIndex + 2].chs &&
  273. chsFhList.indexOf(item.sentArr[pIndex + 2].chs) > -1
  274. "
  275. class="NNPE-words-box"
  276. >
  277. <template v-if="curQue.property.pinyin_position == 'top'">
  278. <span
  279. v-if="config.isShowPY"
  280. :class="[
  281. 'NNPE-pinyin',
  282. sentIndex == index ? 'wordBlank' : '',
  283. noFont.indexOf(item.sentArr[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
  284. ]"
  285. style="text-align: left"
  286. :style="{
  287. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  288. height:
  289. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  290. }"
  291. >{{
  292. NumberList.indexOf(item.sentArr[pIndex + 2].pinyin) == -1
  293. ? item.sentArr[pIndex + 2].pinyin
  294. : ''
  295. }}</span
  296. >
  297. </template>
  298. <span class="NNPE-chs" style="text-align: left" :class="[sentIndex == index ? 'wordBlank' : '']">
  299. <span
  300. :class="[
  301. pItem.timeList[pItem.leg - 1] &&
  302. curQue.wordTime &&
  303. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  304. curTime <= curQue.wordTime[index].ed
  305. ? 'active'
  306. : '',
  307. sentIndex == index ? 'wordBlank' : '',
  308. ]"
  309. :style="{
  310. fontFamily: item.sentArr[pIndex + 2].config.fontFamily,
  311. height:
  312. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  313. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  314. lineHeight:
  315. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  316. display: 'inline-block',
  317. width: item.sentArr[pIndex + 2].chs.trim() === '' ? '6px' : '',
  318. color:
  319. pItem.timeList[pItem.leg - 1] &&
  320. curQue.wordTime &&
  321. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  322. curTime <= curQue.wordTime[index].ed &&
  323. attrib
  324. ? attrib.topic_color
  325. : '',
  326. }"
  327. >
  328. {{
  329. NumberList.indexOf(item.sentArr[pIndex + 2].pinyin) == -1
  330. ? item.sentArr[pIndex + 2].chs
  331. : ''
  332. }}</span
  333. >
  334. </span>
  335. <template v-if="curQue.property.pinyin_position == 'bottom'">
  336. <span
  337. v-if="config.isShowPY"
  338. :class="[
  339. 'NNPE-pinyin',
  340. sentIndex == index ? 'wordBlank' : '',
  341. noFont.indexOf(item.sentArr[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
  342. ]"
  343. style="text-align: left"
  344. :style="{
  345. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  346. height:
  347. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  348. }"
  349. >{{
  350. NumberList.indexOf(item.sentArr[pIndex + 2].pinyin) == -1
  351. ? item.sentArr[pIndex + 2].pinyin
  352. : ''
  353. }}</span
  354. >
  355. </template>
  356. </span>
  357. </template>
  358. <template v-else>
  359. <template v-if="curQue.property.pinyin_position == 'top'">
  360. <span
  361. v-if="config.isShowPY"
  362. class="NNPE-pinyin"
  363. :class="[
  364. pItem.chs != '“' && pItem.padding ? 'padding' : '',
  365. pItem.className ? pItem.className : '',
  366. sentIndex == index ? 'wordBlank' : '',
  367. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  368. ]"
  369. :style="{
  370. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  371. height:
  372. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  373. }"
  374. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  375. >
  376. </template>
  377. <span
  378. class="NNPE-chs"
  379. :class="[
  380. pItem.chs != '“' && pItem.padding && config.isShowPY ? 'padding' : '',
  381. sentIndex == index ? 'wordBlank' : '',
  382. ]"
  383. >
  384. <template>
  385. <span
  386. v-for="(wItem, wIndex) in pItem.leg"
  387. :key="'ci' + wIndex + pIndex + index"
  388. :class="[
  389. pItem.timeList[wIndex] &&
  390. curQue.wordTime &&
  391. curQue.wordTime[index] &&
  392. curTime >= pItem.timeList[wIndex].wordBg &&
  393. curTime <= curQue.wordTime[index].ed
  394. ? 'active'
  395. : '',
  396. sentIndex == index ? 'wordBlank' : '',
  397. ]"
  398. :style="{
  399. fontFamily: pItem.config.fontFamily,
  400. height:
  401. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  402. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  403. lineHeight:
  404. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  405. display: 'inline-block',
  406. width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
  407. color:
  408. pItem.timeList[wIndex] &&
  409. curQue.wordTime &&
  410. curQue.wordTime[index] &&
  411. curTime >= pItem.timeList[wIndex].wordBg &&
  412. curTime <= curQue.wordTime[index].ed &&
  413. attrib
  414. ? attrib.topic_color
  415. : '',
  416. }"
  417. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.chs[wIndex] : '' }}</span
  418. >
  419. </template>
  420. </span>
  421. <template v-if="curQue.property.pinyin_position == 'bottom'">
  422. <span
  423. v-if="config.isShowPY"
  424. class="NNPE-pinyin"
  425. :class="[
  426. pItem.chs != '“' && pItem.padding ? 'padding' : '',
  427. pItem.className ? pItem.className : '',
  428. sentIndex == index ? 'wordBlank' : '',
  429. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  430. ]"
  431. :style="{
  432. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  433. height:
  434. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  435. }"
  436. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  437. >
  438. </template>
  439. </template>
  440. </template>
  441. </template>
  442. <template v-else>
  443. <span
  444. :style="{
  445. height: pItem.height + 'px',
  446. width: pItem.width + 'px',
  447. }"
  448. ></span>
  449. </template>
  450. </div>
  451. <div style="overflow: hidden; clear: both"></div>
  452. <div
  453. v-if="
  454. item.enwords &&
  455. config.isShowEN &&
  456. (!curQue.enPosition || (curQue.enPosition && curQue.enPosition == 'bottom'))
  457. "
  458. :class="['enwords', sentIndex == index ? 'wordBlank' : '']"
  459. >
  460. {{ item.enwords }}
  461. </div>
  462. </div>
  463. <div
  464. v-if="curQue.property.multilingual_position === 'para'"
  465. class="multilingual-para"
  466. :class="[item.isTitle ? 'multilingual-para-center' : '']"
  467. >
  468. {{
  469. multilingualTextList[multilingual] && multilingualTextList[multilingual][index]
  470. ? multilingualTextList[multilingual][index]
  471. : ''
  472. }}
  473. </div>
  474. <div
  475. v-show="
  476. (curQue.wordTime &&
  477. curQue.wordTime[index] &&
  478. curTime >= curQue.wordTime[index].bg &&
  479. curTime <= curQue.wordTime[index].ed) ||
  480. sentIndex == index
  481. "
  482. class="Soundrecord-content"
  483. >
  484. <div class="Soundrecord-content-inner">
  485. <Soundrecord
  486. v-if="refresh"
  487. type="promax"
  488. class="luyin-box"
  489. :TaskModel="TaskModel"
  490. :answer-record-list="
  491. curQue.Bookanswer.practiceModel[index] && curQue.Bookanswer.practiceModel[index].recordList
  492. "
  493. :tm-index="index"
  494. :sent-index="sentIndex"
  495. @getWavblob="getWavblob"
  496. @handleParentPlay="handleParentPlay"
  497. @sentPause="sentPause"
  498. @handleWav="handleWav"
  499. :attrib="attrib"
  500. />
  501. <div v-if="curQue.mp3_list && curQue.mp3_list.length > 0" class="compare-box">
  502. <Audio-compare
  503. :theme-color="themeColor"
  504. :index="index"
  505. :sent-index="sentIndex"
  506. :url="curQue.mp3_list[0].id"
  507. :bg="curQue.wordTime[index].bg"
  508. :ed="curQue.wordTime[index].ed"
  509. :wavblob="wavblob"
  510. :get-cur-time="getCurTime"
  511. :sent-pause="sentPause"
  512. :is-record="isRecord"
  513. :handle-change-stop-audio="handleChangeStopAudio"
  514. :get-play-status="getPlayStatus"
  515. :attrib="attrib"
  516. />
  517. </div>
  518. </div>
  519. <span class="full-screen-icon" @click="fullScreen">
  520. <svg-icon
  521. icon-class="icon-full"
  522. size="24"
  523. :style="{
  524. color: attrib && attrib.topic_color ? attrib.topic_color : '',
  525. }"
  526. />
  527. </span>
  528. </div>
  529. </div>
  530. <!-- <div class="multilingual" v-for="(items, indexs) in multilingualTextList" :key="indexs">
  531. {{ items }}
  532. </div> -->
  533. </div>
  534. </template>
  535. <template v-for="(items, indexs) in curQue.detail">
  536. <div
  537. v-if="
  538. curQue.property.multilingual_position === 'all' &&
  539. items.multilingualTextList &&
  540. items.multilingualTextList[multilingual] &&
  541. items.multilingualTextList[multilingual].length > 0
  542. "
  543. :key="indexs"
  544. class="multilingual"
  545. >
  546. <div class="multilingual-para" :class="[items.isTitle ? 'multilingual-para-center' : '']">
  547. {{
  548. items.multilingualTextList && items.multilingualTextList[multilingual]
  549. ? items.multilingualTextList[multilingual].join(' ')
  550. : ''
  551. }}
  552. </div>
  553. </div>
  554. </template>
  555. <div
  556. v-if="
  557. ((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
  558. config.isHasPY ||
  559. config.isHasEN) &&
  560. curQue.property.mp3_position === 'bottom'
  561. "
  562. class="aduioLine-box aduioLine-practice-npc aduioLine-box-bottom"
  563. >
  564. <div class="aduioLine-content">
  565. <template v-if="curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url">
  566. <AudioLine
  567. ref="audioLine"
  568. audio-id="artPraAudio"
  569. :mp3="curQue.mp3_list[0].url"
  570. :get-cur-time="getCurTime"
  571. :stop-audio="stopAudio"
  572. :width="colLength == 2 ? 175 : 700"
  573. :mp3-source="curQue.mp3_list[0].source"
  574. :ed="ed"
  575. type="audioLine"
  576. :attrib="attrib"
  577. @handleChangeStopAudio="handleChangeStopAudio"
  578. @emptyEd="emptyEd"
  579. />
  580. </template>
  581. </div>
  582. <div class="aduioLine-right">
  583. <!-- <span :class="['Repeat-16', isRepeat ? '' : 'disabled']" @click="changeRepeat"></span>
  584. <span
  585. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  586. @click="changePinyin"
  587. v-if="config.isHasPY"
  588. ></span>
  589. <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  590. <SvgIcon
  591. v-if="config.isHasPY"
  592. icon-class="repeat-1"
  593. size="16"
  594. :class="['Repeat-16', isRepeat ? '' : 'disabled']"
  595. :style="{ color: isRepeat ? (attrib ? attrib.topic_color : '') : '#DCDFE6', cursor: 'pointer' }"
  596. @click="changeRepeat"
  597. />
  598. <!-- <span
  599. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  600. @click="changePinyin"
  601. v-if="config.isHasPY"
  602. ></span>
  603. <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  604. <SvgIcon
  605. v-if="config.isHasPY"
  606. icon-class="pin-btn"
  607. size="16"
  608. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  609. :style="{ color: config.isShowPY ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  610. @click="changePinyin"
  611. />
  612. <!-- <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  613. <SvgIcon
  614. v-if="config.isHasEN"
  615. icon-class="en-btn"
  616. size="16"
  617. :class="['EN-16', config.isShowEN ? '' : 'disabled']"
  618. :style="{ color: config.isShowEN ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  619. @click="changeEN"
  620. />
  621. </div>
  622. </div>
  623. <div :id="'screen-' + mathNum" class="voice-full-screen">
  624. <Voicefullscreen
  625. v-if="isFull && resObj"
  626. :theme-color="themeColor"
  627. :cur-que="curQue"
  628. :sent-list="resObj.sentList"
  629. :sent-index="sentIndex"
  630. :mp3="curQue.mp3_list && curQue.mp3_list[0] ? curQue.mp3_list[0].url : ''"
  631. :no-font="noFont"
  632. :NNPENewWordList="NNPENewWordList"
  633. :current-tree-i-d="currentTreeID"
  634. :config="config"
  635. :TaskModel="TaskModel"
  636. :attrib="attrib"
  637. @handleWav="handleWav"
  638. @changePinyin="changePinyin"
  639. @changeEN="changeEN"
  640. @exitFullscreen="exitFullscreen"
  641. @changeIsFull="changeIsFull"
  642. />
  643. </div>
  644. </div>
  645. </template>
  646. <script>
  647. import AudioLine from '../voice_matrix/components/AudioLine.vue';
  648. import Soundrecord from '../../common/SoundRecord.vue';
  649. import AudioCompare from './components/AudioCompare.vue';
  650. import Voicefullscreen from './Voicefullscreen.vue';
  651. export default {
  652. name: 'ArticleView',
  653. components: {
  654. AudioLine,
  655. Soundrecord,
  656. AudioCompare,
  657. Voicefullscreen,
  658. },
  659. props: [
  660. 'curQue',
  661. 'noFont',
  662. 'themeColor',
  663. 'NNPENewWordList',
  664. 'currentTreeID',
  665. 'config',
  666. 'TaskModel',
  667. 'colLength',
  668. 'isFull',
  669. 'multilingual',
  670. 'attrib',
  671. ],
  672. data() {
  673. return {
  674. resObj: null,
  675. curTime: 0, // 单位s
  676. chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '、'],
  677. enFhList: [',', '.', ';', '?', '!', ':', '>', '<'],
  678. NumberList: ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲', '⑳'],
  679. stopAudio: false,
  680. sentIndex: 0,
  681. isRepeat: false,
  682. currSent: null, // 当前句子的时间
  683. isRecord: false,
  684. wavblob: null,
  685. mathNum: Math.random().toString(36).substr(2),
  686. ed: undefined,
  687. refresh: true,
  688. multilingualTextList: {},
  689. };
  690. },
  691. computed: {
  692. isPlaying() {
  693. let playing = false;
  694. if (this.$refs.audioLine) {
  695. playing = this.$refs.audioLine.audio.isPlaying;
  696. }
  697. return playing;
  698. },
  699. },
  700. watch: {
  701. sentIndex: {
  702. handler(newVal, oldVal) {
  703. let _this = this;
  704. if (newVal != oldVal) {
  705. let Bookanswer = _this.curQue.Bookanswer;
  706. if (
  707. Bookanswer &&
  708. Bookanswer.practiceModel &&
  709. Bookanswer.practiceModel[newVal] &&
  710. Bookanswer.practiceModel[newVal].recordList &&
  711. Bookanswer.practiceModel[newVal].recordList.length > 0
  712. ) {
  713. _this.wavblob = Bookanswer.practiceModel[newVal].recordList[0].wavData;
  714. } else {
  715. _this.wavblob = '';
  716. }
  717. }
  718. },
  719. deep: true,
  720. },
  721. isFull: {
  722. handler(newVal, oldVal) {
  723. let _this = this;
  724. _this.refresh = false;
  725. if (!newVal) {
  726. _this.$nextTick(() => {
  727. // 重新渲染组件
  728. _this.refresh = true;
  729. });
  730. }
  731. },
  732. deep: true,
  733. },
  734. },
  735. // 生命周期 - 创建完成(可以访问当前this实例)
  736. created() {},
  737. // 生命周期 - 挂载完成(可以访问DOM元素)
  738. mounted() {
  739. if (this.curQue) {
  740. this.handleData();
  741. }
  742. },
  743. beforeCreate() {}, // 生命周期 - 创建之前
  744. beforeMount() {}, // 生命周期 - 挂载之前
  745. beforeUpdate() {}, // 生命周期 - 更新之前
  746. updated() {}, // 生命周期 - 更新之后
  747. beforeDestroy() {}, // 生命周期 - 销毁之前
  748. destroyed() {}, // 生命周期 - 销毁完成
  749. activated() {},
  750. // 方法集合
  751. methods: {
  752. getPlayStatus(val) {
  753. // this.isPlaying = val;
  754. },
  755. // 拼音的显示和隐藏
  756. changePinyin() {
  757. if (this.config.isHasPY) {
  758. this.$emit('changeConfig', 'isShowPY');
  759. }
  760. },
  761. // 英文的显示和隐藏
  762. changeEN() {
  763. if (this.config.isHasEN) {
  764. this.$emit('changeConfig', 'isShowEN');
  765. }
  766. },
  767. pauseAudio() {
  768. let audio = document.getElementsByTagName('audio');
  769. if (audio && audio.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && audio.forEach) {
  770. audio.forEach((item) => {
  771. item.pause();
  772. });
  773. }
  774. },
  775. pauseVideo() {
  776. let video = document.getElementsByTagName('video');
  777. if (video && video.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && video.forEach) {
  778. video.forEach((item) => {
  779. item.pause();
  780. });
  781. }
  782. },
  783. // 语音全屏
  784. fullScreen() {
  785. this.pauseAudio();
  786. this.pauseVideo();
  787. this.isFull = true;
  788. this.goFullscreen();
  789. },
  790. goFullscreen() {
  791. let id = `screen-${this.mathNum}`;
  792. let element = document.getElementById(id);
  793. if (element.requestFullscreen) {
  794. element.requestFullscreen();
  795. } else if (element.msRequestFullscreen) {
  796. element.msRequestFullscreen();
  797. } else if (element.mozRequestFullScreen) {
  798. element.mozRequestFullScreen();
  799. } else if (element.webkitRequestFullscreen) {
  800. element.webkitRequestFullscreen();
  801. }
  802. },
  803. exitFullscreen() {
  804. this.isFull = false;
  805. if (document.exitFullscreen) {
  806. document.exitFullscreen();
  807. } else if (document.msExitFullscreen) {
  808. document.msExitFullscreen();
  809. } else if (document.mozCancelFullScreen) {
  810. document.mozCancelFullScreen();
  811. } else if (document.webkitExitFullscreen) {
  812. document.webkitExitFullscreen();
  813. }
  814. },
  815. changeIsFull() {
  816. this.isFull = false;
  817. },
  818. getWavblob(wavblob) {
  819. this.wavblob = wavblob;
  820. },
  821. sentPause(isRecord) {
  822. this.isRecord = isRecord;
  823. },
  824. getCurTime(curTime) {
  825. let _this = this;
  826. if (_this.isRepeat) {
  827. let time = curTime * 1000;
  828. if (time >= _this.currSent.ed || time <= _this.currSent.bg) {
  829. _this.curTime = _this.currSent.bg;
  830. this.$refs.audioLine.onTimeupdateTime(_this.currSent.bg / 1000, true);
  831. } else {
  832. _this.curTime = curTime * 1000;
  833. }
  834. } else {
  835. _this.curTime = curTime * 1000;
  836. _this.getSentIndex(_this.curTime);
  837. }
  838. },
  839. getSentIndex(curTime) {
  840. for (let i = 0; i < this.curQue.wordTime.length; i++) {
  841. let bg = this.curQue.wordTime[i].bg;
  842. let ed = this.curQue.wordTime[i].ed;
  843. if (curTime >= bg && curTime <= ed) {
  844. this.sentIndex = i;
  845. break;
  846. }
  847. }
  848. },
  849. handleData() {
  850. this.curQue.multilingual.forEach((item) => {
  851. let trans_arr = item.translation.split('\n');
  852. this.$set(this.multilingualTextList, item.type, trans_arr);
  853. });
  854. let resArr = [];
  855. let sentArrTotal = [];
  856. let timeArr = [];
  857. let curQue = JSON.parse(JSON.stringify(this.curQue));
  858. let wordTimeList = curQue.wordTime;
  859. let dhaspinyin = false; // 每段是否有拼音
  860. let dhaspinyinArr = [];
  861. curQue.detail.forEach((dItem, dIndex) => {
  862. dhaspinyin = false;
  863. dItem.wordsList.forEach((sItem, sIndex) => {
  864. let sentArr = [];
  865. sItem.forEach((wItem, wIndex) => {
  866. let startIndex = wIndex == 0 ? 0 : sentArr[wIndex - 1].startIndex + sentArr[wIndex - 1].chs.length;
  867. let endIndex = wIndex == 0 ? wItem.chs.length : sentArr[wIndex - 1].endIndex + wItem.chs.length;
  868. // this.judgePad(sItem, wItem, wIndex);
  869. this.mergeWordSymbol(wItem);
  870. let obj = {
  871. paraIndex: dIndex, // 段落索引
  872. sentIndex: sIndex, // 在段落中句子索引
  873. wordIndex: wIndex, // 单词的索引
  874. pinyin:
  875. curQue.pinyin_type === 'pinyin'
  876. ? curQue.property.is_first_sentence_first_hz_pinyin_first_char_upper_case === 'true' && wIndex === 0
  877. ? wItem.pinyin_up
  878. : wItem.pinyin
  879. : wItem.pinyin_tone,
  880. chs: wItem.chs,
  881. padding: true,
  882. className: wItem.className,
  883. isShow: wItem.isShow,
  884. startIndex,
  885. endIndex,
  886. leg: wItem.chs.length,
  887. timeList: [],
  888. config: {
  889. fontFamily: wItem.fontFamily,
  890. },
  891. };
  892. sentArr.push(obj);
  893. if (wItem.pinyin) dhaspinyin = true;
  894. });
  895. let objs = {
  896. sentArr,
  897. enwords: dItem.sentencesEn && dItem.sentencesEn[sIndex] && dItem.sentencesEn[sIndex].replace(/\'/g, '’'),
  898. };
  899. sentArrTotal.push(sentArr);
  900. resArr.push(objs);
  901. });
  902. timeArr.push(dItem.timeList);
  903. dhaspinyinArr.push(dhaspinyin);
  904. });
  905. if (wordTimeList && wordTimeList.length > 0) {
  906. this.mergeWordTime(sentArrTotal, wordTimeList);
  907. }
  908. let timeList = [];
  909. timeArr.forEach((item) => {
  910. item.forEach((aItem) => {
  911. if (timeList.indexOf(aItem) < 0) {
  912. timeList.push(aItem);
  913. }
  914. });
  915. });
  916. this.resObj = {
  917. sentList: resArr,
  918. timeList,
  919. dhaspinyinArr,
  920. };
  921. },
  922. mergeWordTime(resArr, wordTimeList) {
  923. resArr.forEach((item, index) => {
  924. let wordsResultList = wordTimeList[index].wordsResultList;
  925. item.forEach((wItem) => {
  926. let startIndex = wItem.startIndex;
  927. let endIndex = wItem.endIndex;
  928. wItem.timeList = wordsResultList.slice(startIndex, endIndex);
  929. });
  930. });
  931. },
  932. // 词和标点合一起
  933. mergeWordSymbol(wItem) {
  934. if (this.chsFhList.indexOf(wItem.chs) > -1) {
  935. wItem.isShow = false;
  936. } else {
  937. wItem.isShow = true;
  938. }
  939. },
  940. // 判断是否有padding
  941. judgePad(sItem, wItem, curIndex) {
  942. let leg = sItem.length;
  943. if (curIndex < leg - 1) {
  944. let nextIndex = curIndex + 1;
  945. let chs = sItem[nextIndex].chs;
  946. if (this.chsFhList.indexOf(chs) > -1 || this.chsFhList.indexOf(wItem.chs) > -1) {
  947. wItem.padding = false;
  948. } else {
  949. wItem.padding = true;
  950. }
  951. if (this.enFhList.indexOf(wItem.pinyin) > -1) {
  952. wItem.className = 'textLeft';
  953. }
  954. }
  955. },
  956. // 转化时间
  957. handleTimeList(list) {
  958. let listRes = [];
  959. list.forEach((item) => {
  960. let res = timeStrToSen(item);
  961. listRes.push(res);
  962. });
  963. return listRes;
  964. },
  965. // 分:秒转秒
  966. timeStrToSen(time) {
  967. if (!time) {
  968. return -1;
  969. }
  970. let pos = time.indexOf(':');
  971. let min = 0;
  972. let sec = 0;
  973. if (pos > 0) {
  974. min = parseInt(time.substring(0, pos));
  975. sec = parseFloat(time.substring(pos + 1));
  976. }
  977. return min * 60 + sec;
  978. },
  979. // 计算总时间
  980. countWordTime(sentArr) {
  981. let total = 0;
  982. sentArr.forEach((item) => {
  983. total += item.endTime;
  984. });
  985. return total;
  986. },
  987. // 点击播放某个句子
  988. handleChangeTime(time, index, ed) {
  989. let _this = this;
  990. if (this.isRepeat) {
  991. _this.currSent = _this.curQue.wordTime[index];
  992. }
  993. _this.sentIndex = index;
  994. _this.ed = ed;
  995. if (time) {
  996. _this.curTime = time;
  997. _this.$refs.audioLine.onTimeupdateTime(time / 1000, true);
  998. }
  999. },
  1000. emptyEd() {
  1001. this.ed = undefined;
  1002. },
  1003. handleWav(list, tmIndex) {
  1004. tmIndex = tmIndex || 0;
  1005. this.curQue.Bookanswer.practiceModel[tmIndex] = {
  1006. recordList: [],
  1007. };
  1008. this.$set(this.curQue.Bookanswer.practiceModel[tmIndex], 'recordList', list);
  1009. },
  1010. // 录音时暂停音频播放
  1011. handleParentPlay() {
  1012. this.stopAudio = true;
  1013. },
  1014. // 音频播放时改变布尔值
  1015. handleChangeStopAudio() {
  1016. this.stopAudio = false;
  1017. },
  1018. // 单句是否重复播放
  1019. changeRepeat() {
  1020. let _this = this;
  1021. _this.isRepeat = !_this.isRepeat;
  1022. this.currSent = _this.curQue.wordTime[_this.sentIndex];
  1023. },
  1024. }, // 如果页面有keep-alive缓存功能,这个函数会触发
  1025. };
  1026. </script>
  1027. <style lang="scss" scoped>
  1028. //@import url(); 引入公共css类
  1029. .NNPE-ArticleView {
  1030. position: relative;
  1031. width: 100%;
  1032. .ArticleView-full {
  1033. position: absolute;
  1034. top: -33px;
  1035. left: 0;
  1036. z-index: 99999;
  1037. padding-left: 24px;
  1038. font-size: 14px;
  1039. font-weight: bold;
  1040. line-height: 24px;
  1041. color: #000;
  1042. background: url('@/assets/full-screen-red.png') left center no-repeat;
  1043. background-size: 16px 16px;
  1044. }
  1045. .NPC-sentences-list {
  1046. padding: 16px 0;
  1047. }
  1048. .multilingual {
  1049. padding: 6px 24px 12px;
  1050. word-break: break-word;
  1051. }
  1052. .aduioLine-content {
  1053. flex: 1;
  1054. }
  1055. .NNPE-detail-box {
  1056. box-sizing: border-box;
  1057. width: 100%;
  1058. padding: 8px 24px;
  1059. margin-bottom: 8px;
  1060. &.active {
  1061. background: rgba(222, 68, 68, 15%);
  1062. }
  1063. }
  1064. .aduioLine-practice-npc {
  1065. display: flex;
  1066. align-items: center;
  1067. justify-content: flex-start;
  1068. .aduioLine-right {
  1069. box-sizing: border-box;
  1070. display: flex;
  1071. align-items: center;
  1072. justify-content: space-between;
  1073. width: 92px;
  1074. height: 40px;
  1075. padding: 0 12px;
  1076. border-left: 1px solid rgba(0, 0, 0, 10%);
  1077. .svg-icon {
  1078. width: 16px;
  1079. height: 16px;
  1080. cursor: pointer;
  1081. }
  1082. }
  1083. }
  1084. .NNPE-detail {
  1085. overflow: hidden;
  1086. clear: both;
  1087. .NNPE-words {
  1088. float: left;
  1089. padding-bottom: 5px;
  1090. &-box {
  1091. float: left;
  1092. > span {
  1093. display: block;
  1094. &.NNPE-pinyin {
  1095. height: 20px;
  1096. font-family: 'League';
  1097. font-size: 14px;
  1098. font-weight: normal;
  1099. line-height: 1.5;
  1100. color: rgba(0, 0, 0, 45%);
  1101. &.noFont {
  1102. font-family: initial;
  1103. }
  1104. &.textLeft {
  1105. text-align: left;
  1106. }
  1107. &.wordBlank {
  1108. color: rgba(0, 0, 0, 85%);
  1109. }
  1110. }
  1111. &.NNPE-chs {
  1112. display: flex;
  1113. flex-flow: wrap;
  1114. font-family: '楷体';
  1115. font-size: 20px;
  1116. line-height: 1.4;
  1117. color: rgba(0, 0, 0, 45%);
  1118. .active {
  1119. color: #de4444;
  1120. }
  1121. &.wordBlank {
  1122. color: rgba(0, 0, 0, 85%);
  1123. }
  1124. }
  1125. // &.padding {
  1126. // padding-right: 6px;
  1127. // }
  1128. }
  1129. }
  1130. &.textLeft {
  1131. text-align: left;
  1132. }
  1133. &.textCenter {
  1134. text-align: center;
  1135. .NNPE-chs {
  1136. justify-content: center;
  1137. }
  1138. }
  1139. &.textRight {
  1140. text-align: right;
  1141. }
  1142. > span {
  1143. display: block;
  1144. &.NNPE-pinyin {
  1145. height: 20px;
  1146. font-family: 'League';
  1147. font-size: 14px;
  1148. font-weight: normal;
  1149. line-height: 1.5;
  1150. color: rgba(0, 0, 0, 45%);
  1151. &.noFont {
  1152. font-family: initial;
  1153. }
  1154. &.textLeft {
  1155. text-align: left;
  1156. }
  1157. &.wordBlank {
  1158. color: rgba(0, 0, 0, 85%);
  1159. }
  1160. }
  1161. &.NNPE-chs {
  1162. display: flex;
  1163. flex-flow: wrap;
  1164. font-family: '楷体';
  1165. font-size: 20px;
  1166. line-height: 1.4;
  1167. color: rgba(0, 0, 0, 45%);
  1168. .active {
  1169. color: #de4444;
  1170. }
  1171. &.wordBlank {
  1172. color: rgba(0, 0, 0, 85%);
  1173. }
  1174. }
  1175. &.padding {
  1176. padding: 0 3px;
  1177. }
  1178. }
  1179. }
  1180. }
  1181. .Soundrecord-content {
  1182. display: flex;
  1183. align-items: center;
  1184. justify-content: space-between;
  1185. margin-top: 8px;
  1186. &-inner {
  1187. display: flex;
  1188. align-items: center;
  1189. justify-content: flex-start;
  1190. width: 304px;
  1191. padding: 4px 12px;
  1192. background: #fff;
  1193. border: 1px solid rgba(0, 0, 0, 10%);
  1194. border-radius: 8px;
  1195. .luyin-box {
  1196. width: 280px;
  1197. max-width: 280px;
  1198. }
  1199. .compare-box {
  1200. display: flex;
  1201. align-items: center;
  1202. justify-content: center;
  1203. height: 32px;
  1204. }
  1205. }
  1206. .full-screen-icon {
  1207. width: 24px;
  1208. height: 24px;
  1209. cursor: pointer;
  1210. // background: url('@/assets/full-screen-red.png') no-repeat left top;
  1211. // background-size: 100% 100%;
  1212. }
  1213. }
  1214. .enwords {
  1215. padding-left: 3px;
  1216. font-family: 'Helvetica';
  1217. font-size: 14px;
  1218. font-weight: normal;
  1219. line-height: 22px;
  1220. color: rgba(0, 0, 0, 45%);
  1221. word-break: break-word;
  1222. &.wordBlank {
  1223. color: rgba(0, 0, 0, 85%);
  1224. }
  1225. }
  1226. .multilingual-para {
  1227. word-break: break-word;
  1228. &-center {
  1229. text-align: center;
  1230. text-indent: 0;
  1231. }
  1232. }
  1233. }
  1234. </style>