Talk:Format handling

From Apertium
Jump to navigation Jump to search

Mediawiki format would be very interesting to have IMHO... —Preceding unsigned comment added by 81.184.58.60 (talkcontribs)

There is a basic implementation of this in SVN, programs apertium-desmediawiki and apertium-remediawiki. - Francis Tyers 19:39, 23 December 2009 (UTC)
http://code.google.com/p/apertium-mediawiki/ is even better :) --unhammer 13:39, 1 August 2010 (UTC)


Why the extra full stops

<spectie> .[][
<spectie> ]
<Flammie> mystic extra full stops appearing			        [14:06]
<spectie> yeah, that is annoying... and should be remoeved
<spectie> the only reason they are there
<spectie> is because of the tagger
<spectie> if there was no full stop it would not know where to flush


It's easy make all the formatter tools stop doing it by applying

Index: apertium/deformat.xsl
===================================================================
--- apertium/deformat.xsl	(revision 30823)
+++ apertium/deformat.xsl	(working copy)
@@ -510,7 +510,7 @@
 {
   if(eosIncond)
   {
-    fputws_unlocked(L".[]", yyout);
+    fputws_unlocked(L"[]", yyout);
   }
 }
 
@@ -518,7 +518,7 @@
 {
   if(isDot && !eosIncond)
   {
-    fputws_unlocked(L".[]", yyout);
+    fputws_unlocked(L"[]", yyout);
     isDot = false;
   }
   if(buffer.size() > <xsl:value-of select="/format/options/largeblocks/@size"/>)

but apparantly it makes apertium-tagger worse.

This sounds like a bug that should be fixed.