-
Notifications
You must be signed in to change notification settings - Fork 10
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
t-vim xhtml driver code blocks typeset on single line #31
Comments
The simplest way to get this to work is tagging. I had looked at it at the very beginning (see #3 ; but that is more of a reminder to myself with no details) but my attempts to get tagging to work failed. A lot has changed since then, so it is certainly worth visiting this again. My understanding of the export mechanism is the following. Once we add tags to any macro (IIRC, it used to |
Hm i couldn't withstand, i was too curious. I have checked documentation and also my first epub output (produced by context Alternatively it should also be possible to simply map |
What i think i have figured is that things have changed less than you expect. The two macros which seem to me to do the magick are If you would not mind i would create a new feature branch from dev and try to get the |
Yes, that would be wonderful!
…On Apr 4, 2020, 7:10 AM, at 7:10 AM, hernot ***@***.***> wrote:
What i think have figured is that things have changed less than you
expect. The two macros which seem to do the magich are `\dostarttagged`
and `\dostoptagges`. The two you have already in the `\syntaxgroup` and
`\syntaxhighlighting` macros, which seem to be the reason why these
already appear as tag in the xhtml output as expected. The only ones
which do not appear are `\SYNBOL` and `\SYNEOL` which are either mapped
to `\donothing` in case linenumbering is off or to
`syntaxhighlighting_begin_number_lines` and
`\syntaxhighlighting_begin_number_lines` which do not call
`\dostarttagged` and `\dostoptagged`.
If you would not mind i would create a new feature branch from dev and
try to get the `\SYNEOL` and `\SYNBOL` macros also call on `MKIV` call
the `\dostarttagged` and `\dostoptagged` macros and add to the
templates.css the appropriate classdefinition.
In case i would be successufl i would than create agaion a pullrequest
for review. Would that be OK for you?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#31 (comment)
|
Giving up. EDIT/UPDATEDunno how but i managed to make it work. Space and linenumbering is now displayed as expected if css is tuned a bit. Currently working on generation and linking of css into export. May tage another set of weeks ;-) Edit/UPDATEFirst suggestion see pullrequest #34 |
Closed by 20544c1 |
Another issue i like to look into is the following
when running in standard mode with backend set to pdf and export to false syntax highlighting works as expected especially with my suggested improvements (issue #29) which i submitted a pull request (#30) for intial review and further discussion.
As want to publish my document also as epub i have setup mode switching where in the epub mode the backend is set to xhtml and export to yes (
\setupbackend[export=yes,xhtml=yes]
) among others.When xhtml output is active the line-breaks at the end of each syntax line are lost. All code is typeset/displayed on one long single line.
My questions for a start is, where would I have to look into the t-vim, t-filter syntax highlighting code to for a hook to insert appropriate xhtml/xml line endings when xhtml/xml output is active. Where else besides the t-vim, t-filter code i would have to take a look at? What additional documentation would you suggest to take a look at etc?
As far as i have time (currently not to little) i would take a look into this improvement/fixup my self and if i manage come up with as suggestion by creating a pull request for review and further discussion if you agree.
The text was updated successfully, but these errors were encountered: