@@ -59,8 +59,14 @@ async function transcribe(mode) {
5959 const words = line . split ( " " ) . concat ( [ "\n" ] ) ;
6060
6161 const container = document . createElement ( "tr" ) ;
62+ container . className = "line" ;
6263 resultDiv . appendChild ( container ) ;
6364
65+ const ttsButton = document . createElement ( "button" ) ;
66+ ttsButton . className = "fa fa-volume-down audio-popup-line" ;
67+
68+ container . prepend ( ttsButton ) ;
69+
6470 async function processWord ( word ) {
6571 console . log ( "processing" , word ) ;
6672 let { status, value } = await getIpa ( word , lang , langStyle , langForm ) ;
@@ -217,10 +223,10 @@ async function transcribe(mode) {
217223 container . style . marginRight = "auto" ;
218224
219225 const leftColumn = document . createElement ( "div" ) ;
220- leftColumn . style . flex = "1" ;
226+ leftColumn . classList . add ( "left-column" ) ;
221227
222228 const rightColumn = document . createElement ( "div" ) ;
223- rightColumn . style . flex = "1" ;
229+ rightColumn . classList . add ( "right-column" ) ;
224230
225231 for ( let i = 0 ; i < words . length ; i ++ ) {
226232 const wordDiv = document . createElement ( "div" ) ;
@@ -260,8 +266,18 @@ async function transcribe(mode) {
260266 resultDiv . appendChild ( resultSpan ) ;
261267
262268 leftColumn . appendChild ( wordDiv ) ;
269+
263270 rightColumn . appendChild ( resultDiv ) ;
264271 }
272+ const leftTTSButton = document . createElement ( "button" ) ;
273+ leftTTSButton . className = "fa fa-volume-down audio-popup-line" ;
274+
275+ leftColumn . prepend ( leftTTSButton ) ;
276+
277+ const rightTTSButton = document . createElement ( "button" ) ;
278+ rightTTSButton . className = "fa fa-volume-down audio-popup-line" ;
279+
280+ rightColumn . prepend ( rightTTSButton ) ;
265281
266282 container . appendChild ( leftColumn ) ;
267283 container . appendChild ( rightColumn ) ;
@@ -397,7 +413,7 @@ const languages = {
397413 ttsCode : "es-ES" ,
398414 } ,
399415 French : {
400- styles : [ "Default" ] ,
416+ styles : [ "Default" , "Parisian (experimental)" ] ,
401417 forms : [ "Phonemic" ] ,
402418 langCode : "fr" ,
403419 ttsCode : "fr-FR" ,
@@ -485,6 +501,12 @@ async function updateOptionsUponLanguageSelection(event) {
485501 if ( ! ( selectedLanguage in loadedLanguages ) ) {
486502 disableAll ( ) ;
487503 await loadLanguage ( lang . langCode ) ;
504+ if ( selectedLanguage === "Latin" ) {
505+ updateLoadingText ( "Macrons list" , "" ) ;
506+ await macronize ( "" ) ;
507+ updateLoadingText ( "" , "" ) ;
508+ }
509+
488510 if ( selectedLanguage === "German" ) {
489511 updateLoadingText ( "German lexicon" , "" ) ;
490512 globalThis . lexicon = await loadLexicon ( "German" ) ;
0 commit comments