Become a Site Supporter and Never see Ads again!

Author Topic: questions about .txt files...  (Read 7149 times)

0 Members and 1 Guest are viewing this topic.

Offline mikesalvo

  • Trade Count: (51)
  • Taperssection All-Star
  • ****
  • Posts: 1835
  • Gender: Male
  • get your Avett on!!!
questions about .txt files...
« on: April 22, 2011, 10:19:34 AM »
So, I am a Mac user. I use Textwrangler freeware to create the .txt files for my recordings. I noticed the other day when I brought one of my mac originated .txt files up on a PC, all of the text was on one line all the way across (yes, basically a whole shows worth of info/track names had moved to one line.

What format should I be saving my text files in, so they are compatable on mac and PC? I cant believe I am asking this after all these years, and I hope all of my previous text files dont need to be re-saved....
AKG se300b (ck/91, ck/93) > Busman T-Mod R-4

Offline DigiGal

  • AES Associate Member
  • Trade Count: (30)
  • Needs to get out more...
  • *****
  • Posts: 2583
  • Gender: Female
  • Stay healthy and safe!
    • DigiGal Internet Archive Recordings
Re: questions about .txt files...
« Reply #1 on: April 22, 2011, 01:20:43 PM »
So, I am a Mac user. I use Textwrangler freeware to create the .txt files for my recordings. I noticed the other day when I brought one of my mac originated .txt files up on a PC, all of the text was on one line all the way across (yes, basically a whole shows worth of info/track names had moved to one line.

What format should I be saving my text files in, so they are compatable on mac and PC? I cant believe I am asking this after all these years, and I hope all of my previous text files dont need to be re-saved....

I've used both Text Edit (default) and Text Wrangler but have not experienced anything like what you described if viewing the .txt files on a PC but haven't checked in a while.
Mics: AKG CK91/CK94/CK98/SE300 D-330BT | DPA 4060 4061 4266 | Neumann TLM 103 | Senn ME66/K6/K6RD MKE2 MD421 MD431 | Shure VP88 SM7B SM63L SM58 Anniversary Cables: Gotham GAC-4/1 Quad w/Neutrik EMC | Gotham GAC-2pair w/AKG MK90/3 connectors | DigiGal AES>S/PDIF cable Preamp: SD MixPre-D Recorders: SD MixPre 6 | Marantz PMD 661 Edit: 2011 27" 3.4GHz Quad i7 iMac High Sierra | 2020 13" MBA Quad i7 Catalina | Wave Editor | xACT | Transmission | FCP X 

Offline thekhz

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 18
Re: questions about .txt files...
« Reply #2 on: April 22, 2011, 09:01:36 PM »
LF = line feed character = \n
CR = carriage return character = \r
CRLF = carraige return plus line feed = \r\n

The reason that this happens is that on a Mac, the default line ending is the LF character. Windows Notepad, the default editor on Windows, expects lines to end with CRLF.  That is why opening a file saved with TextWrangler using Windows Notepad results in everything being displayed in a single line. This has nothing to do with word wrapping.

You can set TextWrangler to save files using the "Windows (CRLF)" line break format.

Quote from: TextWrangler_2.2_Release_Notes
There's a new command on the Edit menu: "Document Options...". This lets you adjust the document's line breaks and text encodings as desired (and replaces the now-defunct Document Options popup that was in the tool bar).
http://www.barebones.com/support/textwrangler/notes_tw22.html

Mabye the setting is in Preferences now:

TextWrangler -> Preferences -> Text Files -> 'Default line breaks' to 'Windows (CRLF)'

Some smarter editors on Windows such as TextEdit are able to open files where lines end with LF.

Offline setboy

  • Trade Count: (5)
  • Needs to get out more...
  • *****
  • Posts: 5117
  • Gender: Male
Re: questions about .txt files...
« Reply #3 on: April 22, 2011, 09:42:53 PM »
I always try to save as plain text. it seems to save any trouble windows might have for whatever reason

Offline bhtoque

  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 3308
  • Gender: Male
  • So much music, so little time.
Re: questions about .txt files...
« Reply #4 on: April 22, 2011, 10:19:31 PM »
It's not just a pc/mac problem. I have that happen when I open .doc pc files with notepad. It is all one line with a funny character that looks like a colon made from two little square bolcks where line breaks should be.

JAson
MG 200/210/270
AKG c422>s42>Hydra silver interconnects
AKG 391/92/93>MK 90/3 actives
>AM Hyper-Conductors
Studio Projects LSD2>MiAGi II
>Edirol R-4 (Oade T Mod)

db.etree.org/bhtoque

Offline Gordon

  • Trade Count: (22)
  • Needs to get out more...
  • *****
  • Posts: 11786
  • Gender: Male
    • my list
Re: questions about .txt files...
« Reply #5 on: April 23, 2011, 12:28:35 AM »
as a pc user this happens to me a lot (with txt done on mac).  word warp doesn't help.  I right click > open with word pad and it shows correctly.  I can then copy it from word pad, open the text in notepad and paste it and it's correct.
Microtech Gefell M20 or M21 > Nbob actives > Naiant PFA > Sound Devices MixPre-6 II @ 32/48

https://archive.org/details/fav-gordonlw

https://archive.org/details/teamdirtysouth

Offline JasonSobel

  • Trade Count: (8)
  • Needs to get out more...
  • *****
  • Posts: 3327
  • Gender: Male
    • My show list
Re: questions about .txt files...
« Reply #6 on: April 23, 2011, 06:53:04 AM »
as a pc user this happens to me a lot (with txt done on mac).  word warp doesn't help.  I right click > open with word pad and it shows correctly.  I can then copy it from word pad, open the text in notepad and paste it and it's correct.

I do the exact same thing.  not just text files, but also md5 and FFP files that were created on a MAC.

Offline ashevillain

  • Trade Count: (25)
  • Needs to get out more...
  • *****
  • Posts: 3368
Re: questions about .txt files...
« Reply #7 on: April 23, 2011, 09:18:20 AM »
Too bad Windows software isn't smart enough to decipher. Mac software has no problem deciphering Windows files.  :P

Offline Gordon

  • Trade Count: (22)
  • Needs to get out more...
  • *****
  • Posts: 11786
  • Gender: Male
    • my list
Re: questions about .txt files...
« Reply #8 on: April 23, 2011, 12:20:46 PM »
Too bad Windows software isn't smart enough to decipher. Mac software has no problem deciphering Windows files.  :P

one could argue that if it formatted correctly in the first place then it wouldn't need to  :P  I mean if you spend shit loads of $$ on a computer the textfiles should be universal right?
Microtech Gefell M20 or M21 > Nbob actives > Naiant PFA > Sound Devices MixPre-6 II @ 32/48

https://archive.org/details/fav-gordonlw

https://archive.org/details/teamdirtysouth

Offline rjp

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 432
  • Gender: Male
  • You are likely to be eaten by a grue.
Re: questions about .txt files...
« Reply #9 on: April 23, 2011, 12:39:40 PM »
Except that text file end-of-line has never been universal. Old DEC operating systems like RT-11, RSX-11, and RSTS/E used CR/LF as end-of-line, and that was in turn adopted by CP/M, then MS-DOS, and finally Windows. Unix, as mentioned before, has always used LF only, while Apple has always used CR only (even on the old Apple II systems).

And then, of course, we're completely ignoring the issue of character sets (like EBCDIC on IBM mainframes vs. ASCII elsewhere, not to mention the rise of ISO-8859 and now Unicode).
Mics: AKG Perception 170, Naiant X-X, Sound Professionals SP-TFB-2
Preamps: Naiant Littlebox
Recorders: Olympus LS-10
Interfaces: Focusrite Saffire Pro 14, Focusrite Scarlett 2i2

Offline Gordon

  • Trade Count: (22)
  • Needs to get out more...
  • *****
  • Posts: 11786
  • Gender: Male
    • my list
Re: questions about .txt files...
« Reply #10 on: April 23, 2011, 12:43:06 PM »
I was just giving cliff shit ;)
Microtech Gefell M20 or M21 > Nbob actives > Naiant PFA > Sound Devices MixPre-6 II @ 32/48

https://archive.org/details/fav-gordonlw

https://archive.org/details/teamdirtysouth

Offline ashevillain

  • Trade Count: (25)
  • Needs to get out more...
  • *****
  • Posts: 3368
Re: questions about .txt files...
« Reply #11 on: April 23, 2011, 06:16:55 PM »
I mean if you spend shit loads of $$ on a computer the textfiles should be universal right?

I agree. ;) Especially for something as simple as a .txt file it should definitely be universal. It can't be that hard for the software developers to write the code to make it work both ways. It's probably a political issue between the two companies more than anything.

