> X-Mailer: MessagingEngine.com Webmail Interface - html
> Date: Sun, 09 Dec 2012 13:49:56 +0100
> From: Per Tunedal <[email protected]>
> To: Apertium Stuff <[email protected]>
> Reply-To: [email protected]
> Subject: [Apertium-stuff] Comments in comments in dix
>
>
> Hi,
> the compiler doesn't like comments in comments in the dictionaries.
>
> It's useful to comment out a large chunk, to get the translation work
> until you've managed to solve some issue. And in such a large chunk of
> entries, you might have some comments e.g. describing the problem or
> just explaining something.
>
> Unfortunately, the compiler complains until you've removed the comment
> tags. This is annoying, since the comment tags will have to be
> reintroduced when the problem is solved and the chunk is uncommented. 
>

<!-- When you are in a comment (like this one) you can user parenthesis
 to put another comment (like this other one (whitch includes another
 comment) in this comment). Now the fists level comment is finished -->

But if you prefer, you can write

<!-- When you are in a comment /* like this one */ you can user parenthesis
 to put another comment /* like this other one /** whitch includes another
 comment **/ in this comment */. Now the fists level comment is finished -->

Or any other syntax.

> Suggestion:
>
> Make it possible to have comments in comments. Either by making them
> legal inside the existing comment tags, like this:
>
> <!-- commented out because of some trouble
> <e lm="anm." a="PT"><i>anm.</i><par n="t.ex.__abbr"/></e>
> <e lm="ang." a="PT"><i>ang.</i><par n="t.ex.__abbr"/></e>
> <e lm="arr" a="PT"><i>arr</i><par n="t.ex.__abbr"/></e>
> <e lm="bet." a="PT"><i>bet.</i><par n="t.ex.__abbr"/></e>
> <!-- possible conflict with xxx -->
> <e lm="bibl." a="PT"><i>bibl.</i><par n="t.ex.__abbr"/></e>
> <e lm="bidr." a="PT"><i>bidr.</i><par n="t.ex.__abbr"/></e>
>  end of commented out because of some trouble -->
>
> or maybe introducing some new comment tags for chunks of entries.
> Perhaps something like:
>
> <!!!!!!!!!!!!!!!!!!!!! commented out because of some trouble
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> e lm="anm." a="PT"><i>anm.</i><par n="t.ex.__abbr"/></e>
> <e lm="ang." a="PT"><i>ang.</i><par n="t.ex.__abbr"/></e>
> <e lm="arr" a="PT"><i>arr</i><par n="t.ex.__abbr"/></e>
> <e lm="bet." a="PT"><i>bet.</i><par n="t.ex.__abbr"/></e>
> <!-- possible conflict with xxx -->
> <e lm="bibl." a="PT"><i>bibl.</i><par n="t.ex.__abbr"/></e>
> <e lm="bidr." a="PT"><i>bidr.</i><par n="t.ex.__abbr"/></e>
> end of commented out because of some trouble
> !!!!!!!!!!!!!!!!!!!!!! end of commented out because of some trouble
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>
>
> BTW my suggestion is inspired by Java:
>
> /****************
>
> ******************/
> Or actually:
> /*
>
>
> */
>
> In Python you've got:
>
> " " "
>
> " " "
>
> Yours,
> Per Tunedal
>

I see another problem when a comments starts on one line and finishes
on another. Early or later, there may be somebody who would like to
sort entries of a dictionary in alphabetic order, because with dozens
of thousand lines, it is more easy to find a word inside with a text
editor when entries are sorted.

I personnaly sorted dictionaries of fr-es and eo-fr before starting
adding words inside, and sorted them again each time entries were added.

But it made strange compilations errors, and finally, I found the
solution by writing a tool that close a comment still open at the
end of a line, and then open another comment at the beginning of the
next line.


--------------------------------
Bernard Chardonneau (France)
Phone : [33] 1 64 90 87 04 or [33] 9 72 36 32 90
(from Sept to June except holidays)
GSM phone : [33] 6 49 95 13 95 (french scholl holidays, C zone)

Multilingual websites for my free softwares :
http://libremail.free.fr and http://libremail.tuxfamily.org
http://cyloop.tuxfamily.org (mainly translated with Apertium)

My general website (in french only)
http://bech.free.fr

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to