Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.basic.misc

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2012, 07:30 PM
DonH
Guest
 
Posts: n/a
Default Can Basic be bilingual?

I tried to transfer Greek letters into a Basic program, but found this
impossible, as all were automatically converted into their English
equivalent.
Windows itself has no problem, but Basic must be unilingual - being at a
primitive level?
Or, is it just that I don't know the technique?


Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 03-29-2012, 08:19 PM
Karl E. Peterson
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

DonH pretended :
> I tried to transfer Greek letters into a Basic program, but found this
> impossible, as all were automatically converted into their English
> equivalent.
> Windows itself has no problem, but Basic must be unilingual - being at a
> primitive level?
> Or, is it just that I don't know the technique?


No where near enough information here.

You don't even say what "Basic" language you're using. If it's VB6,
you might find http://www.i18nwithvb.com/ worth a peek.

--
..NET: It's About Trust!
http://vfred.mvps.org


Reply With Quote
  #3 (permalink)  
Old 03-30-2012, 07:54 PM
DonH
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

"Karl E. Peterson" <karl@exmvps.org> wrote in message
news:jl2g3v$2b9$1@dont-email.me...
> DonH pretended :
>> I tried to transfer Greek letters into a Basic program, but found this
>> impossible, as all were automatically converted into their English
>> equivalent.
>> Windows itself has no problem, but Basic must be unilingual - being at
>> a primitive level?
>> Or, is it just that I don't know the technique?

>
> No where near enough information here.
>
> You don't even say what "Basic" language you're using. If it's VB6, you
> might find http://www.i18nwithvb.com/ worth a peek.
>
> --
> .NET: It's About Trust!
> http://vfred.mvps.org
>
>


# I use MS-QBasic, under Windows (DOS), and find it quite satisfactory.
The bilingual endeavour was only a casual attempt, and of no real
concern - as Windows itself, and WWWeb, can accommodate.
I suppose that even at relatively primitive Basic level, the additional
characters of, eg Cyrillic or Germanic alphabets, could be covered if the
ASCII (American!) binaries were expanded.
Presumably, Basic in non-English nations is entirely in their language -
but that is not bilingual.


Reply With Quote
  #4 (permalink)  
Old 03-30-2012, 08:34 PM
Karl E. Peterson
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

DonH formulated the question :
> # I use MS-QBasic, under Windows (DOS), and find it quite satisfactory.
> The bilingual endeavour was only a casual attempt, and of no real concern
> - as Windows itself, and WWWeb, can accommodate.
> I suppose that even at relatively primitive Basic level, the additional
> characters of, eg Cyrillic or Germanic alphabets, could be covered if the
> ASCII (American!) binaries were expanded.
> Presumably, Basic in non-English nations is entirely in their language -
> but that is not bilingual.


Hmmm, well, that /is/ a DOS application, so you need to look at
"ancient" things like codepages and such to do that. DOS is very
limited, as I recall, to 256 characters at a time. Sorry I can't offer
better advice. It's been nearly a quarter century since I had to mess
with that stuff.

--
..NET: It's About Trust!
http://vfred.mvps.org


Reply With Quote
  #5 (permalink)  
Old 03-30-2012, 10:21 PM
ralph
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

On Sat, 31 Mar 2012 06:54:30 +1100, "DonH" <donlhumphries@bigpond.com>
wrote:

>"Karl E. Peterson" <karl@exmvps.org> wrote in message
>news:jl2g3v$2b9$1@dont-email.me...
>> DonH pretended :
>>> I tried to transfer Greek letters into a Basic program, but found this
>>> impossible, as all were automatically converted into their English
>>> equivalent.
>>> Windows itself has no problem, but Basic must be unilingual - being at
>>> a primitive level?
>>> Or, is it just that I don't know the technique?

>>
>> No where near enough information here.
>>
>> You don't even say what "Basic" language you're using. If it's VB6, you
>> might find http://www.i18nwithvb.com/ worth a peek.
>>
>> --
>> .NET: It's About Trust!
>> http://vfred.mvps.org
>>
>>

>
># I use MS-QBasic, under Windows (DOS), and find it quite satisfactory.
> The bilingual endeavour was only a casual attempt, and of no real
>concern - as Windows itself, and WWWeb, can accommodate.
> I suppose that even at relatively primitive Basic level, the additional
>characters of, eg Cyrillic or Germanic alphabets, could be covered if the
>ASCII (American!) binaries were expanded.
> Presumably, Basic in non-English nations is entirely in their language -
>but that is not bilingual.
>


There are such character sets/mappings, for example, Latin-1. But that
would hardly resolve the issue.

A few exotic attempts have been made to create 'bilingual' or
'localized' programming languages , however, those were mostly just
scripting front-ends for a 'single language' compiler (ie, a
pre-pre-processor) and pretty much a failure. This excludes those
attempts where a parser/compiler is converted to another language. For
example, there are Russian and Chinese versions of BASIC - but they
would be as mystified with English as your QBasic is with Greek.

