[sword-devel] TEI2MOD - Output File Names

Johan johan.marais at messianic.co.za
Thu Mar 29 08:47:49 MST 2018


Thank you Greg.

 

I checked the other dictionaries, they all use the dictionary name as the file names.

 

If changing the file names from “dict.xxx. to “ts2009en.xxx” violationing your SOP (standard operating procedures??), then I would rather keep them as “dict.xxx”.

 

Thank you for your assistance.

 

Johan Marais

 

From: Greg Hellings <greg.hellings at gmail.com> 
Sent: Thursday, 29 March 2018 17:20
To: SWORD Developers' Collaboration Forum <sword-devel at crosswire.org>
Subject: Re: [sword-devel] TEI2MOD - Output File Names

 

 

 

On Tue, Mar 27, 2018 at 2:51 AM, Johan <johan.marais at messianic.co.za <mailto:johan.marais at messianic.co.za> > wrote:

Please help.

 

I am using this command to create a SWORD dictionary module from TEI.

tei2mod ./modules/lexdict/zld/ts2009en/ TS2009enVer100.txt -z -c ts2009en

 

The output message is the following:

tei2mod normalized 1 verses to NFC

Suggested conf (replace ??? with appropriate values)

[ts2009en]

DataPath=./modules/lexdict/zld/ts2009en/dict

 

The "dict" on the end of this tells SWORD to look for files named "dict.*" If you want them to be named "ts2009en.*" then change this line to read:

 

``DataPath=./modules/lexdict/zld/ts2009en/ts2009en`` and rename the dict.* files to ts2009en.* files after creation. However, doing so would violate the SOP for other lexica.

 

Description=???

SourceType=TEI

Encoding=UTF-8

ModDrv=zLD

CompressType=ZIP

CipherKey=ts2009en

 

It produces the files correctly, but the file names are all “dict.xxx”, I expected them to be “ts2009en.xxx”.

 

Correct. Drop those files into the folder "./modules/lexdict/zld/ts2009en/ and you should be good to go.

 

--Greg

 

 

Are these (“dict.xxx”) the correct file names, is there a way to rather produce “ts2009en.xxx”?

 

Thank you,

 

Johan Marais

 

 


_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org <mailto:sword-devel at crosswire.org> 
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180329/39e6e41a/attachment-0001.html>


More information about the sword-devel mailing list