Jump to content

Foreign (Non-English) Languages and Programming?

- - - - -

  • Please log in to reply
12 replies to this topic

#1
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Do, for example, Chinese people use Chinese characters to program? Or do they have to use the standard American type of keyboard and the ANSI character set for that?

I mean I know there are some languages that have keywords that are based on non-English languages, but what about the character set itself?

#2
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
Isn't there thousands of hieroglyphs in Chinese? Can't imagine fitting them on keyboard.
.

#3
voral

voral

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
I know such a system / language. Commands can be written in two languages​​.
Read the code in the Russian language - the horror. ;)

Meanwhile, Russian is my native language, I have poor English and more than 20 years of programming (12 as a profession)

#4
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
So it's mostly ANSI characters that are below 128?

#5
voral

voral

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts

RhetoricalRuvim said:

So it's mostly ANSI characters that are below 128?

No. Our alphabet in range from 192 to 255. For Windows-1251 Windows-1251 - Wikipedia, the free encyclopedia
or 129-266 for CP866 (DOS).
But! This is a 8-bit character encoding. There is also a multibyte encoding. For example UTF-8 UTF-8 - Wikipedia, the free encyclopedia

Sorry, for my pure English. Please read wiki for more

---------- Post added 01-25-2012 at 12:37 AM ---------- Previous post was 01-24-2012 at 11:43 PM ----------

For example: Keyboard photo http://www.computerr...hiper/08BIG.jpg

And joke - keyboard for blonde:
http://www.infobarre...a/image/894.jpg :)

#6
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
I do know that there are different encodings; I just wanted to know whether any computer languages use non-English (abcd) or non-symbol (=>-+...) characters.

#7
voral

voral

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
Yes, there are separate development. For example I have seen such language in the banking system. And as ubiquitous in the Russian system for accounting. In general, this language like as C/C++. They can use the same key words in English and Russian languages

#8
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Something like this?:
Google Translate

#9
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It depends on the language, but C/C++ generally only officially support 7-bit ASCII.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#10
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
What about languages like Arabic and Japanese? It would make sense for languages like Spanish or Russian, because they're similar to English in that there are consonants, vowels, etc., while the other languages are strange to most of us, in that they look like some scribbles. Some of them are pictographic, too; I wonder how one would program using that.

#11
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Unicode strings.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#12
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
But would those people use the ASCII character set, or do they have their own characters for programming? (And yes, I do know about unicode; and I also know what a string is, though not sure exactly what you meant in the context.)

I know that Ruby is of Japanese origin, for example; did that guy who started Ruby write it in Japanese, or did he have to learn English, or did he just use English characters?

Or in other words, would this be any different if written by a, for example, Japanese?:
sum= 0 

for i in 0..10 

  sum= sum + i 

end 

print sum
(This?: Google Translate)

I think C was written in the US, right? I don't really know where other computer languages were made, except for these one or maybe two.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users