In general no such a thing exists in programming. The main problem is
Keywords and Libraries. Imagine the complexity that would be
introduced if ...
SI(...)
SE(...)
AV(...)
IF(...)
may or may not be indicating an "If" block.

What if a Spanish programmer passed his source code across the border
to his Portuguese buddy for additional coding, who then passed it on
to England? You would then have code full of SI(...), IF(...), and
SE(...) blocks all meaning the same thing. Not only would the number
of Keywords and Library name space expand but the code itself would
turn into a jumbled mess.

Not to mention the fact that choices for creating a non-keyword
variable would decrease considerably. <g>

-ralph
Reply With Quote
  #6 (permalink)  
Old 03-31-2012, 01:08 AM
Hector Alfaro
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

El 30/03/2012 03:24 p.m., DonH escribió:
> "Karl E. Peterson" <karl@exmvps.org> wrote in message
> news:jl2g3v$2b9$1@dont-email.me...
>> DonH pretended :
>>> I tried to transfer Greek letters into a Basic program, but found this
>>> impossible, as all were automatically converted into their English
>>> equivalent.
>>> Windows itself has no problem, but Basic must be unilingual - being at
>>> a primitive level?
>>> Or, is it just that I don't know the technique?

>>
>> No where near enough information here.
>>
>> You don't even say what "Basic" language you're using. If it's VB6, you
>> might find http://www.i18nwithvb.com/ worth a peek.
>>
>> --
>> .NET: It's About Trust!
>> http://vfred.mvps.org
>>
>>

>
> # I use MS-QBasic, under Windows (DOS), and find it quite satisfactory.
> The bilingual endeavour was only a casual attempt, and of no real
> concern - as Windows itself, and WWWeb, can accommodate.
> I suppose that even at relatively primitive Basic level, the additional
> characters of, eg Cyrillic or Germanic alphabets, could be covered if the
> ASCII (American!) binaries were expanded.
> Presumably, Basic in non-English nations is entirely in their language -
> but that is not bilingual.
>
>


In the qbasic online help there is an ascii table with all the available
characters in your current codepage.

On a real DOS environment you can change codepage but not sure on windows.

Try yabasic, libertybasic, lbb, they are similar languages with new
features that run as real windows applications.



Reply With Quote
  #7 (permalink)  
Old 03-31-2012, 06:47 PM
DonH
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

"Hector Alfaro" <alfaropas@ceropublicidad.com> wrote in message
news:jl5lfa$ei6$1@speranza.aioe.org...
> El 30/03/2012 03:24 p.m., DonH escribió:
>> "Karl E. Peterson" <karl@exmvps.org> wrote in message
>> news:jl2g3v$2b9$1@dont-email.me...
>>> DonH pretended :
>>>> I tried to transfer Greek letters into a Basic program, but found this
>>>> impossible, as all were automatically converted into their English
>>>> equivalent.
>>>> Windows itself has no problem, but Basic must be unilingual - being
>>>> at
>>>> a primitive level?
>>>> Or, is it just that I don't know the technique?
>>>
>>> No where near enough information here.
>>>
>>> You don't even say what "Basic" language you're using. If it's VB6, you
>>> might find http://www.i18nwithvb.com/ worth a peek.
>>>
>>> --
>>> .NET: It's About Trust!
>>> http://vfred.mvps.org
>>>
>>>

>>
>> # I use MS-QBasic, under Windows (DOS), and find it quite satisfactory.
>> The bilingual endeavour was only a casual attempt, and of no real
>> concern - as Windows itself, and WWWeb, can accommodate.
>> I suppose that even at relatively primitive Basic level, the
>> additional
>> characters of, eg Cyrillic or Germanic alphabets, could be covered if the
>> ASCII (American!) binaries were expanded.
>> Presumably, Basic in non-English nations is entirely in their
>> language -
>> but that is not bilingual.
>>
>>

>
> In the qbasic online help there is an ascii table with all the available
> characters in your current codepage.
>
> On a real DOS environment you can change codepage but not sure on windows.
>
> Try yabasic, libertybasic, lbb, they are similar languages with new
> features that run as real windows applications.
>


# Thanks.
=========================
CLS
REM ==================================================
REM Greek Letters occur, as ASCII characters:
REM ==================================================
DIM a$(224 TO 240), b$(224 TO 240), c$(3 TO 6)
FOR n = 224 TO 240
a$(n) = CHR$(n)
NEXT n
PRINT
PRINT "================================================= ======="
FOR n = 224 TO 240
READ b$(n)
NEXT n
DATA "alpha","beta","gamma","pi", "sigma", "sigma"
DATA "mu", "tau", "phi","theta", "omega", "delta"
DATA "psi","phi", "epsilon", "pi","xi"
FOR n = 224 TO 240
PRINT a$(n); "="; b$(n),
NEXT n
PRINT "================================================= ======="
FOR n = 3 TO 6
c$(n) = CHR$(n): PRINT c$(n); " ";
NEXT n
END



