Hi!
Announcement
At
http://members.lycos.nl/jupp/linux/soft/ruby/Periodic.html
you can find Peridic.rb
Periodic.rb is a Ruby module that provides information about all
chemical elements as a single constant table named Periodic::Table.
The database is taken from Gperiodic that is released under GPL. The
character set used for the table is ISO 8859-1. Information that is
not available is encoded as nil.
Periodic::Table[0] provides descriptions of the table’s columns
(listed on the page), whereas Periodic::Table[1] through
Periodic::Table[118] provide information about H (Hydrogen) through
Uuo (Ununoctium) the index being the element’s atomic number.
RAA question
RAA seemingly has no Chemistry section. Periodic.rb is rather
chemistry-oriented (it e.g. has no information about radioactive
decay channels or isotopes but oxidation levels) so that it does not
nicely fit in the Physics section.
Still I would recommend not adding such a section but rather
renaming the Physics section into Physics/Chemistry or
Chemistry/Physics (because there are not only physics and chemistry
but also physical chemistry or chemical physics).
What do others people think about that?
oyasumi-nasai
Josef ‘Jupp’ Schugt <jupp (at) gmx.de> http://jupp.tux.nu/
Josef ‘Jupp’ Schugt wrote:
…
Still I would recommend not adding such a section but rather
renaming the Physics section into Physics/Chemistry or
Chemistry/Physics (because there are not only physics and chemistry
but also physical chemistry or chemical physics).
What do others people think about that?
“Science” would be too vague, but how about “Physical Science”? Or, as
you suggest, “Chemistry/Physics”.
Hi!
At
http://members.lycos.nl/jupp/linux/soft/ruby/Periodic.html
you can now find version 0.2 of Periodic.rb.
Periodic.rb is a Ruby module that provides information about all
chemical elements as a single constant table named Periodic::Table.
The database is taken from Gperiodic that is released under GPL. The
character set used for the table is ISO 8859-1. Information that is
not available is encoded as nil.
Periodic::Table[0] provides descriptions of the table’s columns
(listed on the page), whereas Periodic::Table[1] through
Periodic::Table[118] provide information about H (Hydrogen) through
Uuo (Ununoctium) the index being the element’s atomic number.
New in version 0.2 is that Periodic.Table[n][0] has become a hash
that contains the Element names in different languages.
To select a certain language you need to provide the IS639 language
code. Follows list of language codes supported in the most recent
version:
de (German)
en (English)
fr (French)
Example:
Periodic.Table[50][0][‘de’] = ‘Zinn’
Periodic.Table[50][0][‘en’] = ‘Tin’
Periodic.Table[50][0][‘fr’] = ‘Etain’
French names of elements are spelled according according to Hachette:
Dictionnaire pratique du français.
German names of elements are spelled according to the by far most
famous German book on Engineering, Hütte: Die Grundlagen der
Ingenieurwissenschaften (note that in some cases the spelling used by
scientists is not necessarily the one used by other people.
As far as elements with atomic number above 100 are concerned I did
make sure that the names of elements of atomic numbers greater than
100 are that proposed by the IUPAC (International Union of Pure and
Applied Chemistry).
Josef ‘Jupp’ Schugt
···
–
.---------------------. .------…—…-----…—…-----.
http://jupp.tux.nu/ | | jupp || @ || gmx || . || net |
---------------------'
------‘---'
-----’---'
-----’
Version 0.3 of Periodic.rb is available at
http://members.lycos.nl/jupp/linux/soft/ruby/Periodic.html
Periodic.rb is a Ruby module that provides information about all
chemical elements as a single constant table named Periodic::Table.
Information that is not available is encoded as nil.
Since version 0.2 the character encoding has been changed to UTF-8 in
order to allow for Japanese and Russian. DUTCH, ESPERANTO, JAPANESE,
RUSSIAN, and SPANISH names of elements have been added.
To select a certain language you provide the ISO 639 language code.
Follows list of language codes supported in the most recent version:
- de (German)
- en (English)
- eo (Esperanto)
- es (Spanish)
- fr (French)
- jp (Japanese)
- nl (Dutch)
- ru (Russian)
Example: ruby -r Periodic -e “puts Periodic::Table[50][0][‘de’]”
outputs: Zinn
For details see above URL.
Josef ‘Jupp’ Schugt
···
–
.---------------------. .------…—…-----…—…-----.
http://jupp.tux.nu/ | | jupp || @ || gmx || . || net |
---------------------'
------‘---'
-----’---'
-----’
“Josef ‘Jupp’ Schugt” jupp@gmx.de wrote in message news:<20030315011719.GA3712@jupp%gmx.de>…
Version 0.3 of Periodic.rb is available at
http://members.lycos.nl/jupp/linux/soft/ruby/Periodic.html
Periodic.rb is a Ruby module that provides information about all
chemical elements as a single constant table named Periodic::Table.
Information that is not available is encoded as nil.
Since version 0.2 the character encoding has been changed to UTF-8 in
order to allow for Japanese and Russian. DUTCH, ESPERANTO, JAPANESE,
RUSSIAN, and SPANISH names of elements have been added.
To select a certain language you provide the ISO 639 language code.
Follows list of language codes supported in the most recent version:
- de (German)
- en (English)
- eo (Esperanto)
- es (Spanish)
- fr (French)
- jp (Japanese)
- nl (Dutch)
- ru (Russian)
Example: ruby -r Periodic -e “puts Periodic::Table[50][0][‘de’]”
outputs: Zinn
For details see above URL.
Josef ‘Jupp’ Schugt
Are you going to include a haiku for each element?
http://www.iscifistory.com/scifaku/elements/periodichaiku.asp
Dan
EHLO
Version 0.4 of Periodic.rb is available at
http://members.lycos.nl/jupp/linux/soft/ruby/Periodic.html
Periodic.rb is a Ruby module that provides information about all
chemical elements as a single constant table named Periodic::Table.
Information that is not available is encoded as nil.
Changes since version 0.3:
-
The element names are now encoded as arrays of strings to allow
for alternative spellings.
-
A number of alternative spellings have been added.
-
The table has been limited to elements with element number smaller
than 110.
-
Afrikaans, Albanian, Bulgarian, Croatian, Czech, Danish, Estonian,
Finnish, Frisian, Italian, Latin, Luxembourgian, Lithuanian,
Macedonian, Malay, Norwegian, Polish, Portugese, Serbian, Slovak,
Swedish, Ukrainian, and Uzbek names of elements have been added.
To select a certain language you provide the ISO 639 language code.
Follows list of language codes supported in the most recent version:
- af (Afrikaans)
- bg (Bulgarian)
- cs (Czech)
- da (Danish)
- de (German)
- en (English)
- eo (Esperanto)
- es (Spanish)
- et (Estonian)
- fi (Finnish)
- fr (French)
- fy (Frisian)
- hr (Croatian)
- it (Italian)
- jp (Japanese)
- la (Latin)
- lb (Luxembourgian)
- lt (Lithuanian)
- mk (Macedonian)
- ms (Malay)
- nl (Dutch)
- no (Norwegina)
- pl (Polish)
- pt (Portugese)
- ru (Russian)
- sk (Slovak)
- sq (Albanian)
- sr (Serbian)
- sv (Swedish)
- uk (Ukrainian)
- uz (Uzbek)
Example: ruby -r Periodic -e "puts Periodic::Table[50][0][‘de’][0]"
outputs: Zinn
···
–
jupp (AT) gmx (DOT) de :. …:
::…::::::
http://jupp.tux.nu ::::::::::::::::::
’’’’’’’’’’ dxm