public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Parsing entities in org input
@ 2017-08-16 10:37 Axel Kielhorn
       [not found] ` <C20B5963-5AAF-42F1-A230-5A3B496A6440-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Axel Kielhorn @ 2017-08-16 10:37 UTC (permalink / raw)
  To: Pandoc discuss discuss

[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]

Hi,

I’m writing a lot in org recently but I have to provide docx for my coworkers.

My usual way is to export to odt, open in LO and export as docx.

Since Pandoc can read org and export docx, I wanted to take a shortcut.

I use entities instead of Unicode characters since they are easier to type on Windows.
When converting to HTML I get the following Warnings, but the characters appear in the output:

[warning] Skipped '\times ' at line 1 column 8
[warning] Skipped '\Omega ' at line 1 column 8
[warning] Skipped '\pm ' at line 1 column 5
[warning] Skipped '\cdots ' at line 1 column 8
[warning] Skipped '\permil ' at line 1 column 9
[warning] Skipped '\le ' at line 1 column 5
[warning] Skipped '\mu{}' at line 1 column 6
[warning] Skipped '\geq ' at line 1 column 6
[warning] Skipped '\Rightarrow ' at line 1 column 13

The greek letters are rendered as italic, despite the fact that they are not in math mode.

I’m using pandoc 2.0 build from git this morning.

Axel


-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/C20B5963-5AAF-42F1-A230-5A3B496A6440%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Pandoc_ECM-pandoc.html --]
[-- Type: text/html, Size: 3657 bytes --]

[-- Attachment #3: Pandoc_ECM.html --]
[-- Type: text/html, Size: 17940 bytes --]

[-- Attachment #4: Pandoc_ECM.org --]
[-- Type: application/octet-stream, Size: 2606 bytes --]

#+TITLE: Pandoc ECM
#+AUTHOR: Axel Kielhorn
#+LANGUAGE: de
* Spezifikation
:PROPERTIES:
:ID:       F5AD316C-7BAE-41DD-908E-00B152819F88
:org-index-ref: -3-
:END:
Vollständige Spezifikation, von der GL genehmigt.
Alle Änderungen werden hier mit Datum und Verursacher eingepflegt.
** Aufstellung
- Bodenbelastung (N/m^{2})
- Druckluftversorgung 5,5 bar \dots 6,9 bar
** Transport
- [ ] LKW-Transport
  - Länge \times Breite \times Höhe :: 13,6 m \times 2,4 m \times 2,7 m
  - Masse :: 25 000 kg (incl. Verpackung)
- [ ] See-Transport
  - [ ] 20 Fuß Container
    - Länge \times Breite \times Höhe :: 5,8 m \times 2,3 m \times 2,3 m
    - Masse :: 21 000 kg (Netto)
  - [ ] 40 Fuß Container
    - Länge \times Breite \times Höhe :: 12,0 m \times 2,3 m \times 2,3 m
    - Masse :: 26 000 kg (Netto)
  - [ ] 20 Fuß High Cube
    - Länge \times Breite \times Höhe :: 5,8 m \times 2,3 m \times 2,6 m
    - Masse :: 21 000 kg (Netto)
  - [ ] 40 Fuß High Cube
    - Länge \times Breite \times Höhe :: 12,0 m \times 2,3 m \times 2,6 m
    - Masse :: 26 000 kg (Netto)
- [ ] Luftfracht
  - [ ] AMJ
    - Länge \times Breite \times Höhe :: 3,0 m \times 2,3 m \times 2,4 m
    - Masse :: 6 500 kg (Netto)
* Normteile

Um ein einheitliches Aussehen und eine Beschaffung in höheren Stückzahlen zu ermöglichen, sollten die bevorzugten Normteile hier aufgeführt werden.
** Profile
- Maschinenrahmen 100 \times 60 \times 5
- Baugruppenrahmen 50 \times 30 \times 2
** Nadellager

| HK 1010 | C_{0} = 5,1 kN |
| HK 1015 | C_{0} = 8,8 kN |
  
Passung Stahl N6, Alu R6
Montagefase 10° -- 15°
** Transportsysteme
*** Ausführung
- [ ] Kopfantrieb
- [ ] \Omega Antrieb
** Ketten
| Kette | Größe             | Breite  | Bruchkraft |
|-------+-------------------+---------+------------|
| 06 B1 | 3/8″ \times 7/32″ | 13,5 mm | 8900 N     |
| 08 B1 | 1/2″ \times 5/8″  | 17 mm   | 17800 N    |
| 10 B1 | 5/8″ \times 3/8″  | 19,6 mm | 22200 N    |
| 12 B1 | 3/4″ \times 7/16″ | 22,7 mm | 28900 N    |

** Gasdruckfedern
- ACE
  - Toleranz \pm 5 \cdots 7 %, $-$ 20 / $+$ 40 N
  - Temperaturkoeffizient 3,4 \permil / K
* Interpretation EHEDG
- Gestaltung von Fertigungsteilen
  + R_{a} \le 0,8 \mu{}m
  + R_{innen} \geq 6 mm
- Drehstrommotoren ohne Kühlrippen
  - Asepticmotoren mit OS1 Beschichtung (150 \mu{}m)
  - VA-Motoren
- Rohrrahmen nicht direkt verschrauben
  - 10 mm Zwischenraum \Rightarrow 80 mm Sicherheitsabstand zur Gefährdung
  - 20 mm Zwischenraum \Rightarrow 120 mm Sicherheitsabstand zur Gefährdung

[-- Attachment #5: Pandoc_ECM-pandoc.docx --]
[-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 11432 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Parsing entities in org input
       [not found] ` <C20B5963-5AAF-42F1-A230-5A3B496A6440-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-08-18 21:27   ` Albert Krewinkel
       [not found]     ` <87ziawtvky.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Krewinkel @ 2017-08-18 21:27 UTC (permalink / raw)
  To: Axel Kielhorn; +Cc: Pandoc discuss discuss