Reply With Quote
  #8 (permalink)  
Old 04-05-2012, 02:58 PM
steve
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

DonH, as you've illustrated, QBasic can print the Greek ascii
characters, but, it's not designed to function in a bilingual mode.
I'm not at all sure what your intention is. Is it simply to output
Greek text, or to actually write programs in Greek ?
If the latter, that is beyond the capabilities of QBasic.
Reply With Quote
  #9 (permalink)  
Old 04-05-2012, 07:35 PM
DonH
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

"steve" <blunt.axe.basic@gmail.com> wrote in message
news:d2ea36cd-2819-4c6a-8a6a-26a720920da5@v7g2000pbs.googlegroups.com...
> DonH, as you've illustrated, QBasic can print the Greek ascii
> characters, but, it's not designed to function in a bilingual mode.
> I'm not at all sure what your intention is. Is it simply to output
> Greek text, or to actually write programs in Greek ?
> If the latter, that is beyond the capabilities of QBasic.


# Mine is only a casual interest, and all I wanted was to transliterate
Greek letters into English equivalent, not translate.
It seems the QBasic listing of Greek letters is only for mathematical
purposes, but the full alphabet (alpha to omega) is listed in my Penguin
Dictionary of Mathematics, even if not all letters are used by
mathematicians.
In QBasic's case, it may be an opportunity missed.


Reply With Quote
  #10 (permalink)  
Old 04-06-2012, 12:33 AM
steve
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

On Apr 5, 12:35*pm, "DonH" <donlhumphr...@bigpond.com> wrote:
> * *In QBasic's case, it may be an opportunity missed.


Well, you have to consider the time frame in which QBasic was
developed (mid '80s) and the limitations of both the hardware and
software of the time. Windows pretty much solved that. If I recall
correctly, the ascii character set was contained on the rom bios. It
may still be.
I remember reading in one of my reference books, that there was a way,
that if you had created your own character set, you could
programatically replace the character set with your own, loaded in
ram. Then, you would re-vector the location where dos went to lookup
the characters. It's a possibility.
Reply With Quote
  #11 (permalink)  
Old 04-07-2012, 08:44 PM
Helmut_Meukel
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

DonH wrote:
> "steve" <blunt.axe.basic@gmail.com> wrote in message
> news:d2ea36cd-2819-4c6a-8a6a-26a720920da5@v7g2000pbs.googlegroups.com...
>> DonH, as you've illustrated, QBasic can print the Greek ascii
>> characters, but, it's not designed to function in a bilingual mode.
>> I'm not at all sure what your intention is. Is it simply to output
>> Greek text, or to actually write programs in Greek ?
>> If the latter, that is beyond the capabilities of QBasic.

>
> # Mine is only a casual interest, and all I wanted was to transliterate Greek
> letters into English equivalent, not translate.


Hmmm,
you do realize English is written using Latin letters, do you?
And there is no 1:1 correspondence between the "Greek" and the "Latin"
characters. Some are equivalent, but not all.
If three scholars are tasked to write an english text using "Greek"
letters, I bet you get at least 5 different verions. ;-)

Helmut.


Reply With Quote
  #12 (permalink)  
Old 04-08-2012, 08:59 PM
DonH
Guest
 
Posts: n/a
Default Re: Can Basic be bilingual?

"Helmut_Meukel" <Helmut_Meukel@bn-hof.invalid> wrote in message
news:jlq8ua$vlt$1@dont-email.me...
> DonH wrote:
>> "steve" <blunt.axe.basic@gmail.com> wrote in message
>> news:d2ea36cd-2819-4c6a-8a6a-26a720920da5@v7g2000pbs.googlegroups.com...
>>> DonH, as you've illustrated, QBasic can print the Greek ascii
>>> characters, but, it's not designed to function in a bilingual mode.
>>> I'm not at all sure what your intention is. Is it simply to output
>>> Greek text, or to actually write programs in Greek ?
>>> If the latter, that is beyond the capabilities of QBasic.

>>
>> # Mine is only a casual interest, and all I wanted was to transliterate
>> Greek
>> letters into English equivalent, not translate.

>
> Hmmm,
> you do realize English is written using Latin letters, do you?
> And there is no 1:1 correspondence between the "Greek" and the "Latin"
> characters. Some are equivalent, but not all.
> If three scholars are tasked to write an english text using "Greek"
> letters, I bet you get at least 5 different verions. ;-)
>
> Helmut.
>
>

# There is sufficient correspondence with most of the Latin alphabet for my
purposes -
ABC(K)DEFGILMNOPRSTV(U)XZ - and can guess the rest from context, if left
blank.


Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:04 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.