LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2008, 11:50 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Rep: Reputation: Disabled
Troff document = ?


I checked the properties of a file I made with Windows Notepad, and noticed that the contents (not the type) are a "Troff document." What does "Troff" mean? As you'd expect for a file made with Windows Notepad, it's plain text--or supposed to be, anyway.
 
Old 08-26-2008, 05:11 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
http://en.wikipedia.org/wiki/Troff - I'm none the wiser though!
 
Old 08-26-2008, 05:52 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
See this as well:

http://en.wikipedia.org/wiki/Groff_(software)
 
Old 08-26-2008, 07:08 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
What are the first lines of the file?
 
Old 08-26-2008, 11:01 AM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
Because it's a personal journal, the first lines are:
.LOG


2008-08-21 22:47:04
 
Old 08-26-2008, 11:05 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
It's just a plain text file. If you put .LOG at the start, then every time you open it it automatically puts the time and date on it.
About the only useful feature of Notepad.

Last edited by brianL; 08-26-2008 at 11:06 AM.
 
Old 08-26-2008, 12:01 PM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Troff looks a bit like that. I suspect it is simply a mis-identification of the file, based on the file contents.

If it is any consolation, troff was designed and written a long time before notepad. An example troff document can be seen here.

Last edited by matthewg42; 08-26-2008 at 12:03 PM.
 
Old 08-26-2008, 01:49 PM   #8
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
It's just a plain text file. If you put .LOG at the start, then every time you open it it automatically puts the time and date on it.
About the only useful feature of Notepad.
[mock outrage] I beg your pardon. Notepad did the job for me for many years before I discovered Linux. (I did, however, discover that there is a file size limit when .LOG is used. I think it's around 30K; after that, the file can still be added to, but the datestamp won't work.) I could never understand why, as I saw, some people used Microsoft Word to take plain text notes. Fortunately, KWrite is comparably minimalist, and someone here told me how to make a datestamp and timestamp in it.
 
Old 08-26-2008, 05:00 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
May Gates & Ballmer forgive me for insulting Notepad, Amen. I'm Windowless now (it's not as dark as I thought it would be), but I used to use EditPad Lite when I had XP. Better than Notepad in most ways, but it couldn't do that automatic datestamp thing. Ah well, nothing's perfect.
 
Old 08-26-2008, 05:58 PM   #10
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
If you really want to go to the dark side, you could use emacs. If you name a file ChangeLog there's some auto-dating thing. emacs is not for everyone though!
 
Old 08-26-2008, 06:18 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Troff is referred to in man.config and various other places in /etc (including mime.types)
 
Old 08-27-2008, 12:22 AM   #12
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
May Gates & Ballmer forgive me for insulting Notepad
No need for sarcasm. Notepad doesn't particularly deserve insults, but insult it all you like.

The thing is, when you're dealing with a bare-bones text editor like Windows Notepad, you have so few features--and, if you're putting it to its appropriate use, you need so few features--that how can a comparable editor be "better" without soon becoming a kludge?

I don't know what you need to do with your editor, but I wrote plain text with no formatting; I saved it; I used word-wrap sometimes, I datestamped it when writing in my journal, and that's really it. I never needed more features than what Notepad had, and I appreciated its spartanness. KWrite is good enough, but it's slightly more cluttered: a toolbar that I never use (I assume I could remove it, but I don't care enough), and options like "show dynamic word wrap marker" and "code folding" (???), that I can't imagine using, in the menus.

Most or all of my notes from college, especially those from liberal arts courses (I was an English major), are plain text. I didn't even need a laptop in class; I had one, but eventually realized it was the biggest waste of money I ever committed, and for my last two years of college, got by well enough with an "Alphasmart"--an electronic keyboard with a small amount of memory that plugs into a computer to transfer what I typed.

(Why didn't I simplify even more, and use pen/pencil and paper? I'm handicapped with motor coordination problems, so my handwriting is slow and labored. I was never able to write fast enough, when it was an issue.)

Last edited by newbiesforever; 08-27-2008 at 12:50 AM.
 
Old 08-27-2008, 12:41 AM   #13
normscherer
Member
 
Registered: Sep 2005
Location: Prescott, AZ
Distribution: Ubuntu Mate 18 LTS
Posts: 50

Rep: Reputation: 15
troff/nroff/groff are all descendents of the original runoff (aka roff) text formatter. Troff did typesetting for some machine I had never heard of but with the proper filters it would turn out postscript and make real nice documents. Nroff was for typewriter like (monospaced) devices. We used to use it to turn out documentation on daisywheel printers.

In these programs the formatting is specified by short commands that start a line with a period. For example a paragraph might be .P (in the mm macro package). That is why file thought your file looked like troff.
 
Old 08-27-2008, 05:33 AM   #14
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
If you want a simple text editor for Windows with no toolbars, etc, try DarkRoom:

http://they.misled.us/dark-room

For Linux, Nano might suit your needs better. KEdit has less features than KWrite, too.
 
Old 08-27-2008, 08:18 AM   #15
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Quote:
Originally Posted by newbiesforever View Post
(Why didn't I simplify even more, and use pen/pencil and paper? I'm handicapped with motor coordination problems, so my handwriting is slow and labored. I was never able to write fast enough, when it was an issue.)
Excuse me for intruding on this topic.
It happens I have a relative in the same situation as you. And he also uses a computer at school instead of writing most of the time.

I am responsible for setting up the PC for him. So far, I put a regular Gnome destop with a tiny menu/task-bar at the bottom mostly for the teacher, and huge drawers on the side for his applications (Writer…)
As for user input, I only slowed key-repeat and the mouse cursor, as well as chose a big mouse pointer.

And I keep wondering if it would be wise to enable Accessibility settings (such as sticky keys), or an easier and more complete layout (such as Dvorak, which would result in less "key-chording"); or if this would only make him less adaptable to computers not his…

I would welcome your input on the matter if you don't mind. I can be reached at
g a b l i n - s o l @ i f r a n c e . c o m

Yves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Converting troff to HTML LXer Syndicated Linux News 0 08-14-2008 07:20 AM
troff & groff banajah Linux - General 5 06-12-2006 05:18 AM
how to read a troff file? ashley8 Linux - Software 4 09-29-2003 06:28 AM
How to Read a Troff Man File steve65 Linux - Software 7 10-20-2002 07:35 PM
Is this a troff, groff, TeX, or nroff file? atrionfo Linux - General 1 04-19-2002 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration