Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • E Editoria Typescript
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • XSweet
  • Editoria Typescript
  • Issues
  • #28

Closed (moved)
(moved)
Open
Created Mar 28, 2018 by Alex Theg@athegOwner

Insert hair space (u200a) btwn pairs of single/double quotes

As part of the macro cleanups, we should insert hair space (u200a) btwn pairs of single/double quotes. Note that order of operations matters; this assumes that straight quotes and apostrophes have been replaced with their directional counterparts.

  • left single quote+left double quote (u2018+u201c)
  • left double quote+left single quote (u201c+u2018)
  • right single quote+right double quote (u2019+u201d)
  • right double quote+right single quote (u201d+u2019)

This currently partially works. See the following example inputs and outputs: the characters in Word on the left and the final Typescript output on the right.

  • "'quote'" -> <p style="font-family: Helvetica">“ ‘quote’ ”</p>
    • works properly; hs between both pairs of quotes
  • '"quote"' -> <p style="font-family: Helvetica">‘“quote” ’</p>
    • hs between the 2nd quotes but not the 1st
  • '”quote"‘ -> `

    ‘“quote” ’

    • hs between the 2nd quotes but not the 1st
  • ‘"quote"’ -> <p style="font-family: Helvetica">‘“quote” ’</p>
    • hs between the 2nd quotes but not the 1st
  • ""quote"" -> <p style="font-family: Helvetica">“ “quote””</p>
    • hs between the 1st quotes but not the 2nd
Assignee
Assign to
Time tracking