[Kstars-devel] [PATCH] Support of non-western constellations
Jérôme SONRIER
jsid at emor3j.fr.eu.org
Wed Oct 15 01:28:51 CEST 2008
Hello,
This patch adds support of non-western constellations. It adds a
combobox in the guides configuration panel to choose a "sky culture"
and modifies clines.dat and cnames.dat to handle different cultures.
Here is what the patch makes :
- add lines beginning by a 'C' in clines.dat and cnames.dat for identify
cultures.
My first idea was to make one file per culture (e.g. clines-chinese.dat,
clines-egyptian.dat,...) and provide them with Get Hot New Stuff, but I
don't know how to find all clines*.dat to fill the combobox so I put
all cultures in one file. If not satisfactory, we can change this in
the future.
- OpsGuides parses cnames.dat to find differents cultures and fill the
combobox in configuration panel
- lines and names of Constellations are reloaded each time configuration
is applied
- boundary of constellations are visible only if the western culture is
selected
- ConstellationLines::init and ConstellationNamesComponent::init have
been modified to load only the selected culture
Notes :
Lots of constellations are missing because some stars don't have a Bayer
designation and I can not use them in clines.dat (e.g. HD224926,
HD2411,...). Is there a way to use this stars in clines.dat ?
Cultures must appear in the same order in clines.dat and cnames.dat and
new cultures must be added at the end of the files because KConfig
saves the index of combobox and not the name of the culture.
All the names of new contellations are in english except when
translation isn't avaliable; in this case the original name is use.
I found all the datas about constellations in stellarium source code.
This patch partially fix the wish 170574.
ps : sorry for my bad english.
--
Jérôme SONRIER
-------------- next part --------------
A non-text attachment was scrubbed...
Name: non-western-constellations.diff
Type: text/x-diff
Size: 39876 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20081015/b7c7a36a/attachment-0001.bin
More information about the Kstars-devel
mailing list