<html>
Wawan, is it true that you look at postings only, not on your ingoing
e-mail? <br>
And that you don't post answers ("reply to all")!?
...<br><br>
At 23:12 12.02.09, wawan wrote:<br>
<blockquote type=cite class=cite cite>On Fri, Feb 13, 2009 at 2:54 AM,
Uwe Lück <<a href="mailto:uwe.lueck@web.de">uwe.lueck@web.de</a>>
wrote:<br>
<blockquote type=cite class=cite cite>At 14:13 12.02.09, wawan
wrote:<br>
>I already make parsing from text document to
"signed/tagged" text document<br>
>using perl. Now I need converted those tagged document using my
own<br>
>metafont symbol.<br><br>
1. If you work with Perl anyway, then I don't understand why you want
to<br>
use LaTeX for replacements instead of Perl.</blockquote>Yes, I
believethis my fault, I have lack of knowledge about Latex so I just
implemented algorithm with perl first and I'll learn latex
then</blockquote><br>
Have you *reasoned* why you want do the replacing with LaTeX, not with
Perl?<br><br>
<blockquote type=cite class=cite cite><blockquote type=cite class=cite cite>>I
hope Latex can "read" my signed text using ifthen package or
others and<br>
>make it one new package.<br>
><br>
2. To the best of my knowledge, the ifthen package would be of almost
no<br>
use here. You would need some string handling macros, I pointed to
some<br>
packages offering such macros. ifthen only can decide whether two
given<br>
strings are the same.</blockquote>Hmmm... how about this algorithm If
some characters (ex: X,Y,Z) followed by (U,A,O) the replace with
symbols else with others.</blockquote><br>
Besides an algorithm, you need an implementation -- that actually
operates on strings. You need macros referring to strings und substrings.
This has (almost) nothing to do with implementing "if" and
"then" as ifthen does it. <br><br>
Indeed, the first argument of \ifthenelse needs a *test* referring to
certain things. The ifthen package implements tests of equality of
strings, on oddness of numbers and of <, =, > of lenghts only
(besides calculating boolean values). <br><br>
The xifthen package adds tests for substrings, but it doesn't implement
any *operations* on strings, i.e., generate a certain output string from
some input strings. <br><br>
<blockquote type=cite class=cite cite><blockquote type=cite class=cite cite>>But
I'm still confuse how to make a .sty, there was litle
documentatation<br>
>on that<br>
3. I have offered a probable solution, what are you missing for a
".sty" now?</blockquote>I mean, I need bulid own .sty, how to
do that ? there was very limited doc. :(</blockquote><br>
There is a guide for class and package writers at <br><br>
<a href="http://www.ctan.org/macros/latex/doc/clsguide.pdf" eudora="autourl">http://www.ctan.org/macros/latex/doc/clsguide.pdf</a><br><br>
and a section on the same matter in the LaTeX Companion. And finally CTAN
is full of examples. <br><br>
All the best, <br><br>
Uwe <br>
</html>