El dg 09 de 12 de 2012 a les 13:49 +0100, en/na Per Tunedal va escriure:
> 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. 
> 
> 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:
> 
> " " "
> 
> " " "

There is always the 'c' attribute which can go on any tag. Also, there
is the 'i' attribute to ignore entries in compilation.

<e lm="foo" c="this is a comment" i="yes"><i>foo</i></e>

Fran


------------------------------------------------------------------------------
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