[subbu@earth:~/work/wmf/parsoid] echo '<translate><!--T:1--> foo</translate>' | php bin/parse.php <meta typeof="mw:Annotation/translate" data-parsoid='{"dsr":[0,11,null,null]}' data-mw='{"rangeId":"mwa0","extendedRange":true,"wtOffsets":[0,11]}'/><!--T:1--><pre data-parsoid='{"dsr":[21,37,1,0]}'>foo</pre><meta typeof="mw:Annotation/translate/End" data-parsoid='{"dsr":[25,37,null,null],"wasMoved":true}' data-mw='{"wtOffsets":[25,37]}'/>
That should not generate a <pre> like other usual comments. PreHandler might need a special check for <!--T:\d*--> comments OR we need to recognize them in the tokenize and add special marker nodes that are then replaced in the CleanUp pass OR some other solution that seems appropriate.