19.2480, FYI: Example Number Rectifier for Open Office Papers

LINGUIST Network linguist at LINGUISTLIST.ORG
Mon Aug 11 21:28:20 UTC 2008


LINGUIST List: Vol-19-2480. Mon Aug 11 2008. ISSN: 1068 - 4875.

Subject: 19.2480, FYI: Example Number Rectifier for Open Office Papers

Moderators: Anthony Aristar, Eastern Michigan U <aristar at linguistlist.org>
            Helen Aristar-Dry, Eastern Michigan U <hdry at linguistlist.org>
 
Reviews: Randall Eggert, U of Utah  
         <reviews at linguistlist.org> 

Homepage: http://linguistlist.org/

The LINGUIST List is funded by Eastern Michigan University, 
and donations from subscribers and publishers.

Editor for this issue: Matthew Lahrman <matt at linguistlist.org>
================================================================  

To post to LINGUIST, use our convenient web form at
http://linguistlist.org/LL/posttolinguist.html.

===========================Directory==============================  

1)
Date: 29-Jul-2008
From: Edwin Williams < edwin at princeton.edu >
Subject: Example Number Rectifier for Open Office Papers

 

	
-------------------------Message 1 ---------------------------------- 
Date: Mon, 11 Aug 2008 17:23:09
From: Edwin Williams [edwin at princeton.edu]
Subject: Example Number Rectifier for Open Office Papers
E-mail this message to a friend:
http://linguistlist.org/issues/emailmessage/verification.cfm?iss=19-2480.html&submissionid=185561&topicid=6&msgnumber=1  


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:
edwin at princeton.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





 






-----------------------------------------------------------
LINGUIST List: Vol-19-2480	

	



More information about the LINGUIST mailing list