emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Q] How to italicize without introducing a space?
@ 2023-03-29  3:12 Ruijie Yu via General discussions about Org-mode.
  2023-03-29  6:06 ` Dr. Arne Babenhauserheide
  2023-03-29  8:15 ` Marcin Borkowski
  0 siblings, 2 replies; 5+ messages in thread
From: Ruijie Yu via General discussions about Org-mode. @ 2023-03-29  3:12 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I am working on a piece of CJK text, which requires italicization.

--8<---------------cut here---------------start------------->8---
任何一个章节可以通过增加例如 =TODO= 或者 =HOLD= 等关键词来被设置成 /待办/ 。
--8<---------------cut here---------------end--------------->8---

Note the spaces before and after the pair of `?/'.  Without these
spaces, the HTML export does not show "待办" as italicized, but instead
treat them as inline literal `?/' characters, which is expected in
current Org implementation.

Also note that -- unlike English -- Chinese sentences rarely use spaces
(if at all), so showing the space simply because the Org grammar needs
it seems unnatural.

However, I don't immediately see how to resolve the issue natively in
Org.  If we allow `?/' to italicize regardless of spaces, then things
like Unix paths would no longer work.

So, I came up with using LaTeX like this:

--8<---------------cut here---------------start------------->8---
任何一个章节可以通过增加例如 =TODO= 或者 =HOLD= 等关键词来被设置成\(\textit{待办}\)。
--8<---------------cut here---------------end--------------->8---

This has two drawbacks:
1. (network-related?) Delay.  Apparently HTML uses MathJax to render
LaTeX, and my browser experiences a 1-second delay due to it needing to
download JS code from MathJax and doing some processing.
2. Transferability.  This only resolves the issue of /italicization/.
What if I need to underscore or bold a piece of text (likely), or to add
an inline code block with CJK characters (unlikely)?  I would have to
search for how to do each in LaTeX and write the workaround accordingly,
instead of simply using the Org markup syntax for each of them.

Are there any other solutions than what I have currently?

-- 
Best,


RY


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

end of thread, other threads:[~2023-03-29  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29  3:12 [Q] How to italicize without introducing a space? Ruijie Yu via General discussions about Org-mode.
2023-03-29  6:06 ` Dr. Arne Babenhauserheide
2023-03-29  6:18   ` Ruijie Yu via General discussions about Org-mode.
2023-03-29  7:05     ` Dr. Arne Babenhauserheide
2023-03-29  8:15 ` Marcin Borkowski

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