Difference between revisions of "Talk:Format handling"

From Apertium
Jump to navigation Jump to search
(Created page with 'Mediawiki format would be very interesting to have for me...')
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Mediawiki format would be very interesting to have for me...
+
Mediawiki format would be very interesting to have IMHO... {{unsigned|81.184.58.60}}
  +
  +
:There is a basic implementation of this in SVN, programs <code>apertium-desmediawiki</code> and <code>apertium-remediawiki</code>. - [[User:Francis Tyers|Francis Tyers]] 19:39, 23 December 2009 (UTC)
  +
  +
: http://code.google.com/p/apertium-mediawiki/ is even better :) --[[User:Unhammer|unhammer]] 13:39, 1 August 2010 (UTC)
  +
  +
  +
==Why the extra full stops==
  +
<pre>
  +
<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
  +
</pre>
  +
  +
  +
It's easy make all the formatter tools stop doing it by applying
  +
<pre>
  +
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 &amp;&amp; !eosIncond)
  +
{
  +
- fputws_unlocked(L".[]", yyout);
  +
+ fputws_unlocked(L"[]", yyout);
  +
isDot = false;
  +
}
  +
if(buffer.size() &gt; <xsl:value-of select="/format/options/largeblocks/@size"/>)
  +
</pre>
  +
but apparantly it makes apertium-tagger worse.
  +
  +
This sounds like a bug that should be fixed.

Latest revision as of 13:50, 25 June 2014

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[edit]

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