[Debian-hebrew-package] הכנסת libhdate-glib למאגרי דביאן

Kobi Zamir kobi.zamir at gmail.com
Fri Dec 7 10:52:43 UTC 2012


יש גרסה חדשה של libhdate-glib

שינויים בגרסה 0.5:
1. בגרסה משתמשת בפונקציות החדשות של libhdate 1.6 כך שיכול לעבוד רק עם
llibhdate 1.6 ומעלה
2. מכיל יכולות חדשות
      אילוץ עברית ללא צורך ב gettext
      זמני היום מופיעים בממשק האובייקט
3. מזהה לבד את גרסת ה libvala המותקנת, כך שאין צורת להעביר אותה ידנית ל
configure

דוגמה לתכנית java-script שמאלצת פלט עברי ומדפיסה את זמן היום:
#!/usr/bin/gjs

const Hdate = imports.gi.LibHdateGlib.Hdate;
const HdateStringType = imports.gi.LibHdateGlib.HdateStringType;

var h = Hdate.new();

// set the tade for today
h.set_today();

// force hebrew output
h.set_use_hebrew(true);

// print the date
print (h.to_string());

// get day times for tel aviv (utc time)
h.set_longitude(34.77);
h.set_latitude(32.07);

var sunrise = h.get_sunrise()
var sunset = h.get_sunset()
var first_light = h.get_first_light()
var talit = h.get_talit()
var first_stars = h.get_first_stars()
var three_stars = h.get_three_stars()

// print times in israel tz=2 dst=0
h.set_tz(2);
h.set_dst(0);

print ("sunrise - " + h.min_to_string(sunrise))
print ("sunset - " + h.min_to_string(sunset))
print ("first_light - " + h.min_to_string(first_light))
print ("talit - " + h.min_to_string(talit))
print ("first_stars - " + h.min_to_string(first_stars))
print ("three_stars - " + h.min_to_string(three_stars))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-hebrew-package/attachments/20121207/7cb79a2a/attachment.html>


More information about the Debian-hebrew-package mailing list