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
  • #7

Closed
Open
Created Jan 05, 2017 by Wendell Piez@wendellOwner

Casting `<u>` and other elements with no equivalents

Editoria doesn't support <u> or underlining. When underlining appears in Word data, XSweet will produce either or both of (element) <u> or (CSS) text-decoration: underline. What to do with this?

Probably the latter will mostly wash out with the rest of the CSS from the source data. But what about arbitrary <u>?

Several options come to mind (there may be others):

  • Have a catch-all rule for things like <u> or other 'unmapped' elements, such as to produce <span class="docx-u">, which can be found and changed to something better
  • Decide that <u> should amount to <i> (old-fashioned 'typescript' convention - typed underlining used to mean "please italicize") or maybe even <em> 😉
  • Hybrid approach, produce <em class="docx-u">

Note that this would be the rule by default. Presumably if/where mappings could be customized or configured (#3 (closed)), special cases of <u> could be handled as well.

Assignee
Assign to
Time tracking