<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>The Pathedral and the Kazoo (Entries tagged as Writer)</title>
    <link>http://erack.org/blog/</link>
    <description>Eike Rathke blogging about LibreOffice and the world (what a claim)</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.6.2 - http://www.s9y.org/</generator>
    <pubDate>Sun, 02 Sep 2012 16:34:56 GMT</pubDate>

    <image>
        <url>http://erack.org/blog/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: The Pathedral and the Kazoo - Eike Rathke blogging about LibreOffice and the world (what a claim)</title>
        <link>http://erack.org/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Editable Date Acceptance Patterns in LibreOffice</title>
    <link>http://erack.org/blog/archives/22-Editable-Date-Acceptance-Patterns-in-LibreOffice.html</link>
            <category>Calc</category>
            <category>i18n</category>
            <category>LibreOffice</category>
    
    <comments>http://erack.org/blog/archives/22-Editable-Date-Acceptance-Patterns-in-LibreOffice.html#comments</comments>
    <wfw:comment>http://erack.org/blog/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://erack.org/blog/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (erAck)</author>
    <content:encoded>
    &lt;p&gt; The introduction of more restrictive date acceptance patterns in LibreOffice 3.6 (see earlier blog entries &lt;a href=&quot;http://erack.org/blog/exit.php?url_id=56&amp;amp;entry_id=22&quot; title=&quot;http://erack.org/blog/archives/8-LibreOffice-date-acceptance-patterns.html&quot;  onmouseover=&quot;window.status=&#039;http://erack.org/blog/archives/8-LibreOffice-date-acceptance-patterns.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://erack.org/blog/exit.php?url_id=57&amp;amp;entry_id=22&quot; title=&quot;http://erack.org/blog/archives/18-Does-your-LibreOffice-locale-need-a-date-acceptance-pattern-for-incomplete-date-input.html&quot;  onmouseover=&quot;window.status=&#039;http://erack.org/blog/archives/18-Does-your-LibreOffice-locale-need-a-date-acceptance-pattern-for-incomplete-date-input.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;here&lt;/a&gt;) generated quite some discussion whether the change was good or bad. The fact that not all locales had patterns for incomplete (only day and month) date input added to their data also added some angry voices.

&lt;p&gt; Independent from that there was one thing overlooked: users want to be able to input dates using the numeric keypad and in locales with a &#039;.&#039; dot date separator that was not possible anymore because usually then there is no dot on the keypad due to the decimal separator being different. That certainly needed to be addressed.

&lt;p&gt; There is no way to satisfy everyone with a default set of patterns, I therefore implemented a &lt;strong&gt;Date acceptance patterns&lt;/strong&gt; edit field in the &lt;em&gt;Tools&amp;rarr;Options&amp;rarr;LanguageSettings&amp;rarr;Languages&lt;/em&gt; dialogue that follows the selected locale and enables users to add, edit and remove patterns.

&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;width: 600px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;!-- s9ymdb:8 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;600&quot;  src=&quot;http://erack.org/blog/uploads/screenshots/EditDateAcceptancePatterns.png&quot; title=&quot;EditDateAcceptancePatterns.png&quot; alt=&quot;Date acceptance patterns edit field.&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;Date acceptance patterns edit field.&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; The change is currently in &lt;em&gt;master&lt;/em&gt; and pending review as a late feature for inclusion to the 3.6.2 release.

&lt;p&gt; Example for the German de-DE locale:
&lt;ul&gt;
  &lt;li&gt; default patterns: D.M.Y;D.M.
  &lt;li&gt; to enable additional input on numeric keypad: D.M.Y;D.M.;D-M-Y;D-M
  &lt;ul&gt;
    &lt;li&gt; if 3-4 shall not result in a date, D-M- could be used instead of D-M
    &lt;li&gt; note that to enter an ISO 8601 Y-M-D date with a D-M-Y pattern active one needs to enter a year &gt;31 or with at least 3 digits, e.g. 011
  &lt;/ul&gt;
  &lt;li&gt; instead of D-M-Y;D-M also D/M/Y;D/M could be used
&lt;/ul&gt;

&lt;p&gt; Changes to the patterns become effective immediately after having confirmed and closed the dialog.

&lt;p&gt;
  
    </content:encoded>

    <pubDate>Fri, 31 Aug 2012 23:02:00 +0200</pubDate>
    <guid isPermaLink="false">http://erack.org/blog/archives/22-guid.html</guid>
    <category>Calc</category>
<category>cell input</category>
<category>dates</category>
<category>i18n</category>
<category>l10n</category>
<category>LibreOffice</category>
<category>locale data</category>
<category>number scanner</category>
<category>spreadsheet</category>
<category>Writer</category>

</item>
<item>
    <title>LibreOffice date acceptance patterns</title>
    <link>http://erack.org/blog/archives/8-LibreOffice-date-acceptance-patterns.html</link>
            <category>Calc</category>
            <category>i18n</category>
            <category>LibreOffice</category>
    
    <comments>http://erack.org/blog/archives/8-LibreOffice-date-acceptance-patterns.html#comments</comments>
    <wfw:comment>http://erack.org/blog/wfwcomment.php?cid=8</wfw:comment>

    <slash:comments>9</slash:comments>
    <wfw:commentRss>http://erack.org/blog/rss.php?version=2.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    

    <author>nospam@example.com (erAck)</author>
    <content:encoded>
    &lt;p&gt; &lt;strong&gt;Update 2012-08-31T23:08+0200&lt;/strong&gt; : &lt;a href=&quot;http://erack.org/blog/exit.php?url_id=59&amp;amp;entry_id=8&quot; title=&quot;http://erack.org/blog/archives/22-Editable-Date-Acceptance-Patterns-in-LibreOffice.html&quot;  onmouseover=&quot;window.status=&#039;http://erack.org/blog/archives/22-Editable-Date-Acceptance-Patterns-in-LibreOffice.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Editable Date Acceptance Patterns in LibreOffice&lt;/a&gt;

&lt;p&gt; Abstract: &lt;span title=&quot;The LibreOffice Spreadsheet Application&quot; class=&quot;serendipity_glossaryMarkup&quot;&gt;Calc&lt;/span&gt;&#039;s (and in Writer table) cell input now needs to match locale
dependent date acceptance patterns before it is recognized as a valid date.

&lt;p&gt; Previously the number formatter&#039;s input scanner was very lax in what it
accepted as a &quot;valid&quot; date. All combinations of 2-3 numbers separated by &#039;.&#039;
&#039;/&#039; &#039;-&#039; or the locale&#039;s date separator even with blanks in between that somehow
could be interpreted as a date was accepted as such, which was especially
confusing with incomplete dates containing only 2 numbers that in many cases
were meant as textual input instead. For example

&lt;ul&gt;
  &lt;li&gt; In en-US locale, M/D is a valid date input to be interpreted as day of
  month of current year. However, M/D/ and M.D. were accepted as well.
  &lt;li&gt; In de-DE locale, D.M. is a valid date input to be interpreted as day of
  month of current year. However, D.M and D/M and D/M/ were accepted as well.
&lt;/ul&gt;

&lt;p&gt; In case of an input like 1.2 in a de-DE locale or others using &#039;.&#039;
separator, meant as some sort of textual numbering, this was extremely
annoying, it was interpreted as 1st of February of current year and the user
had to prepend a single quote / apostrophe to suppress date recognition.
Similar for 1.2.3 in locales that do not use the &#039;.&#039; date separator.

&lt;p&gt; Now, during build time for each locale one full date acceptance pattern is
generated from the existing locale data&#039;s number format &lt;em&gt;FormatElement&lt;/em&gt;
with &lt;em&gt;formatindex=&quot;21&quot;&lt;/em&gt; that is also used to edit dates, taking the DMY
order and the defined &lt;em&gt;DateSeparator&lt;/em&gt;. For example, in the en-US locale
this generates &lt;b&gt;M/D/Y&lt;/b&gt; from the MM/DD/YYYY &lt;em&gt;FormatCode&lt;/em&gt;, and in the
de-DE locale &lt;b&gt;D.M.Y&lt;/b&gt; from the DD.MM.YYYY code. For this to work correctly
the separator used in the FormatCode must match the DateSeparator element
defined in &lt;em&gt;Separators&lt;/em&gt;. As for all rules there&#039;s one exception though
;) if the format code uses a different separator and that is one of the known
&#039;-&#039; &#039;.&#039; &#039;/&#039; separators, a second pattern is generated using the format&#039;s
separator. This as a generalized case for locales that for example may use an
ISO 8601 edit format, as hu-HU does, regardless what the date separator is
defined to.

&lt;p&gt; Additionally to the date acceptance pattern every locale of course still
accepts input in an ISO 8601 &lt;b&gt;Y-M-D&lt;/b&gt; pattern, and since LibreOffice 3.5
that also leads to the YYYY-MM-DD format being applied.


&lt;h5&gt; Localizers, HEADS UP please &lt;/h5&gt;

&lt;p&gt; If in your locale incomplete dates should be accepted or additional
patterns that vary from the generated full date pattern are needed, those are
to be defined in the locale data &lt;em&gt;LC_FORMAT&lt;/em&gt; element for which a new
&lt;em&gt;DateAcceptancePattern&lt;/em&gt; element exists, of which zero or more can occur
before the &lt;em&gt;FormatElement&lt;/em&gt; elements. Currently only the following
patterns are defined as they are the only ones I knew were plausible:

&lt;ul&gt;
  &lt;li&gt; bg-BG, a trailing breaking or non-breaking space followed by lower case
  or upper case Cyrillic letter GHE and a dot, as defined in the edit format
  &lt;ul&gt;
    &lt;li&gt; D.M.Y г.
    &lt;li&gt; D.M.Y г.
    &lt;li&gt; D.M.Y Г.
    &lt;li&gt; D.M.Y Г.
  &lt;/ul&gt;
  &lt;li&gt; de-DE, incomplete date
  &lt;ul&gt;
    &lt;li&gt; D.M.
  &lt;/ul&gt;
  &lt;li&gt; en-US, incomplete date
  &lt;ul&gt;
    &lt;li&gt; M/D
  &lt;/ul&gt;
  &lt;li&gt; sl-SI, date separator dot plus space
  &lt;ul&gt;
    &lt;li&gt; D. M. Y
  &lt;/ul&gt;
&lt;/ul&gt;

&lt;p&gt; For example see &lt;a href=&quot;http://erack.org/blog/exit.php?url_id=18&amp;amp;entry_id=8&quot;  onmouseover=&quot;window.status=&#039;http://cgit.freedesktop.org/libreoffice/core/plain/i18npool/source/localedata/data/en_US.xml&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;the English-US locale data file&quot;&gt;i18npool/source/localedata/data/en_US.xml&lt;/a&gt;

&lt;p&gt; Happy date accepting :-)

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; an updated list of locales and patterns is available in &lt;a href=&quot;archives/18-Does-your-LibreOffice-locale-need-a-date-acceptance-pattern-for-incomplete-date-input.html&quot;&gt;a newer blog post&lt;/a&gt;.

&lt;p&gt;
  
    </content:encoded>

    <pubDate>Wed, 11 Jan 2012 20:46:20 +0100</pubDate>
    <guid isPermaLink="false">http://erack.org/blog/archives/8-guid.html</guid>
    <category>Calc</category>
<category>cell input</category>
<category>dates</category>
<category>i18n</category>
<category>l10n</category>
<category>LibreOffice</category>
<category>locale data</category>
<category>number formatter</category>
<category>number scanner</category>
<category>spreadsheet</category>
<category>Writer</category>

</item>

</channel>
</rss>