Dear Oumar,
First, in CC a "comment" is signalled by a c either at the beginning
of a line or after a space or tab. The c must also be followed by a
space.
To remove the unwanted paragraphs, the safest approach is to turn them
into comments by placing a c followed by a space at the beginning of
the relevant lines. Then if you want one of them back, you can restore
it easily.
As I look at MDFDict2, the paragraphs all appear to be near to one
another. They are also teamed with the the outputting of any graphics
(px) -- but that is done at the lexeme also, so they won't all
disappear. (I hope.)
Here's the code below. Note the five c's that I have placed on the
left margin to comment out the paragraph lines and the graphic
paragraphs -- they're the ones without the string of hyphens
following. (You didn't say you didn't want the subentries as
paragraphs but I commented them out too. You don't have to.)
If you want the possibility of graphics in various places in the entry
you will need a paragraph break if there is one -- then see the next
section further on.
======================.
end else begin c Standard hierarchy: \lx \se \ps \sn
c ----------------------------------------------------------------
if(se) begin c Subentry
c if(px) '\px ' out(px) nl clear(px) endif
c '\IP' nl c Indented Paragraph
'\se ' out(se) '|fs{ ' d9 '}' nl c 1999-08-11 MRP
set(Headword)
end endif
c ---------------------------------------------------------------
if(ph) '\ph [' out(ph) ']' nl endif c Phonetic/phonemic
c ---------------------------------------------------------------
if(ps) begin c Part of Speech
ifn(Headword) begin c If not the first \ps after the headword
c if(px) '\px ' out(px) nl clear(px) endif
c '\BP |{emdash}' nl c Block Paragraph em-dash
end endif clear(Headword)
if(pn)
'\pn ' out(pn) '.' nl
else
'\ps ' out(ps) '.' nl
endif
end endif
c ----------------------------------------------------------------
if(sn) begin c Sense Number
c if(px) '\px ' out(px) nl '\BP' nl clear(px) endif
'\sn ' out(sn) ')|{~}' nl c 1997-12-04 MRP: |{~} notation
end endif
======================.
To preserve the ability to sprinkle graphics throughout the entry, do
the following instead. Note that I inserted the paragraph code into
the conditional for the graphic. I've added the comment
c <<<
to flag where I made changes. The sense number paragraph was already
conditional -- based on the presence of a graphic.
======================.
end else begin c Standard hierarchy: \lx \se \ps \sn
c ----------------------------------------------------------------
if(se) begin c Subentry
if(px) '\px ' out(px) nl '\IP' nl clear(px) endif c
<<<
c '\IP' nl c Indented Paragraph
'\se ' out(se) '|fs{ ' d9 '}' nl c 1999-08-11 MRP
set(Headword)
end endif
c ---------------------------------------------------------------
if(ph) '\ph [' out(ph) ']' nl endif c Phonetic/phonemic
c ---------------------------------------------------------------
if(ps) begin c Part of Speech
ifn(Headword) begin c If not the first \ps after the headword
if(px) '\px ' out(px) nl '\BP' nl clear(px) endif c
<<<
c '\BP |{emdash}' nl c Block Paragraph em-dash
end endif clear(Headword)
if(pn)
'\pn ' out(pn) '.' nl
else
'\ps ' out(ps) '.' nl
endif
end endif
c ----------------------------------------------------------------
if(sn) begin c Sense Number
if(px) '\px ' out(px) nl '\BP' nl clear(px) endif
'\sn ' out(sn) ')|{~}' nl c 1997-12-04 MRP: |{~} notation
end endif
======================
I haven't tried this so it might not work. Give it a try and let me
know if there are any problems.
To make a true block paragraph instead of a hanging indent paragraph
(which is how the Entry Paragraph is usually done), then in Word do
Styles and Formatting, select Entry Paragraph from the list of styles,
and do Format, Paragraph and modify the paragraph style appropriately.
Don't forget to check "Add to Template" or the style change will be
only for that copy of the document.
Toolbox Support