From 5d541361b6cb460bf375c867a4b46cf5166717ce Mon Sep 17 00:00:00 2001 From: GeoFro Date: Sat, 7 Dec 2024 05:52:24 +0200 Subject: [PATCH] adjust github page --- index.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/index.html b/index.html index dd23e92..2ff820e 100644 --- a/index.html +++ b/index.html @@ -81,6 +81,7 @@

Installation

Usage

+

Interactive Mode

  1. Run the application:

    @@ -104,6 +105,37 @@

    Usage

+

Batch Mode

+

In addition to the interactive mode, you can process multiple phrases at once using batch mode:

+ +
    +
  1. +

    Create a phrases.txt file in the project directory (you can copy from phrases.txt.example):

    +
    cp phrases.txt.example phrases.txt
    +

    Then edit phrases.txt with your phrases, one per line:

    +
    # Lines starting with # are ignored as comments
    +hello
    +goodbye
    +thank you
    +how are you
    +
  2. +
  3. +

    Run the batch processor:

    +
    npm run batch
    +
  4. +
  5. +

    For each phrase, the application will:

    +
      +
    • Show the translation
    • +
    • Ask for confirmation
    • +
    • Generate audio files
    • +
    • Add the card to your deck if confirmed
    • +
    +
  6. +
+ +

This is particularly useful when you have a list of phrases prepared in advance.

+

For more information and the source code, visit the GitHub repository.