|
Post by tenochtitlanuk on Aug 14, 2019 8:51:55 GMT -5
I recently created a useable English/Welsh forward/reverse dictionary to celebrate 50 years with my Welsh wife. After dismissing an approach using word$( because of its problems on long strings, I used instr( to make what amounts to a content-addressable dictionary. Not perfect ( use Google translate for a closer method) but fun to achieve so much in a short LB program.
Search for a Welsh word Cegin, n. a kitchen Cariad, n. love; a lover Diochel, a. unavoidable Draig, n. dragon; lightning Yma, adv. here, in this place
Search for an English word Cegin, n. a kitchen Baban, n. a babe, baby Coflaid, n. what is embraced; a bosom friend; a darling Arlas, a. tipped with blue Anesgud, a. not quick, slow
PS Never did like the insistence on English-only on this forum! Cymru am byth!
|
|
ntech
New Member
Posts: 49
|
Post by ntech on Aug 14, 2019 9:39:51 GMT -5
I didn't know that the Welsh language existed, but it seems pretty cool! It has a medieval ring to it.
|
|
|
Post by tenochtitlanuk on Aug 14, 2019 10:06:33 GMT -5
Widely spoken in Wales. Celtic roots shared with Cornwall, Ireland, Scotland and the Basque country.
So much more ancient than English which is less than 1500 years old and is a mixture of Latin, French and Scandinavian!
Children in Wales are educated bi-lingually up to secondary level, and a working knowledge at least is required for government posts.
And it inspired many of Tolkien's words in Lord of the Rings!
|
|
|
Post by tenochtitlanuk on Aug 23, 2019 8:02:50 GMT -5
Currently working on a Spanish version with a GUI. I'm mch more fluent in it than in Welsh! Trouble is the accented characters are represented in UTF-8 in the dictionary file I am using.' May have to read through the file and replace all the accented characters as ASCII- eg in UTF-8 00 F1' represents 'enya', but so does 'A4' in plain ASCII. It works happiy to/from Spanish, and for now I let it find ANY English word with the searched-string in it, even if as part of a longer word. Easy to limit to one as an option in future. Hence looking for 'mister' at present gives any English-defined Spanish word which starts 'mister....'.
|
|
|
Post by tenochtitlanuk on Sept 5, 2019 4:50:01 GMT -5
Happy with present version. I decided it needed only one screen rather than one each for the two languages. You can download zipped dictionary and LB source code
|
|
|
Post by tsh73 on Sept 7, 2019 11:39:11 GMT -5
Hello John I tinker with your program. found strange line
if right$( E$, len( E$)) ="." then E$ =left$( E$, len( E$) -1) ' if terminated by a full stop..
According to comment, it rather should be
if right$( E$, 1) ="." then ?
|
|
|
Post by tenochtitlanuk on Sept 17, 2019 15:33:05 GMT -5
Whoops! Corrected version now on line. Thanks Anatoly! Actually I was intending to make it even shorter, since the E-->Sp and Sp-->E are so similar I could easily roll them into one parameterized function. Trouble is I´ve been rolling around the Eastern Mediterranean with only a mobile phone and intermittent signal, and my data allowance eaten up for maps and Google Earth! Seem to have had a very busy few months... hope to get back to more time on LB and get used to the new syntax of the nest version.
|
|