Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

open ascii-file with text-editor

34 views
Skip to first unread message

aernst

unread,
Aug 29, 2006, 11:04:04 AM8/29/06
to
Hello,

I'm looking for an Lisp-Script to open an Interleaf document that is
saved in ascii with the standard text-editor from interleaf .
I want to search and replace information e.g. of fonts or dictionnaries
that can be found in gml-coded files.
Thanks for your help.

Aernst

Photon713

unread,
Aug 29, 2006, 11:27:44 AM8/29/06
to
Morning, Aernst...

If the file is not too large you can use Notepad, larger files
can be read and edited using MS Word. Just change the
suffix of the document name so that MS does not think .doc
is in their format, .asc works well. Just change it back before
you try to open it in Interleaf.

Bob

--
______________
lvMMMCDLXXIX+1
"aernst" <aer...@format-docu.de> wrote in message
news:1156863844.3...@75g2000cwc.googlegroups.com...

aernst

unread,
Aug 29, 2006, 11:44:33 AM8/29/06
to
Hello Bob,

thank you for your answer, but that's not what I want. I need an lisp
script which starts the internal text-editor of interleaf or an other
editor, opens the ascii-saved interleaf document and gives me the
possibility to search and replace.

Aernst

Photon713 schrieb:

Photon713

unread,
Aug 29, 2006, 3:43:45 PM8/29/06
to
Sorry Aernst, but, I'm a little confused. Any editor can open
and read an Interleaf Ascii Format(ted) (IAF) document. Or,
are your wanting to have everything happen under a LISP
script? Are you wanting to pass an argument to the LISP
script that identifies the text to replace and replaces it? Are
you in a Unix or Windows environment? Perhaps if you could
give us an example, those of us who have written Interleaf LISP
scripts can help you. If you have access to it, you might look
into Cloverleaf.

Regards...Bob

--
______________
lvMMMCDLXXIX+1
"aernst" <aer...@format-docu.de> wrote in message

news:1156866273.2...@75g2000cwc.googlegroups.com...

Randyl

unread,
Aug 29, 2006, 11:12:40 PM8/29/06
to

Greetings:

Here it is:

(lisp-set-implementation "Interleaf Lisp" "2.0")

;; Module name: Fedit
;; Purpose: Force system to call Fedit for the selected DT object
;; Interfaces: Tools
;; Author: Randyl Kent Plampin
;; E-Mail: ran...@ix.netcom.com
;; 2005-03-15 Initial version

(fedit::fedit-open (dt-child-selected (dt-pointer-container)) '(0 1
2) nil)
;EOF

Cut this code, paste it into a Lisp icon and put the icon into the
Custom->Selection cabinet so you can see it on the Tools pulldown.

I strongly urge you to answer Bob's question as to what exactly you are
trying to do since there may be much better solutions. Take it from
someone that has been writing complex Lisp programs for over thirteen
years.

Best regards,
Randyl Kent Plampin

aernst

unread,
Aug 30, 2006, 3:42:54 AM8/30/06
to
Hallo Randyl,

thank you for your mail. I would like the change all information in a
document or a catalog within an interleaf container from e.g. @Lnl to
@Lge or font information from times to helvetica. That exactly what I
can do with any editor like notepad in an interleaf file saved in
ascii.
But I'm interested do this from a lisp script so that it works
automatically for a complete container. It is not necessary to see the
editor or to enter the text to search and replace.
The text to search and replace maybe a variable in lisp.
If there is a better solution to do this please let me know.

Best regards
Aernst

Randyl schrieb:

aernst

unread,
Aug 30, 2006, 4:24:42 AM8/30/06
to
Hello Bob,

thank you for your mail. It was not my intension to confuse you.


I would like the change all information in a document or a catalog
within an interleaf container from e.g. @Lnl to @Lge or font
information from times to helvetica.
That exactly what I can do with any editor like notepad in an interleaf
file saved in ascii.
But I'm interested do this from a lisp script so that it works
automatically for a complete container.
It is not necessary to see the editor or to enter the text to search
and replace.
The text to search and replace maybe a variable in lisp.

I am working in a windows environment.


If there is a better solution to do this please let me know.

Best regards
Aernst

Photon713 schrieb:

Randyl

unread,
Aug 30, 2006, 6:22:42 PM8/30/06
to

aernst wrote:
> Hallo Randyl,

Greetings:

Thank you for being specific. This is extremely important.

I have sent to your e-mail address two programs that should take care
of both these problems. (1) "Apply-Dictionary" changes component
dictionary properties on any number of document(s) and/or book(s); (2)
"Change-Fonts-6" will take care of any global font changes to
document(s) and/or book(s).

If for any reason you do not receive the files, send me a note directly
to ran...@ix.netcom.com and we will re-send it.

0 new messages