Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jan-Erik Lärka

Pages: [1] 2 3 ... 23
1
Programming / Re: [Classic Rexx] Translation database
« on: November 03, 2025, 08:53:43 pm »
Related topic: [Classic Rexx] How can one pipe data to application?

I've been bussy to rewrite the script.
It take ISO files with OS/2-eCS-ArcaOS, source language and target language, extract and interpret various file formats/resoruces and add translations to a database (SQLite), but also use online resources (database and google) when possible to translate text.
This version is more capable, but I still need your help.

I need your help to find more translation sources and add how to parse and add them.

This script is currently available in English and Swedish... and with your help soon also in your language ;)
It is built as a menu system that use .msg files to output text, thus need your time to translate it. (See files in the folder TRN_MSG_TXT)

It is intended to be able to translate itself, but it is unlikely right now since the word-to-word translations available, focus on other phrases and words.

The current sources for translations are:
https://download.wikdict.com/dictionaries/sqlite/
http://translate.googleapis.com/translate_a/
saldo.xml or swesaurus.xml specifically for Swedish
and the OS/2 centric ftp://ftp.zx.net.nz/pub/archive/service.boulder.ibm.com/ps/products/os2/fixes/

Someone may want to create a function that can parse either the 19Gb large jsonl within https://kaikki.org/dictionary/raw-wiktextract-data.jsonl.gz or the smaller kaikki.org-dictionary-<Language>.jsonl and help me here! and/or perhaps mare the related python scripts available... whatever it can be used for.

What is lacking that also need your assistance to solve:
Caseless comparison of phrases/words within the sqlite database when used with national characters.
Code to use additional online and offline translation sources.
SQL views within the database that can be useful to output translations into various useful file formats.
Graphical software to add and use translations!

Good to have tool: DB Browser for SQLite by TeLLie


Interactive guide
=============

 1. Information
 2. Preparations
 3. Usage
 4. Change default language/country
 5. Start

 0. Exit

Type a number from the list above: 5


Start
====

 1. Combine translation of OS/2, eComStation or ArcaOS
 2. Combine translation between en and fr
 3. Create database for translation between en and fr
 4. Import text to translate between en and fr

 5. Change source language from en to translate from
 6. Change target language from fr to translate to

 0. Exit

Type a number from the list above (Enter to return): 1


Source ISO-file of OS/2, eComStation or ArcaOS in en: C:\var\ArcaOS-5.0.7.iso
The Process Identification Number is 5474.
Path to ISO-file of OS/2, eComStation or ArcaOS in fr (or Empty): E:\Operatingsystem\OS2 Warp 4\Warp_4_fr.ISO
The Process Identification Number is 5481.


2
Graphics and Window Design / Re: Icons For Your OS/2 Desktop No.8
« on: October 15, 2025, 09:44:26 pm »
Thanks for sharing this Jan-Erik.

I also want to upload it to hobbes.
Please do!
Is this your eight release? Does it replace 1 to 7 version?

Regards
Yes, but some icons have evolved, while others have been replaced and/or removed.
I've changed several names compared to prevoious releases.

3
Graphics and Window Design / Icons For Your OS/2 Desktop No.8
« on: October 15, 2025, 06:53:42 pm »
Hello,

Some OS/2 icons to look at, you'll notice that you don't need full color depth for such small images.
Available as 40x40, 32x32, 20x20 and 16x16.

4
Programming / Re: REXX IDE recommendations?
« on: August 09, 2025, 11:08:18 am »
Hello Dan,

I like the newer eFTE v1.1 and MED.

REXX Tips & Tricks v3.60 contain a lot of useful info.

You may want to look at this post: Topic: REXX tutorials -- start developing applets under ArcaOS out-of-the-box
that contain a script that download and create program objects for rexx.

 1. REXX for the absolute beginner
 2. Rexx Reference Summary Handbook
 3. REXX Tips & Tricks v3.60
 4. Learning REXX Programming in 56,479 Steps
 5. OS/2 REXX. From Bark to Byte
 6. REXX Programmers Reference 2nd Edition
 7. REXX Tutorial
 8. A Practical Approach to Programming
 9. OS/2 2.1 Rexx Handbook (Warning! 321MB)
10. Extending the Workplace Shell with Object Rexx

5
Games / Re: Please test - OpenTTD v12.1
« on: July 18, 2025, 07:18:53 am »
For new user trying it output:
[D:\OpenTTD]openttd
Error: No available language packs (invalid versions?)

the important thing to look for is to check what version you're trying of OpenTTD and download the Windows-32-bit .zip (for OpenTTD 14.1: "openttd-14.1-windows-win32.zip") package that contain all the files needed, unpack them (except openttd.exe) next to openttd.exe by Paul.

Hmmm trying setting the set lang to en_us....

It might fix it :-)

Roderick

Hahaa, If one just download the huge openttd.exe from here and try it, one get that message. One has to also get the Win32 .zip and unpack the files to the same folder and to actually make it work. Language doesn't matter, the message is misleading that way.

I would like to get a screen captures of how to retrieve audio and music in german, english, french, italian, dutch and swedish to complete the wpi I've put together. The problem here is that screen capture doesn't work with sdl2 window, so someone that run it in a virtual machine can get it?!

6
Games / Re: Please test - OpenTTD v12.1
« on: July 16, 2025, 07:19:06 am »
For new user trying it output:
[D:\OpenTTD]openttd
Error: No available language packs (invalid versions?)

