emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug of "org-export radio targets" with utf-8 characters
@ 2015-04-11 18:21 kuangdash
  2015-04-12 18:16 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: kuangdash @ 2015-04-11 18:21 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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


<<中文字符>> and <<<片仮名>>> can’t be exported correctly whether in latex or html. 

It seems to be the problem of function “org-export-solidify-link-text”……


So, I change the function “org-export-solidify-link-text”  in ox.el with the codes below


(defun org-export-solidify-link-text (s)
  "Take link text S and make a safe target out of it."
  (save-match-data
    (mapconcat 'identity (org-split-string (prin1-to-string (encode-coding-string s 'utf-8)) "[^a-zA-Z0-9_.-:]+") "-")))


May it be help.

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

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

* Re: Bug of "org-export radio targets" with utf-8 characters
  2015-04-11 18:21 Bug of "org-export radio targets" with utf-8 characters kuangdash
@ 2015-04-12 18:16 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-04-12 18:16 UTC (permalink / raw)
  To: kuangdash; +Cc: emacs-orgmode@gnu.org

Hello,

<kuangdash@163.com> writes:

> <<中文字符>> and <<<片仮名>>> can’t be exported correctly whether in latex or html. 
>
> It seems to be the problem of function “org-export-solidify-link-text”……
>
>
> So, I change the function “org-export-solidify-link-text”  in ox.el with the codes below
>
>
> (defun org-export-solidify-link-text (s)
>   "Take link text S and make a safe target out of it."
>   (save-match-data
>     (mapconcat 'identity (org-split-string (prin1-to-string
>     (encode-coding-string s 'utf-8)) "[^a-zA-Z0-9_.-:]+") "-")))

Thanks. 

Actually, the real solution is to erase `org-export-solidify-link-text'
altogether. It is a source of problems. I will look into it.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2015-04-12 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-11 18:21 Bug of "org-export radio targets" with utf-8 characters kuangdash
2015-04-12 18:16 ` Nicolas Goaziou

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