bugtex4ht - Bugs: bug #490, csquotes display environments in...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #490: csquotes display environments in ODT

Submitted by:  Jürgen Spitzmüller <jspitzm>
Submitted on:  Thu Nov 26 06:06:23 2020  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Sat Nov 28 10:08:27 2020, comment #9:

I can confirm that everything works as expected after today's TL update.

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 20:07:13 2020, comment #8:

Great, so I will update ooffice.4ht with this change.

Michal Hoftich <michal_h21>
Project Member
Fri Nov 27 15:23:25 2020, comment #7:

Thanks, this works indeed. So only this change is needed, not the change to csquotes.4ht

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 13:54:29 2020, comment #6:

The paragraphs are added by the configuration, so you can just remove them, like this:

\Preamble{xhtml,ooffice}
\Configure{displayquote}{\EndP
\bgroup \Configure{HtmlPar}
{\EndP \HCode{<text:p text:style-name="quote">}}
{\EndP \HCode{<text:p text:style-name="quote">}}
{\HCode{</text:p>}}
{\HCode{</text:p>}}%
}{}{}{\egroup\noindent}
\begin{document}
\EndPreamble

This seems to remove all unnecessary paragraphs and disables the indent of the following paragraph.

Michal Hoftich <michal_h21>
Project Member
Fri Nov 27 10:04:44 2020, comment #5:

And one final nitpick, if I may:

As with after quote, the followinf paragraph should not be indented if the environment and the following are logically in the same paragraph, as in the example case I provided.

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 09:57:03 2020, comment #4:

Furthermore there is an empty paragraph after (and sometimes also before) the quotes. This should not be there IMHO, as the space is determined by paragraph separation.

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 09:47:36 2020, comment #3:

FWIW the following change in the provided csquotes.4ht produces the desired output:

Jürgen Spitzmüller <jspitzm>
Fri Nov 27 09:33:59 2020, comment #2:

Many thanks for the swift reaction. There is one glitch still: The source information (first optional argument) is on a paragraph of its own, but it should be appended to the quote.

I.e.

should render

displayquote displayquote displayquote displayquote displayquote displayquote
displayquote displayquote displayquote displayquote displayquote displayquote
displayquote. (Source)

rather than

displayquote displayquote displayquote displayquote displayquote displayquote
displayquote displayquote displayquote displayquote displayquote displayquote
displayquote.

(Source)

Jürgen Spitzmüller <jspitzm>
Thu Nov 26 20:12:58 2020, comment #1:

Incidentally, I've dealt with these environments few days ago. Your request prompted me to test the support and add it to the sources. I've also added the ODT support.

It should be available in TL soon. You can test it using the attached csquotes.4ht file and config.cfg:

make4ht -c config.cfg -f odt mwe.tex

(file #381, file #382)

Michal Hoftich <michal_h21>
Project Member
Thu Nov 26 06:06:23 2020, original submission:

While the standard quote and quotation environments are exported to respective styles and formatted accordingly, csquotes' displayquote environment is exported to the text body style. Same applies to the other csquotes display environments (foreigndisplayquote, hyphendisplayquote, displaycquote, foreigndisplaycquote, hyphendisplaycquote).

This results in a rather tedious and error-prone task of finding and reformatting all quotations in ODT.

Could these environments be exported to dedicated styles (or simply quote style) in output, please?

See MWE.

Jürgen Spitzmüller <jspitzm>

 

Attached Files
file #381:  config.cfg added by michal_h21 (288B - application/octet-stream)
file #382:  csquotes.4ht added by michal_h21 (1kB - application/octet-stream)
file #372:  csquotes.tex added by jspitzm (2kB - text/x-tex)
file #373:  csquotes.pdf added by jspitzm (16kB - application/pdf)
file #374:  csquotes.odt added by jspitzm (7kB - application/vnd.oasis.opendocument.text)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Updated the item)
  • -unavailable- added by jspitzm (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    6 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Nov 27 20:07:13 2020michal_h21Open/ClosedOpen=>Closed
    Thu Nov 26 20:12:58 2020michal_h21Attached File-=>Added config.cfg, #381
      Attached File-=>Added csquotes.4ht, #382
    Thu Nov 26 06:06:23 2020jspitzmAttached File-=>Added csquotes.tex, #372
      Attached File-=>Added csquotes.pdf, #373
      Attached File-=>Added csquotes.odt, #374
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray