Skip to content

2.7.0: the Dust-blower

Compare
Choose a tag to compare
@HugoFara HugoFara released this 14 Mar 03:46
· 560 commits to master since this release

This is a huge release implementing many things I wanted to have in LWT. As for the most important features you get:

  • Auto-translation (using ggl.php)
  • Auto-romanization of Japanese
  • Responsive design
  • And much more...

Added

  • The translation and romanization of new words can now be automatic.
    • Supported automatic translation is achieved using LibreTranslate.
    • Romanization using MeCab (Japanese only) toward katakana only.
  • A lot of improvements for language creation/edition:
    • More intuitive fields, better interactions with the user, etc...
    • A "Pop-Up" checkbox helps you choose if the website should be displayed in a pop-up.
  • LWT becomes easier to install and maintain for users:
    • An installer for Linux users at INSTALL.sh helps installing requirements and configuration.
    • Database creation wizard (database_wizard.php) to help setting the connection with the database.
    • A server data page at server_data.php showing all relevant information.
  • In index.php:
    • get_server_data_table replaces get_server_data as a better designed function.
    • index_do_main_page now renders the page to avoid global variables.
    • You get warnings if the PHP version is too low, or if a newer version of LWT is released.
  • pagestart_kernel_nobody in inc/kernel.php that displays the minimal HTML formatting.
  • inc/classes/ folder for a better incorporation of OOP.
    • inc/classes/Term defines the Term class representing a word or multi-word.
    • inc/classes/Language defines the Language class representing a language.
  • Post-Install Documentation added:
    • MeCab without and with Docker, Thanks to @99MengXin for the link (#94).
    • LibreTranslate integration.
    • TTS issues, as suggested by @asdrubalivan in #85.

Changed

  • Graphic review:
    • Headers reviewed. Most h4 headers became div.bigger, and h3 became h1 level headers.
    • We now use responsive design instead of fixed-size.
    • All themes updated accordingly, so themes were modified.
    • do_text_page (do_text.php) and do_test_page (do_test.php) now enlarge the body.
  • echo_lwt_logo in inc/session_utility.php echoes a logo, without information on the table set used
    because it was useless. This information is now displayed on the welcome page.
  • Access to the database prefix edition at start.php was reviewed and simplified. It is still considered a legacy feature.
  • Language creation reviewed:
    • When creating a new language, the language wizard do no longer display in a pop-up but in the main window.
    • Select option boxes replaced by checkboxes (better accessibility).
  • Updated hoverIntent jQuery Plug-in
    from 1.8.0 to 1.10.2. This brings some bug fixes.
  • "TO DO" changed to a more explicit "Unknown words" in text header.
  • Refactored bulk_translate_word.php. It has a better visual aspect and works better.
  • Updated composer dependencies.
    • vimeo/psalm updated from ^4.12 to ^5.6.
    • phpunit/phpunit updated from ^9.5 to ^10.0.
  • Changed to the text from YouTube feature (text_from_yt.php):
    • Refactored.
    • Moved from root folder to inc/.
    • This is still an experimental feature!
  • Moved Google API files:
    • Moved googleTimeToken.php from root folder to inc/google_time_token.php.
    • Moved googleTranslateClass.php from root folder to inc/classes/GoogleTranslate.php.
  • Updates in demo database:
    • Faster to install. install_demo_db_sql.gz uncompressed to install_demo_db.sql. Functions adapted.
    • Dict links changed: ### replaced by lwt_term, * replaced by lwt_popup=1, some dict url protocol changed to https.

Fixed

  • Markdown: enforced consistency with official style recommendations. The documentation display got improved.
  • The default date for new words was note accepted depending on the SQL configuration, causing issues with Docker installation. See #78.
  • Bulk translate words:
    • Translating with bulk translate was not updating word rendering.
    • All broom icons icon were display in the screen top-right corner, and not
      at the right if text field.
  • Main page (index.php) was not rendered properly on non-default theme.
  • Changing language name was breaking this, this is fixed:
    • Text header was sometimes not available.
    • It was breaking full text-to-speech dispatcher. Issue signaled with issue #80
  • Support for PHP 7.4 restored, wrappers for str_starts_with, str_ends_with, str_contains.
  • The encoding of docs/info.html is finally fixed!
  • ggl.php feature fixed!
  • Multi-words:
    • Sometimes multi-words indicator was cut, resulting in strange display (#89).
    • For Japanese: multi-words indicator was before each character, this is fixed #96.
  • Wrong link to documentation (docs/info.php instead of docs/info.html) on the help button (main page). Signaled by babaeali on Discord.
  • Depending on browser, clicking on deletion button for active texts had no effect.

Deprecated

  • Dictionary and translator URIs changed:
    • They should always be proper URLs.
    • Replacing ### by lwt_term is strongly recommended!
    • "*" At the beginning of an URI should be replaced by lwt_popup=1 as an argument.
    • ggl.php should be replaced by the file full URL, for instance "http://localhost/lwt/ggl.php".

Full Changelog