emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Paragraph consisting only of number and full stop disappears in export
@ 2018-03-04 22:07 Eric Abrahamsen
  2018-03-05  1:13 ` Samuel Wales
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Eric Abrahamsen @ 2018-03-04 22:07 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I just discovered that a paragraph disappeared from a subtree I was
exporting, I guess because the paragraph consists of just a number
followed by a full stop, and was interpreted as a list item. I'm
translating subtitles, and the dialogue went:

#+begin_src org
There are no taxis, but I've got a car.

How much to Dongying?

300.

We can be there 10am tomorrow.
#+end_src

I'm not surprised that "300." got interpreted as a list item, but I
wonder if there's a way to protect against it being removed altogether.
I suppose it might be nice if a single list item with no content would
be interpreted as a paragraph, but that probably opens the door to all
kinds of weird edge cases. If there were just a way to escape it...

Thanks,
Eric

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-04 22:07 Paragraph consisting only of number and full stop disappears in export Eric Abrahamsen
@ 2018-03-05  1:13 ` Samuel Wales
  2018-03-05  1:43   ` Eric Abrahamsen
  2018-03-05  7:19 ` Eric S Fraga
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2018-03-05  1:13 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

verse block?

On 3/4/18, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
> Hi,
>
> I just discovered that a paragraph disappeared from a subtree I was
> exporting, I guess because the paragraph consists of just a number
> followed by a full stop, and was interpreted as a list item. I'm
> translating subtitles, and the dialogue went:
>
> #+begin_src org
> There are no taxis, but I've got a car.
>
> How much to Dongying?
>
> 300.
>
> We can be there 10am tomorrow.
> #+end_src
>
> I'm not surprised that "300." got interpreted as a list item, but I
> wonder if there's a way to protect against it being removed altogether.
> I suppose it might be nice if a single list item with no content would
> be interpreted as a paragraph, but that probably opens the door to all
> kinds of weird edge cases. If there were just a way to escape it...
>
> Thanks,
> Eric
>
>
>


-- 
The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-05  1:13 ` Samuel Wales
@ 2018-03-05  1:43   ` Eric Abrahamsen
  2018-03-05  2:44     ` Samuel Wales
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Abrahamsen @ 2018-03-05  1:43 UTC (permalink / raw)
  To: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> verse block?

Maybe, except that puts it into monospaced font, and I'd have to wrap
the whole document in a verse block...

> On 3/4/18, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
>> Hi,
>>
>> I just discovered that a paragraph disappeared from a subtree I was
>> exporting, I guess because the paragraph consists of just a number
>> followed by a full stop, and was interpreted as a list item. I'm
>> translating subtitles, and the dialogue went:
>>
>> #+begin_src org
>> There are no taxis, but I've got a car.
>>
>> How much to Dongying?
>>
>> 300.
>>
>> We can be there 10am tomorrow.
>> #+end_src
>>
>> I'm not surprised that "300." got interpreted as a list item, but I
>> wonder if there's a way to protect against it being removed altogether.
>> I suppose it might be nice if a single list item with no content would
>> be interpreted as a paragraph, but that probably opens the door to all
>> kinds of weird edge cases. If there were just a way to escape it...
>>
>> Thanks,
>> Eric
>>
>>
>>

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-05  1:43   ` Eric Abrahamsen
@ 2018-03-05  2:44     ` Samuel Wales
  2018-03-05 17:49       ` Eric Abrahamsen
  0 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2018-03-05  2:44 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

i thought that was example that monospaced it.

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-04 22:07 Paragraph consisting only of number and full stop disappears in export Eric Abrahamsen
  2018-03-05  1:13 ` Samuel Wales
@ 2018-03-05  7:19 ` Eric S Fraga
  2018-03-05 13:04 ` Nicolas Goaziou
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Eric S Fraga @ 2018-03-05  7:19 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

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

On Sunday,  4 Mar 2018 at 14:07, Eric Abrahamsen wrote:
> Hi,
>
> I just discovered that a paragraph disappeared from a subtree I was
> exporting, I guess because the paragraph consists of just a number
> followed by a full stop, and was interpreted as a list item. I'm
> translating subtitles, and the dialogue went:

You don't say what export target you are using.  If LaTeX, you could do:

#+begin_src org
There are no taxis, but I've got a car.

How much to Dongying?

@@latex:@@300.

We can be there 10am tomorrow.
#+end_src

And probably similarly for HTML etc.

Ugly, mind you.
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-191-g90607d

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-04 22:07 Paragraph consisting only of number and full stop disappears in export Eric Abrahamsen
  2018-03-05  1:13 ` Samuel Wales
  2018-03-05  7:19 ` Eric S Fraga
@ 2018-03-05 13:04 ` Nicolas Goaziou
  2018-03-05 15:02 ` Diego Zamboni
  2018-03-05 17:50 ` Eric Abrahamsen
  4 siblings, 0 replies; 9+ messages in thread
