Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translator.library with language support #1

Open
echo2go opened this issue Feb 21, 2024 · 2 comments
Open

translator.library with language support #1

echo2go opened this issue Feb 21, 2024 · 2 comments

Comments

@echo2go
Copy link

echo2go commented Feb 21, 2024

Is it possible to add support for a newer translator.library?
Under https://aminet.net/package/util/libs/translator42 you will found a version with language support. The source of it is found under https://aminet.net/package/dev/src/trans42src

@arthurchoung
Copy link
Owner

No I am only interested in the original one from Mark Barton. This version seems to require more parts of the Amiga OS to be simulated.
However since the source exists, it would make more sense to modernize that and remove the Amiga dependencies, all you really need is the output from the program, the code integrating with the Amiga system is not necessary.

@nicodex
Copy link

nicodex commented Mar 11, 2024

As mentioned, the original V42 source code could/should be ported.

However, if you want to play with modified binaries without source code, you might play around with this branch:

$ git clone --recurse-submodules --branch=translator42 https://github.com/nicodex/AmigaNarrator.git AmigaNarrator42
$ cd AmigaNarrator42/
$ make
$ ./translateas --help

If everything is in place (Accents/*.accent, Devs/narrator.device, Libs/v33_translator.library):

$ (\
  TEXT="$(\
    echo 'Können wir das schaffen? \american{Yes, we can!}' \
    | iconv -t ISO-8859-1//IGNORE -)" \
  && (echo "${TEXT}" | iconv -f ISO-8859-1 -) \
  && TRANS="$(./translateas 'deutsch' "${TEXT}" 2>/dev/null)" \
  && echo "${TRANS}" \
  && (\
    ./narrator "$TRANS" 2>/dev/null \
    | ffplay -f s8 -ar 22200 -ac 1 -autoexit -nodisp -hide_banner - 2>/dev/null \
  )\
)

(example requires iconv for the Umlaut conversion from UTF-8 to Latin-1 and ffplay, because aplay cannot play the sound on my machine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants