<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to rules</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>Recent changes to rules</description><atom:link href="https://sourceforge.net/p/dctfinder/wiki/rules/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 12 Feb 2014 16:23:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dctfinder/wiki/rules/feed" rel="self" type="application/rss+xml"/><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -36,6 +36,8 @@
     - For "half-days" (afternoon, morning, AM, PM), either *H0* (AM) or *H1* (PM)
     - The *Z* means that the group represents a time zone.

+*__Important!__ If you remove or add a file from this *vocabulary* directory, run the script compile-rules.sh to update the list of rule files.*
+
 ## tags

 - *time-tag-trigger.txt* contains regular expressions matching texts that can be used in the *class* or *id* attributes of HTML tags containing only a date.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Wed, 12 Feb 2014 16:23:39 -0000</pubDate><guid>https://sourceforge.net0c15499657760246dda3e4dce6e34df998f6675d</guid></item><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -12,7 +12,7 @@
 - *tags*
 - *urls*

-## Vocabulary
+## vocabulary

 *Vocabulary* directory contains two types of files:

@@ -36,3 +36,12 @@
     - For "half-days" (afternoon, morning, AM, PM), either *H0* (AM) or *H1* (PM)
     - The *Z* means that the group represents a time zone.

+## tags
+
+- *time-tag-trigger.txt* contains regular expressions matching texts that can be used in the *class* or *id* attributes of HTML tags containing only a date.
+- *title-tag-trigger.txt* contains regular expressions matching texts that can be used in the *class* or *id* attributes of HTML tags containing the title of the web page.
+- *title-tag-anti-trigger.txt* contains regular expressions matching texts that can NEVER be used in the *class* or *id* attributes of HTML tags containing the title of the web page.
+
+## urls
+
+Following the same format as *vocabulary* files, the rules contained in the file *date-in-url.txt* will be used to match the URL of the web page, in order to extract a date from this URL, if existing.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Mon, 27 Jan 2014 17:23:10 -0000</pubDate><guid>https://sourceforge.netf3fe6d9b8cd705013c57d25690cae8bb3c5cb3be</guid></item><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -4,13 +4,15 @@

 You will find the language-specific rules in the distributed jar, under directory *resources/data*.

-Inside this directory, resources are organized by languages (*en_GB* for British English, *en_US* for North American English, *fr* for French).
+Inside this directory, resources are organized by languages (*en_GB* for British English, *en_US* for North American English, *fr* for French). The name of this directory MUST correspond to the output of java's *Locale.toString()* method.

 Inside language directories, rules have the following organization:

 - *vocabulary*
 - *tags*
 - *urls*
+
+## Vocabulary

 *Vocabulary* directory contains two types of files:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Mon, 27 Jan 2014 17:18:25 -0000</pubDate><guid>https://sourceforge.net6fb8d41bc328b2e56ab1b0cdf749782b9fe62036</guid></item><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -32,22 +32,5 @@
       The *H* means that the group represents a half-day (see below)
     - For ordinals representing days (e.g. "1st"), the *D* corresponds to the first group of the left-side regular expression (first brackets)
     - For "half-days" (afternoon, morning, AM, PM), either *H0* (AM) or *H1* (PM)
-    - 
+    - The *Z* means that the group represents a time zone.

-./vocabulary/date-ord-day.txt
-./vocabulary/post-trigger.txt
-./vocabulary/date-year.txt
-./vocabulary/date-zone.txt
-./vocabulary/date-month.txt
-
-
-./vocabulary/date-time.txt
-./vocabulary/date-day.txt
-./vocabulary/date-day-half.txt
-./vocabulary/date.txt
-./tags
-./tags/title-tag-trigger.txt
-./tags/time-tag-trigger.txt
-./tags/title-tag-anti-trigger.txt
-./urls
-./urls/date-in-url.txt
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Mon, 27 Jan 2014 17:16:18 -0000</pubDate><guid>https://sourceforge.netee4ea8d20ba08d59fd37651c335072ff5d381c0e</guid></item><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -21,11 +21,15 @@
     - *post-trigger.txt* contains words that often follow a publication date in a weg page.

 2. Date rules: two-column files associating a regular expression (1st column) and a normalized value
-    - For months, $Mn$, where $n$ is the number of the month between 1 and 12.
-    - For days, a number between 1 and 7 (1 is Monday, 7 is Sunday).
+    - For numeric dates, a $Y$, $M$, $D$ corresponding to the year, the month and the day, to be associated to their corresponding group in the regular expression. For example: 
+         (\[0123\]?\d)\[-./\](\[012\]?\d)\[-./\](\[2\]\d\d\d)  DMY
+       means that the first group stands for the day, the second for the month and the third for the year.
+    - For names of months, $Mn$, where $n$ is the number of the month between 1 and 12.
+    - For days of the week, a number between 1 and 7 (1 is Monday, 7 is Sunday).
     - For times, a *h*, *m*, *s* corresponding to hours, minutes and seconds, to be associated to their corresponding group in the regular expression. For example, 
          (\[012\]?\d):(\[012345\]\d):(\[012345\]\d)    hms
        means that the first group stands for the hours, the second for the minutes and the third for the seconds.
+      The *H* means that the group represents a half-day (see below)
     - For ordinals representing days (e.g. "1st"), the *D* corresponds to the first group of the left-side regular expression (first brackets)
     - For "half-days" (afternoon, morning, AM, PM), either *H0* (AM) or *H1* (PM)
     - 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Mon, 27 Jan 2014 17:15:21 -0000</pubDate><guid>https://sourceforge.net0861c4e1cae41e757ad7393c94290335d4eb7a43</guid></item><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -24,8 +24,8 @@
     - For months, $Mn$, where $n$ is the number of the month between 1 and 12.
     - For days, a number between 1 and 7 (1 is Monday, 7 is Sunday).
     - For times, a *h*, *m*, *s* corresponding to hours, minutes and seconds, to be associated to their corresponding group in the regular expression. For example, 
-         ([012]?\d):([012345]\d):([012345]\d)  hms
-       means 
+         (\[012\]?\d):(\[012345\]\d):(\[012345\]\d)    hms
+       means that the first group stands for the hours, the second for the minutes and the third for the seconds.
     - For ordinals representing days (e.g. "1st"), the *D* corresponds to the first group of the left-side regular expression (first brackets)
     - For "half-days" (afternoon, morning, AM, PM), either *H0* (AM) or *H1* (PM)
     - 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Mon, 27 Jan 2014 17:12:02 -0000</pubDate><guid>https://sourceforge.net0bb68bc892342ba2020f0817c4abe65d344da320</guid></item><item><title>rules modified by Xavier Tannier</title><link>https://sourceforge.net/p/dctfinder/wiki/rules/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="dctfinder-language-rules"&gt;DCTFinder Language Rules&lt;/h1&gt;
&lt;h2 id="organization"&gt;Organization&lt;/h2&gt;
&lt;p&gt;You will find the language-specific rules in the distributed jar, under directory &lt;em&gt;resources/data&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Inside this directory, resources are organized by languages (&lt;em&gt;en_GB&lt;/em&gt; for British English, &lt;em&gt;en_US&lt;/em&gt; for North American English, &lt;em&gt;fr&lt;/em&gt; for French).&lt;/p&gt;
&lt;p&gt;Inside language directories, rules have the following organization:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;vocabulary&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;tags&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;urls&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Vocabulary&lt;/em&gt; directory contains two types of files:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Trigger files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;trigger.txt&lt;/em&gt; contains words that are often associated to a publication date&lt;/li&gt;
&lt;li&gt;&lt;em&gt;anti-trigger.txt&lt;/em&gt; contains words that can be associated to a date, but very unlikely to a publication date&lt;/li&gt;
&lt;li&gt;&lt;em&gt;inside-trigger.txt&lt;/em&gt; contains words that are not date-specific but that often accompany date representations&lt;/li&gt;
&lt;li&gt;&lt;em&gt;post-trigger.txt&lt;/em&gt; contains words that often follow a publication date in a weg page.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Date rules: two-column files associating a regular expression (1st column) and a normalized value&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For months, $Mn$, where $n$ is the number of the month between 1 and 12.&lt;/li&gt;
&lt;li&gt;For days, a number between 1 and 7 (1 is Monday, 7 is Sunday).&lt;/li&gt;
&lt;li&gt;For times, a &lt;em&gt;h&lt;/em&gt;, &lt;em&gt;m&lt;/em&gt;, &lt;em&gt;s&lt;/em&gt; corresponding to hours, minutes and seconds, to be associated to their corresponding group in the regular expression. For example, &lt;br /&gt;
     (&lt;span&gt;[012]&lt;/span&gt;?\d):(&lt;span&gt;[012345]&lt;/span&gt;\d):(&lt;span&gt;[012345]&lt;/span&gt;\d)   hms&lt;br /&gt;
   means &lt;/li&gt;
&lt;li&gt;For ordinals representing days (e.g. "1st"), the &lt;em&gt;D&lt;/em&gt; corresponds to the first group of the left-side regular expression (first brackets)&lt;/li&gt;
&lt;li&gt;For "half-days" (afternoon, morning, AM, PM), either &lt;em&gt;H0&lt;/em&gt; (AM) or &lt;em&gt;H1&lt;/em&gt; (PM)&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;./vocabulary/date-ord-day.txt&lt;br /&gt;
./vocabulary/post-trigger.txt&lt;br /&gt;
./vocabulary/date-year.txt&lt;br /&gt;
./vocabulary/date-zone.txt&lt;br /&gt;
./vocabulary/date-month.txt&lt;/p&gt;
&lt;p&gt;./vocabulary/date-time.txt&lt;br /&gt;
./vocabulary/date-day.txt&lt;br /&gt;
./vocabulary/date-day-half.txt&lt;br /&gt;
./vocabulary/date.txt&lt;br /&gt;
./tags&lt;br /&gt;
./tags/title-tag-trigger.txt&lt;br /&gt;
./tags/time-tag-trigger.txt&lt;br /&gt;
./tags/title-tag-anti-trigger.txt&lt;br /&gt;
./urls&lt;br /&gt;
./urls/date-in-url.txt&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier Tannier</dc:creator><pubDate>Mon, 27 Jan 2014 17:10:44 -0000</pubDate><guid>https://sourceforge.net9cb33bec67571c009aa4d017f816c6dd91933be2</guid></item></channel></rss>