the important thing to look for is to check what version you're trying of OpenTTD and download the Windows-32-bit .zip (for OpenTTD 14.1: "openttd-14.1-windows-win32.zip") package that contain all the files needed, unpack them (except openttd.exe) next to openttd.exe by Paul.

7
Games / Re: Please test - OpenTTD v12.1
« on: July 14, 2025, 08:48:00 pm »
Hello David,

how do one run it?
what do one need to use it? (yum /y install SDL2)
any need to manually download the 3 game packages from the site?

8
Applications / Re: Mouse Cursor disapear.
« on: July 02, 2025, 09:13:47 am »
The mouse pointer (image) seen on the screen disappear, but the function still is there.

Move our mouse repeatedly so it en upp in the lower left corner (if xCenter is positioned there), lift the mouse if you have to between movements. The bubble help will appear over the button it hoover.

Click on the X/OS/2-Warp/eCS/ArcaOS-button and use the keyboard to navigate to the Program->Utilities->Text Editor
Once it start successfully as mentioned the mouse pointer image apoear again.

Another way is to try to click on the desktop, press P on the keyboard, Enter, U, Enter, T, Enter... unless there is another folder/program object that start with the letter that you may need to compensate for.

9
sqlite3 seems to use special syntax

Yes, it is somewhat special, but also useful once one find out that the character ; (semicolon) is important.

In the below example one load the database (en2sv.db3) at start by specifying the name as parameter to sqlite3
Then one can input a command that begin with a . (dot) or SQL query.
The enter key just add a new line, while ; & Enter instruct sqlite3 to process what has been entered on the lines above since previous instruction.

Code: [Select]
OS/2 Command Interpreter version 4.5


[D:\PROGRAMS\DRDIALOG\WRD2NLV]sqlite3 en2sv.db3
SQLite version 3.28.0 2019-04-16 19:49:53
Enter ".help" for usage hints.
sqlite> SELECT
   ...>  *
   ...> FROM
   ...>  CLASSIFICATION
   ...> LIMIT 3;
1||Substantiv|152
2||Adjektiv|152
3||Räkneord|152
sqlite>
National characters such as ä above appear as UTF-8 characters and not as ä in codepage 850.

The SELECT could have been entered on one line as well, but this illustrate that it is possible to build complex queries over severeal lines.
Read more on https://sqlite.org/index.html and for the vio/cli command line tool https://sqlite.org/cli.html while the gui tool ported by TeLLie provide a more friendly user experience.

10
ok, this pipe info out of the application into the script (WIN),

how do one send instructions out from the script (WIO) into the application (applications stdin)?

11
There's a text file mentioning how to call functions, but most people new to something as this need help to grasp how and why to knit this function together with that to achieve the desired result.

Example 1: "SysFileTree" was unthinkable to me to use to find or search for files when I begun to try Rexx, the function should have been named SysSearchPath, SysFindFile or something along those lines, not "...Tree", totally bonkers name.

Example 2: Pipe in, pipe out. What "end" of the pipe do one define? I want to output data as text instructions/parameters to one end of the pipe to be sent through the pipe into the application as instructions/parameters just as input by keyboard. It should not block the application that run.

Could you enlighten me how to do such things with RXUTILEX?

How to send commands to sqlite3.exe

:D

12
Programming / [Classic Rexx] How can one pipe data to application?
« on: June 10, 2025, 09:15:44 pm »
I have an urgent need to understand how to redirect instructions to a VIO/CLI application (or several) that take commands via stdin and output data to stdout. Depending on the input it exit or require more input.

I've looked at a code sample for ePDF (Print2PS) but it is designed for the oposite situation, and examples for rxu, C/C++ on OS/2 or whatever appear to be unavailable.

Yes, one can write instructions to a file and run it with something like
Code: [Select]
app.exe < "file.txt"|RXQUEUEbut then one must know the reply in advance or ensure to exit (even though one would like to continue in that session).
I use that approach now, but it is ugly, slow etc.

What I need can be described as redirection of stdin and stdout through the use of a (possibly named) pipe.

13
Games / Re: Please test - OpenTTD v12.1
« on: June 01, 2025, 12:09:24 am »
Yes, there no output visible or hidden as i run it on the command line.
with or without redirecting stderr with 2>&1 and/or to a text file.

Ordinary applications woulld complain about missing .dlls and configuration files etc. but this one doesn't even show usage.

So if I add -h it output text on the console... OpenTTD 12.2 ... Seem as if it find the files downloaded and list those, but trying random parameters doesn't start anything. It just finish right away.

The version v1.4 from 2014 start up without parameters and offer to download stuff (before it freeze).

14
Games / Re: Please test - OpenTTD v12.1
« on: May 31, 2025, 01:17:41 pm »
I'm trying to run OpenTTD (the SDL v1.2 version can still be downloaded) but here it just ... finish without anything apparent on screen almost right away. No errors seen and nothing else that tell me what's going on.

I've placed the three .tar files in a sub folder \baseset relative to openttd.exe

15
Programming / Re: [Classic Rexx] Translation database
« on: May 26, 2025, 10:27:35 pm »
Time is up!
Here's the update that add Numerals.
This now also show the word for to_language for prefix, suffix, language and numerals.
The view PHRASE_VW has been adjusted to allow that.

What files should one take on next?
Hmmm, lip packages while we're at it?

Pages: [1] 2 3 ... 23