Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 21 May 2018, 20:59
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Leafpad Text Editor question
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Wed 30 Sep 2009, 04:58    Post subject:  Leafpad Text Editor question  

Hi there

When I use Leafpad Text Pad Editor to create a text file and then open the same file in a MS Windows environment I get this display.



Windows does not seem to like the carriage returns on each line and displays symbols to indicate this, is there a way to change this so both OSes can view this back the same?

Thanks
Back to top
View user's profile Send private message 
William (Dthdealer)


Joined: 30 Oct 2008
Posts: 148
Location: Australia (GMT +10)

PostPosted: Wed 30 Sep 2009, 07:44    Post subject:  

At the end of each line of text, text editors (such as leafpad) add invisible 'next-line' characters. There are two types, both (in practice) identical. CR, carriage return, and LF, line-feed.

*nix based systems only use LF, but Windows puts both CR and LF at the end of lines. Notable is the fact that Macintosh uses CR.

Windows therefore doesn't understand and replaces the LF with the 'square' I-don't-know-what-this-character-is symbol. Where the lines should break they just join instead.

I don't believe Puppy has the dos2unix or unix2dos tools to convert a file. You'll have to open it up in Geany. Look under the menu Document-->Line endings and then save again.
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Wed 30 Sep 2009, 08:31    Post subject:  

OK thanks for the explanation and the solution. Looks like I'll have to use Geany instead of Leafpad.
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Wed 30 Sep 2009, 17:04    Post subject: Leafpad Text Editor question
Subject description: Notpad, a Windows editor which interconverts CRLF and LF
 

If you need CR/CRLF/LF conversion capability in Windows, if you will permit a shareware plug...P.J. Naughter's Notpad. One month free trial and then a US$10 registration fee if you keep it, provided you send the dough directly to Mr. Naughter ($15 if through the service). I've been using it since 1994, no complaints.
http://www.naughter.com/notpad.html
Back to top
View user's profile Send private message 
ITAmember

Joined: 13 Sep 2009
Posts: 168
Location: The middle of a cornfield

PostPosted: Wed 30 Sep 2009, 19:30    Post subject:  

open the text files in windows under wordpad instead of notepad, it can handle unix newlines.
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Wed 30 Sep 2009, 21:55    Post subject:  

Good and diverse answers. I want to add:

1) Puppy comes with the utility to convert the line endings.

2) There are free utilities for people who use the alternate operating system

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Thu 01 Oct 2009, 16:44    Post subject:  

Bruce B wrote:
...1) Puppy comes with the utility to convert the line endings.
Bruce is modestly referring to dos2unix, an excellent explanation of which is to be found in his Text User Interface tutorial, 11th chapter (message)
here.

Free Windows utilities of course exist, but nothing else combines everything-you-need all-in-one like Notpad. The right-side scroll-button tells you what line number you're at in a tooltip, and a 1-megabyte 100,000-line file doesn't faze it. It has half-decent text-to-voice, too. Anyway, I like it a lot.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0924s ][ Queries: 11 (0.0092s) ][ GZIP on ]