Skip to content
Browse files

Removed mention of D2S from documentation and styles. Now uses 'TabLi…

…nk' namespace for excel styles
  • Loading branch information...
1 parent 0e5d761 commit ea64f418da53d517064dbf155a19ebe48a136e9f Laurens Rietveld committed Feb 15, 2012
Showing with 10 additions and 10 deletions.
  1. BIN input/BRT_1889_02_T1_marked.xls
  2. +9 −9 readme.mdown
  3. +1 −1 src/tablinker.py
View
BIN input/BRT_1889_02_T1_marked.xls
Binary file not shown.
View
18 readme.mdown
@@ -21,19 +21,19 @@ TabLinker takes annotated Excel files (found using the `srcMask` option in the [
Annotations in the Excel file should be done using the built-in **style** functionality of Excel (you can specify these by hand). TabLinker currently recognises seven styles:
-* **D2S Title** - The cell containing the title of a sheet
-* **D2S Data** - A cell that contains data, e.g. a number for the population size
-* **D2S ColHeader** - Used for the headers of columns
-* **D2S RowHeader** - Used for row headers
-* **D2S HierarchicalRowHeader** - Used for multi-column row headers with subsumption/taxonomic relations between the values of the columns
-* **D2S Property** - Typically used for the header cells directly above RowHeader or HierarchicalRowHeader cells, cell values are the properties that relate Data cells to RowHeader and HierarchicalRowHeader cells.
-* **D2S Label** - Used for cells that contain a label for one of the HierarchicalRowHeader cells.
+* **TabLink Title** - The cell containing the title of a sheet
+* **TabLink Data** - A cell that contains data, e.g. a number for the population size
+* **TabLink ColHeader** - Used for the headers of columns
+* **TabLink RowHeader** - Used for row headers
+* **TabLink HierarchicalRowHeader** - Used for multi-column row headers with subsumption/taxonomic relations between the values of the columns
+* **TabLink Property** - Typically used for the header cells directly above RowHeader or HierarchicalRowHeader cells, cell values are the properties that relate Data cells to RowHeader and HierarchicalRowHeader cells.
+* **TabLink Label** - Used for cells that contain a label for one of the HierarchicalRowHeader cells.
-An eight style, **D2S Metadata**, is currently ignored (See #3).
+An eight style, **TabLink Metadata**, is currently ignored (See #3).
An [example of such an annotated Excel file](http://github.com/Data2Semantics/TabLinker/tree/master/input/BRT_1889_02_T1_marked.xls) is provided in the [input](http://github.com/Data2Semantics/TabLinker/tree/master/input/) directory. There are ways to import the styles defined in that file into your own Excel files.
-**Tip:** If your table contains totals for HierarchicalRowHeader cell values, use a non-D2S style to mark the cells between the level to which the total belongs, and the cell that contains the name of the total. Have a look at the example [annotated Excel file](http://github.com/Data2Semantics/TabLinker/tree/master/input/BRT_1889_02_T1_marked.xls) to see how this is done (up to row 428).
+**Tip:** If your table contains totals for HierarchicalRowHeader cell values, use a non-TabLink style to mark the cells between the level to which the total belongs, and the cell that contains the name of the total. Have a look at the example [annotated Excel file](http://github.com/Data2Semantics/TabLinker/tree/master/input/BRT_1889_02_T1_marked.xls) to see how this is done (up to row 428).
Once you're all set, start the TabLinker by cd-ing to the [src](http://github.com/Data2Semantics/TabLinker/tree/master/src/) folder, and running:
View
2 src/tablinker.py
@@ -126,7 +126,7 @@ def getType(self, style):
Returns:
String -- The type of this field. In case none is found, 'unknown'
"""
- typematch = re.search('D2S\s(.*)',style)
+ typematch = re.search('TabLink\s(.*)',style)
if typematch :
cellType = typematch.group(1)
else :

0 comments on commit ea64f41

Please sign in to comment.
Something went wrong with that request. Please try again.