There are tons of other files that don't work both ways though...it's not just limited to .txt files. Nothing in MS Office works the same. Create an Excel file in Windows and view it on a Mac and the formatting will be messed up and vice versa. MS Word works both ways if only using simple formatting. In my opinion the Windows version of the Office Suite is superior to the Mac version. I know this is a tangent to the original question....sorry!

Offline if_then_else

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 429
Re: questions about .txt files...
« Reply #12 on: April 24, 2011, 02:13:16 AM »
There's the tofrodos package on Unix which makes converting the carriage returns a bit easier.
You would have to compile the source files on Mac OS, though.

http://www.thefreecountry.com/tofrodos/

Alternatives: Use regular expressions (e.g. via perl or sed for replacing the incorrect carriage returns).

http://en.wikipedia.org/wiki/Newline

Offline scb

  • Eli Manning should die of gonorrhea and rot in hell. Would you like a cookie, son?
  • Trade Count: (11)
  • Needs to get out more...
  • *****
  • Posts: 8677
  • Gender: Male
Re: questions about .txt files...
« Reply #13 on: April 24, 2011, 08:59:58 AM »
just open text files in windows in WordPad instead of NotePad

Offline mikesalvo

  • Trade Count: (51)
  • Taperssection All-Star
  • ****
  • Posts: 1835
  • Gender: Male
  • get your Avett on!!!
Re: questions about .txt files...
« Reply #14 on: April 24, 2011, 09:51:44 AM »
just open text files in windows in WordPad instead of NotePad

this is true, but my concern for the format is more for other folks. People who DL my recordings, and whose computers will open w/ notepad by default.
AKG se300b (ck/91, ck/93) > Busman T-Mod R-4

 

RSS | Mobile
Page created in 0.098 seconds with 39 queries.
© 2002-2024 Taperssection.com
Powered by SMF