Sha256: 8ba671a386fdf11335d51677fe7ffb29322f6a03af6620073456e74dc9ca6108

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

module Orthotypo
  class Composer::Fr < Composer

    protected

    def chars_with_space_before
      [
        '%'
      ]
    end

    def chars_with_space_after
      [
        ',',
        '...',
        '…'
      ]
    end

    def chars_with_space_around
      [
        ';',
        ':',
        '!',
        '?'
      ]
    end

    def chars_with_no_space_before
      [
        '.'
      ]
    end

    def chars_with_no_space_around
      [
        "'",
        '’',
        'ʼ'
      ]
    end

    def pairs_with_space_around
      [
        '«»'
      ]
    end

    def pairs_with_no_space_around
      [
        '“”',
        '‹›',
        '""',
        "''",
        "()",
        "{}",
        "[]"
      ]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
orthotypo-1.0.4 lib/orthotypo/composer/fr.rb
orthotypo-1.0.3 lib/orthotypo/composer/fr.rb
orthotypo-1.0.2 lib/orthotypo/composer/fr.rb