Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling of individual text ranges, not only paragraphs. #6

Closed
bennyboer opened this issue Jul 19, 2020 · 4 comments
Closed

Styling of individual text ranges, not only paragraphs. #6

bennyboer opened this issue Jul 19, 2020 · 4 comments
Labels
enhancement New feature or request style
Projects
Milestone

Comments

@bennyboer
Copy link
Owner

Currently we have no functionality to style individual text ranges. We can currently only style paragraphs using the Thaw document style file (*.tds).

We have to think of a suitable concept to do this.

@bennyboer bennyboer created this issue from a note in v0.1 (To do) Jul 19, 2020
@bennyboer bennyboer added this to the v0.1 milestone Jul 20, 2020
@bennyboer bennyboer added style enhancement New feature or request labels Jul 21, 2020
@bennyboer
Copy link
Owner Author

Probably something like the following would be enough:

This is an *!MYSTYLE*example* text.

The ! denotes that we anticipate a style name that is specified in the style file.

Stylefile:

{
  "MYSTYLE": {
    "font": {
      "size": 20
    }
  }
}

@bennyboer
Copy link
Owner Author

bennyboer commented Sep 6, 2020

TODO

  • Change TDT parser to understand *.CLASS*Some text**
  • Change Pygments syntax highlighter as well!
  • Read and apply style from the style file to the DocumentNode when encountering a *.

@bennyboer bennyboer moved this from To do to Ready in v0.1 Sep 6, 2020
@bennyboer
Copy link
Owner Author

Blocked by #11

@bennyboer bennyboer moved this from Ready to Blocked in v0.1 Sep 17, 2020
@bennyboer bennyboer self-assigned this Sep 17, 2020
@bennyboer bennyboer moved this from Blocked to In progress in v0.1 Sep 25, 2020
@bennyboer
Copy link
Owner Author

Example

grafik

TDT

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Lorem ipsum dolor sit amet, *.my-style*consetetur sadipscing elitr**, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

TDS

style.my-style {
	color: #883366;
	font-size: 14pt;
	font-family: Bahnschrift;
}

v0.1 automation moved this from In progress to Done Sep 29, 2020
@bennyboer bennyboer removed their assignment Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request style
Projects
v0.1
  
Done
Development

No branches or pull requests

1 participant