* Lineblocks in Jats writer @ 2021-12-13 10:57 denis.maier-NSENcxR/0n0 [not found] ` <28d7db8315224f719f5b4378afab270c-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-12-13 10:57 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 551 bytes --] Hi, currently, the jats writer seems to convert lineblocks to regular paragraphs. Is that correct? If yes, can this behaviour be adjusted? Best, Denis -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/28d7db8315224f719f5b4378afab270c%40unibe.ch. [-- Attachment #2: Type: text/html, Size: 2564 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <28d7db8315224f719f5b4378afab270c-NSENcxR/0n0@public.gmane.org>]
* Re: Lineblocks in Jats writer [not found] ` <28d7db8315224f719f5b4378afab270c-NSENcxR/0n0@public.gmane.org> @ 2021-12-13 12:55 ` Albert Krewinkel [not found] ` <87k0g88y05.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Albert Krewinkel @ 2021-12-13 12:55 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw denis.maier-NSENcxR/0n0@public.gmane.org writes: > currently, the jats writer seems to convert lineblocks to regular paragraphs. Is that correct? If yes, can this behaviour be adjusted? Correct. It might be more appropriate to use a `<verse-group>` with each line in a `<verse-line>`, but maybe that's too specific? Lineblocks sometimes contain addresses, those would be mistagged. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <87k0g88y05.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>]
* AW: Lineblocks in Jats writer [not found] ` <87k0g88y05.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> @ 2021-12-13 13:08 ` denis.maier-NSENcxR/0n0 [not found] ` <07859a49dfab413d81a40faa0818d40b-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-12-13 13:08 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > -----Ursprüngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc- > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Albert Krewinkel > Gesendet: Montag, 13. Dezember 2021 13:56 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: Lineblocks in Jats writer > > > denis.maier-NSENcxR/0n0@public.gmane.org writes: > > > currently, the jats writer seems to convert lineblocks to regular paragraphs. > Is that correct? If yes, can this behaviour be adjusted? > > Correct. It might be more appropriate to use a `<verse-group>` with each line > in a `<verse-line>`, but maybe that's too specific? Lineblocks sometimes > contain addresses, those would be mistagged. Hmmm, yes, I would have expected to find a <verse-group> in the output. Would it be possible to add this, and distinguish between different kind of lineblocks? {.verse} | This is | my first | poem vs. {.address} | This is | my | address That should work in commonmark, right? Or we use a div to add that kind of information... WDYT? > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc- > discuss/87k0g88y05.fsf%40zeitkraut.de. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/07859a49dfab413d81a40faa0818d40b%40unibe.ch. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <07859a49dfab413d81a40faa0818d40b-NSENcxR/0n0@public.gmane.org>]
* Re: AW: Lineblocks in Jats writer [not found] ` <07859a49dfab413d81a40faa0818d40b-NSENcxR/0n0@public.gmane.org> @ 2021-12-13 17:39 ` John MacFarlane [not found] ` <m2czm09zfl.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: John MacFarlane @ 2021-12-13 17:39 UTC (permalink / raw) To: denis.maier-NSENcxR/0n0, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > {.verse} > | This is > | my first > | poem This syntax would work with `-f commonmark+attributes` if we had line block support in commonmark, but we don't. You can of course do something like ::: {.verse} | This | is it ::: which will create a Div containing the line block. So, we could modify the JATS writer to take a Div with class "verse" and produce a verse element. I don't know if that's too ad hoc. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <m2czm09zfl.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>]
* AW: AW: Lineblocks in Jats writer [not found] ` <m2czm09zfl.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org> @ 2021-12-14 10:56 ` denis.maier-NSENcxR/0n0 [not found] ` <0efb04f31c3a4d659a30cca620530eb6-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-12-14 10:56 UTC (permalink / raw) To: jgm-TVLZxgkOlNX2fBVCVOL8/A, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Cc: albert+pandoc-9EawChwDxG8hFhg+JK9F0w > -----Ursprüngliche Nachricht----- > Von: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> > Gesendet: Montag, 13. Dezember 2021 18:40 > An: Maier, Denis Christian (UB) <denis.maier-NSENcxR/0n0@public.gmane.org>; pandoc- > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: AW: Lineblocks in Jats writer > > > > {.verse} > > | This is > > | my first > > | poem > > This syntax would work with `-f commonmark+attributes` if we had line block > support in commonmark, but we don't. Ok. > > You can of course do something like > > ::: {.verse} > | This > | is it > ::: > > which will create a Div containing the line block. > > So, we could modify the JATS writer to take a Div with class > "verse" and produce a verse element. I don't know if that's > too ad hoc. I think that sounds like a good solution. Albert, WDYT? If you think that this could work, maybe we should try to cover other use-cases as well, say addresses. Anything else? What will happen with theses classes when going to other formats? Best, Denis -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0efb04f31c3a4d659a30cca620530eb6%40unibe.ch. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <0efb04f31c3a4d659a30cca620530eb6-NSENcxR/0n0@public.gmane.org>]
* Re: AW: AW: Lineblocks in Jats writer [not found] ` <0efb04f31c3a4d659a30cca620530eb6-NSENcxR/0n0@public.gmane.org> @ 2021-12-14 14:58 ` Albert Krewinkel [not found] ` <87czlznsgg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Albert Krewinkel @ 2021-12-14 14:58 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw denis.maier-NSENcxR/0n0@public.gmane.org writes: >> So, we could modify the JATS writer to take a Div with class >> "verse" and produce a verse element. I don't know if that's >> too ad hoc. > > I think that sounds like a good solution. Albert, WDYT? If you think > that this could work, maybe we should try to cover other use-cases as > well, say addresses. Anything else? What will happen with theses > classes when going to other formats? Sounds good to me. I think for the general case, output should be changed to use `<preformat preformat-type="lines">` or something similar. The only disadvantage of that is that we have to do some extra work to process math formulae, as those are not allowed contents of `<preformat>` elements. If the LineBlock comes wrapped in a Div, then we could use the first class of the div as the value for `preformat-type`. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <87czlznsgg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>]
* AW: AW: AW: Lineblocks in Jats writer [not found] ` <87czlznsgg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> @ 2021-12-15 14:16 ` denis.maier-NSENcxR/0n0 [not found] ` <e412473bac1948a09884941aed6c4fdf-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-12-15 14:16 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Another question: What happens with stuff like this: ```md | this | is a | poem | with | two | stanzas ``` I think in jats this should be rendered with nested verse-groups, right? Denis > -----Ursprüngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc- > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Albert Krewinkel > Gesendet: Dienstag, 14. Dezember 2021 15:59 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: AW: AW: Lineblocks in Jats writer > > > denis.maier-NSENcxR/0n0@public.gmane.org writes: > > >> So, we could modify the JATS writer to take a Div with class > >> "verse" and produce a verse element. I don't know if that's > >> too ad hoc. > > > > I think that sounds like a good solution. Albert, WDYT? If you think > > that this could work, maybe we should try to cover other use-cases as > > well, say addresses. Anything else? What will happen with theses > > classes when going to other formats? > > Sounds good to me. > > I think for the general case, output should be changed to use `<preformat > preformat-type="lines">` or something similar. The only disadvantage of that > is that we have to do some extra work to process math formulae, as those > are not allowed contents of `<preformat>` elements. > > If the LineBlock comes wrapped in a Div, then we could use the first class of > the div as the value for `preformat-type`. > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc- > discuss/87czlznsgg.fsf%40zeitkraut.de. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e412473bac1948a09884941aed6c4fdf%40unibe.ch. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <e412473bac1948a09884941aed6c4fdf-NSENcxR/0n0@public.gmane.org>]
* AW: AW: AW: Lineblocks in Jats writer [not found] ` <e412473bac1948a09884941aed6c4fdf-NSENcxR/0n0@public.gmane.org> @ 2022-01-13 11:10 ` denis.maier-NSENcxR/0n0 0 siblings, 0 replies; 8+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2022-01-13 11:10 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw I've added an issue to the issue tracker: https://github.com/jgm/pandoc/issues/7828 > -----Ursprüngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc- > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von denis.maier-NSENcxR/0n0@public.gmane.org > Gesendet: Mittwoch, 15. Dezember 2021 15:16 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: AW: AW: AW: Lineblocks in Jats writer > > Another question: > What happens with stuff like this: > > ```md > | this > | is a > | poem > > | with > | two > | stanzas > ``` > > I think in jats this should be rendered with nested verse-groups, right? > > Denis > > > > -----Ursprüngliche Nachricht----- > > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc- > > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Albert Krewinkel > > Gesendet: Dienstag, 14. Dezember 2021 15:59 > > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: Re: AW: AW: Lineblocks in Jats writer > > > > > > denis.maier-NSENcxR/0n0@public.gmane.org writes: > > > > >> So, we could modify the JATS writer to take a Div with class > > >> "verse" and produce a verse element. I don't know if that's > > >> too ad hoc. > > > > > > I think that sounds like a good solution. Albert, WDYT? If you think > > > that this could work, maybe we should try to cover other use-cases as > > > well, say addresses. Anything else? What will happen with theses > > > classes when going to other formats? > > > > Sounds good to me. > > > > I think for the general case, output should be changed to use `<preformat > > preformat-type="lines">` or something similar. The only disadvantage of > that > > is that we have to do some extra work to process math formulae, as those > > are not allowed contents of `<preformat>` elements. > > > > If the LineBlock comes wrapped in a Div, then we could use the first class of > > the div as the value for `preformat-type`. > > > > -- > > Albert Krewinkel > > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/pandoc- > > discuss/87czlznsgg.fsf%40zeitkraut.de. > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc- > discuss/e412473bac1948a09884941aed6c4fdf%40unibe.ch. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8c2fd48655e044409604b99d3688dd92%40unibe.ch. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-01-13 11:10 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-12-13 10:57 Lineblocks in Jats writer denis.maier-NSENcxR/0n0 [not found] ` <28d7db8315224f719f5b4378afab270c-NSENcxR/0n0@public.gmane.org> 2021-12-13 12:55 ` Albert Krewinkel [not found] ` <87k0g88y05.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 2021-12-13 13:08 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <07859a49dfab413d81a40faa0818d40b-NSENcxR/0n0@public.gmane.org> 2021-12-13 17:39 ` John MacFarlane [not found] ` <m2czm09zfl.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org> 2021-12-14 10:56 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <0efb04f31c3a4d659a30cca620530eb6-NSENcxR/0n0@public.gmane.org> 2021-12-14 14:58 ` Albert Krewinkel [not found] ` <87czlznsgg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 2021-12-15 14:16 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <e412473bac1948a09884941aed6c4fdf-NSENcxR/0n0@public.gmane.org> 2022-01-13 11:10 ` denis.maier-NSENcxR/0n0
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).