Re: Making Text Files for Unix

2001-01-08 Thread Richard Gaskin

 1.- Best : You can use the mc chartonum() function to check the differences
 betwin the MacOS and Linux chars tables and than parse the needed file with
 the
 "replace numtochar(xx) with numtochar(yy) in varzz".
 
 Well we are already processing out all the Mac only chars like curly quotes,
 m-dashes ("") and other "off the charts" Mac characters,  before shipping
 the file to the web host servers. I think the non-Unix compatible text file
 issue has to do with line breaks being mandatory in UNIX?
 
 You are right. Try "#10;" for the html unix format.

Or let MetaCard do the work for you:  put the text into a hidden field, then
get the htmlText of that field.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Making Text Files for Unix

2001-01-08 Thread Pierre Sahores

Richard Gaskin a crit :
 
  1.- Best : You can use the mc chartonum() function to check the differences
  betwin the MacOS and Linux chars tables and than parse the needed file with
  the
  "replace numtochar(xx) with numtochar(yy) in varzz".
 
  Well we are already processing out all the Mac only chars like curly quotes,
  m-dashes ("") and other "off the charts" Mac characters,  before shipping
  the file to the web host servers. I think the non-Unix compatible text file
  issue has to do with line breaks being mandatory in UNIX?
 
  You are right. Try "#10;" for the html unix format.
 
 Or let MetaCard do the work for you:  put the text into a hidden field, then
 get the htmlText of that field.
 
 --
  Richard Gaskin
  Fourth World Media Corporation
  Multimedia Design and Development for Mac, Windows, UNIX, and the Web
  _
  [EMAIL PROTECTED] http://www.FourthWorld.com
  Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716
 
 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.

Eureka ;-) Pierre Sahores
--
chef de projet cyberlibrairie
SNPIN - CNDP. 91, rue Gabriel-Peri
92120 Montrouge. Tl.: 01.64.45.05.33

Du vent aux caramels mous,
dix ans d'avance aux autres
et le reste  demain.

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Making Text Files for Unix

2001-01-06 Thread Pierre Sahores

Sivakatirswami a crit :
 
 Our html files are created on MACs using an xTalk engine (soon to be
 completely MC based)  but end up living the entire life after creation on a
 UNIX/Linux server. . .my sysop for the archive server has trouble when we
 ask to search and replace a string over many files and directories because
 for some reason our Mac files are "just one long sentence!" He says "they
 don't follow UNIX text file conventions"
 
 Now, does anyone know how I can process such a file so that it DOES follow
 Unix conventions? Something like:
 
 put URL "file:/whatever" into tData
 
 Fix-The-Data-For-Unix tData
 
 put tData into URL "file:/whatever-unix.txt"
 
 Hinduism Today
 
 Sivakatirswami
 Editor's Assistant/Production Manager
 [EMAIL PROTECTED]
 www.HinduismToday.com, www.HimalayanAcademy.com,
 www.Gurudeva.org, www.hindu.org
 
 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.

1.- Best : You can use the mc chartonum() function to check the differences
betwin the MacOS and Linux chars tables and than parse the needed file with the
"replace numtochar(xx) with numtochar(yy) in varzz".
2.- You can use BBEdit to check the same chars tables differences or save the
macos files to the unix file format.
3.- You can put your html code betwin "pre" and "/pre" tags (not
recommanded).

Regards, Pierre Sahores
--
chef de projet cyberlibrairie
SNPIN - CNDP. 91, rue Gabriel-Peri
92120 Montrouge. Tl.: 01.64.45.05.33

Penser la part du rve et
produire l'avantage comptitif.

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Making Text Files for Unix

2001-01-06 Thread Pierre Sahores

Sivakatirswami a crit :
 
 on 1/7/01 4:01 AM, Pierre Sahores at [EMAIL PROTECTED] wrote:
 
 
  1.- Best : You can use the mc chartonum() function to check the differences
  betwin the MacOS and Linux chars tables and than parse the needed file with
  the
  "replace numtochar(xx) with numtochar(yy) in varzz".
 
 Well we are already processing out all the Mac only chars like curly quotes,
 m-dashes ("") and other "off the charts" Mac characters,  before shipping
 the file to the web host servers. I think the non-Unix compatible text file
 issue has to do with line breaks being mandatory in UNIX?

You are right. Try "#10;" for the html unix format.

 
 Hinduism Today
 
 Sivakatirswami
 Editor's Assistant/Production Manager
 [EMAIL PROTECTED]
 www.HinduismToday.com, www.HimalayanAcademy.com,
 www.Gurudeva.org, www.hindu.org, www.innersearch.org
 www.hheOnline.org
 
 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.

Regards, Pierre Sahores
--
chef de projet cyberlibrairie
SNPIN - CNDP. 91, rue Gabriel-Peri
92120 Montrouge. Tl.: 01.64.45.05.33

Penser la part du rve et
produire l'avantage comptitif.

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Making Text Files for Unix

2001-01-06 Thread andu


Our html files are created on MACs using an xTalk engine (soon to be
completely MC based)  but end up living the entire life after creation on a
UNIX/Linux server. . .my sysop for the archive server has trouble when we
ask to search and replace a string over many files and directories because
for some reason our Mac files are "just one long sentence!" He says "they
don't follow UNIX text file conventions"

It takes only a minute to do a search for this on Yahoo and find out that Mac eol is
numtochar(13) and Unix  is numtochar(10).


Now, does anyone know how I can process such a file so that it DOES follow
Unix conventions? Something like:

put URL "file:/whatever" into tData

Fix-The-Data-For-Unix tData

put tData into URL "file:/whatever-unix.txt"


Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.

.


Regards, Andu 
___
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.