Auto Wrapping Text At 65 Characters In Word 98 For Mac
For those who use or access Macs, I just wanted to point out that videos of this year’s WWDC sessionswwdc2012 are up and they have a session on “Text and Linguistic Analysis.” All the sessions are at the URL below. I watched last year’s session on latent semantic analysiswwdc2011, which is also baked into the Mac OS, and it was quite good.
You can watch the videos on-line or get them through iTunes to watch off-line, and they are also available as PDFs. (The site is worth checking out just to see how well it is designed.) wwdc2012: wwdc2011: Posted on by. Tagged:,. Okay, you have signed up for an IBM DeveloperWorks account and you have successfully clicked the.download. button.
Now the fun begins. First, you need to find the downloaded file, which should be a `zip` archive. Most modern operating systems should have the necessary applications to unzip the file — if your doesn’t, then look for a good archive utility that handles `zip`, `gzip`, `tar`, and other forms of compression on a site like MacUpdate or some other reliable source for software. The unzipped file turns out to be a folder. Inside the folder you are going to see the following:.
a directory (folder) labelled examples. a directory labelled license. the actual word cloud generator application: `ibm-word-cloud.jar`.
a read-me file, `readme.html`. a Windows batch file named `run-example.bat`. a Unix shell script named `run-example.sh` I am writing this from a computer running Mac OS X, which is a Unix machine with a pretty face, and so I am going to use the Unix shell script as my foundation, but the corresponding steps should work similarly for those of you running Windows OS and using the batch file. (Properly, I believe I should describe Mac OS X as POSIX-compliant, but I don’t know how many people, including myself, would understand at all what that meant.) The `readme` file is somewhat helpful, but I find two documents (files) to be even more helpful. One is the shell script itself, which gives me an exact idea of what I should type — or, better, paste — into a terminal to begin to get results.
And so the first thing you should do is copy the shell script, start with `java` and copy all the way to `example.png` into an open terminal window and hit return. If you haven’t used the terminal before, or whatever your OS calls getting access to the command line, then you are in both for something of a shock as well as a real treat. The shock will come from something that looks, for those of you raised in the era of GUIs, so, well,.textual., and the treat will come with realizing that even though its.textiness. seems so foreign, it’s actually fairly easy to use and you will be surprised how quickly you are going to get results. And so, perhaps, the first place to begin is finding out where to find this Terminal application: in Mac OS X, it’s in the Utilities directory/folder within the Applications directory, which is at the root directory. The file hierarchy looks something like this: `/Applications/Utilities/Terminal.app` You read this as follows:.
/ (root). Applications/ (Applications directory). Utilities/ (Utilities directory). Terminal.app (application named Terminal) Okay, now you have the Terminal application open, which means you have a window on your desktop which contains something like this: `Last login: Wed Mar 30 16:51:05 on console` `%` The `%` is known as the prompt, which is short for “the command line prompt”, which means you are now working with the command line interface (CLI). Congratulations, you have just earned your first CLI credit. Your prompt may very well be longer: I have shortened mine so that it places my current working directory between square braces and then gives me a percentage sign to tell me it’s ready to receive instructions.
(There’s a lot more to say about the environment in which you now find yourself, but for the sake of getting on with this tutorial we will leave that for another time.) If you paste the code that you copied out of the shell script above and try to run it from where you are, chances are you will get nothing. That is because the prompt can only run things when it knows where they are — much the same applies in the GUI, but Windows and Mac and Linux GUIs do a lot of work behind the scenes to find applications for you. You have two choices: add the file hierarchy to your command or to navigate to where the WCG application is and run it from within its directory. (If you were going to use the application a lot, there are some other considerations, but we will leave those for another time — but feel free to ask if you like.) Typically, most Terminal windows will start you in your user home directory — which is indicated by the use of the tilde (``). My best advice for the sake of this current activity is to use Windows Explorer or the Mac Finder and move the unzipped folder containing the WCG, which is named “IBM Word Cloud” in my case, to the Desktop or to your Documents folder. Some place easy to get to. Now, back at the CLI, you can do the following things:.
type `pwd` to print the working directory. type `ls` to li st the contents of the current working directory. type `cd` to change the directory you are in.
type `cd.` (that’s cd followed by a space followed by two periods) if you went into the wrong directory and need to back your way out of type `cd ` to go back to the home directory no matter where you care Navigate to the IBM Word Cloud directory, which we are going to pretend is on your Desktop. Now you can run that command `java example.png` and it will produce results for you. If you look back in the IBM Word Cloud directory, using the Finder, you will see that a graphic file named `example.png` now exists there. Congratulations, you have successfully produced your first word cloud, and your first graphic, from the command line. Everything else is a matter of making the kinds of adjustments we discussed in class.
Posted on by. Tagged:,.
I am working on my paper for the computational folkloristics panel at AFS this year. My goal is to apply some of the network theory and visualization methods I learned at the NEH Institute on Networks and Networking in the Humanities do the intellectual history of folklore studies.
I thought an interesting phenemonenon to tackle would be the emergence of performance studies as a paradigm. That is, what does a paradigm shift look like from the point of view of a network? What did it look like in folklore studies? To do this work I am interacting with JSTOR’s.Data for Research. program, and I am trying to keep notes as I go.
Because this will eventually be something I want to share with others, I am keeping my notes in Word — if only because I can control the presentation much more readily. For the XML with which I am working to be more readable, it could use some syntax highlighting, a feature I count on in my text editor, Textmate, but which is not available in Word unless, of course, you happen upon on-line sites which will do the work for you. One such site is ToHTML(PlanetB(will also do some syntax highlighting. Posted on by. Tagged:,.
It has taken some research, but I was unable ever to accomplish in emacs I have been able to pull off successfully, and in short order, in vim. To be sure, it’s not my doing but the work of others that I have cobbled together here, but what it provides is the kind of word wrapping to which most of us have become accustomed in GUIs. You will need to place the following in your.vimrc file in your home directory::set wrap:set linebreak:set nolist ' list disables linebreak:set textwidth=0:set wrapmargin=0:set formatoptions+=l Posted on by. Tagged:.
# Header 1 # ## Header 2 ## ### Header 3 ### (Hashes on right are optional) #### Header 4 #### ##### Header 5 ##### This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one line (or many), and can drone on for hours. Here is a Markdown link to Warped(and a literal. Now some SimpleLinks, like one to google (autolinks to are-you-feeling-lucky), a test link to a Wikipedia page, and a CPU at foldoc.
Now some inline markup like italics,.bold., and `code`.!picture alt(/images/photo.jpeg 'Title is optional') Blockquotes are like quoted text in email replies And, they can be nested. Bullet lists are easy too - Another one + Another one 1. A numbered list 2. Which is numbered 3.
With periods and a space And now some code: // Code is just text indented a bit which(iseasy) toremember; Text with two trailing spaces (on the right) can be used for things like poems Some horizontal rules. Posted on by. Tagged:,. A ReStructuredText Primer :Author: Richard Jones:Version: $Revision: 4350 $:Copyright: This document has been placed in the public domain. Contents:: The text below contains links that look like '(quickref)'.
These are relative links that point to the `Quick reStructuredText` user reference. If these links don't work, please refer to the `master quick reference` document. Quick reStructuredText: quickref.html. master quick reference: Structure - From the outset, let me say that 'Structured Text' is probably a bit of a misnomer.
It's more like 'Relaxed Text' that uses certain consistent patterns. These patterns are interpreted by a HTML converter to produce 'Very Structured Text' that can be used by a web browser. The most basic pattern recognised is a.paragraph. (quickref). That's a chunk of text that is separated by blank lines (one is enough). Paragraphs must have the same indentation - that is, line up at their left edge. Paragraphs that start indented will result in indented quote paragraphs.
For example:: This is a paragraph. It's quite short. This paragraph will result in an indented block of text, typically used for quoting other text. This is another one. Results in: This is a paragraph. It's quite short. This paragraph will result in an indented block of text, typically used for quoting other text.
This is another one. quickref.html#paragraphs Text styles - (quickref) quickref.html#inline-markup Inside paragraphs and other bodies of text, you may additionally mark text for.italics. with '``.italics.``' or.bold. with '``.bold.``'. If you want something to appear as a fixed-space literal, use '````double back-quotes````'. Note that no further fiddling is done inside the double back-quotes - so asterisks '``.``' etc. Are left alone.
If you find that you want to use one of the 'special' characters in text, it will generally be OK - reStructuredText is pretty smart. For example, this. asterisk is handled just fine. If you actually want text.surrounded by asterisks. to.not. be italicised, then you need to indicate that the asterisk is not special. You do this by placing a backslash just before it, like so '``.``' (quickref), or by enclosing it in double back-quotes (inline literals), like this:: ``.`` quickref.html#escaping Lists - Lists of items come in three main flavours:.enumerated.,.bulleted.
and.definitions. In all list cases, you may have as many paragraphs, sublists, etc. As you want, as long as the left-hand side of the paragraph or whatever aligns with the first line of text in the list item. Lists must always start a new paragraph - that is, they must appear after a blank line.enumerated. lists (numbers, letters or roman numerals; quickref) quickref.html#enumerated-lists Start a line off with a number or letter followed by a period '.'
, right bracket ')' or surrounded by brackets '( )' - whatever you're comfortable with. All of the following forms are recognised:: 1.
Upper-case letters and it goes over many lines with two paragraphs and all! Lower-case letters 3. With a sub-list starting at a different number 4. Make sure the numbers are in the correct sequence though! Upper-case roman numerals i. Lower-case roman numerals (1) numbers again 1) and again Results in (note: the different enumerated list styles are not always supported by every web browser, so you may not get the full effect here): 1.
Upper-case letters and it goes over many lines with two paragraphs and all! Lower-case letters 3. With a sub-list starting at a different number 4. Make sure the numbers are in the correct sequence though!
Upper-case roman numerals i. Should i buy mc19 for macbook. Lower-case roman numerals (1) numbers again 1) and again.bulleted. lists (quickref) quickref.html#bullet-lists Just like enumerated lists, start the line off with a bullet point character - either '-', '+' or '.'
::. a bullet point using '.' - a sub-list using '-' + yet another sub-list - another item Results in:. a bullet point using '.' - a sub-list using '-' + yet another sub-list - another item.definition.
lists (quickref) quickref.html#definition-lists Unlike the other two, the definition lists consist of a term, and the definition of that term. The format of a definition list is:: what Definition lists associate a term with a definition.how. The term is a one-line phrase, and the definition is one or more paragraphs or body elements, indented relative to the term. Blank lines are not allowed between term and definition. Results in: what Definition lists associate a term with a definition.how.
The term is a one-line phrase, and the definition is one or more paragraphs or body elements, indented relative to the term. Blank lines are not allowed between term and definition. Preformatting (code samples) - (quickref) quickref.html#literal-blocks To just include a chunk of preformatted, never-to-be-fiddled-with text, finish the prior paragraph with '``::``'. The preformatted block is finished when the text falls back to the same indentation level as a paragraph prior to the preformatted block. For example:: An example:: Whitespace, newlines, blank lines, and all kinds of markup (like.this. or this) is preserved by literal blocks. Lookie here, I've dropped an indentation level (but not far enough) no more example Results in: An example:: Whitespace, newlines, blank lines, and all kinds of markup (like.this.
or this) is preserved by literal blocks. Lookie here, I've dropped an indentation level (but not far enough) no more example Note that if a paragraph consists only of '``::``', then it's removed from the output:::: This is preformatted text, and the last '::' paragraph is removed Results in::: This is preformatted text, and the last '::' paragraph is removed Sections - (quickref) quickref.html#section-structure To break longer text up into sections, you use.section headers. These are a single line of text (one or more words) with adornment: an underline alone, or an underline and an overline together, in dashes '``-``', equals '````', tildes '````' or any of the non-alphanumeric characters ``= - `: ' ' ^. + # `` that you feel comfortable with. An underline-only adornment is distinct from an overline-and-underline adornment using the same character. The underline/overline must be at least as long as the title text.
Be consistent, since all sections marked with the same adornment style are deemed to be at the same level:: Chapter 1 Title Section 1.1 Title - Subsection 1.1.1 Title Section 1.2 Title - Chapter 2 Title This results in the following structure, illustrated by simplified pseudo-XML:: Chapter 1 Title Section 1.1 Title Subsection 1.1.1 Title Section 1.2 Title Chapter 2 Title (Pseudo-XML uses indentation for nesting and has no end-tags. It's not possible to show actual processed output, as in the other examples, because sections cannot exist inside block quotes. For a concrete example, compare the section structure of this document's source text and processed output.) Note that section headers are available as link targets, just using their name. To link to the Lists heading, I write '``Lists``'.
If the heading has a space in it like `text styles`, we need to quote the heading '```text styles```'. Document Title / Subtitle ````````````````````````` The title of the whole document is distinct from section titles and may be formatted somewhat differently (e.g. The HTML writer by default shows it as a centered heading). To indicate the document title in reStructuredText, use a unique adornment style at the beginning of the document. To indicate the document subtitle, use another unique adornment style immediately after the document title. For example:: Document Title - Subtitle - Section Title. Note that 'Document Title' and 'Section Title' above both use equals signs, but are distict and unrelated styles.
The text of overline-and-underlined titles (but not underlined-only) may be inset for aesthetics. Images - (quickref) quickref.html#directives To include an image in your document, you use the the ``image`` directive. For example::. Image:: images/biohazard.png results in:. Image:: images/biohazard.png The ``images/biohazard.png`` part indicates the filename of the image you wish to appear in the document. There's no restriction placed on the image (format, size etc). If the image is to appear in HTML and you wish to supply additional information, you may::.
Image:: images/biohazard.png:height: 100:width: 200:scale: 50:alt: alternate text See the full `image directive documentation` for more info././ref/rst/directives.html././ref/rst/directives.html#images What Next? - This primer introduces the most common features of reStructuredText, but there are a lot more to explore.
The `Quick reStructuredText` user reference is a good place to go next. For complete details, the `reStructuredText Markup Specification` is the place to go #. Users who have questions or need assistance with Docutils or reStructuredText should post a message to the Docutils-users mailing list. # If that relative link doesn't work, try the master document:. reStructuredText Markup Specification:././ref/rst/restructuredtext.html. Docutils project web site: Posted on by.
Tagged:. Quite frankly, this is emacs’ greatest disappointment as a text editor – something so fundamentally important to so many people and something so many other editors do well. Without modification, emacs does not soft wrap the way you’d like it to. Will that change?
Perhaps – open source software’s greatest strength is that clever people with programming skills can modify projects to suit their own needs. But if this is something you can’t overlook, emacs will drive you crazy and you’re better off with another application.
Word wrap comes in two forms: soft wrap and hard wrap. Hard wrap means that at the end of every line a “newline” character is inserted. Most plain text email is sent this way. If you have 80 character wide paragraphs and want them to be 120 characters wide, you have to reformat. In other text editors that’s a real pain, but in emacs it’s easy, and that’s one reason few programmers feel compelled to do anything about the word wrap problem.
Soft wrap means the program recognizes the width of the window on your screen and reformats the words to fit the window, without inserting any newline characters. If you resize the window, the words adjust automatically. Emacs does not do this.
Emacs presents three options:. No wrap: Lines do not wrap around the screen at all, but continue on and on to the right until you finally hit “return,” which for text, would be at the end of the paragraph. This is acceptable for people writing code, but not acceptable for text. Wrap: Lines wrap around the screen, but emacs doesn’t pay attention to words, and will wrap right in the middle of the word, showing a little symbol, probably a backslash, at the right edge of the screen to show the line is being continued below. If you can deal with this, it’s the best way to go for writers.
But it’s not ideal. Fill: Emacs calls it “filling” a paragraph, and it means inserting a newline at a certain distance from the beginning of the line, for example 120 characters, paying attention not to split a word. This gives you nicely formatted paragraphs that look nice, but can get distorted if you add words in the middle of the paragraph afterward, for example. Then you have to reformat the paragraph (which is a simple keystroke). If you’re writing using LATEX (more about that later), this is the best option.
But if you eventually want to hand the text to a publisher, they’ll be very unhappy about all the newlines and the hard formatting, so you’ll be forced to find an alternative. Let’s look at filling first. The command M-x auto-fill-mode toggles filling on or off. It will insert a newline at a certain position, taking care to pass a word onto the next line if it would be otherwise split. At what character will it do so? Probably around 72 unless you tell it otherwise. Here’s how to choose: C-u 80 C-x f sets the width (80 characters, in this example) of your paragraph but does not reformat the paragraph.
M-q reformats the paragraph. So let’s say you are typing at the console, which is 120 characters wide, and you are starting a new document. Before you start, hit C-u 120 C-x f to set the margin, and type M-x auto-fill-mode to toggle auto-fill mode on (check the status bar at the bottom of the screen to see if it’s on: look for the word “fill” in the mode line). Now start typing.
Your paragraphs will be hard wrapped at 120 characters, the width of your screen. Now if you go back to edit your work, the paragraph will be out of whack. Hit M-q to reformat the paragraph. If you later decide you want the paragraph to be 72 characters wide again, you can hit C-u 72 C-x f to set the new margin and M-q to reformat it. There are two other useful commands available to you if you’ve selected a region you’d like to format. The command fill-individual paragraphs (remember, as explained in section 6.1 you would access this by typing M-x fill-individual-paragraphs) reformats each paragraph in the region. This is probably what you want if you want to globally change all the paragraphs in your document from 72 to 85 characters wide, for example.
The command fill-region-as-paragraph will take all the fragments of text in your region and make them into a single paragraph, removing extraneous blank lines and double spaces, etc. Very handy way to reformat hacked-up text.
## Word Wrap in EMACS Add the following commands to emacs.rc in each user’s root directory to make Emacs use the cursorpad and do word wrap. You may wish to use 65 as a wrap value or even 78 (not 40). Bind-to-key quick-exit ^Z bind-to-key previous-line FNA bind-to-key next-line FNB bind-to-key forward-character FNC bind-to-key backward-character FND 40 set-fill-column add-global-mode “wrap” ## Word-wrap in Emacs is called filling. ## The Emacs Manual tells you this about it: `M-q` Fill current paragraph (fill-paragraph). `C-x f` Set the fill column (set-fill-column). M-x fill-region Fill each paragraph in the region (fill-region). M-x fill-region-as-paragraph Fill the region, considering it as one paragraph.
M-s Center a line. But of course it doesn’t tell you how to actually use “C-x f”. If you just type “C-x f” you get this error: set-fill-column requires an explicit argument To set the line wrap to 80 for example, type ‘C-u 80 C-x f ‘ ## Continuation Lines If you add too many characters to one line without breaking it with RET, the line grows to occupy two (or more) lines on the screen. On graphical displays, Emacs indicates line wrapping with small bent arrows in the fringes to the left and right of the window.
On text-only terminals, Emacs displays a ` ’ character at the right margin of a screen line if it is not the last in its text line. This ` ’ character says that the following screen line is not really a distinct line in the text, just a continuation of a line too long to fit the screen. Continuation is also called line wrapping.
When line wrapping occurs before a character that is wider than one column, some columns at the end of the previous screen line may be “empty.” In this case, Emacs displays additional ` ’ characters in the “empty” columns, just before the ` ’ character that indicates continuation. Sometimes it is nice to have Emacs insert newlines automatically when a line gets too long. Continuation on the screen does not do that.
Use Auto Fill mode (see section T.5 Filling Text) if that’s what you want. As an alternative to continuation, Emacs can display long lines by truncation. This means that all the characters that do not fit in the width of the screen or window do not appear at all. They remain in the buffer, temporarily invisible.
On terminals, `$’ in the last column informs you that the line has been truncated on the display. On window systems, a small straight arrow in the fringe to the right of the window indicates a truncated line. Truncation instead of continuation happens whenever horizontal scrolling is in use, and optionally in all side-by-side windows (see section O. Multiple Windows). You can enable or disable truncation for a particular buffer with the command M-x toggle-truncate-lines. See section J.12 Customization of Display, for additional variables that affect how text is displayed.
Word Wrapping in emacs To enter word wrap mode from within emacs, enter the following command: Meta-x auto-fill-mode To word wrap a pre-existing paragraph, enter: Meta-q To word wrap and full-justify a pre-existing paragraph, enter: Ctrl-u Meta-q Posted on by. Tagged:,. Hanging Indent I’ve got a list that looks like this: 1.
The job of a writer is to discover what series of events best illustrates an idea or an emotion. Just like the actor, your job is one of translation, the most difficult part which is that it all comes down to this: you have to write something that a person can do in front of a camera. And I want it to look like this: 1. The job of a writer is to discover what series of events best illustrates an idea or an emotion.
That required the insertion of a hard return at the end of the line and then an insertion of three spaces in addition to the existing single space in order to make it four spaces and to line up with the tab. Just like the actor, your job is one of translation, the most difficult part which is that it all comes down to this: you have to write something that a person can do in front of a camera.
Okay, that’s consistent: Go to end of line. Insert hard return Go to beginning of next line (or advance one character) Insert three spaces. Continue until you get to a pre-existing hard return. Posted on by. Tagged:,.
I am now, more than ever, convinced that writers should be taught how to write on text editors and not on modern word processors. The same goes for beginning writers as well as advanced writers. Good text editors — and there are plenty of good ones for the Mac, for Linux, and for Windows — do not give you WYSIWYG. (“What You See Is What You Get” is a close approximation of what the printed page will look like). Instead, text editors give you a blank screen, perhaps some line numbers, perhaps some syntax coloring (more on this in a moment) and no real sense of what the output is going to look like. And that’s a good thing, because you shouldn’t be thinking about the output while you’re writing. You should be thinking about what it is you are trying to communicate.

