Skip to content

Commit

Permalink
[pl] hyphen-related rules
Browse files Browse the repository at this point in the history
  • Loading branch information
milekpl committed Dec 28, 2013
1 parent 255417b commit c31d2d0
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2267,6 +2267,28 @@ $Id$
<example correction="—" type="incorrect">Rozumiesz <marker>--</marker> przegrywasz.</example>
<example type="correct">Rozumiesz — przegrywasz.</example>
</rule>
<rule id="DYWIZ" name="Spacja wokół dywizu">
<pattern>
<token regexp="yes">\p{L}+</token>
<token spacebefore="yes">-</token>
<token regexp="yes" spacebefore="yes">\p{L}+</token>
</pattern>
<message>Spacje wokół dywizu (w przeciwieństwie do myślnika) są zbędne: <suggestion>\1-\3</suggestion>;
jeśli to miał być myślnik to należy napisać <suggestion>\1 — \3</suggestion>.</message>
<short>Błąd typograficzny</short>
<example type="incorrect" correction="angielsko-polski|angielsko — polski">Słownik <marker>angielsko - polski</marker>.</example>
<example type="correct">Słownik angielsko-polski</example>
<example type="correct">To trudna sprawa — rzekł Wokulski.</example>
</rule>
<rule id="LICZBA_BEZ_DYWIZU" name="Myślnik zamiast dywizu w przymiotniku">
<pattern>
<token regexp="yes">[0-9]+[—–]\p{L}+<exception regexp="yes">[0-9]+[–—](ok|po|przed)</exception></token>
</pattern>
<message>Myślnika nie używa się wewnątrz wyrazu: <suggestion><match no="1" regexp_match="([0-9]+)[–—](\p{L}+)" regexp_replace="$1-$2"></match></suggestion>. Jeśli ten znak jest między osobnymi wyrazami, należy napisać ze spacjami: <suggestion suppress_misspelled="yes"><match no="1" regexp_match="([0-9]+)[–—](\p{L}+)" regexp_replace="$1 — $2"></match></suggestion>.</message>
<short>Błąd typograficzny</short>
<example type="incorrect" correction="5-letni|5 — letni">Okres <marker>5—letni</marker>.</example>
<example type="correct">Okres 5-letni</example>
</rule>
<rulegroup id="APOSTROF_DATA" name="błędne apostrofy przed datami rocznymi">
<rule>
<pattern>
Expand Down

0 comments on commit c31d2d0

Please sign in to comment.