* * * * * * * * * * * * * * * * * * * * * * * *
LINGUIST List logo Eastern Michigan University Wayne State University *
* People & Organizations * Jobs * Calls & Conferences * Publications * Language Resources * Text & Computer Tools * Teaching & Learning * Mailing Lists * Search *
* *
LINGUIST List 19.2480

Mon Aug 11 2008

FYI: Example Number Rectifier for Open Office Papers

Editor for this issue: Matthew Lahrman <mattlinguistlist.org>


To post to LINGUIST, use our convenient web form at http://linguistlist.org/LL/posttolinguist.html.
Directory
        1.    Edwin Williams, Example Number Rectifier for Open Office Papers


Message 1: Example Number Rectifier for Open Office Papers
Date: 29-Jul-2008
From: Edwin Williams <edwinprinceton.edu>
Subject: Example Number Rectifier for Open Office Papers
E-mail this message to a friend

This Python program rectifies the numbering of examples in OpenOffice
linguistic papers, and keeps references to examples coordinated. The
program assumes that all example numbers start on the left edge of a line,
and that all references to examples are preceded by a space. The program
allows forward references but only to the very next example. For backward
references where there is more than one example with the same number it
assumes that the reference is to the most recent one with that number. The
program assumes that the paper has less than 1000 examples.

Please contact me via e-mail at:
edwinprinceton.edu
and I will send you the code for this program.

To use the program, open X.odt as though it were X.zip (maybe rename X.odt as
X.odt.zip), extract 'content.xml' from it; apply this program to
content.xml ('python renumber.py content.xml'), then reinsert content.xml
into X.odt, overwriting the original. Save a copy of the original X.odt as
things might go bad.

Linguistic Field(s): Discipline of Linguistics; Language Documentation

Read more issues|LINGUIST home page|Top of issue




Please report any bad links or misclassified data

LINGUIST Homepage | Read LINGUIST | Contact us

NSF Logo

While the LINGUIST List makes every effort to ensure the linguistic relevance of sites listed
on its pages, it cannot vouch for their contents.