RE: FW: IranL10nInfo - First Week of The Year
On Sat, 8 May 2004, Roozbeh Pournader wrote: > Ah, it's not Unicode that does that. It's the Common Locale Repoistory > Project or something like that does that. Alright! I was just pointing to that method. > Suitable for what? For specifying Iranian Persian requirements? No, Iranian Persian requirements are those you are bringing on a native document that has general uses. The Locale Data Markup Language (LDML) seems suitable for the extensible scheme since it can be transformed into different information systems. > > roozbeh > > Omid ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
RE: FW: IranL10nInfo - First Week of The Year
On Thu, 2004-05-06 at 01:05, Omid K. Rad wrote: > Thank you for the link. I found out that Unicode introduces another > similar way. Ah, it's not Unicode that does that. It's the Common Locale Repoistory Project or something like that does that. Unicode has just agreed to take that project under its umbrella, but the process is still incomplete. > BTW, this XML scheme that Unicode suggests seems so suitable: Suitable for what? For specifying Iranian Persian requirements? roozbeh ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
RE: FW: IranL10nInfo - First Week of The Year
On Tue, 2004-05-04 at 11:00 AM, Roozbeh Pournader wrote: > > I'll personally go for FirstFourDayWeek. (This is not a > FarsiWeb recommendation and is not even based on any specific > reason. It's just personal preference.) > I'm with FirstFourDayWeek too, because it marks the week [as the first week of the year] when its bigger half goes after Norooz, and this makes sense: "A week belongs to the year in which it has more days happening." Moreover, I dont think this distorts any business payment regulations in Iran since there is always at least one week of holidays for the New Year. > BTW, this looks like a good resource: > > http://www.unicode.org/cldr/comparison_charts.html > Thank you for the link. I found out that Unicode introduces another similar way. It simply gives a value between 1 and 7 to a property of "Minimal Days in First Week" that is so intuitive. The following table compares the different methods used to define the first week of year. Assuming that the first day of week is Saturday (for POSIX). UNICODE .NETPOSIX Minimal Days in First Week CalendarWeekRuleFirst Week Mark -- --- 1 FirstDay Friday 2 - Thursday 3 - Wednesday 4 FirstFourDayWeek Tuesday 5 - Monday 6 - Sunday 7 FullDayWeek Saturday Values in each row are equivalent. The Unicode and .NET approaches are relative to the designated "First Day of Week" in the calendar. Unicode allows for all the possible values while .NET ignores those that are less practical. > (This also proves that there is a serious requirement for > creating an standard for an Iranian Persian locale.) I double. BTW, this XML scheme that Unicode suggests seems so suitable: Locale Data Markup Language (LDML) http://www.unicode.org/reports/tr35/ > > roozbeh > Omid ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
RE: FW: IranL10nInfo - First Week of The Year
> > Iâm going to find the regulation that is used in Iran to determine > > the first week of the year. > > There is no regulation or practice for that, as far as I know. I'd > love to be proved incorrect. (Well, actually the first week of the > year doesn't start until Farvardin 14 here in Iran!) Yes, I have come to the same conclusion. Anyways, we are to select one of the rules as the default rule for Iran. FirstDay, FirstFourDayWeek, or FirstFullWeek. Using the Culture Browser tool we have provided, you can compare this value for different locales that are already defined in .NET 1.1: http://www.idevcenter.com/projects/iranl10ninfo/culturebrowser/datetimeformatview.aspx For example CalendarWeekRule for Arabic (U.A.E) is FirstDay Azeri (Cyrillic)is FirstDay Danish (Denmark)is FirstFourDayWeek English (Canada)is FirstDay Farsi (Iran)is FirstDay French (France) is FirstDay German (Germany)is FirstFourDayWeek Urdu (Pakistan) is FirstFullWeek > > > To decide on the first week of the year weâve got three rules (don't > > tire out yourself with these, just read on): [...] > > Are those the only ones .NET allows? The POSIX standards allow four > more. Well, the pro here is that the .NET first week rules adjust themselves with the calendar so to cover every type of calendar they do not need to be so much. > The general idea is identifying a certain > day of the week that its occurence marks a first week of the > year. Considering Saturday as the first day of the week, your > FirstDay is equivalent to POSIX's "Friday", your > FirstFourDayWeek is equivalent to "Tuesday", and your > "FirstFullWeek" is equivalent to "Saturday". Good point, thank you. > > roozbeh > > Omid ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Re: FW: IranL10nInfo - First Week of The Year
On Sun, 2004-05-02 at 04:31, Omid K. Rad wrote: > Iâm going to find the regulation that is used in Iran to determine the first week > of the year. There is no regulation or practice for that, as far as I know. I'd love to be proved incorrect. (Well, actually the first week of the year doesn't start until Farvardin 14 here in Iran!) > To decide on the first week of the year weâve got three rules (don't tire out > yourself with these, just read on): > [...] Are those the only ones .NET allows? The POSIX standards allow four more. The general idea is identifying a certain day of the week that its occurence marks a first week of the year. Considering Saturday as the first day of the week, your FirstDay is equivalent to POSIX's "Friday", your FirstFourDayWeek is equivalent to "Tuesday", and your "FirstFullWeek" is equivalent to "Saturday". roozbeh ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing