Difference between revisions of "Talk:Format handling"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
: http://code.google.com/p/apertium-mediawiki/ is even better :) --[[User:Unhammer|unhammer]] 13:39, 1 August 2010 (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 && !eosIncond) |
||
+ | { |
||
+ | - fputws_unlocked(L".[]", yyout); |
||
+ | + fputws_unlocked(L"[]", yyout); |
||
+ | isDot = false; |
||
+ | } |
||
+ | if(buffer.size() > <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 (talk • contribs)
- There is a basic implementation of this in SVN, programs
apertium-desmediawiki
andapertium-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.