public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Current state of handling SI units in pandoc
@ 2020-11-22 12:46 krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
       [not found] ` <b22eb850-9ea0-4243-a876-bec67804f9a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2020-11-22 12:46 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1145 bytes --]

I am progressing with creating filter that inserts non-breakable spaces in 
text according to common typografic rules. One of them is to insert 
non-breakable space in front of number quantifying some entity ("chapter 
9", "page 100", etc ...) but that is kind of contradictory to how should be 
handled units: In case of numbered expression with an unit should be 
non-breakable space inserted after the number ("100 kPa", "10 m").

As far as I know, in LaTeX this is dealt with by means of `siunitx` 
package. Does `pandoc` in any way emulate that behaviour, or is there an 
filter for that already (I have thought there is, but I am actually having 
trouble finding it now).

Thank you for any information in this.

Regards, Tomas

-- 
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/b22eb850-9ea0-4243-a876-bec67804f9a4n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1494 bytes --]

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

* Re: Current state of handling SI units in pandoc
       [not found] ` <b22eb850-9ea0-4243-a876-bec67804f9a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-11-22 21:06   ` John MacFarlane
       [not found]     ` <m2sg91drus.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-11-22 21:06 UTC (permalink / raw)
  To: krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, pandoc-discuss


The LaTeX reader can parse most siunitx commands.
But there's nothing like this for other formats.

"krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <krulis.tomas.tk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I am progressing with creating filter that inserts non-breakable spaces in 
> text according to common typografic rules. One of them is to insert 
> non-breakable space in front of number quantifying some entity ("chapter 
> 9", "page 100", etc ...) but that is kind of contradictory to how should be 
> handled units: In case of numbered expression with an unit should be 
> non-breakable space inserted after the number ("100 kPa", "10 m").
>
> As far as I know, in LaTeX this is dealt with by means of `siunitx` 
> package. Does `pandoc` in any way emulate that behaviour, or is there an 
> filter for that already (I have thought there is, but I am actually having 
> trouble finding it now).
>
> Thank you for any information in this.
>
> Regards, Tomas
>
> -- 
> 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/b22eb850-9ea0-4243-a876-bec67804f9a4n%40googlegroups.com.


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

* Re: Current state of handling SI units in pandoc
       [not found]     ` <m2sg91drus.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-11-23 19:13       ` krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
  0 siblings, 0 replies; 3+ messages in thread
From: krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2020-11-23 19:13 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2044 bytes --]

I suspected so. Thank you for clarification.

Dne neděle 22. listopadu 2020 v 22:06:23 UTC+1 uživatel John MacFarlane 
napsal:

>
> The LaTeX reader can parse most siunitx commands.
> But there's nothing like this for other formats.
>
> "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I am progressing with creating filter that inserts non-breakable spaces 
> in 
> > text according to common typografic rules. One of them is to insert 
> > non-breakable space in front of number quantifying some entity ("chapter 
> > 9", "page 100", etc ...) but that is kind of contradictory to how should 
> be 
> > handled units: In case of numbered expression with an unit should be 
> > non-breakable space inserted after the number ("100 kPa", "10 m").
> >
> > As far as I know, in LaTeX this is dealt with by means of `siunitx` 
> > package. Does `pandoc` in any way emulate that behaviour, or is there an 
> > filter for that already (I have thought there is, but I am actually 
> having 
> > trouble finding it now).
> >
> > Thank you for any information in this.
> >
> > Regards, Tomas
> >
> > -- 
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/b22eb850-9ea0-4243-a876-bec67804f9a4n%40googlegroups.com
> .
>

-- 
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/133f5c9d-a1e3-4fff-a1d7-92ab04308c1an%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3191 bytes --]

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

end of thread, other threads:[~2020-11-23 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 12:46 Current state of handling SI units in pandoc krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
     [not found] ` <b22eb850-9ea0-4243-a876-bec67804f9a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-22 21:06   ` John MacFarlane
     [not found]     ` <m2sg91drus.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-23 19:13       ` krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

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