RE: FW: IranL10nInfo - First Week of The Year

2004-05-09 Thread Omid K. Rad
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

2004-05-05 Thread Omid K. Rad
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 don’t 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

2004-05-03 Thread Omid K. Rad
  Im 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 weve 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

2004-05-02 Thread Roozbeh Pournader
On Sun, 2004-05-02 at 04:31, Omid K. Rad wrote:

 Im 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 weve 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


FW: IranL10nInfo - First Week of The Year

2004-05-01 Thread Omid K. Rad
Hi,

Im going to find the regulation that is used in Iran to determine the first week of 
the year.
 
To decide on the first week of the year weve got three rules (don't tire out 
yourself with these, just read on):
 
1. FirstDay
Indicates that the first week of the year starts on the first day of the year and ends 
before the following designated first day of the week.
 
2. FirstFourDayWeek 
Indicates that the first week of the year is the first week with four or more days 
before the designated first day of the week.
 
3. FirstFullWeek 
Indicates that the first week of the year begins on the first occurrence of the 
designated first day of the week on or after the first day of the year. 
 
 
Assuming that we are applying the above rules on the Persian (Hejri 
Shamsi/Jalaali/Khorshidi) calendar, well have:
 
First day of the year is 1st of Farvardin
First day of the week is Saturday
 
 
I simplify the rules for the Persian calendar:
 
1. FirstDay
Indicates that the first week of the year starts on the 1st of Farvardin and ends 
before the following Saturday.
 
2. FirstFourDayWeek
Indicates that the first week of the year is the first week with four or more days 
before Saturday.
 
3. FirstFullWeek
Indicates that the first week of the year begins on the first occurrence of Saturday 
on or after the 1st of Farvardin. 
 
 
The rules are earier to understand when bringing them on a chart. This shows how each 
of the rules specifies the first week of the year when the first day of the year is 
fallen on each of the days of the week!
 
1st of FarvardinFirstDay   FirstFourDayWeek   FirstFullWeek
Sat 1   1   1
Sun 1   1  
 2
Mon 1   1  
 2
Tue 1   1  
 2
Wed 1   2  
 2
Thu 1   2  
 2
Fri 1   2  
 2
 
 
In the above table, 1 indicates that the first week of the year is the same as the 
week in which the first day of the year (1st of Farvardin) exists. If the first week 
of the year is shifted to the next week, then it is indicated by the number 2.


Now, find the Orange Seller!!!?? :P
 
Which rule is used to determine the first week of year in Iran? (Or which one is more 
used?)


tnx,
Omid


___
PersianComputing mailing list
[EMAIL PROTECTED]
http://lists.sharif.edu/mailman/listinfo/persiancomputing