<div dir="ltr"><div dir="ltr">Hi Philip,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 19, 2021 at 10:27 AM Philip Taylor <<a href="mailto:P.Taylor@hellenic-institute.uk">P.Taylor@hellenic-institute.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div>More information needed, I
    feel.</div></div></blockquote><div><br></div><div>I have already done the character-to-number conversion, so what exactly was converted isn't a necessary part. The chain is something like this:</div><div><br></div><div>cleartext.tex → [character-to-number conversion] → ciphertext.tex → [xor through keytext.tex] → codetext.tex</div><div><br></div><div>So, I have ciphertext.tex and keytext.tex, and want a script that can take those two and produce codetext.tex (and then, if needed, take codetext.tex and keytext.tex to produce a file identical to ciphertext.tex). For what it's worth, the character-to-number conversion also converted numbers, some punctuation, and certain TeX tags (like \textemdash gets its own number, as do "startquote" and "endquote"). But \footnote is left in place, which means they and other tags have to be ignored.</div><div><br>In short, the script should *only* operate on two-digit numbers in the file sequentially, running an xor operation on each one in turn with the two-digit number in the corresponding position in keytext.tex.</div><div><br></div><div>Does that help clarify what I'm trying to do?</div><div><br></div><div>Thanks for the help,</div><div><br></div><div>A </div></div></div>