Nikita Medyankin <[email protected]> čálii: > I suppose, Francis is suggesting moving those <!-- --> comments into xml > structure so any element that may ever need them would have them as an > attribute, e.g., > > <let> <!-- el nombre del chunk serà sp, que no estarà enllaçat amb la > posició 2 (pq no té valor per a l'atribut nbr"--> > > would become > > <let c="el nombre del chunk serà sp, que no estarà enllaçat amb la > posició 2 (pq no té valor per a l'atribut nbr"> > > I think, `rule' elements already seem to have `comment' attribute, e.g., > > <rule comment="REGLA: ON NUM MONTH YEAR (On 8 July 2010 → el 8 de julio > de 2010)">
Yup. Most other places we use c="" though, since that's shorter. And XML comments suck. What happens when you want to comment out all of <let> <!-- don't remove this! if you think you know what this means, you're wrong --> <clip part="y" pos="9"/> <var n="giraffe"/></let> ? XML allows no comments in comments, so you have to first "escape" then inner comment before commenting the whole thing. And then when you want to uncomment the thing, you have to unescape the inner comment. Also, you can't have the string ‘--’ inside an XML comment, even if it's not followed by ‘>’.
signature.asc
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
