<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>Thanks
for the suggestion, Neal. Unfortunately, that option doesn't work with two-byte
languages (such as Korean). The only export that works is SF
format.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>I did
a test on a single-byte language (the sample Haida data) and got the output in
RTF, but didn't see any markers that could be used to format lines. (Just out of
curiosity, is there a way of doing that?)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>That
got me thinking of doing a simple algorithm in Word, though. I exported using
the SF format, opened in Notepad in UTF-8 and saved, then opened in
Word.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>I
tried changing the format of all lx lines to a bold 16 font as a
test.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>The
first thing I tried was to find a string like \lx *^p.The ^p means
paragraph mark and the asterisk means anything when the Use wildcards option is
checked. However, the slash symbol is also a wildcard, and you're not
allowed to use ^p when the Use wildcard options box is
checked.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>So I
did a global replace on ^p to a nonsense string that included the paragraph
marker such as $ss$^p. So now there's a $ss$ at the end of each
line.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>Then,
I used a wildcard replace. I used lx (*)$ss$ for the find and \1 for the replace
and used the format tab to indicate the replacement format. (The \1 says use the
first word in parentheses in the find box. In my example, the first word is an
asterisk which stands for anything.)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>That
did the trick!</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625044820-12062004>So
now, I'm thinking of abandoning the Perl approach and just using Word with some
fancy find and replace work or even Visual Basic.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625044820-12062004>Benjamin Barrett</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
Neal_Brinneman@sil.org [mailto:Neal_Brinneman@sil.org]
<BR></FONT></DIV><TT><BR>Dear Benjamin,<BR>Why reinvent the wheel? Shoebox
will output to RTF if you use the suggested<BR>MDF standard format markers for
the fields. It also sorts your language<BR>according to the sort order you
establish when you define the sort order in<BR>the language. It will also do a
dictionary
reversal..<BR>Neal<BR><BR><BR>
<BR>
"Benjamin
<BR>
Barrett"
<BR>
<gogaku@ix.netcom
To
<BR>
.com>
<lexicographylist@yahoogroups.com>
<BR>
cc
<BR>
10/06/2004
16:06
<BR>
Subject <BR> <BR><BR>A
friend sent me a link to an article on using Perl to output Shoebox
files<BR>to a formatted rtf text. It describes all kinds of issues such as
sorting<BR>with accented letters, boldfacing, and two headwords that look
identical.<BR>It's at <A
href="http://www.perl.com/pub/a/2004/03/25/dictionaries.html">http://www.perl.com/pub/a/2004/03/25/dictionaries.html</A><BR><BR>Benjamin
Barrett</TT></BLOCKQUOTE><!-- |**|end egp html banner|**| -->
<br>
<!-- |**|begin egp html banner|**| -->
<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor=#FFFFCC>
<td align=center><font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td>
</tr>
<tr bgcolor=#FFFFFF>
<td align=center width=470><table border=0 cellpadding=0 cellspacing=0> <tr> <td align=center><font face=arial size=-2>ADVERTISEMENT</font><br><a href="http://us.ard.yahoo.com/SIG=129dhk4uf/M=298184.5022502.6152625.3001176/D=groups/S=1709195911:HM/EXP=1087161746/A=2164339/R=0/SIG=11e2d64in/*http://www.netflix.com/Default?mqso=60183348" alt=""><img src="http://us.a1.yimg.com/us.yimg.com/a/ne/netflix/yhoo0504_a_300250a052604.gif" alt="click here" width="300" height="250" border="0"></a></td></tr></table> </td>
</tr>
<tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=groups/S=:HM/A=2164339/rand=612720305"></td></tr>
</table>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<br>
<tt><hr width="500">
<b>Yahoo! Groups Links</b><br>
<ul>
<li>To visit your group on the web, go to:<br><a href="http://groups.yahoo.com/group/lexicographylist/">http://groups.yahoo.com/group/lexicographylist/</a><br>
<li>To unsubscribe from this group, send an email to:<br><a href="mailto:lexicographylist-unsubscribe@yahoogroups.com?subject=Unsubscribe">lexicographylist-unsubscribe@yahoogroups.com</a><br>
<li>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.
</ul>
</tt>
</br>
<!-- |**|end egp html banner|**| -->
</BODY></HTML>