<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.luatex.org/index.php?action=history&amp;feed=atom&amp;title=Encrypt_your_document_using_ROT13</id>
	<title>Encrypt your document using ROT13 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.luatex.org/index.php?action=history&amp;feed=atom&amp;title=Encrypt_your_document_using_ROT13"/>
	<link rel="alternate" type="text/html" href="https://wiki.luatex.org/index.php?title=Encrypt_your_document_using_ROT13&amp;action=history"/>
	<updated>2026-05-21T18:19:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.luatex.org/index.php?title=Encrypt_your_document_using_ROT13&amp;diff=29&amp;oldid=prev</id>
		<title>Patrick: Copied from the old bluwiki.com luatex wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.luatex.org/index.php?title=Encrypt_your_document_using_ROT13&amp;diff=29&amp;oldid=prev"/>
		<updated>2010-12-07T21:19:47Z</updated>

		<summary type="html">&lt;p&gt;Copied from the old bluwiki.com luatex wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following PlainTeX code example uses the ligaturing callback to &amp;quot;encrypt&amp;quot; the document using ROT13-&amp;quot;encryption&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  %&amp;amp;luatex&lt;br /&gt;
  &lt;br /&gt;
  % Notes:&lt;br /&gt;
  % &lt;br /&gt;
  % -	Hyphenation is applied before rotating.&lt;br /&gt;
  % -	Ligaturing is performed after rotating.&lt;br /&gt;
  &lt;br /&gt;
  \pdfoutput=1&lt;br /&gt;
  \begingroup&lt;br /&gt;
  \catcode`\%=12&lt;br /&gt;
  \directlua0{&lt;br /&gt;
  	callback.register(&amp;#039;ligaturing&amp;#039;, function(head)&lt;br /&gt;
  		for v in node.traverse_id(33, head) do&lt;br /&gt;
  			if v.subtype == 1 then&lt;br /&gt;
  				local c = v.char&lt;br /&gt;
  				if c &amp;gt;= 65 and c &amp;lt;= 90 then&lt;br /&gt;
  					v.char = (c - 65 + 13) % 26 + 65&lt;br /&gt;
  				elseif c &amp;gt;= 97 and c &amp;lt;= 122 then&lt;br /&gt;
  					v.char = (c - 97 + 13) % 26 + 97&lt;br /&gt;
  				end&lt;br /&gt;
  			end&lt;br /&gt;
  		end&lt;br /&gt;
  		node.ligaturing(head)&lt;br /&gt;
  	end)&lt;br /&gt;
  }&lt;br /&gt;
  \endgroup&lt;br /&gt;
  &lt;br /&gt;
  % Hello World; fi -- fl -- ffl -- ffi -- enough with the ligatures!&lt;br /&gt;
  % Better do some kerning instead: AV&lt;br /&gt;
  &lt;br /&gt;
  Uryyb Jbeyq; sv -- sy -- ssy -- ssv -- rabhtu jvgu gur yvtngherf!&lt;br /&gt;
  Orggre qb fbzr xreavat vafgrnq: NI&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  \bye&lt;/div&gt;</summary>
		<author><name>Patrick</name></author>
		
	</entry>
</feed>