From: Nicolas Goaziou @ 2018-03-05 13:04 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

Hello,

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> I just discovered that a paragraph disappeared from a subtree I was
> exporting, I guess because the paragraph consists of just a number
> followed by a full stop, and was interpreted as a list item. I'm
> translating subtitles, and the dialogue went:
>
> #+begin_src org
> There are no taxis, but I've got a car.
>
> How much to Dongying?
>
> 300.
>
> We can be there 10am tomorrow.
> #+end_src
>
> I'm not surprised that "300." got interpreted as a list item, but I
> wonder if there's a way to protect against it being removed altogether.
> I suppose it might be nice if a single list item with no content would
> be interpreted as a paragraph, but that probably opens the door to all
> kinds of weird edge cases. If there were just a way to escape it...

You could insert a zero width space between the number and the dot.

Regards,

-- 
Nicolas Goaziou

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-04 22:07 Paragraph consisting only of number and full stop disappears in export Eric Abrahamsen
                   ` (2 preceding siblings ...)
  2018-03-05 13:04 ` Nicolas Goaziou
@ 2018-03-05 15:02 ` Diego Zamboni
  2018-03-05 17:50 ` Eric Abrahamsen
  4 siblings, 0 replies; 9+ messages in thread
From: Diego Zamboni @ 2018-03-05 15:02 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: Org-mode

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

Hi Eric,

I found out that adding any non-space character after the dot prevents org
from interpreting it as a list. In particular, adding a non-breaking-space
entity at the end of the line works, like this: "300.\nbsp"

Maybe other punctuations would also work and make sense in the context of
your document- see `org-entities-help` for the full list of available
entities.

--Diego


On Sun, Mar 4, 2018 at 11:07 PM, Eric Abrahamsen <eric@ericabrahamsen.net>
wrote:

> Hi,
>
> I just discovered that a paragraph disappeared from a subtree I was
> exporting, I guess because the paragraph consists of just a number
> followed by a full stop, and was interpreted as a list item. I'm
> translating subtitles, and the dialogue went:
>
> #+begin_src org
> There are no taxis, but I've got a car.
>
> How much to Dongying?
>
> 300.
>
> We can be there 10am tomorrow.
> #+end_src
>
> I'm not surprised that "300." got interpreted as a list item, but I
> wonder if there's a way to protect against it being removed altogether.
> I suppose it might be nice if a single list item with no content would
> be interpreted as a paragraph, but that probably opens the door to all
> kinds of weird edge cases. If there were just a way to escape it...
>
> Thanks,
> Eric
>
>
>

[-- Attachment #2: Type: text/html, Size: 1770 bytes --]

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-05  2:44     ` Samuel Wales
@ 2018-03-05 17:49       ` Eric Abrahamsen
  0 siblings, 0 replies; 9+ messages in thread
From: Eric Abrahamsen @ 2018-03-05 17:49 UTC (permalink / raw)
  To: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> i thought that was example that monospaced it.

Oops, you're right. But it still feels hacky.

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

* Re: Paragraph consisting only of number and full stop disappears in export
  2018-03-04 22:07 Paragraph consisting only of number and full stop disappears in export Eric Abrahamsen
                   ` (3 preceding siblings ...)
  2018-03-05 15:02 ` Diego Zamboni
@ 2018-03-05 17:50 ` Eric Abrahamsen
  4 siblings, 0 replies; 9+ messages in thread
From: Eric Abrahamsen @ 2018-03-05 17:50 UTC (permalink / raw)
  To: emacs-orgmode

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Hi,
>
> I just discovered that a paragraph disappeared from a subtree I was
> exporting, I guess because the paragraph consists of just a number
> followed by a full stop, and was interpreted as a list item. I'm
> translating subtitles, and the dialogue went:

Thanks for all the suggestions! I think I'll go with the zero-width
space before the full stop, that seems the least intrusive, and also the
least like to get "fixed" by other edits/cleanups I do.

Thanks again,
Eric

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

end of thread, other threads:[~2018-03-05 17:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-04 22:07 Paragraph consisting only of number and full stop disappears in export Eric Abrahamsen
2018-03-05  1:13 ` Samuel Wales
2018-03-05  1:43   ` Eric Abrahamsen
2018-03-05  2:44     ` Samuel Wales
2018-03-05 17:49       ` Eric Abrahamsen
2018-03-05  7:19 ` Eric S Fraga
2018-03-05 13:04 ` Nicolas Goaziou
2018-03-05 15:02 ` Diego Zamboni
2018-03-05 17:50 ` Eric Abrahamsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).