<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Writer&#039;s Technology Companion &#187; text</title>
	<atom:link href="http://www.writerstechnology.com/tag/text/feed" rel="self" type="application/rss+xml" />
	<link>http://www.writerstechnology.com</link>
	<description>Tools, Tips, and Technology for Productive Writers</description>
	<lastBuildDate>Mon, 08 Feb 2010 13:00:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Moving to Linux: Working with Text (Part 1)</title>
		<link>http://www.writerstechnology.com/2008/10/moving-to-linux-working-with-text-part-1</link>
		<comments>http://www.writerstechnology.com/2008/10/moving-to-linux-working-with-text-part-1#comments</comments>
		<pubDate>Fri, 31 Oct 2008 21:09:29 +0000</pubDate>
		<dc:creator>Aaron Peters</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[word processor]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.writerstechnology.com/?p=475</guid>
		<description><![CDATA[As I highlighted in my last post, plain text is an excellent medium for writers to begin their process. Actually, in many cases, plain text is a perfectly acceptable format for writers to end their process in as well, but for now, let’s assume that you’ll be moving your words to a different format such [...]<p><div style="border: 1px darkblue; color: lightblue; padding: 5px; margin: 5px;">Post from: <a href="http://www.writerstechnology.com">The Writer's Technology Companion</a>.<hr />Buy my book! <a href="http://www.dwax.org/stupid">Don't Be Stupid: A Guide to Learning, Studying, and Succeeding at College</a></div>

<br/><br/><a href="http://www.writerstechnology.com/2008/10/moving-to-linux-working-with-text-part-1">Moving to Linux: Working with Text (Part 1)</a></p>
]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">As I highlighted in my last post, plain text is an excellent medium for writers to begin their process.  Actually, in many cases, plain text is a perfectly acceptable format for writers to <em>end</em> their process in as well, but for now, let’s assume that you’ll be moving your words to a different format such as a word processor or, as I am, a blogging system.</p>
<p>But as a method for drafting your ideas, using text format is good for a few reasons, including:</p>
<ul>
<li><strong>Portable</strong>: It’s not only easy to work with plain text on almost any platform, it’s also small and easy to move back and forth.</li>
<li><strong>Focused</strong>: When you work with text, your focus is on developing the ideas, not what font they will appear in or whether they will be ragged-aligned or justified. Also, most text editors have few bells and whistles to distract you.</li>
</ul>
<p>However, most people used to working in a word processor are used to having a number of facilities at their disposal, including the following:</p>
<ul>
<li>Formatting (bold, italics, etc…)</li>
<li>Spell checker</li>
<li>Search</li>
<li>Compare (with another document)</li>
</ul>
<p>Let’s introduce a couple of tools that will allow you to perform some of the above functions on text files that you have.<span id="more-475"></span></p>
<h2>Formatting</h2>
<p>I’ve recently discovered an excellent application that allows you to apply formatting to plain text.  “<a href="http://txt2tags.sourceforge.net/"><code>txt2tags</code></a>” consists of two tools: text-based tags that you apply to your writing, and a tool that you run to transform your tagged text into other formats.  You can be fairly productive with <code>txt2tags</code> knowing only a couple of tags, as follows:</p>
<ul>
<li>Bolded text is enclosed in double asterisks: “**”</li>
<li>Italicized text is enclosed in double slashes: “//”</li>
<li>Underlined text is enclosed in double underscores: “__”</li>
<li>Bulleted lists begin with a minus-sign and a space: “”- “”</li>
<li>Numbered lists begin with a plus-sign and a space: “”+ “”</li>
<li>Headers are enclosed in a number of equals signs equivalent to its level (e.g., and level-2 header would be enclosed by double-equal-signs, and be the same as an “&lt;h2&gt;” tag in HTML): “==”</li>
</ul>
<p>As an example, I’ve drafted the two posts, <a href="http://www.writerstechnology.com/2008/10/moving-to-linux-tools-for-writers">“Moving to Linux: Tools for Writers”</a> and this post, in the kate editor, using <code>txt2tags</code>.  This way I don’t have to worry about HTML tagging or style sheets while I’m drafting, yet I can easily convert this to HTML for posting into WordPress.  To convert to HTML, you need only run a simple tool from the command line:</p>
<p><code>txt2tags -t html yourfile.txt</code></p>
<p>In this case, the addition of “-t html” tells the program to convert the file to “type HTML.”  Once this is done, you should end up with a nicely formatted HTML document.  For a fuller explanation of this tool, visit the excellent “cheat sheet” page at <a href="http://littlergirl.googlepages.com/txt2tagsCheatSheet.html">http://littlergirl.googlepages.com/txt2tagsCheatSheet.html</a>.</p>
<h2>Spell Checker</h2>
<p>In addition to this rudimentary formatting, you are also able to spell check the drafts you’ve done in text format using tools in Linux.  The text editor you are using may have this function built-in; if it does, it is likely that it is using the <code>aspell</code> library and programs, which are commonly installed by default on most Linux distributions.  You need not look for one of these that has it built-in, however, as you are always able to run this program from the command line.</p>
<p>For those who are (still) unfamiliar with this concept, the command line in Linux is akin to DOS.  Many consider the command line to be archaic and unnecessary.  But there are many actions that are easier, more powerful, or both, when executed from the command line.  This is true for Windows, but (at least) doubly so for Linux.</p>
<p>Using the aspell program is simple as creating a text file and entering the following command (on a side note, we’ll get around to introducing you to the command prompt, and enter shell commands, in a later post):</p>
<p><code>aspell check yourfile.txt</code></p>
<p>The program then enters the aspell interface, which will walk through any misspelled words in the file, and give you options to revise them.  You select your action through key presses.  For example, I fixed the misspelled word in the file below by pressing “1.”  <code>aspell</code> replaced the word, and saved a copy of the old file (with the misspelled word) with a “.bak” extension.</p>
<div id="attachment_476" class="wp-caption alignright" style="width: 310px"><a href="http://www.writerstechnology.com/wp-content/uploads/2008/10/aspell.png"><img class="size-medium wp-image-476" src="http://www.writerstechnology.com/wp-content/uploads/2008/10/aspell-300x163.png" alt="checking in aspell" width="300" height="163" /></a><p class="wp-caption-text">checking in aspell</p></div>
<p>By adding the above two tools to a descent text editor, you will have a good start on a plain text writers toolkit for the Linux platform.  In the next post, we’ll explore going beyond the current document and look at searching and comparing across two or more documents (or directories filled with documents) with a few more command-line tools.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.writerstechnology.com/2008/11/moving-to-linux-working-with-text-part-2" rel="bookmark" class="crp_title">Moving to Linux: Working with Text (Part 2)</a></li><li><a href="http://www.writerstechnology.com/2009/09/moving-to-linux-working-with-the-netbook-part-2" rel="bookmark" class="crp_title">Moving to Linux: Working with the Netbook, Part 2</a></li><li><a href="http://www.writerstechnology.com/2008/11/moving-to-linux-the-netbook-is-your-new-best-friend" rel="bookmark" class="crp_title">Moving to Linux: The Netbook is Your New Best Friend</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><div style="border: 1px darkblue; color: lightblue; padding: 5px; margin: 5px;">Post from: <a href="http://www.writerstechnology.com">The Writer’s Technology Companion</a>.<hr />Buy my book! <a href="http://www.dwax.org/stupid">Don’t Be Stupid: A Guide to Learning, Studying, and Succeeding at College</a></div>

<br/><br/><a href="http://www.writerstechnology.com/2008/10/moving-to-linux-working-with-text-part-1">Moving to Linux: Working with Text (Part 1)</a></p>
 <!--<div class="series_links"><a style="font-size: small" href='http://www.writerstechnology.com/2008/10/moving-to-linux-tools-for-writers' title='Moving to Linux: Tools for Writers'>Previous in series</a> <a style="font-size: small" href='http://www.writerstechnology.com/2008/11/moving-to-linux-working-with-text-part-2' title='Moving to Linux: Working with Text (Part 2)'>Next in series</a></div>--><br><div class="series_toc" style="font-size: small;"><h4>Posts in “Moving to Linux: Tools for Writers” series</h3><ol><li><a href='http://www.writerstechnology.com/2008/10/moving-to-linux-tools-for-writers' title='Moving to Linux: Tools for Writers'>Moving to Linux: Tools for Writers</a></li><li>Moving to Linux: Working with Text (Part 1)</li><li><a href='http://www.writerstechnology.com/2008/11/moving-to-linux-working-with-text-part-2' title='Moving to Linux: Working with Text (Part 2)'>Moving to Linux: Working with Text (Part 2)</a></li><li><a href='http://www.writerstechnology.com/2008/11/moving-to-linux-the-new-openoffice' title='Moving to Linux: The New OpenOffice'>Moving to Linux: The New OpenOffice</a></li><li><a href='http://www.writerstechnology.com/2008/11/moving-to-linux-scribus-for-writers' title='Moving to Linux: Scribus for Writers'>Moving to Linux: Scribus for Writers</a></li><li><a href='http://www.writerstechnology.com/2008/11/moving-to-linux-the-netbook-is-your-new-best-friend' title='Moving to Linux: The Netbook is Your New Best Friend'>Moving to Linux: The Netbook is Your New Best Friend</a></li><li><a href='http://www.writerstechnology.com/2008/11/moving-to-linux-working-with-the-netbook' title='Moving to Linux: Working with the Netbook'>Moving to Linux: Working with the Netbook</a></li><li><a href='http://www.writerstechnology.com/2009/09/moving-to-linux-working-with-the-netbook-part-2' title='Moving to Linux: Working with the Netbook, Part 2'>Moving to Linux: Working with the Netbook, Part 2</a></li></ol></div><br>]]></content:encoded>
			<wfw:commentRss>http://www.writerstechnology.com/2008/10/moving-to-linux-working-with-text-part-1/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

