Support for shearing of lines and inline elements
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
Japanese subtitles commonly use shearing of text, as illustrated below.
Not sheared:
Sheared:
Couple of observations:
-
while shearing might not be appropriate for books, it is commonly used for subtitles
-
shearing is not applied to individual characters, but instead to complete blocks -- each of the digits in 1998 is not sheared individually, and both ruby text and base are sheared as a single block
-
the shear angle is author-specified
-
it should be possible to shear individual lines as well as groups of lines
CSS Transforms Module Level 1 skewX() and skewY() can be applied to blocks but neither to lines nor inline elements
See tts:shear, tts:lineShear and tts:fontShear at TTML2.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the CSS Transforms Module Level 1 discussion alongside the linked TTML2 shear definitions. Use the reported subtitle examples to clarify how author-specified shearing should apply to lines, inline elements, and grouped ruby/base content; done means the relevant CSS behavior and interoperability expectations are defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100