You shouldn’t care what the margins look like, what the headers and footers look like, what the headings look like, etc. What you should be paying attention to are the words themselves and how you structure them into paragraphs and sections that convey what it is you are trying to say. Unfortunately, most word processors sidetrack writers, especially inexperienced writers, into worrying about formatting, into confusing the styling of typography with styling of prose.
(Mark Turner’s Clear and Simple as the Truthcst explores what style really is.) I want to be clear: typography and design are important, but they are only important insofar as they reflect and/or augment what it is the text itself is trying to say. Or, as I will say more about in a minute, design should be a function not only of the text and the audience and the intended meaning but also the medium in which the transaction is taking place. Even some of university professors and high-powered business people confuse formatting with structure, and so what hope for beginning writers and thinkers? And it’s going to get worse before it gets better, because for every web application that uses Markdownmd, Textilett, ReSTrest, or some other version of easy-to-use markup, there are four web apps that provide a WYSIWYG editing interface. So let loose the dogs of.bold. and.italics.!
Facebook and MySpace have made everyone having a home on the internet easy, but in making it easy they have also taken a lot of thinking out of the process. Okay, I’m a humanist. I think thinking should always be a part of the process.
It stings me that so few humanists worry about this. I understand that not everything needs to be thought about. My wife is a good example. For her, Microsoft Word works just fine. And, so far, she has never had a Word document go bad.

And it only took a time or two before I began thinking about not only how my data was locked up in someone else’s proprietary format — it’s a lot like someone encoding your data and turning it into a secret message that you can’t open with anything else but their key — but also how fragile that format was. Fragile both in terms of corruptibility and in terms of longevity. And never mind that every document was ten times,.ten times., the size of the data it contained. What else was Word stuffing in there?
Elsewhere I’ve written about the importance of thinking about platformspf, so I won’t go into it here. But obviously one thing having “just plain text” that can then be transformed into.xhtml. and from there into an.rtf. document or a PDF or a myriad of other things does is allow the writer to move quickly across platforms, multi-purposing their work. It’s my belief that we’re going to have to teach both humanists and communications people not only how to do this but the mindset behind it. I know the humanists aren’t getting it in their classes, and I’m pretty sure the communications folks aren’t either.
Personally, I think this is the key not only to good thinking, but also the key to good design. Once you “get this,” then your world changes. Suddenly, all media forms become languages that have their own grammars that you are free both to use conventionally and also innovate within — depending upon your objective. md: tt: rest: pf: cst: Posted on by. Tagged:.
Auto Wrapping Text At 65 Characters In Word 98 For Mac
Post navigation.