Sha256: f370a635c972bb68e4fbcbedbe4df95d6387a074b39e7dab82df6976f491e7ed

Contents?: true

Size: 1.76 KB

Versions: 2

Compression:

Stored size: 1.76 KB

Contents

Feature: Decode LaTeX punctuation directives
  As a hacker who works with LaTeX
  I want to be able to decode LaTeX punctuation marks

  Scenario Outline: LaTeX to Unicode transformation
    When I decode the string '<latex>'
    Then the result should be '<unicode>'

  Scenarios: Punctuation macros
    | latex                | unicode |
    | \\textendash         | –       |
    | \\textemdash         | —       |
    | \\textquoteleft      | ‘       |
    | \\textquoteright     | ’       |
    | \\quotesinglbase     | ‚       |
    | \\textquotedblleft   | “       |
    | \\textquotedblright  | ”       |
    | \\quotedblbase       | „       |
    | \\dag                | †       |
    | \\ddag               | ‡       |
    | \\textbullet         | •       |
    | \\dots               | …       |
    | \\textperthousand    | ‰       |
    | \\textpertenthousand | ‱       |
    | \\guilsinglleft      | ‹       |
    | \\guilsinglright     | ›       |
    | \\textreferencemark  | ※       |
    | \\textinterrobang    | ‽       |
    | \\textoverline       | ‾       |
    | \\langle             | ⟨       |
    | \\rangle             | ⟩       |
    | \\textquotesingle    | ’       |


  Scenarios: Punctuation symbols
    | latex   | unicode | description |
    | -       | -       | hyphen      |
    | --      | –       | en-dash     |
    | ---     | —       | em-dash     |
    | \\~{}   | ~       | tilde       |
    | X\\ X   | X X     | space       |

  Scenarios: Quotation marks
    | latex   | unicode | description         |
    | ``      | “       | left double quotes  |
    | ''      | ”       | right double quotes |
    | `       | ‘       | left single quotes  |
    | '       | ’       | right single quotes |

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
latex-decode-0.2.1-java features/punctuation.feature
latex-decode-0.2.1 features/punctuation.feature