Kirrkirr conversion

I’m shortly going to be migrating my web page, so let me just put the cct table here for now. This cct table converts Toolbox xml to the xml that Kirrkirr’s standard xsl reads (ie if you’d rather muck around with the xml of your dictionary than rewrite the stylesheet). It’ll go to a more permanent host in the near future.

It works for the Bardi dictionary mdf > xml output. No guarantee for any other dictionary. There’s also a few things in there that are specific

c XML conversion to KirrKirr

begin >
store(Newline) nl endstore

‘database>’ > ‘DICTIONARY>’
‘lxGroup>’ > ‘ENTRY>’
‘lx>*1*’ > ‘HW HNUM=”1″>’
‘lx>*2*’ > ‘HW HNUM=”2″>’
‘lx>*3*’ > ‘HW HNUM=”3″>’
‘lx>*4*’ > ‘HW HNUM=”4″>’
‘lx>*%’ > ‘HW TYPE=”SUB”>’
‘<wav>*% ‘ > ‘<SOUND><SNDI>’
‘<wav>*1*’ > ‘<SOUND><SNDI>’
‘<wav>*2*’ > ‘<SOUND><SNDI>’
‘<wav>*3*’ > ‘<SOUND><SNDI>’
‘<wav>*4*’ > ‘<SOUND><SNDI>’
‘lx>’ > ‘HW>’
‘hm>’ > ‘HNUM>’
‘<wav>’ > ‘<SOUND><SNDI>’
‘</wav>’ > ‘.wav</SNDI></SOUND>’
‘<lc>’ > ‘<PVL><PVLI>’
‘</lc>’ > ‘</PVLI></PVL>’
‘de>’ > ‘DEF>’
‘<sd>’ > ‘<DOMAIN><DMI>’
‘</sd>’ > ‘</DMI></DOMAIN>’
‘xvGroup>’ > ‘EXAMPLES>’
‘<xv>’ > ‘<EXAMPLE><WE>’
‘</xv>’ > ‘</WE>’
‘<xe>’ > ‘<ET>’
‘</xe>’ > ‘</ET></EXAMPLE>’
‘<psGroup>’ > ”
‘</psGroup>’ > ”
‘ps>’ > ‘POS>’
‘so>’ > ‘CSL>’
‘<ge>’ > ‘<GL><GLI>’
‘</ge>’ > ‘</GLI></GL>’
‘<se>’ > ‘<SEI HENTRY=”?”>’
‘</se>’ > ‘</SEI>’
‘seGroup>’ > ‘SE>’
‘rd>’ > ‘REDUP>’
‘sc>’ > ‘LAT>’
‘<imgc>’ > ‘<IMAGE><IMGI CREDITS=”‘
‘</imgc>’ > ‘”>’
‘<img>’ > ”
‘</img>’ > ‘</IMGI></IMAGE>’
‘ee>’ > ‘CM>’
‘snGroup>’ > ‘SENSE>’
‘<sn>1</sn>’ > ”
‘<sn>2</sn>’ > ”
‘<sn>3</sn>’ > ”
‘<sn>4</sn>’ > ”
‘<sn>5</sn>’ > ”
‘<sn>6</sn>’ > ”
‘<sn>7</sn>’ > ”
‘vaGroup>’ > ‘ALT>’
‘<va>’ > ‘<ALTI HENTRY=”?”>’
‘</va>’ > ‘</ALTI>’
‘<sy>’ > ‘<SYN><SYNI HENTRY=”?”>’
‘</sy>’ > ‘</SYNI></SYN>’
‘<an>’ > ‘<ANT><ANTI HENTRY=”?”>’
‘</an>’ > ‘</ANTI></ANT>’
‘<ue>’ > ‘<REGISTERS><RGI>’
‘</ue>’ > ‘</RGI></REGISTERS>’
‘lt>’ > ‘DERIV>’
‘<3s>’ > ‘<PDX><CRITERION>Third person singular (he/she form): <CT><CTI>’
‘</3s>’ > ‘</CTI></CT></CRITERION></PDX>’
‘<3p>’ > ‘<PDX><CRITERION>Third person plural (they form): <CT><CTI>’
‘</3p>’ > ‘</CTI></CT></CRITERION></PDX>’
‘<1s>’ > ‘<PDX><CRITERION>First person singular (I form): <CT><CTI>’
‘</1s>’ > ‘</CTI></CT></CRITERION></PDX>’
‘<1p>’ > ‘<PDX><CRITERION>First person plural (we form): <CT><CTI>’
‘</1p>’ > ‘</CTI></CT></CRITERION></PDX>’
‘<2s>’ > ‘<PDX><CRITERION>Second person singular (you form): <CT><CTI>’
‘</2s>’ > ‘</CTI></CT></CRITERION></PDX>’
‘<2p>’ > ‘<PDX><CRITERION>Second person plural (you all form): <CT><CTI>’
‘</2p>’ > ‘</CTI></CT></CRITERION></PDX>’
‘<fv>’ > ‘<CT><CTI HENTRY=”?”>’
‘</fv>’ > ‘</CTI></CT>’
‘<cfGroup>’ > ”
‘</cfGroup>’ > ”
‘<cf>’ > ‘<CF><CFI HENTRY=”?”>’
‘</cf>’ > ‘</CFI></CF>’
‘ø’ > ‘ø’
‘<mn>’ > ‘<CME><CMEI>’
‘</mn>’ > ‘</CMEI></CME>’
‘ng>’ > ‘CM>’

‘</EXAMPLES>’ nl ‘<EXAMPLES>’ > ”
‘</GL>’ nl ‘<GL>’ > ‘, ‘
‘</SYN>’ nl ‘<SYN>’ > ‘, ‘
‘</ANT>’ nl ‘<ANT>’ > ‘, ‘
‘</PDX>’ nl ‘<PDX>’ > ”
‘</CF>’ nl ‘<CF>’ > ‘, ‘

nl fol(Newline) > ”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s