Hi Alex,

apologies for the sluggish reply.

Axel Kielhorn <a.kielhorn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I use entities instead of Unicode characters since they are easier to type on Windows.
> When converting to HTML I get the following Warnings, but the characters appear in the output:
>
> [warning] Skipped '\times ' at line 1 column 8
> [warning] Skipped '\Omega ' at line 1 column 8
> [warning] Skipped '\pm ' at line 1 column 5
> [warning] Skipped '\cdots ' at line 1 column 8
> [warning] Skipped '\permil ' at line 1 column 9
> [warning] Skipped '\le ' at line 1 column 5
> [warning] Skipped '\mu{}' at line 1 column 6
> [warning] Skipped '\geq ' at line 1 column 6
> [warning] Skipped '\Rightarrow ' at line 1 column 13

I believe that this is a side-effect of pandoc's new feature to warn
whenever information might be lost. The org parser also tries to read
the command as if it was a MathML entity, so it still succeeds. The org
reader should handle this better, please open an issue on github for
this: <https://github.com/jgm/pandoc/issues>

> The greek letters are rendered as italic, despite the fact that they
> are not in math mode.

This is most certainly a bug in the org reader, please report this as
well in a separate issue. Note that Emacs org-mode exporters aren't
entirely consistent in this regard, either: The LaTeX exporter renders
the mu in italics, while the HTML exporter uses a normal font. However,
both exporters render the omega in a normal font, while pandoc uses
italics; this is a bug in the org reader.

Cheers,

Albert


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Parsing entities in org input
       [not found]     ` <87ziawtvky.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2017-08-18 21:47       ` John MACFARLANE
  0 siblings, 0 replies; 3+ messages in thread
From: John MACFARLANE @ 2017-08-18 21:47 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

inlineCommand in the LaTeX reader will call 'report'
to issue this warning for unknown commands.  By the
time the org reader backtracks to try it as a MathML entity,
it's too late, the warning has already been issued.

One easy but somewhat ugly workaround would be to change the
verbosity level prior to calling inlineCommand, and then
change it back afterwards.

+++ Albert Krewinkel [Aug 18 17 23:27 ]:

>I believe that this is a side-effect of pandoc's new feature to warn
>whenever information might be lost. The org parser also tries to read
>the command as if it was a MathML entity, so it still succeeds. The org
>reader should handle this better, please open an issue on github for
>this: <https://github.com/jgm/pandoc/issues>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-18 21:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 10:37 Parsing entities in org input Axel Kielhorn
     [not found] ` <C20B5963-5AAF-42F1-A230-5A3B496A6440-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-18 21:27   ` Albert Krewinkel
     [not found]     ` <87ziawtvky.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2017-08-18 21:47       ` John MACFARLANE

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).