Temlakos пишет:
> Gentlemen:
>
> This might seem a strange request, but I think about it every time I
> write a query (with #ask and now with #show) with a non-linear data
> type, either Temperature or my new Historical Date.
>
> I would like to be able to specify, in the query, which unit (as kelvins
> or degrees Celsius, Fahrenheit, or Rankine) or which calendar (as
> Gregorian, Hillel, or AM) should display in query output. For example,
> say I wanted to write a biographical article on David ben-Gurion. Now as
> it stands, I can /annotate/ his dates of birth and death (or any other
> event in his life) in the Hillel II calendar. But if I write a query,
> I'm going to get it in the Gregorian calendar, and I'm pretty much stuck
> with that.
>
> How do I enable my custom script (SMW_DV_HxDate.php) to support
> specified calendar formats for query processing?
>
> What output does the query processor even ask for? I think it's
> ShortWikiText, because I get the tooltip dialog balloon.
>
> But how do I get the baseline value to display according to a calendar
> other than the Julio-Gregorian calendar (that is, BC/AD)? In short, how
> do I get this:
>
> {{#show: David ben Gurion|?Born#H}}
>
> to display "17 Tishrei 5647" instead of "16 October 1886"?
>
> Or how would I get
>
> {{#show: Exodus of Israel|?Date#AM}}
>
> to display "15 Abib 2513 AM" instead of "12 April 1491 BC"?
>
> I would welcome any assistance.
>
> Temlakos
>
>
Unfortunately I cannot provide any idea, but I wonder whether
anniversaries (historical events of the day,
events of the month) are of interest to you?
I think historical wikis can much benefit from that. I've had an idea to
add three numerical fields to
'smw_atts2' table: orddate_leap, orddate_non_leap, value_year
corresponding to each value of Date type.
These fields would be updated with every storage of property of Date type.
Then the queries of historical events of the day/month/year would be
much simplier and efficient.
Though I think there's a problem with multiple calendars, which would
require different orddate and year
values.. gregorian_orddate_leap, hebrev_orddate_leap (are there leap
years in another calendars?
I should look at...)
Probably would needs the whole new table instead of just adding few
fields to 'smw_atts2'..
Dmitriy
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel