Skip to content

Commit

Permalink
mecab install is needed when not set to Mecab
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramComputer committed Oct 6, 2023
1 parent d8e2258 commit 2ffec1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions do_test_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,7 @@ function do_test_test_javascript_clickable($wo_record, $solution)
WHERE LgID = ' . $wo_record['WoLgID'] . '
LIMIT 1'
);
$abbr = $langDefs[$lang][1];
$phoneticText = phonetic_reading($wo_record['WoText'], $abbr);
$phoneticText = phonetic_reading($wo_record['WoText'], $lang);
?>
<script type="text/javascript">
/**
Expand Down
7 changes: 1 addition & 6 deletions do_text_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,11 @@ function browser_tts($text, $languageName): void
{
global $langDefs;

/**
* @var string $languageCode BCP 47 convention (i. e.: en-US) is suggested.
* Two-letter language code is enough (i. e. "en")
*/
$languageCode = $langDefs[$languageName][1];
/**
* @var string $phoneticText
* Phonetic reading for this text
*/
$phoneticText = phonetic_reading($text, $languageCode);
$phoneticText = phonetic_reading($text, $languageName);
?>
<script type="text/javascript">

Expand Down

0 comments on commit 2ffec1a

Please sign in to comment.