<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Tekst zonder opmaak Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.E-mailStijl17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TekstzonderopmaakChar
{mso-style-name:"Tekst zonder opmaak Char";
mso-style-priority:99;
mso-style-link:"Tekst zonder opmaak";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi Eike,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I just uploaded a diff file and test document to bug50950.<o:p></o:p></p><p class=MsoNormal>The ODFF1.2-compliant functions work and I would like some help from you with importing old-style formulas from documents saved with previous LibO versions.<o:p></o:p></p><p class=MsoNormal>Your plan from June 7 (see below) seems clear to me, but I don't know where the import formula complier is located and how to best change it.<o:p></o:p></p><p class=MsoPlainText>>* during import's formula compile step for ISOWEEKNUM check if a second<o:p></o:p></p><p class=MsoPlainText>> argument is provided<o:p></o:p></p><p class=MsoPlainText>> * if so and if it is a constant value !=1 strip the argument (the<o:p></o:p></p><p class=MsoPlainText>> Monday case that was and is real ISO 8601)<o:p></o:p></p><p class=MsoPlainText>> * if it is a constant value ==1 map the function to WEEKNUM<o:p></o:p></p><p class=MsoPlainText>> * there's a slight chance that a user wanted exactly the behavior<o:p></o:p></p><p class=MsoPlainText>> "ISO but Sunday" resulting from the current undocumented<o:p></o:p></p><p class=MsoPlainText>> implementation details, which isn't supported by ODF WEEKNUM<o:p></o:p></p><p class=MsoPlainText>> definition, but I think that should be a very rare case, if at<o:p></o:p></p><p class=MsoPlainText>> all, and is neglectable<o:p></o:p></p><p class=MsoPlainText>> * if it is not a constant (i.e. computed) argument do nothing and let<o:p></o:p></p><p class=MsoPlainText>> the interpreter complain about the second parameter<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>>I may have to help you with the compiler internals, give me a heads-up when you're stuck there.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Also, I have not done anything yet about MS Office/Lotus/Qpro import/export limitations.<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:NL'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:NL'>I look forward to your hint(s)/advise/nit-picking of my code :)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:NL'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:NL'>Winfried<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>